/* The lab is the visual identity; text stays in ordinary document flow. */
main{overflow-anchor:none}#research{align-items:start}
:root{--ground:#080f19;--surface:#152536;--accent:#89d9e4;--ink:#e6f0f5;--muted:#b0c4d3}
h1,h2,h3,.career-stop strong,.work-layer strong{font-family:Source,Arial,sans-serif;letter-spacing:-.035em;font-weight:600}
#about.lab-intro{grid-template-columns:minmax(0,.92fr) minmax(0,1.4fr);column-gap:24px;padding-top:32px;padding-bottom:64px;align-items:center}#about.lab-intro h1{font-size:clamp(38px,4.4vw,66px);line-height:1.04;max-width:14ch}.hero-intent{font-size:21px;line-height:1.45;color:var(--ink)}.profile-focus{font-size:16px}.lab-intro .section-copy>p:not(.hero-intent){font-size:16px}.lab-intro .skills{font-size:13px!important}.spatial-stage{height:530px;min-height:0;overflow:hidden;background:#080f19}.hero-stage{height:610px}.lab-beat{position:absolute;bottom:40px;left:12px;right:12px;text-align:center;font-size:15px;line-height:1.4;max-width:44ch;margin:auto;color:#d2eaf1;pointer-events:none}.hero-stage .scene-status{bottom:80px}.scene-credit{bottom:12px}.scene-status{bottom:40px}.spatial-stage canvas{outline-offset:-5px}.identity span{font-size:11px}.section-heading{font-size:clamp(36px,3.5vw,52px)}#research{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);column-gap:30px}.project-title{font-size:38px}.project-copy{line-height:1.55}.context-selector{gap:18px}.context-selector button{min-height:44px}.scene-poster{opacity:.35}
/* Career is a trajectory, not a stack of panels. */
.career-depth{transform:none;padding:22px 0 22px 36px;gap:30px;position:relative}.career-depth:before{content:'';position:absolute;left:12px;top:40px;bottom:45px;width:2px;background:#3a6679}.career-stop,.career-stop[aria-pressed=true]{background:none;color:var(--ink);box-shadow:none;transform:none;padding:8px 12px;position:relative;gap:3px}.career-stop:before{content:'';position:absolute;left:-29px;top:19px;width:12px;height:12px;border-radius:50%;background:#36596b}.career-stop[aria-pressed=true]:before{background:#b2f4ff;box-shadow:none}.career-stop[aria-pressed=true]{translate:8px 0}.career-stop[aria-pressed=true] span{color:#b7e4ed}.career-stop strong{font-size:28px}.career-stop:not([aria-pressed=true]){opacity:.7}
/* Work is a relationship diagram, with three genuinely connected perspectives. */
.work-depth{height:380px;max-width:430px;position:relative;display:block;padding:0;transform:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 430 380'%3E%3Cpath d='M215 75 L85 290 L345 290 Z' fill='none' stroke='%233d7182' stroke-width='2'/%3E%3Cpath d='M215 75L215 210M85 290L215 210L345 290' fill='none' stroke='%23213c50' stroke-width='2'/%3E%3C/svg%3E") center/100% 100% no-repeat}.work-depth:after{content:'Project delivery';position:absolute;left:0;right:0;top:51%;text-align:center;font-size:15px;color:#b7d2df;pointer-events:none}.work-layer{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;width:145px;height:125px;border-radius:50%;padding:10px;background:#10202f;box-shadow:none;transform:none;gap:4px}.work-layer:nth-child(1){left:calc(50% - 72px);top:5px}.work-layer:nth-child(2){left:0;bottom:0}.work-layer:nth-child(3){right:0;bottom:0}.work-layer strong{font-size:22px}.work-layer>span{font-size:12px;max-width:16ch}.work-layer[aria-pressed=true]{background:#1c4252;color:#d5f7ff}.work-layer[aria-pressed=true] span{color:#b1d8e4}
@media(max-width:1050px){#about.lab-intro{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}.hero-stage{height:540px}#about.lab-intro h1{font-size:44px}.work-layer{width:124px;height:116px}.work-layer:nth-child(1){left:calc(50% - 62px)}.work-layer strong{font-size:20px}.spatial-stage{height:460px}.hero-stage{height:540px}}
@media(max-width:800px){#about.lab-intro,#research{grid-template-columns:1fr;padding:38px 6vw 58px;gap:22px}#about.lab-intro h1{font-size:clamp(40px,8vw,60px);max-width:20ch}.hero-stage,.spatial-stage{height:390px;min-height:390px}.lab-beat{font-size:14px}.lab-intro .section-copy{max-width:650px}.identity span{font-size:10px}.work-depth{width:100%;margin:auto}.career-depth{max-width:500px}.spatial-stage{margin-top:8px}.hero-stage{grid-row:auto}.profile-focus{font-size:16px}.hero-intent{font-size:20px}}
@media(max-width:420px){.identity span{font-size:8px}.identity strong{font-size:16px}.hero-stage,.spatial-stage{height:330px;min-height:330px}.work-layer{width:116px;height:110px}.work-layer:nth-child(1){left:calc(50% - 58px)}.work-layer strong{font-size:18px}.work-depth{height:340px}#about.lab-intro h1{font-size:40px}.lab-beat{bottom:36px;font-size:13px}}

#about.lab-intro{grid-template-areas:"intro scene" "copy scene";align-items:start;row-gap:0}.hero-opening{grid-area:intro}.lab-intro .section-copy{grid-area:copy}.lab-intro .hero-stage{grid-area:scene;align-self:center}.hero-opening .hero-intent{max-width:34ch}@media(max-width:800px){#about.lab-intro{grid-template-areas:"intro" "scene" "copy";row-gap:24px}.hero-opening .hero-intent{margin-bottom:0}.lab-intro .hero-stage{margin:0}}

.spatial-stage canvas{height:calc(100% - 32px);bottom:auto}.hero-stage canvas{height:calc(100% - 72px)}

/* Scripted illustration captions, separated from the actors and equipment. */
.lab-dialogue{position:absolute;z-index:3;top:8px;left:12px;right:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;pointer-events:none}
.lab-dialogue[hidden]{display:none}
.dialogue-note{grid-column:1/-1;font-size:11px;color:#9eb6c4;text-align:center}
.lab-dialogue p{margin:0;padding:9px 12px;background:#18333f;color:#dceff2;font-size:13px;line-height:1.35;border-radius:12px 12px 12px 2px}
.lab-dialogue .user-dialogue{background:#25303b;border-radius:12px 12px 2px 12px}
@media(max-width:600px){.lab-dialogue p{font-size:11px;padding:7px}.lab-dialogue{top:0;left:5px;right:5px}}

/* One quiet speaking turn beneath the production. */
.lab-dialogue{top:auto;bottom:37px;left:12px;right:12px;display:block}
.lab-dialogue p{padding:7px 11px;font-size:13px;line-height:1.3;border-radius:0;background:#152630}
.lab-dialogue[data-speaker=user] p{background:#202c35}
.spatial-stage:has(.lab-dialogue:not([hidden])) canvas{height:calc(100% - 100px)}
@media(max-width:600px){.lab-dialogue{top:auto;bottom:35px}.lab-dialogue p{font-size:12px}}

.lab-thought{position:absolute;z-index:2;width:44px;height:40px;display:grid;place-items:center;background:#cce5e9;color:#183542;border-radius:48%;pointer-events:none}
.lab-thought[hidden]{display:none}
.lab-thought svg{width:28px;height:28px}
.lab-thought:after,.lab-thought:before{content:'';position:absolute;background:#cce5e9;border-radius:50%;bottom:-8px;left:14px;width:7px;height:7px}
.lab-thought:before{bottom:-15px;left:10px;width:4px;height:4px}
@media(max-width:600px){.lab-thought{width:36px;height:33px}.lab-thought svg{width:23px;height:23px}}
/* Restore the original mobile journey: persistent identity + section selector,
   measured scroll offset, mandatory section stops, and readable tall sections. */
.mobile-section-nav{display:none}
@media(max-width:800px),(max-width:1100px) and (max-height:600px) and (pointer:coarse){
 html.mobile-journey{scroll-snap-type:y mandatory;scroll-padding-top:var(--header);scroll-behavior:smooth}
 .site-header{min-height:80px;height:auto;padding:12px max(16px,env(safe-area-inset-left));gap:12px}
 .site-header .primary-nav{display:none}
 .mobile-section-nav{display:flex;position:fixed;top:var(--mobile-header-height,80px);left:0;right:0;z-index:11;min-height:48px;padding:0 max(16px,env(safe-area-inset-left));align-items:center;gap:12px;background:var(--surface)}
 .mobile-section-nav select{flex:1;min-width:0;min-height:48px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:15px}
 .mobile-section-nav select:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
 .mobile-section-count{font-size:12px;color:var(--muted);white-space:nowrap}
 .journey-section,#about.lab-intro,#research{scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-top:0;min-height:calc(100svh - var(--header))}
 .site-footer{scroll-snap-align:end}
 .site-header .identity{min-width:0}
}

/* Section focus is a scroll destination; controls retain their focus rings. */
.journey-section:focus{outline:none}

/* One snap destination per section on desktop as well as mobile. */
html{scroll-snap-type:y mandatory;scroll-padding-top:var(--header);scroll-behavior:smooth}
.journey-section{scroll-snap-align:start;scroll-snap-stop:always;scroll-margin-top:0}
.site-footer{scroll-snap-align:end}
/* Experience: an evolving career, navigated along one continuous time axis. */
#experience.career-journey{grid-template-columns:1.2fr 1fr;grid-template-rows:1fr auto;row-gap:32px}
.career-journey .timeline-visual{min-height:0;padding:0;align-self:center}
.career-era{width:100%;padding:20px 0 20px 32px}
.era-year{display:block;font-size:clamp(90px,12vw,180px);line-height:.85;letter-spacing:-.07em;color:#234557;font-weight:600;font-variant-numeric:tabular-nums}
.era-focus{font-size:clamp(24px,3vw,38px);line-height:1.15;color:var(--ink);margin:20px 0 12px;max-width:13ch}
.era-range{font-size:15px;margin:0;color:var(--muted)}
.career-journey .career-depth{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:20px 0 0;max-width:none;transform:none;position:relative}
.career-journey .career-depth:before{left:0;right:0;top:20px;width:auto;height:3px;background:#234557}
.career-journey .career-stop{padding:24px 14px 0 0;opacity:1;background:none;translate:none;gap:7px;transition:color .2s}
.career-journey .career-stop:before{left:0;top:-5px;width:13px;height:13px;background:#234557}
.career-journey .career-stop strong{font-size:clamp(18px,1.8vw,25px)}
.career-journey .career-stop .career-note{font-size:13px}
.career-journey .career-stop[aria-pressed=true]:before{background:var(--accent);box-shadow:0 0 0 5px var(--ground)}
.career-journey .career-stop[aria-pressed=true] strong{color:var(--accent)}
.career-controls{display:flex;gap:20px;margin-top:24px}
.career-controls button{background:none;padding:8px 0;font-size:15px;color:var(--accent)}
.career-controls button:disabled{opacity:.3;cursor:default}
.career-journey .career-copy{margin:24px 0}
.career-journey .career-copy h3{font-size:clamp(26px,2.6vw,38px)}

/* Work: switch lenses on a single idea-to-delivery working diagram. */
.work-studio .section-visual{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:28px;min-height:0}
.work-studio .work-depth{display:flex;position:static;height:auto;max-width:none;width:100%;padding:0;background:none;gap:8px;transform:none}
.work-studio .work-depth:after{display:none}
.work-studio .work-layer{position:static;flex:1;width:auto;height:auto;min-height:66px;border-radius:0;padding:12px 8px;transform:none;background:transparent;gap:2px}
.work-studio .work-layer strong{font-size:18px}
.work-studio .work-layer>span{display:none}
.work-studio .work-layer[aria-pressed=true]{background:#1a3a48;color:#d8f7f8}
.work-diagram{position:relative;padding:28px 30px 22px;background:#101d29;overflow:hidden}
.work-input{font-size:16px;margin:0 0 28px;color:var(--muted)}
.work-route{list-style:none;padding:0 0 0 30px;margin:0;position:relative;display:grid;gap:24px}
.work-route:before{content:'';position:absolute;left:5px;top:11px;bottom:11px;width:3px;background:#375c6b}
.work-route li{position:relative;margin:0;padding:0;font-size:20px;line-height:1.35;color:#dcecf2}
.work-route li:before{content:'';position:absolute;left:-30px;top:8px;width:13px;height:13px;background:#8fd2db;border-radius:50%}
.work-outcome{margin:30px 0 0;padding:16px 18px;background:#254653;color:#e6f6f7;font-size:20px;line-height:1.25}
.work-loop{font-size:13px;text-align:right;margin:15px 0 0;color:#91adb9}
@media(max-width:800px){
 #experience.career-journey{grid-template-columns:1fr;grid-template-rows:auto;gap:24px}
 .career-journey .timeline-visual{display:none}
 .career-journey .career-depth{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 8px;padding:0}
 .career-journey .career-depth:before{display:none}
 .career-journey .career-stop{padding:15px 10px 12px 18px;background:#101d29}
 .career-journey .career-stop:before{left:0;top:0;width:3px;height:100%;border-radius:0}
 .career-journey .career-stop[aria-pressed=true]:before{box-shadow:none}
 .career-journey .career-stop strong{font-size:19px}
 .work-studio .section-visual{gap:18px}
 .work-diagram{padding:24px 20px}
 .work-route li,.work-outcome{font-size:18px}
}
/* One active project, navigated as a carousel, with a compact scene at upper right. */
#research.project-carousel{grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);column-gap:48px}
.project-carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 28px;max-width:620px}
.project-carousel-controls button{background:none;color:var(--accent);min-height:44px;padding:8px 0;font-size:16px;white-space:nowrap}
.project-position{font-size:15px;color:var(--muted);text-align:center}
.project-carousel .spatial-stage{width:100%;height:410px;min-height:0;align-self:start;margin-top:90px;background:transparent;overflow:visible}
.project-carousel .spatial-stage canvas,.project-carousel .spatial-stage:has(.lab-dialogue:not([hidden])) canvas{height:300px;clip-path:circle(closest-side at 50% 50%);background:#101e2a}
.project-carousel .scene-poster{width:100%;height:300px;clip-path:circle(closest-side at 50% 50%);object-fit:cover;max-width:none;max-height:none}
.project-carousel .lab-dialogue{bottom:38px;left:0;right:0}
.project-carousel .scene-credit{bottom:8px}
.project-carousel .project-copy{max-width:740px}
@media(max-width:1050px) and (min-width:801px){
 #research.project-carousel{grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr);column-gap:24px}
 .project-carousel .spatial-stage{height:350px}
 .project-carousel .spatial-stage canvas,.project-carousel .spatial-stage:has(.lab-dialogue:not([hidden])) canvas{height:240px}
}
@media(max-width:800px){
 #research.project-carousel{grid-template-columns:1fr;position:relative}
 .project-carousel .section-heading{padding-right:105px;min-height:90px;font-size:28px!important}
 .project-carousel .spatial-stage{position:absolute;right:5vw;top:30px;width:100px;height:100px;margin:0}
 .project-carousel .spatial-stage canvas,.project-carousel .spatial-stage:has(.lab-dialogue:not([hidden])) canvas{height:100px;clip-path:circle(49%)}
 .project-carousel .scene-poster{height:100px}
 .project-carousel .scene-credit,.project-carousel .lab-dialogue,.project-carousel .lab-thought{display:none}
 .project-carousel-controls{gap:10px;margin-bottom:22px}
 .project-carousel-controls button,.project-position{font-size:14px}
}


/* Project controls follow the reading; the scene opens like an eyelid on selection. */
#research.project-carousel{grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr)}
.project-carousel-controls{margin:24px 0 0}
.project-carousel .spatial-stage{height:440px}
.project-carousel .spatial-stage canvas,.project-carousel .spatial-stage:has(.lab-dialogue:not([hidden])) canvas,.project-carousel .scene-poster{height:330px}
.project-carousel .is-blinking .lab-thought,.project-carousel .is-blinking .lab-dialogue{visibility:hidden}
@media(max-width:1050px) and (min-width:801px){
 #research.project-carousel{grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr)}
 .project-carousel .spatial-stage{height:375px}
 .project-carousel .spatial-stage canvas,.project-carousel .spatial-stage:has(.lab-dialogue:not([hidden])) canvas,.project-carousel .scene-poster{height:265px}
}
@media(max-width:800px){
 #research.project-carousel{grid-template-columns:1fr}
 .project-carousel .spatial-stage{width:110px;height:110px}
 .project-carousel .section-heading{padding-right:115px}
 .project-carousel .spatial-stage canvas,.project-carousel .spatial-stage:has(.lab-dialogue:not([hidden])) canvas,.project-carousel .scene-poster{height:110px}
}

/* Keep the final links inside the final snap destination. */
#research.project-carousel{padding-top:36px;padding-bottom:24px;row-gap:24px}
#research .site-footer{grid-column:1/-1;align-self:end;scroll-snap-align:none;margin:0;padding:0;font-size:13px}
@media(max-width:800px){#research.project-carousel{padding-top:38px;padding-bottom:28px}}

/* Mobile scenes are readable productions, not tiny decorative badges. */
@media(max-width:800px){
 :root{--mobile-scene-height:clamp(260px,75vw,340px)}
 .project-carousel .section-heading{padding-right:0;min-height:0;font-size:28px!important}
 .project-carousel .project-title{margin-top:0;margin-bottom:18px}
 #about.lab-intro .hero-stage,#research.project-carousel .spatial-stage{
  position:relative;inset:auto;width:100%;height:calc(var(--mobile-scene-height) + 80px);min-height:0;margin:0 0 22px;align-self:auto;
 }
 #about.lab-intro .hero-stage canvas,#research.project-carousel .spatial-stage canvas,
 #research.project-carousel .spatial-stage:has(.lab-dialogue:not([hidden])) canvas,
 #research.project-carousel .scene-poster{height:var(--mobile-scene-height)}
 #research.project-carousel .spatial-stage canvas{clip-path:circle(closest-side at 50% 50%)}
 #research.project-carousel .scene-credit,#research.project-carousel .lab-dialogue{display:block}
 #research.project-carousel .lab-thought{display:grid}
 #research.project-carousel .lab-dialogue{bottom:30px}
 #research.project-carousel .scene-credit{bottom:4px}
 #about.lab-intro .lab-beat{bottom:29px}
 #about.lab-intro .scene-credit{bottom:4px}
 .project-carousel-controls{min-height:48px}
 .section-links a{min-height:44px;display:inline-flex;align-items:center}
}

/* Clickable project filmstrip: selected experiment stays in the center. */
.project-carousel-controls{display:grid;grid-template-columns:.7fr .85fr 1.8fr .85fr .7fr;gap:8px;max-width:620px;align-items:center;min-height:94px}
.project-carousel-controls .project-tile{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:10px 6px;min-width:0;height:68px;background:#12222e;border:1px solid #29404e;border-radius:12px;opacity:.65;transition:height .2s,background .2s,opacity .2s}
.project-tile img{width:34px;height:34px;object-fit:contain}
.project-tile span{display:none;font-size:15px;line-height:1.2}
.project-carousel-controls .project-tile[aria-pressed=true]{height:94px;background:#234451;border-color:#8bd7e1;opacity:1}
.project-tile[aria-pressed=true] span{display:block}
.project-tile:hover{opacity:1;background:#203a49}
@media(min-width:801px){#research.project-carousel .spatial-stage{max-width:360px;justify-self:center}}
@media(max-width:800px){.project-carousel-controls{gap:6px}.project-tile img{width:28px;height:28px}.project-tile span{font-size:14px}}

.project-carousel-controls .project-tile{opacity:.85;overflow:hidden}
.project-tile img{width:100%;height:42px;object-fit:cover;border-radius:6px;opacity:.9}
.project-tile[aria-pressed=true] img{height:46px}
@media(max-width:800px){.project-tile img{width:100%;height:34px}.project-tile[aria-pressed=true] img{height:40px}}

/* Keep the tail centered on the projected crown, at every bubble size. */
.lab-thought:after,.lab-thought:before{left:50%;transform:translateX(-50%)}

.project-tile .project-icon-placeholder{display:grid;place-items:center;width:36px;height:36px;border:1px solid #607e8c;border-radius:9px;color:#cbe9ed;font-size:20px;font-weight:600;line-height:1;background:#10202b}.project-tile[aria-pressed=true] .project-icon-placeholder{border-color:#a7e3e8;color:#efffff;background:#284c59}

.project-tile img.project-brand-icon,.project-tile[aria-pressed=true] img.project-brand-icon{width:42px;height:42px;object-fit:contain;opacity:1;border-radius:6px}
@media(max-width:800px){.project-tile img.project-brand-icon,.project-tile[aria-pressed=true] img.project-brand-icon{width:34px;height:34px}}
/* Atmospheric Midnight: paint only. Preserve all existing geometry and type metrics. */
:root{
 --bg-primary:#080d16;--bg-secondary:#0d1724;--surface:#111d2b;--surface-elevated:#203647;
 --text-primary:#e8f1f5;--text-secondary:#a6bac9;--text-muted:#718797;
 --accent-primary:#79c6db;--accent-soft:#467f96;
 --ground:var(--bg-primary);--ink:var(--text-primary);--muted:var(--text-secondary);--accent:var(--accent-primary);
 --edge:rgba(208,231,244,.08);--depth:0 16px 48px rgba(0,0,0,.12);
 --motion-fast:180ms;--motion-normal:280ms;--motion-slow:420ms;--ease-settle:cubic-bezier(.22,1,.36,1);
}
body{background:radial-gradient(ellipse 65% 55% at 68% 44%,rgba(40,91,129,.13),transparent 75%),radial-gradient(ellipse 50% 50% at 18% 15%,rgba(35,64,105,.08),transparent 80%),var(--ground);background-attachment:fixed}
::selection{background:#294f63;color:var(--ink)}
.site-header{background:var(--bg-primary);box-shadow:0 1px 0 rgba(208,231,244,.035),0 12px 32px rgba(0,0,0,.08)}
.identity-portrait{box-shadow:0 0 0 1px rgba(208,231,244,.18),0 4px 16px rgba(0,0,0,.2)}
.identity span,.profile-links a{color:var(--text-secondary)}
.primary-nav a:after{background:var(--text-muted)}
.primary-nav a[aria-current]{color:var(--ink)}
.primary-nav a[aria-current]:after{background:var(--accent);box-shadow:0 0 0 4px rgba(121,198,219,.09),0 0 12px rgba(121,198,219,.12)}
.mobile-section-nav{background:var(--bg-secondary);box-shadow:inset 0 -1px var(--edge)}
.mobile-section-nav select option{background:var(--bg-secondary);color:var(--ink)}
a,button{transition:color var(--motion-fast) var(--ease-settle),background-color var(--motion-normal) var(--ease-settle),box-shadow var(--motion-normal) var(--ease-settle),border-color var(--motion-fast) var(--ease-settle)}
.profile-links a:hover,.primary-nav a:hover,.section-links a:hover,.site-footer a:hover{color:var(--accent)}
.section-links a,.site-footer a{text-decoration-color:var(--accent-soft)}
a:focus-visible,button:focus-visible,canvas:focus-visible,[tabindex]:focus-visible{outline-color:var(--accent)}
.era-year{color:#203c50;text-shadow:0 12px 40px rgba(0,0,0,.12)}
.career-journey .career-depth:before{background:#203747}
.career-journey .career-stop:before{background:#345267}
.career-journey .career-stop[aria-pressed=true]:before{background:var(--accent);box-shadow:0 0 0 5px var(--ground),0 0 18px rgba(121,198,219,.18)}
.career-journey .career-stop[aria-pressed=true] span{color:var(--text-secondary)}
.career-stop:hover strong,.career-controls button:not(:disabled):hover{color:var(--ink)}
.work-studio .work-layer{color:var(--text-secondary);border-radius:8px;box-shadow:inset 0 -1px var(--edge)}
.work-studio .work-layer:hover{color:var(--ink);background:rgba(32,54,71,.25)}
.work-studio .work-layer[aria-pressed=true]{color:var(--accent);background:rgba(32,54,71,.35);box-shadow:inset 0 -2px var(--accent)}
.work-diagram{background:linear-gradient(145deg,#142333,#101b29);border-radius:12px;box-shadow:inset 0 0 0 1px var(--edge),var(--depth)}
.work-route:before{background:#2b4659}
.work-route li{color:var(--ink)}
.work-route li:before{background:var(--accent-soft);box-shadow:0 0 0 4px rgba(121,198,219,.04)}
.work-outcome{background:var(--surface-elevated);color:var(--ink);border-radius:8px;box-shadow:inset 0 1px 0 var(--edge)}
.work-loop{color:var(--text-secondary)}
.project-carousel-controls .project-tile{background:linear-gradient(150deg,#142333,#101b29);border-color:var(--edge);box-shadow:0 8px 24px rgba(0,0,0,.1);transition:height var(--motion-normal) var(--ease-settle),background var(--motion-normal) var(--ease-settle),opacity var(--motion-fast),border-color var(--motion-fast),box-shadow var(--motion-normal)}
.project-carousel-controls .project-tile:hover{background:var(--surface-elevated);border-color:var(--accent-soft);opacity:1}
.project-carousel-controls .project-tile[aria-pressed=true]{background:linear-gradient(145deg,#203647,#172b3b);border-color:var(--accent);color:var(--ink);box-shadow:inset 0 1px 0 rgba(232,241,245,.06),0 10px 28px rgba(0,0,0,.2)}
.lab-dialogue p{background:var(--bg-secondary);color:var(--text-primary);border-radius:8px;box-shadow:inset 0 0 0 1px var(--edge)}
.lab-dialogue[data-speaker=user] p{background:var(--surface)}
.lab-beat{color:var(--text-primary)}
.scene-credit,.dialogue-note{color:var(--text-secondary)}
.lab-thought{background:#c6e0e7;color:#193746;box-shadow:0 4px 16px rgba(0,0,0,.18)}
.lab-thought:after,.lab-thought:before{background:#c6e0e7}
@media(max-width:800px){
 .career-journey .career-stop{background:var(--surface);border-radius:8px;box-shadow:inset 0 0 0 1px var(--edge)}
 .career-journey .career-stop[aria-pressed=true]{background:var(--surface-elevated)}
 .career-journey .career-stop[aria-pressed=true]:before{box-shadow:none}
}

/* Local lighting and material depth; no layout or scene changes. */
#about,#experience,#work{
 background:radial-gradient(ellipse 58% 65% at 78% 42%,rgba(48,87,116,.22),transparent 78%),linear-gradient(115deg,rgba(20,36,54,.35),transparent 55%);
}
#about .hero-opening h1{color:#edf5f8;text-shadow:0 2px 0 #172a3b,0 12px 28px rgba(0,0,0,.55)}
#about .section-copy{background:radial-gradient(ellipse at 0 38%,rgba(32,57,78,.32),transparent 75%)}
#about .hero-intent{color:#d3e4ed}
#about .skills{color:#859faf}
#experience .career-era{
 background:radial-gradient(ellipse at 42% 30%,rgba(63,109,137,.22),transparent 72%);
}
#experience .era-year{color:#446c83;text-shadow:0 1px 0 #7194a5,0 2px 0 #243f53,0 4px 0 #1b3041,0 7px 0 #122232,0 20px 30px rgba(0,0,0,.5)}
#experience .era-focus{text-shadow:0 4px 12px rgba(0,0,0,.5)}
#experience .career-depth:before{background:linear-gradient(90deg,#446b7f,#263f51 65%,#182a39);box-shadow:0 1px 0 rgba(160,207,222,.18),0 5px 10px rgba(0,0,0,.6)}
#experience .career-stop:before{background:radial-gradient(circle at 30% 20%,#7194a5,#345267 65%,#1b3041);box-shadow:0 2px 4px rgba(0,0,0,.55)}
#experience .career-stop[aria-pressed=true]:before{background:radial-gradient(circle at 30% 20%,#c6edf3,#79c6db 60%,#3c8199);box-shadow:0 0 0 5px #10202e,0 3px 10px #0009,0 0 22px #79c6db33}
#work .work-diagram{
 background:radial-gradient(ellipse at 0 0,rgba(100,153,179,.15),transparent 70%),linear-gradient(145deg,#1b3041,#101c29 80%);
 box-shadow:inset 0 1px 0 rgba(192,225,238,.23),inset 1px 0 0 rgba(192,225,238,.1),inset 0 -1px 0 #050b12,0 2px 0 #0a1420,0 6px 0 #0b1622,0 18px 28px rgba(0,0,0,.38),0 38px 64px rgba(0,0,0,.26);
}
#work .work-outcome{background:linear-gradient(135deg,#304f61,#203747);box-shadow:inset 0 1px 0 rgba(203,235,245,.22),inset 0 -1px 0 #10212e,0 3px 0 #142736,0 10px 20px rgba(0,0,0,.3)}
#work .work-route:before{background:#172d3d;box-shadow:inset 1px 0 2px #0008,1px 0 0 #57768a55}
#work .work-route li:before{background:radial-gradient(circle at 30% 20%,#9cd5e1,#4b899e 65%,#2c536c);box-shadow:0 0 0 4px #102330,0 3px 6px #0008}
#work .work-layer[aria-pressed=true]{background:linear-gradient(145deg,#243e50,#152837);box-shadow:inset 0 1px 0 #87b5c633,inset 0 -2px 0 var(--accent),0 5px 12px #0005}
@media(max-width:800px){
 #experience .career-stop{background:linear-gradient(135deg,#192b3b,#101d2b);box-shadow:inset 0 1px 0 #a9cfdf1a,0 5px 12px #0004}
 #experience .career-stop[aria-pressed=true]{background:linear-gradient(135deg,#2a485b,#1b3042)}
 #experience .career-stop[aria-pressed=true]:before{box-shadow:none;background:var(--accent)}
}
/* Keep illumination continuous rather than clipped to text containers. */
#about .section-copy,#experience .career-era{background:none}
#about .hero-stage{background:transparent}
#about .hero-stage canvas{mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent),linear-gradient(to bottom,transparent,#000 6%,#000 92%,transparent);mask-composite:intersect}
/* About uses the same character dialogue as the experiments, in its existing caption slot. */
#about .hero-stage.ready .lab-beat{visibility:hidden}
#about .hero-stage .lab-dialogue{bottom:40px}
#about .hero-stage:has(.lab-dialogue:not([hidden])) canvas{height:calc(100% - 72px)}
@media(max-width:800px){
 #about .hero-stage .lab-dialogue{bottom:29px}
 #about.lab-intro .hero-stage:has(.lab-dialogue:not([hidden])) canvas{height:var(--mobile-scene-height)}
}
/* Phone reading flow: reachable choices, stable productions, and native scrolling. */
@media(max-width:800px),(max-width:1100px) and (pointer:coarse){
 :root{--mobile-scene-height:clamp(250px,72vw,320px);--rail:0px}
 html,html.mobile-journey{scroll-snap-type:y proximity;scroll-padding-top:var(--header)}
 body{background-attachment:scroll}
 .journey-section,#about.lab-intro,#experience.career-journey,#research.project-carousel{
  grid-template-columns:minmax(0,1fr);padding:24px 20px 40px;gap:24px;
  min-height:calc(100svh - var(--header));scroll-snap-stop:normal;
 }
 .site-header{min-height:64px;height:auto;padding:8px 16px;gap:10px}
 .site-header .identity{grid-template-columns:28px auto;column-gap:8px;flex-shrink:0}
 .site-header .identity strong{font-size:17px;line-height:1.2;grid-row:1}
 .site-header .identity-portrait{width:28px;height:28px;grid-row:1}
 .site-header .identity>span{display:none}
 .site-header .profile-links{font-size:12px;gap:12px}
 .profile-links a{display:inline-flex;align-items:center;min-height:44px}
 .site-header .primary-nav{display:none}
 .mobile-section-nav{display:flex;top:var(--mobile-header-height,64px);min-height:44px;padding:0 20px}
 .mobile-section-nav select{min-height:44px;font-size:16px}
 .mobile-section-count{font-size:12px;font-variant-numeric:tabular-nums}
 .section-heading{font-size:32px;line-height:1.12;margin-bottom:18px}
 #about.lab-intro{grid-template-areas:"intro" "scene" "copy";row-gap:20px}
 #about.lab-intro h1{font-size:clamp(32px,8.8vw,42px);line-height:1.08;max-width:20ch;margin-bottom:0}
 #about.lab-intro .hero-stage,#research.project-carousel .spatial-stage{
  position:relative;inset:auto;width:100%;height:calc(var(--mobile-scene-height) + 70px);
  min-height:0;max-width:none;align-self:auto;margin:0 0 14px;
 }
 #about.lab-intro .hero-stage canvas,#about.lab-intro .hero-stage:has(.lab-dialogue:not([hidden])) canvas,
 #research.project-carousel .spatial-stage canvas,#research.project-carousel .spatial-stage:has(.lab-dialogue:not([hidden])) canvas,
 #research.project-carousel .scene-poster{height:var(--mobile-scene-height)}
 #about .hero-stage .lab-dialogue,#research.project-carousel .lab-dialogue{bottom:26px;left:0;right:0;display:block}
 .lab-dialogue p{font-size:13px;line-height:1.35;padding:7px 10px}
 #about.lab-intro .scene-credit,#research.project-carousel .scene-credit{bottom:0;font-size:11px;display:block}
 #research.project-carousel .lab-thought{display:grid}
 .section-copy,.project-carousel .project-copy{max-width:none;font-size:16px;line-height:1.6}
 .section-intro{font-size:18px}
 .lab-intro .skills{font-size:14px!important}
 .career-journey .timeline-visual{display:none}
 .career-journey .career-depth{margin:24px 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;max-width:none}
 .career-journey .career-depth:before{display:none}
 .career-journey .career-stop{min-height:88px;padding:12px 10px 12px 14px;gap:4px}
 .career-journey .career-stop:before{left:0;top:0;width:3px;height:100%;border-radius:0}
 .career-journey .career-stop strong{font-size:18px}
 .career-journey .career-date,.career-journey .career-note{font-size:12px}
 .career-controls{justify-content:space-between}
 .career-controls button{min-height:44px}
 .work-studio .work-depth{max-width:none;margin:24px 0;gap:6px}
 .work-studio .work-layer{min-height:48px;padding:8px 4px}
 .work-studio .work-layer strong{font-size:16px}
 .work-studio .section-visual{min-height:0;height:auto;gap:0}
 .work-diagram{padding:22px 20px}
 .work-copy h3{font-size:27px}
 #research.project-carousel .section-heading{padding:0;min-height:0;font-size:22px!important;margin-bottom:10px}
 .project-carousel-controls{
  position:sticky;top:var(--header);z-index:6;isolation:isolate;
  grid-template-columns:.8fr .9fr 1.5fr .9fr .8fr;gap:6px;min-height:80px;
  margin:0 0 18px;padding:8px 0;background:var(--bg-primary);
 }
 .project-carousel-controls:before{content:'';position:absolute;inset:0 -20px;z-index:-1;background:var(--bg-primary);box-shadow:0 8px 18px #080d1633}
 .project-carousel-controls .project-tile{height:52px;padding:6px 4px;gap:3px;border-radius:10px}
 .project-carousel-controls .project-tile[aria-pressed=true]{height:64px}
 .project-tile img.project-brand-icon,.project-tile[aria-pressed=true] img.project-brand-icon{width:28px;height:28px}
 .project-tile span{font-size:13px}
 .project-carousel .project-title{font-size:32px;line-height:1.1;margin:0 0 14px}
 .project-questions{padding-left:19px}
 .project-questions li{margin:10px 0}
 .section-links{gap:12px 24px;margin-top:20px;font-size:16px}
 .section-links a{min-height:44px;display:inline-flex;align-items:center}
 #research .site-footer{font-size:13px;gap:16px;flex-wrap:wrap}
 #research .site-footer a{min-height:44px;display:inline-flex;align-items:center}
}
@media(max-width:359px){
 .site-header{padding-inline:12px;gap:6px}
 .site-header .identity{column-gap:6px}
 .site-header .identity strong{font-size:15px}
 .site-header .profile-links{gap:8px;font-size:11px}
 .journey-section,#about.lab-intro,#experience.career-journey,#research.project-carousel{padding-inline:16px}
 .project-carousel-controls:before{inset-inline:-16px}
 .work-studio .work-layer strong{font-size:15px}
}

/* Questions are available on demand on phones; desktop keeps the complete list. */
.project-question-trigger{display:none}
.project-question-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:28px 24px;margin:auto;border:1px solid var(--edge);border-radius:16px;background:var(--bg-secondary);color:var(--ink);box-shadow:0 24px 80px #0009;overflow:auto;overscroll-behavior:contain}
.project-question-dialog::backdrop{background:#03070dbb}
.project-question-dialog h2{font-size:26px;line-height:1.15;margin:0 30px 24px 0}
.project-question-dialog .question-project{color:var(--accent);font-size:14px;margin:0 44px 12px 0}
.project-question-dialog .project-questions{font-size:16px;line-height:1.6;margin-bottom:0}
.project-question-dialog .project-questions li{margin:0 0 18px}
.project-question-dialog .project-questions li:last-child{margin-bottom:0}
.close-questions{position:absolute;right:12px;top:12px;width:44px;height:44px;background:var(--surface-elevated);border-radius:50%;font-size:28px;line-height:1;color:var(--ink)}
html:has(.project-question-dialog[open]){overflow:hidden}
@media(max-width:800px),(max-width:1100px) and (pointer:coarse){
 .project-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
 .project-carousel .project-heading .project-title{margin:0}
 .project-question-trigger{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;background:var(--surface);color:var(--accent);border-radius:50%;box-shadow:inset 0 0 0 1px var(--edge)}
 .project-question-trigger:hover{background:var(--surface-elevated)}
 .project-copy>.project-questions-heading,.project-copy>.project-questions{display:none}
 #about.lab-intro .hero-stage,#research.project-carousel .spatial-stage{height:calc(var(--mobile-scene-height) + 84px)}
}
/* Keep the close control visible while long question lists scroll inside the dialog. */
.project-question-dialog{padding:0;overflow:hidden}
.project-question-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.question-dialog-header{position:relative;padding:28px 24px 20px}
.project-question-dialog h2{margin-bottom:0}
.project-question-dialog .project-questions{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 24px 24px 43px;margin:0}
@media(max-width:800px),(max-width:1100px) and (pointer:coarse){
 #about.lab-intro .hero-stage,#research.project-carousel .spatial-stage{max-width:calc(var(--mobile-scene-height) * 1.2);margin-inline:auto}
 .project-carousel-controls{width:100%;margin-inline:auto}
}
