/* Official variable web fonts. Provenance and usage notes live beside the files. */
@font-face{font-family:"Anthropic Serif";src:url("./assets/fonts/anthropic-serif-roman.woff2") format("woff2");font-style:normal;font-weight:300 800;font-display:swap}
@font-face{font-family:"Anthropic Serif";src:url("./assets/fonts/anthropic-serif-italic.woff2") format("woff2");font-style:italic;font-weight:300 800;font-display:swap}
@font-face{font-family:"Anthropic Sans";src:url("./assets/fonts/anthropic-sans-roman.woff2") format("woff2");font-style:normal;font-weight:300 800;font-display:swap}
@font-face{font-family:"Anthropic Sans";src:url("./assets/fonts/anthropic-sans-italic.woff2") format("woff2");font-style:italic;font-weight:300 800;font-display:swap}
@font-face{font-family:"Anthropic Mono";src:url("./assets/fonts/anthropic-mono-roman.woff2") format("woff2");font-style:normal;font-weight:300 800;font-display:swap}
/* Self-hosted CJK subset for headings. Latin stays on Anthropic Serif via unicode-range. */
@font-face{font-family:"Noto Serif SC";src:url("./assets/fonts/noto-serif-sc-subset.woff2?v=2") format("woff2");font-style:normal;font-weight:300 900;font-display:swap;unicode-range:U+2E80-2EFF,U+3000-303F,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FF00-FFEF}
:root{
  --latin-serif:"Anthropic Serif";
  --latin-sans:"Anthropic Sans";
  --serif:var(--latin-serif),Georgia,"Noto Serif SC","Source Han Serif SC","Noto Serif CJK SC","Source Han Serif CN","Songti SC",SimSun,serif;
  --sans:var(--latin-sans),"Segoe UI",system-ui,-apple-system,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  --mono:"Anthropic Mono",var(--sans);
  --reading-width:62ch;
}
body{font-size:17px;line-height:1.75;font-optical-sizing:auto;font-synthesis:none}
.wrap{width:min(1160px,calc(100% - 96px))}
.brand{font-family:var(--serif);font-weight:400;letter-spacing:-.03em;line-height:1.1}
.desktop-nav a,.site-header .lang-toggle{font-size:15px}
.hero{
  direction:ltr;grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr);
  gap:clamp(42px,5vw,76px);min-height:0;padding-block:88px 100px;
}
.hero-copy{min-width:0}
.hero h1{margin-top:0}
.hello{font:400 17px/1.6 var(--sans);letter-spacing:0;color:var(--muted);margin-bottom:10px}
.name{display:inline-block;direction:ltr;unicode-bidi:isolate;font:400 clamp(88px,8vw,118px)/1.06 var(--serif);letter-spacing:.01em;font-kerning:normal;font-variant-ligatures:none;white-space:nowrap}
.hero-headline{
  font:350 clamp(24px,2.1vw,28px)/1.45 var(--serif);letter-spacing:-.015em;
  margin-top:28px;max-width:29ch;text-wrap:pretty;overflow-wrap:normal;
}
.hero-description{font-size:17px;line-height:1.8;max-width:43ch;margin-top:18px;text-wrap:pretty;overflow-wrap:break-word}
.research-name{white-space:nowrap;font-family:var(--latin-serif),Georgia,serif;letter-spacing:normal}
.hero-actions{margin-top:30px;gap:12px}
.action-link{font-family:var(--sans);font-size:16px;letter-spacing:0;border-radius:7px}
.hero-figure{margin:0;transform:rotate(.35deg);padding:10px 10px 0;box-shadow:0 5px 18px #4a3e2208,0 0 0 1px var(--line)}
.photo-mat{aspect-ratio:1.04}
.photo-mat img{object-position:43% 65%}
.hero-figure figcaption{font:400 15px/1.7 var(--serif);padding:16px 5px 17px;text-wrap:pretty}
html:is(:lang(en),:lang(es),:lang(fr),:lang(de),:lang(pt),:lang(id)) .hero-figure figcaption{font-style:italic}
.photo-label{font-size:11px;letter-spacing:.12em;left:14px;top:14px}

/* Sections have distinct rhythms, with rules reserved for major boundaries. */
.section{padding-block:76px}
.section-number{font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.065em;margin-bottom:17px;line-height:1.5}
.section h2,.life-section h2{font:300 clamp(30px,2.7vw,37px)/1.25 var(--serif);letter-spacing:-.025em}
.illustrated-heading{grid-template-columns:36px minmax(0,1fr);column-gap:13px}
.illustrated-heading>.section-illustration{width:36px;height:36px}
.about,.education{grid-template-columns:minmax(0,.85fr) minmax(0,1.7fr);gap:72px}
.about-main{max-width:62ch}
.about-main p,.about-main p:first-child{font-size:17px;line-height:1.85;margin-bottom:18px}
.about-main p:last-child{margin-bottom:0}
.aside-note{font-size:15px;line-height:1.8;max-width:27ch;margin-top:20px}
.profile-note{font-size:13px;margin-top:22px}
.section-top{margin-bottom:38px}
.research-grid{gap:54px;align-items:start}
.research-card,.research-card.physical{padding:0 0 10px;border:0;display:flex;flex-direction:column;align-self:start}
.research-card-top{min-height:80px;margin-bottom:18px;align-items:center;justify-content:flex-end}
.research-illustration{width:88px;height:88px;margin:0 8px 0 0}

.research-card h3{font:350 30px/1.3 var(--serif);letter-spacing:-.02em;text-wrap:balance}
.research-subtitle{font-size:14px;line-height:1.7;margin-top:7px}
.research-description{font-size:17px;line-height:1.8;margin-top:20px;max-width:55ch;text-wrap:pretty}
.research-card .tags{margin-top:20px;gap:7px 16px;margin-bottom:24px}
.research-card .tags span{font-size:12px;line-height:1.7;padding:0;border:0;border-radius:0;color:var(--muted)}
.research-detail h4{margin:0;font-size:14px}
.research-detail p{font-size:15px;line-height:1.8}

.research-skills{border:0;margin-top:38px;padding-top:0}
.research-skills-heading{gap:10px;margin-bottom:14px}
.tools-illustration{width:29px;height:29px}
.research-skills h3{font:400 17px/1.5 var(--sans);letter-spacing:0;color:var(--muted)}
.skill-badges{gap:8px}
.skill-badges .skill-badge{background:transparent;min-height:32px;padding:4px 10px;font-size:13px;border-color:var(--line)}
.skills-toggle{margin:14px 0 0;min-height:40px;padding:5px 0;border:0;white-space:normal;font-size:14px;gap:12px}
.skills-toggle:hover{background:transparent;text-decoration:underline;text-underline-offset:5px}
.education{padding-block:60px 66px}
.timeline{margin-top:0;padding-inline-start:24px;padding-inline-end:0;border:0;border-inline-start:1px solid var(--line)}
.education-item{padding-bottom:24px}
.education-item:last-child{border:0;padding-top:8px}
.education-item:before,.education-item:last-child:before{left:auto;right:auto;inset-inline-start:-30px;top:9px}
.education-item:last-child:before{top:17px}
.education-meta{margin-bottom:7px;gap:5px 16px}
.education-dates{font-family:var(--mono);font-size:15px;letter-spacing:0;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.education-degree,.education-note{font-size:14px;line-height:1.75}
.education-item h3{font-size:24px;line-height:1.4;letter-spacing:-.015em}
.school-abbr{font-size:12px;line-height:1.7;margin-top:5px}
.education-note{margin-top:9px}

/* Photographs keep their native proportions and their complete subjects. */
.life-section{padding-block:76px 70px;border-bottom:0}
.hobbies{gap:32px;margin:34px 0 55px}
.hobby{border:0;padding:0}
.hobby-illustration{width:80px;height:80px;margin-bottom:17px}
.hobby h3{font:300 23px/1.4 var(--serif);letter-spacing:-.015em}
.hobby p{font-size:15px;line-height:1.8;max-width:26ch;margin-top:9px}
.gallery{grid-template-columns:repeat(12,minmax(0,1fr));gap:44px 32px;align-items:center}
.photo-card{grid-column:span 4}
.photo-card:nth-child(n){padding-top:0}
.photo-card:nth-child(-n+4){grid-column:span 5}
.photo-card:nth-child(2),.photo-card:nth-child(4){grid-column:span 7}
.photo-link{aspect-ratio:auto;border-radius:2px;background:transparent}
.photo-link img{width:100%;height:auto;object-fit:contain;transform:none;transition:opacity .2s ease}
.photo-link:hover img{transform:none;opacity:.94}
.photo-card figcaption{gap:16px;margin-top:14px}
.photo-title{font:300 22px/1.4 var(--serif);letter-spacing:-.012em;text-wrap:pretty}
.photo-caption{font-size:14px;line-height:1.75;margin-top:7px;max-width:56ch}
.photo-number{font-family:var(--mono);font-style:normal;font-size:11px;padding-top:4px;direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.gallery-toggle{margin-top:38px;font-size:15px}
html{scrollbar-gutter:stable}
.lightbox{overflow-x:hidden}
.lightbox.is-photo-zooming{overflow:visible}
.lightbox-visual{position:relative;flex:1;min-width:0;height:69dvh;transform-origin:center;touch-action:pan-y pinch-zoom}
.lightbox-stage .lightbox-visual img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center;pointer-events:none;user-select:none}
.lightbox-visual img[hidden]{display:none}
.lightbox-outgoing{z-index:2}
#lightbox-count{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:no-preference){
  .lightbox[open]{animation:photo-dialog-in .2s ease both}
  .lightbox[open]::backdrop{animation:photo-backdrop-in .25s ease both}
  .lightbox.is-closing{animation:photo-dialog-out .26s ease both}
  .lightbox.is-closing::backdrop{animation:photo-backdrop-out .26s ease both}
}
@keyframes photo-dialog-in{from{opacity:0}to{opacity:1}}
@keyframes photo-dialog-out{from{opacity:1}to{opacity:0}}
@keyframes photo-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes photo-backdrop-out{from{opacity:1}to{opacity:0}}
@media(max-width:760px){.lightbox-visual{height:58dvh;flex-basis:100%}}
@media(max-height:500px) and (orientation:landscape){.lightbox-visual{height:50dvh}}
.closing{padding-block:78px 72px}
.closing h2{font-weight:300;font-size:34px;line-height:1.4;letter-spacing:-.025em}
.closing>p{font-size:16px;max-width:58ch;margin-top:16px}
.closing-links{margin-top:28px}
.site-footer{font-size:13px;gap:20px;padding-block:24px;align-items:center}
.footer-signature{display:flex;align-items:center;gap:13px;max-width:100%}
.fish-mark{display:block;width:38px;height:auto;flex-shrink:0;color:var(--ink)}
.footer-separator{margin-inline:8px}

/* Anthropic's fonts cover Latin, not these scripts. Preserve native fallbacks. */
html:lang(zh){--serif:var(--latin-serif),"Noto Serif SC","Source Han Serif SC","Noto Serif CJK SC","Source Han Serif CN","Songti SC",SimSun,serif}
html:lang(ja){--serif:var(--latin-serif),"Noto Serif JP","Yu Mincho","Hiragino Mincho ProN",serif;--sans:var(--latin-sans),"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif}
html:lang(ko){--serif:var(--latin-serif),"Noto Serif KR","Batang",serif;--sans:var(--latin-sans),"Malgun Gothic","Apple SD Gothic Neo",sans-serif;word-break:keep-all}
html:lang(ar){--serif:var(--latin-serif),"Noto Naskh Arabic","Traditional Arabic","Geeza Pro",serif;--sans:var(--latin-sans),"Segoe UI","Noto Sans Arabic",Tahoma,sans-serif}
html:lang(ur){--serif:var(--latin-serif),"Noto Nastaliq Urdu","Urdu Typesetting","Traditional Arabic",serif;--sans:var(--latin-sans),"Segoe UI","Noto Sans Arabic",Tahoma,sans-serif}
html:lang(hi){--serif:var(--latin-serif),"Noto Serif Devanagari","Nirmala UI",Mangal,serif;--sans:var(--latin-sans),"Nirmala UI","Noto Sans Devanagari",Mangal,sans-serif}
html:lang(bn){--serif:var(--latin-serif),"Noto Serif Bengali","Nirmala UI",Vrinda,serif;--sans:var(--latin-sans),"Nirmala UI","Noto Sans Bengali",Vrinda,sans-serif}
.brand,.name{font-family:var(--latin-serif),Georgia,serif}
html:is(:lang(zh),:lang(ja),:lang(ko)) :is(.hero-headline,.section h2,.life-section h2,.research-card h3,.hobby h3,.photo-title,.closing h2){letter-spacing:0;line-height:1.55;line-break:strict;word-break:normal}
html:is(:lang(zh),:lang(ja),:lang(ko)) :is(.hero-description,.about-main p,.research-description,.hobby p,.photo-caption){line-height:1.95}
html:is(:lang(ar),:lang(ur),:lang(hi),:lang(bn)) :is(.hero-headline,.section h2,.life-section h2,.research-card h3,.education-item h3,.hobby h3,.photo-title,.closing h2){letter-spacing:0;line-height:1.7;overflow-wrap:break-word}
html:is(:lang(ar),:lang(ur),:lang(hi),:lang(bn)) :is(.hero-description,.about-main p,.research-description,.photo-caption,.action-link){line-height:1.95;letter-spacing:0}
html:lang(ur) :is(.hero-headline,.section h2,.life-section h2,.photo-title){line-height:2}
html:is(:lang(ar),:lang(ur)) .hero-copy,html:is(:lang(ar),:lang(ur)) .hero-figure figcaption{direction:rtl;text-align:right}
[dir="rtl"] .timeline{padding-right:0;margin-right:0;margin-left:0;padding-inline-start:24px}
[dir="rtl"] .education-item:before{right:auto;inset-inline-start:-30px}
[dir="rtl"] .research-illustration{margin-inline-start:0;margin-inline-end:8px}
[dir="rtl"] .section-number{letter-spacing:0}

@media(max-width:1100px){
  .wrap{width:calc(100% - 64px)}
  .hero{gap:38px;padding-block:60px 74px}
  .about,.education{gap:40px;grid-template-columns:minmax(0,.8fr) minmax(0,1.7fr)}
  .research-grid{column-gap:36px}
  .hobbies{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
  .gallery{gap:34px 24px}
}
@media(max-width:760px){
  body{font-size:16px}
  .wrap{width:calc(100% - 40px)}
  .hero{display:flex;padding-block:44px 54px;gap:36px}
  .hero-copy{width:100%}
  .hello{font-size:16px;margin-bottom:8px}
  .name{font-size:clamp(76px,18vw,100px)}
  .hero-headline{font-size:25px;line-height:1.45;max-width:30ch;margin-top:24px}
  .hero-description{font-size:16px;line-height:1.85;max-width:44ch;margin-top:16px}
  .hero-actions{margin-top:24px}
  .hero-figure{width:100%;max-width:520px;transform:none;padding:8px 8px 0}
  .photo-mat{aspect-ratio:1.15}
  .hero-figure figcaption{font-size:14px;padding:13px 4px 14px}
  .section{padding-block:48px}
  .section-number{font-size:12px;margin-bottom:13px}
  .section h2,.life-section h2{font-size:30px}
  .illustrated-heading{grid-template-columns:32px minmax(0,1fr);column-gap:11px}
  .illustrated-heading>.section-illustration{width:32px;height:32px}
  .about,.education{display:block}
  .about-main{margin-top:27px}
  .about-main p,.about-main p:first-child{font-size:16px;line-height:1.9}
  .profile-note{margin-top:15px}
  .section-top{margin-bottom:28px}
  .research-grid{grid-template-columns:1fr;gap:28px}
  .research-card,.research-card.physical{padding:0 0 5px}
  .research-card+.research-card{padding-top:25px;border-top:1px solid var(--line)}
  .research-card h3{font-size:28px}
  .research-card-top{min-height:70px;margin-bottom:10px}
  .research-illustration{width:80px;height:80px}
  .research-description{font-size:16px;margin-top:16px}
  .research-card .tags{margin-bottom:17px}
  .research-skills{margin-top:28px}
  .skill-badges .skill-badge{font-size:13px}
  .timeline{margin-top:28px}
  .education-item h3{font-size:23px}
  .education-degree{font-size:14px}
  .life-section{padding-block:48px}
  .hobbies{gap:27px 22px;margin:29px 0 38px}
  .hobby-illustration{width:72px;height:72px;margin-bottom:12px}
  .hobby h3{font-size:21px}
  .hobby p{font-size:14px}
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px;align-items:start}
  .photo-card:nth-child(n){grid-column:auto}
  .photo-card figcaption{gap:10px;margin-top:12px}
  .photo-title{font-size:19px}
  .photo-caption{font-size:14px}
  .closing{padding-block:52px}
  .closing h2{font-size:30px}
  .closing>p:not(.eyebrow){max-width:36ch;font-size:16px}
  .site-footer{align-items:flex-start;font-size:12px;gap:14px;padding-block:22px}
  .fish-mark{width:34px}
  .footer-signature{gap:10px}
}
@media(max-width:520px){
  .gallery{grid-template-columns:1fr;gap:34px}
  .photo-title{font-size:21px}
  .photo-caption{max-width:none}
  .hero-actions{grid-template-columns:1fr}
}
@media(max-width:360px){
  .wrap{width:calc(100% - 32px)}
  .hobbies{grid-template-columns:1fr 1fr;gap:25px 16px}
  .hobby h3{font-size:20px}
  .site-header .lang-toggle{padding-inline:6px}
  .hero-headline{font-size:24px}
}
@media print{
  .hero{padding-block:25px}
  .section,.life-section{padding-block:25px}
  .photo-card{break-inside:avoid}
  .photo-link img{opacity:1}
}


/* Inverse paper surfaces frame the page; reading sections keep their palette. */
.paper-surface{
  --paper: #35332e;
  --ink: #f3eee3;
  --muted: #e9e1d3;
  --accent: #e3a681;
  --line: #696154;
  --soft: #474138;
  --control-surface: #514a40;
  --control-border: #8d806d;
  --fb-tex: .88;
  --fb-vig: 1;
  --fb-vig-bg:
    radial-gradient(ellipse at 50% 30%, rgba(255,244,219,.055), transparent 55%),
    radial-gradient(ellipse 75% 90% at 50% 38%, transparent 8%, rgba(0,0,0,.84) 100%);
  position: relative;
  isolation: isolate;
  background: var(--paper);
  color: var(--ink);
}
:root[data-theme="dark"] .paper-surface{
  --paper: #eee7d9;
  --ink: #29251f;
  --muted: #484033;
  --accent: #925137;
  --line: #b7a88e;
  --soft: #e4d9c5;
  --control-surface: #dfd2ba;
  --control-border: #a7987f;
  --fb-tex: .78;
  --fb-vig-bg:
    radial-gradient(ellipse at 50% 25%, rgba(255,255,255,.30), transparent 55%),
    radial-gradient(ellipse 75% 90% at 50% 38%, transparent 8%, rgba(98,67,29,.43) 100%);
}
.page-end{overflow: hidden}
.paper-surface :is(.footer-separator,.visit-sep){color:var(--muted)}
.fb-paper{
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
}
.fb-paper::before{
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--fb-tex);
  mix-blend-mode: soft-light;
  /* Fine grain, two fiber directions and broad pulp are weighted in SVG. */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='860'%20height='860'%3E%3Cfilter%20id='p'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.82'%20numOctaves='3'%20seed='4'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%20result='grain'%3E%3CfeFuncA%20type='linear'%20slope='0'%20intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.004%20.7'%20numOctaves='3'%20seed='8'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%20result='horizontal'%3E%3CfeFuncA%20type='linear'%20slope='0'%20intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.7%20.004'%20numOctaves='3'%20seed='12'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%20result='vertical'%3E%3CfeFuncA%20type='linear'%20slope='0'%20intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='.004'%20numOctaves='3'%20seed='19'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%20result='pulp'%3E%3CfeFuncA%20type='linear'%20slope='0'%20intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeComposite%20in='grain'%20in2='horizontal'%20operator='arithmetic'%20k2='.42'%20k3='.12'%20result='gh'/%3E%3CfeComposite%20in='gh'%20in2='vertical'%20operator='arithmetic'%20k2='1'%20k3='.12'%20result='ghv'/%3E%3CfeComposite%20in='ghv'%20in2='pulp'%20operator='arithmetic'%20k2='1'%20k3='.34'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type='linear'%20slope='3.6'%20intercept='-1.3'/%3E%3CfeFuncG%20type='linear'%20slope='3.6'%20intercept='-1.3'/%3E%3CfeFuncB%20type='linear'%20slope='3.6'%20intercept='-1.3'/%3E%3C/feComponentTransfer%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type='table'%20tableValues='.1%20.74'/%3E%3CfeFuncG%20type='table'%20tableValues='.1%20.74'/%3E%3CfeFuncB%20type='table'%20tableValues='.1%20.74'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='860'%20height='860'%20filter='url%28%23p%29'/%3E%3C/svg%3E");
  background-size: 860px 860px;
  background-repeat: repeat;
}
.fb-paper::after{
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--fb-vig);
  background: var(--fb-vig-bg);
}
/* Only the decorative layer clips. Navigation menus can extend below the header. */
.site-header.paper-surface{overflow: visible}
.site-header .fb-paper::after{
  background:
    linear-gradient(180deg, transparent 15%, rgba(0,0,0,.12)),
    radial-gradient(ellipse 70% 180% at 50% 30%, transparent 15%, rgba(0,0,0,.65) 100%);
}
:root[data-theme="dark"] .site-header .fb-paper::after{
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(98,67,29,.08)),
    radial-gradient(ellipse 70% 180% at 50% 30%, transparent 15%, rgba(98,67,29,.32) 100%);
}
@supports not (mix-blend-mode: soft-light){
  .fb-paper::before{display: none}
}
@media print{
  .page-end.paper-surface{--ink:#000;--muted:#444;--line:#ccc;background:#fff;color:#000}
  .fb-paper{display:none}
}


/* The paper plate stays full width; only the original wordmark travels. */
.site-header.paper-surface{position:sticky;top:0;overflow:visible}
html{scroll-padding-top:var(--sticky-header-offset,106px)}
.brand-wordmark{display:block;white-space:nowrap;transform:translateX(0)}
.site-header .brand:focus-visible{outline:none}
.site-header .brand:focus-visible .brand-wordmark{outline:2px solid var(--accent);outline-offset:5px;border-radius:2px}
.site-header :is(.desktop-nav,.header-tools),.site-header .brand img{
  opacity:1;transform:translateY(0);visibility:visible;
}
.site-header.header-motion-ready .brand-wordmark{
  transition:transform 640ms cubic-bezier(.45,0,.2,1);
}
.site-header.header-motion-ready :is(.desktop-nav,.header-tools),
.site-header.header-motion-ready .brand img{
  transition:opacity 300ms ease 120ms,transform 400ms cubic-bezier(.2,.7,.2,1) 80ms,visibility 0s;
}
.site-header[data-header-compact="true"] .brand-wordmark{
  transform:translateX(var(--header-brand-x,0px));pointer-events:auto;
}
.site-header[data-header-compact="true"] .brand{pointer-events:none}
.site-header[data-header-compact="true"] :is(.desktop-nav,.header-tools),
.site-header[data-header-compact="true"] .brand img{
  opacity:0;transform:translateY(-7px);visibility:hidden;pointer-events:none;
}
.site-header.header-motion-ready[data-header-compact="true"] :is(.desktop-nav,.header-tools),
.site-header.header-motion-ready[data-header-compact="true"] .brand img{
  transition:opacity 220ms ease,transform 320ms cubic-bezier(.4,0,.2,1),visibility 0s 320ms;
}
@media(prefers-reduced-motion:reduce){
  .site-header.header-motion-ready .brand-wordmark,
  .site-header.header-motion-ready :is(.desktop-nav,.header-tools),
  .site-header.header-motion-ready .brand img{transition:none}
}


/* Typography, spacing and palette refinement, based on the reviewed layout. */
/* Local design study. The current site, drawings and inverse paper frames are retained. */
:root {
  --paper:#faf9f5; --ink:#272823; --muted:#62635b;
  --accent:#a14f38; --line:#d9d8ce; --soft:#f0eee6;
  --control-primary:#a14f38; --control-primary-hover:#88412e;
  --control-on-primary:#fffdf8; --control-border:#c9c8bd;
}
:root[data-theme="dark"] {
  --paper:#1d1e1b; --ink:#efeee7; --muted:#b5b6aa;
  --accent:#e3a183; --line:#414239; --soft:#272822;
  --control-primary:#e3a183; --control-primary-hover:#edb397;
  --control-on-primary:#24231e; --control-border:#54564a;
}
.wrap{width:min(1120px,calc(100% - 96px))}
body{font-size:18px;line-height:1.8}
.hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px;padding-block:80px 92px}
.hello{font-size:16px;margin-bottom:14px}
.name{font-size:clamp(82px,7.3vw,108px);letter-spacing:-.035em;line-height:1.04}
.signature-name{font:inherit;letter-spacing:inherit;white-space:nowrap;font-variant-ligatures:none}
.signature-i{margin-inline-start:.045em}
.brand-wordmark .signature-i{margin-inline-start:.075em}
.name .signature-i{margin-inline-start:.085em}
.hero-headline{font-size:clamp(25px,2.1vw,30px);font-weight:400;line-height:1.4;max-width:28ch;margin-top:26px}
.hero-description{font-size:18px;line-height:1.75;max-width:40ch;color:var(--muted)}
.hero-actions{gap:10px;margin-top:28px;align-items:center}
.action-link{font-size:15px;border-radius:6px}
.hero-figure{transform:none;padding:8px 8px 0;box-shadow:0 0 0 1px var(--line)}
.hero-figure figcaption{font-size:15px;padding-block:15px 17px}
.section{padding-block:88px}
.section-number{font-size:12px;letter-spacing:.075em;margin-bottom:15px;color:var(--accent)}
.section h2,.life-section h2{font-size:clamp(32px,3vw,40px);font-weight:400;line-height:1.2;letter-spacing:-.025em}
.about,.education{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:64px}
.about-main{max-width:58ch}
.about-main p,.about-main p:first-child{font-size:18px;line-height:1.8;margin-bottom:22px}
.aside-note{font-size:16px;line-height:1.8;max-width:24ch}
.profile-note{font-size:13px;line-height:1.7}
.research-grid{gap:56px}
.research-card,.research-card.physical{background:transparent;border-top:1px solid var(--line);padding-top:22px}
:root[data-theme="dark"] .research-card,:root[data-theme="dark"] .research-card.physical{background:transparent}
:root[data-theme="dark"] .hero-figure{box-shadow:0 0 0 1px var(--line)}
.research-card-top{min-height:74px;justify-content:flex-start;margin-bottom:20px}
.research-illustration{width:76px;height:76px;margin:0}
.research-card h3{font-size:32px;font-weight:400;line-height:1.25;letter-spacing:-.025em}
.research-subtitle{font-size:14px;line-height:1.6;margin-top:12px;color:var(--muted)}
.research-description{font-size:18px;line-height:1.75;margin-top:22px;max-width:48ch;color:var(--ink)}
.research-card .tags{margin-top:22px;gap:8px 16px}
.research-card .tags span{font-size:13px}
.research-detail p{font-size:16px;line-height:1.8}
.research-skills{margin-top:48px;padding-top:28px;border-top:1px solid var(--line)}
.research-skills h3{font-size:18px;color:var(--ink)}
.skill-badges{gap:10px}
.skill-badges .skill-badge{min-height:38px;padding:7px 11px;font-size:14px}
.education-item h3{font-size:26px;font-weight:400;line-height:1.4}
.education-meta{margin-bottom:10px}
.education-dates{font-size:14px}
.education-note,.education-degree{font-size:15px}
.school-abbr{font-size:13px}
.life-section{padding-block:88px;background:var(--soft);border-top:1px solid var(--line)}
.hobbies{margin-block:40px 64px;gap:36px}
.hobby h3{font-size:24px;font-weight:400}
.hobby p{font-size:16px;line-height:1.8}
.gallery{gap:48px 36px}
.photo-title{font-size:24px;font-weight:400;line-height:1.3}
.photo-caption{font-size:15px;line-height:1.8;max-width:52ch}
.photo-number{font-size:12px}
.closing{padding-block:88px 80px}
.closing h2{font-size:clamp(30px,3.3vw,46px);font-weight:400;line-height:1.2}
.closing>p{font-size:17px;line-height:1.8}
html:lang(zh) :is(.hero-headline,.section h2,.life-section h2,.research-card h3,.hobby h3,.photo-title,.closing h2){font-weight:500;letter-spacing:0;line-height:1.5}
html:lang(zh) :is(.hero-description,.about-main p,.research-description,.hobby p,.photo-caption){line-height:1.9}
@media(max-width:1100px){
  .wrap{width:calc(100% - 64px)}
  .hero{gap:40px;padding-block:64px 72px}
  .about,.education{gap:40px}
}
@media(max-width:760px){
  body{font-size:17px}
  .wrap{width:calc(100% - 40px)}
  .hero{display:flex;gap:32px;padding-block:44px 56px}
  .name{font-size:clamp(76px,20vw,96px)}
  .hero-headline{font-size:25px;margin-top:22px}
  .hero-description,.about-main p,.about-main p:first-child,.research-description{font-size:17px;line-height:1.8}
  .hero-actions{gap:10px}
  .section,.life-section{padding-block:56px}
  .about,.education{display:block}
  .section h2,.life-section h2{font-size:32px}
  .research-grid{gap:36px}
  .research-card h3{font-size:29px}
  .research-card+.research-card{padding-top:24px}
  .research-skills{margin-top:36px;padding-top:24px}
  .hobbies{gap:32px 24px;margin-block:32px 44px}
  .hobby h3{font-size:22px}
  .hobby p,.photo-caption{font-size:15px}
  .photo-title{font-size:22px}
  .closing{padding-block:60px}
}
@media(max-width:360px){.wrap{width:calc(100% - 32px)}.hobby h3{font-size:20px}.hobbies{gap:26px 16px}}

/* The key page keeps its existing palette and type scale. */
.gate{--paper:#f7f5f0;--ink:#30302c;--muted:#6e6c65;--accent:#ad553c;--line:#dcd8cf;--soft:#efede6;font-size:17px;line-height:1.75}
:root[data-theme="dark"] .gate{--paper:#191816;--ink:#e9e5dd;--muted:#9c968b;--accent:#e08a5f;--line:#33312c;--soft:#232220}
