/* === tokens === */
/* Layout: 680px reading column; scenes break out to a 1040px stage or full bleed; a pipe spine runs down the left margin on wide screens. */
:root{
  color-scheme:dark;
  --bg:#1b1a19;--panel:#252422;--panel-raised:#2d2b29;--ink:#f2f1ed;--muted:#a7a39e;--faint:#99958f;--line:#383633;
  --coral:#f28a65;--link:#f4a184;
  --sky-top:#0f0e0d;--sky-bottom:#1b1a19;--far:#262422;--mid:#2f2c29;--ground:#383430;
  --outline:#0d0c0b;--face:#efe6dc;--shirt:#3a3734;
  --ice:#9fd9ea;--ice-deep:#4b8fa3;--brick:#ff765b;--brick-deep:#b54a35;--gold:#e2b34a;--jungle:#3c8f6e;--glow:#ffb38f;
  --star-opacity:1;--cloud-opacity:0;--sky-rot:0deg;
  --shadow:0 18px 55px #0006;
  --display:"Instrument Serif",Georgia,"Times New Roman",serif;
  --sans:Manrope,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --col:680px;--stage:1040px;
}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){
    color-scheme:light;
    --bg:#f5f3f0;--panel:#ffffff;--panel-raised:#eeece8;--ink:#252422;--muted:#625f5b;--faint:#706c66;--line:#dedbd6;
    --coral:#d96e4d;--link:#b94e31;
    --sky-top:#bcdde6;--sky-bottom:#f5f3f0;--far:#d7d0c6;--mid:#c4b9ab;--ground:#a99b89;
    --outline:#2b2724;--face:#fff4ea;--shirt:#48423c;
    --ice:#5fb9d3;--ice-deep:#2f8fae;--brick:#e8603f;--brick-deep:#b9472d;--gold:#c99528;--jungle:#2f8a66;--glow:#ffd9c4;
    --star-opacity:0;--cloud-opacity:1;--sky-rot:180deg;
    --shadow:0 18px 55px #16120e20;
  }
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f5f3f0;--panel:#ffffff;--panel-raised:#eeece8;--ink:#252422;--muted:#625f5b;--faint:#706c66;--line:#dedbd6;
  --coral:#d96e4d;--link:#b94e31;
  --sky-top:#bcdde6;--sky-bottom:#f5f3f0;--far:#d7d0c6;--mid:#c4b9ab;--ground:#a99b89;
  --outline:#2b2724;--face:#fff4ea;--shirt:#48423c;
  --ice:#5fb9d3;--ice-deep:#2f8fae;--brick:#e8603f;--brick-deep:#b9472d;--gold:#c99528;--jungle:#2f8a66;--glow:#ffd9c4;
  --star-opacity:0;--cloud-opacity:1;--sky-rot:180deg;
  --shadow:0 18px 55px #16120e20;
}

/* === base === */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:105px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:15.5px;line-height:1.75;-webkit-font-smoothing:antialiased;transition:background-color .6s,color .6s}
body::after{content:"";position:fixed;inset:0;z-index:60;pointer-events:none;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
button,a{font:inherit}
a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--ink)}
button{color:inherit}
h1,h2,h3{text-wrap:balance}
:focus-visible{outline:2px solid var(--coral);outline-offset:3px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;z-index:70;top:calc(8px + env(safe-area-inset-top,0px));left:8px;padding:8px 12px;background:var(--ink);color:var(--bg);border-radius:8px;transform:translateY(-200%)}
.skip-link:focus{transform:none}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.col,.stage{margin-left:auto;margin-right:auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.col{max-width:calc(var(--col) + 32px)}
.stage{max-width:calc(var(--stage) + 32px)}
.mono{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
main{position:relative}
main>section,main>.divider-wrap,main>footer{position:relative;z-index:1}
.progress{position:fixed;z-index:14;top:env(safe-area-inset-top,0px);left:0;right:0;height:3px;background:var(--coral);transform:scaleX(0);transform-origin:0 50%;pointer-events:none}
@media (min-width:1100px){.progress{display:none}}

/* === profile pill + menu === */
.profile-pill{position:fixed;z-index:15;top:calc(22px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:min(320px,calc(100vw - 28px));min-height:68px;padding:9px 13px 9px 10px;border:1px solid #ffffff0c;border-radius:40px;background:color-mix(in srgb,var(--panel) 94%,transparent);box-shadow:0 8px 28px #0002;backdrop-filter:blur(16px);text-align:left;cursor:pointer}
.profile-pill:hover{background:var(--panel-raised)}
.avatar{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--panel-raised);box-shadow:inset 0 0 0 2px var(--line);overflow:hidden}
.avatar svg{width:36px;height:36px;display:block}
.profile-copy{min-width:0;display:grid;line-height:1.35}
.profile-copy strong{font-size:14px;font-weight:700;color:var(--ink)}
.profile-copy>span{font-size:12px;color:var(--muted)}
kbd{margin-left:auto;padding:4px 7px;border:0;border-radius:7px;background:var(--panel-raised);color:var(--muted);font:500 11px var(--mono);white-space:nowrap}
.profile-menu{position:fixed;z-index:25;top:calc(22px + env(safe-area-inset-top,0px));left:50%;width:min(402px,calc(100vw - 24px));max-height:calc(100dvh - 44px);overflow:auto;transform:translateX(-50%);border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--panel) 96%,transparent);box-shadow:var(--shadow);backdrop-filter:blur(20px)}
.menu-scrim{position:fixed;z-index:20;inset:0;background:#0002}
.menu-profile{display:flex;align-items:center;gap:11px;padding:11px 15px;border-bottom:1px solid var(--line)}
.menu-profile .avatar{width:40px;height:40px;flex-basis:40px}
.menu-section{padding:11px 14px 13px}
.menu-label{margin:0 0 6px 2px;color:var(--muted);font-size:12px;font-weight:700}
.menu-links{display:grid;gap:3px}
.menu-links a{display:flex;align-items:center;gap:11px;min-height:40px;padding:6px 9px;border-radius:9px;color:var(--ink);font-size:14px;font-weight:600;text-decoration:none}
.menu-icon{display:grid;place-items:center;width:20px;height:20px;color:var(--muted)}
.menu-icon svg,.theme-choices svg,.junction svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.menu-links a:hover,.menu-links a:focus-visible{background:var(--panel-raised);outline:none}
.theme-section{border-top:1px solid var(--line);padding-top:10px}
.theme-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.theme-choices button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:6px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;cursor:pointer}
.theme-choices button span{display:grid;place-items:center;width:19px;height:19px}
.theme-choices button:hover{background:var(--panel-raised);color:var(--ink)}
.theme-choices button[aria-pressed="true"]{border-color:var(--line);background:var(--panel-raised);color:var(--ink)}

/* === shared scene + character rig === */
symbol{overflow:visible}
.sprite *{transition:stop-color .6s}
[data-scene] svg *{transition:fill .6s,stroke .6s,stop-color .6s,opacity .6s}
.layer{will-change:transform}
.lo{fill:none;stroke:var(--outline);stroke-width:13;stroke-linecap:round;stroke-linejoin:round}
.lc{fill:none;stroke:var(--c,var(--shirt));stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.hand{fill:var(--face);stroke:var(--outline);stroke-width:3}
.limb{transform-origin:0 0}
.ol{stroke:var(--outline);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.head{fill:var(--face);stroke:var(--outline);stroke-width:3}
.torso{fill:var(--c,var(--shirt));stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.eyes ellipse{fill:var(--outline)}
.eyes{transform-box:fill-box;transform-origin:center;animation:blink 5s infinite;animation-play-state:var(--play,running)}
.mouth{fill:none;stroke:var(--outline);stroke-width:2.2;stroke-linecap:round}
@keyframes blink{0%,94%,100%{transform:scaleY(1)}96%{transform:scaleY(.1)}}
[data-eye]{transition:none}
[data-scene]:not(.is-live){--play:paused}
[data-scene]:not(.is-live) *{animation-play-state:paused!important}

/* === hero === */
.hero{position:relative;overflow:clip;isolation:isolate}
.hero-stars{position:absolute;inset:0;z-index:-1;width:100%;height:100%;display:block;-webkit-mask-image:linear-gradient(to right,#000 calc(50% - 360px),transparent calc(50% - 360px),transparent calc(50% + 360px),#000 calc(50% + 360px));mask-image:linear-gradient(to right,#000 calc(50% - 360px),transparent calc(50% - 360px),transparent calc(50% + 360px),#000 calc(50% + 360px))}
@media (max-width:760px){.hero-stars{-webkit-mask-image:linear-gradient(to bottom,#000 90px,transparent 90px);mask-image:linear-gradient(to bottom,#000 90px,transparent 90px)}}
.hero-sky,.hero-cel{position:absolute;inset:0;z-index:-1;width:100%;height:100%;display:block}
.hero-cel{left:auto;max-width:1920px}
@media (max-width:1000px){.hero-cel{inset:auto;top:80px;right:-12px;width:768px;height:432px}}
@media (max-width:600px){.hero-cel{top:40px}.clouds .c1,.clouds .c2{display:none}}
.hero-sky .sky-rect{fill:url(#skyg)}
.stars{opacity:var(--star-opacity);transition:opacity .6s}
.stars use{fill:var(--ink)}
.tw1{animation:twinkle 3.2s ease-in-out infinite}
.tw2{animation:twinkle 4.4s ease-in-out -1.1s infinite}
.tw3{animation:twinkle 5.6s ease-in-out -2.5s infinite}
@keyframes twinkle{0%,100%{opacity:1}50%{opacity:.35}}
.clouds{opacity:var(--cloud-opacity);transition:opacity .6s}
.clouds .cloud{fill:var(--panel);opacity:.85;animation:drift 70s linear infinite}
.clouds .c2{animation-duration:95s;animation-delay:-40s}
.clouds .c3{animation-duration:120s;animation-delay:-80s}
@keyframes drift{from{transform:translateX(-260px)}to{transform:translateX(1900px)}}
.celestial{transform:rotate(var(--sky-rot));transform-origin:1000px 1500px;transition:transform 1.2s ease-in-out}
.moon-disc{fill:var(--face)}
.moon-crater{fill:var(--far)}
.sun-disc{fill:var(--gold)}
.sun-ray{stroke:var(--gold);stroke-width:5;stroke-linecap:round}
.hero-copy{position:relative;z-index:2;padding-top:150px}
.hero h1{margin:0 0 30px;font:italic 400 clamp(52px,8.5vw,104px)/1 var(--display);letter-spacing:-.03em}
.h1-name{position:relative;display:inline-block;padding-bottom:.08em}
.h1-name svg{position:absolute;left:-2%;bottom:-.14em;width:104%;height:auto;aspect-ratio:15/1;overflow:visible}
.h1-name path{fill:none;stroke:var(--coral);stroke-width:5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;animation:draw .9s ease-out .2s both}
@keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.prose{max-width:660px;color:var(--muted);font-size:15.5px;line-height:1.9}
.prose p{margin:0 0 16px}
.prose strong{color:var(--ink);font-weight:700}
.prose a{font-weight:600}
.contact-actions{display:flex;align-items:center;gap:12px;margin-top:30px;flex-wrap:wrap}
.primary-action{display:inline-flex;align-items:center;gap:12px;padding:8px 15px;border-radius:10px;background:var(--ink);color:var(--bg);font-size:13px;font-weight:700;text-decoration:none}
.primary-action:hover{background:var(--coral);color:#1b1a19}
.primary-action span{font-size:17px}
.social-links{display:flex;gap:9px}
.social-links a{display:grid;place-items:center;width:32px;height:32px;color:var(--muted);text-decoration:none}
.social-links a:hover{color:var(--ink)}
.social-links svg{width:19px;height:19px;fill:currentColor}
/* scenes stop scaling at their design width (hero 1920px, footer 1600px) and centre; their backdrops run far past the viewBox, so wider screens see more landscape and the wrapper does the clipping */
.pano-wrap{position:relative;overflow:hidden;margin-top:calc(clamp(300px,34vw,520px) * -.16)}
.panorama{display:block;width:100%;max-width:1920px;margin:0 auto;height:clamp(300px,34vw,520px);pointer-events:none;overflow:visible}
.panorama .layer{transform:translate3d(calc(var(--mx,0) * var(--d) * 22px),calc(var(--p,0) * (1 - var(--d)) * -40px + var(--my,0) * var(--d) * 10px),0)}
.far-fill{fill:var(--far)}.mid-fill{fill:var(--mid)}.ground-fill{fill:var(--ground)}
.ice-a{fill:var(--ice)}.ice-b{fill:var(--ice-deep)}
.flake-carve{fill:none;stroke:var(--ice-deep);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.snow-fall{fill:var(--ink);opacity:.8;animation:snowfall 7s linear infinite;animation-delay:var(--delay,0s)}
@keyframes snowfall{from{transform:translateY(-30px)}to{transform:translateY(120px)}}
.slab{animation:bob 3s ease-in-out infinite alternate;animation-delay:var(--delay,0s)}
@keyframes bob{from{transform:translateY(0)}to{transform:translateY(2px)}}
.slab-top{fill:var(--brick)}.slab-l{fill:var(--brick-deep)}.slab-r{fill:var(--brick-deep);opacity:.72}
.win{fill:var(--glow);opacity:calc(var(--star-opacity) * .9);transition:opacity .6s}
.pipe-body{fill:none;stroke:var(--line);stroke-width:28}
.pipe-edge{fill:none;stroke:var(--outline);stroke-width:34}
.pipe-core{fill:none;stroke:var(--coral);stroke-width:6;stroke-linecap:round}
.pipe-text{font:500 13px var(--mono);fill:var(--muted);letter-spacing:.02em}
.flange{fill:var(--line);stroke:var(--outline);stroke-width:3}
.bolt{fill:var(--faint)}
.joint-glow{fill:var(--glow);opacity:calc(var(--star-opacity) * .22)}
.glass{fill:var(--sky-top);stroke:var(--outline);stroke-width:3}
.packet{fill:var(--coral);animation:packet calc(2s / var(--speed,1)) linear infinite;animation-delay:var(--delay,0s)}
@keyframes packet{from{transform:translateX(-8px)}to{transform:translateX(70px)}}
.valve-rim{fill:none;stroke:var(--coral);stroke-width:5}
.valve-o{fill:none;stroke:var(--outline);stroke-width:11}
.valve-spoke{stroke:var(--coral);stroke-width:4;stroke-linecap:round}
.valve-hub{fill:var(--coral);stroke:var(--outline);stroke-width:3}
.valve{transform-box:fill-box;transform-origin:center;animation:spin calc(9s / var(--speed,1)) linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.stem{fill:var(--line);stroke:var(--outline);stroke-width:3}
.platform{fill:var(--line);stroke:var(--outline);stroke-width:3}
.walker{animation:march calc(12s / var(--speed,1)) linear infinite;animation-delay:calc(var(--delay,0s) / var(--speed,1))}
@keyframes march{0%{transform:translateX(0);opacity:0}5%{opacity:1}92%{opacity:1}100%{transform:translateX(420px);opacity:0}}
.panorama.fast{--speed:3}
.cour-body{animation:cbob calc(.25s / var(--speed,1)) ease-in-out infinite alternate;animation-play-state:var(--play,running)}
@keyframes cbob{from{transform:translateY(0)}to{transform:translateY(-1.5px)}}
.leg{fill:none;stroke:var(--outline);stroke-width:5;stroke-linecap:round;transform-origin:0 0;animation:legswing calc(.5s / var(--speed,1)) ease-in-out infinite alternate;animation-play-state:var(--play,running)}
.leg.r{animation-direction:alternate-reverse}
@keyframes legswing{from{transform:rotate(-20deg)}to{transform:rotate(20deg)}}
.c-body{fill:var(--ice-deep);stroke:var(--outline);stroke-width:3}
.crate-box{fill:var(--coral);stroke:var(--outline);stroke-width:2.5;stroke-linejoin:round}
.crate-tape{fill:none;stroke-width:1.6}
.crate-label{font:700 10px var(--mono);fill:var(--bg);text-anchor:middle}
.rivet{fill:var(--outline)}
.crate-tape{stroke:var(--outline);opacity:.55}
.crate:not([data-unit="TB"]):not([data-unit="PB"]) .tape,.crate:not([data-unit="TB"]):not([data-unit="PB"]) .rivet{display:none}
.strain{transform:scaleY(.94);transform-origin:0 0}
.sweat{fill:var(--ice);stroke:var(--outline);stroke-width:1;display:none;animation:sweat 1s ease-in infinite}
.strain .sweat{display:inline}
@keyframes sweat{0%{transform:translateY(0);opacity:1}100%{transform:translateY(7px);opacity:0}}
@media (max-width:700px){.crate-label{font-size:15px}.say text{font-size:20px}}
.c-arm{fill:none;stroke:var(--outline);stroke-width:4;stroke-linecap:round}
.renan-wave{animation:none}
.renan.waving .renan-wave{animation:wave 1.8s ease-in-out 1}
@keyframes wave{0%,100%{transform:rotate(0)}18%{transform:rotate(-135deg)}36%{transform:rotate(-105deg)}54%{transform:rotate(-140deg)}72%{transform:rotate(-105deg)}88%{transform:rotate(-135deg)}}
.say{opacity:0;transform-box:fill-box;transform-origin:50% 100%}
.say.show{animation:say 2s ease both}
.say.show-static{opacity:1}
@keyframes say{0%{opacity:0;transform:scale(.4)}12%{opacity:1;transform:scale(1.06)}20%{transform:scale(1)}85%{opacity:1}100%{opacity:0}}
.say rect{fill:var(--panel);stroke:var(--outline);stroke-width:2.5}
.say path{fill:var(--panel);stroke:var(--outline);stroke-width:2.5}
.say text{font:700 13px var(--sans);fill:var(--ink)}
.renan-btn{position:absolute;z-index:3;visibility:hidden;padding:0;border:0;background:transparent;cursor:pointer;border-radius:12px}
.renan-btn.placed{visibility:visible}
.renan-btn:focus-visible{outline-offset:2px}
.hat{fill:var(--coral);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.hat-text{font:700 11px var(--mono);fill:var(--bg);text-anchor:middle}
.tuft{fill:var(--outline)}
.ground-fx{fill:none}
.rock{fill:var(--mid);stroke:var(--outline);stroke-width:2;stroke-linejoin:round}
.tuft-g{fill:none;stroke:var(--jungle);stroke-width:3;stroke-linecap:round}
.brick-s{fill:var(--brick);stroke:var(--brick-deep);stroke-width:2}
.shard{fill:var(--ice);opacity:.9}

/* === dividers === */
.divider-wrap{padding-top:6px;padding-bottom:6px}
.divider{display:flex;align-items:center}
.d-flange{flex:none;width:12px;height:30px;border-radius:4px;background:var(--line);border:2px solid var(--outline);position:relative}
.d-pipe{flex:1;height:12px;background:var(--line);border-top:2px solid var(--outline);border-bottom:2px solid var(--outline);position:relative}
.d-pipe::after{content:"";position:absolute;left:0;right:0;top:3px;height:2px;background:var(--coral);opacity:.55}
.gauge{flex:none;width:44px;height:44px;margin:0 -2px;position:relative;z-index:1}
.gauge svg{width:44px;height:44px;display:block;overflow:visible}
.gauge-face{fill:var(--panel);stroke:var(--outline);stroke-width:3}
.gauge-tick{stroke:var(--faint);stroke-width:2;stroke-linecap:round}
.gauge-zone{fill:none;stroke:var(--coral);stroke-width:3;opacity:.7}
.needle{--needle:clamp(-60deg,calc(-30deg + var(--vel,0) * 90deg),60deg);transform:rotate(var(--needle));transform-origin:22px 24px;transition:transform .12s linear}
.needle line{stroke:var(--ink);stroke-width:2.4;stroke-linecap:round}

/* === section titles / junctions === */
.section{padding-top:40px;padding-bottom:40px}
.section-title{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.section-title h2{margin:0;font:italic 400 36px/1.15 var(--display);letter-spacing:-.01em}
.junction{position:relative;flex:none;display:grid;place-items:center;width:28px;height:28px;border:2px solid var(--line);border-radius:8px;color:var(--ink);background:
  radial-gradient(circle 1px at 3px 3px,var(--faint) 98%,transparent) no-repeat,
  radial-gradient(circle 1px at calc(100% - 3px) 3px,var(--faint) 98%,transparent) no-repeat,
  radial-gradient(circle 1px at 3px calc(100% - 3px),var(--faint) 98%,transparent) no-repeat,
  radial-gradient(circle 1px at calc(100% - 3px) calc(100% - 3px),var(--faint) 98%,transparent) no-repeat;
  background-color:var(--bg);transition:border-color .4s,color .4s,filter .4s}
.junction svg{width:16px;height:16px}
.junction.is-reached{border-color:var(--coral);color:var(--coral);filter:drop-shadow(0 0 5px color-mix(in srgb,var(--coral) 70%,transparent))}
.section-intro{margin:0 0 22px;color:var(--muted);font-size:13px}

/* === tech stack conveyor === */
.stack{padding-top:30px}
.conveyor{--gap:12px;position:relative}
.crates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--gap);row-gap:22px}
.slot{position:relative;min-width:0;padding-bottom:30px}
.stack-item{position:relative;z-index:1;display:grid;justify-items:center;align-content:center;gap:6px;min-width:0;height:100%;padding:14px 4px 10px;background:var(--panel);border:2px solid var(--line);border-radius:10px;color:var(--muted);font-size:11.5px;font-weight:600;line-height:1.3;text-align:center;text-decoration:none;box-shadow:0 6px 10px -4px #0005;transition:translate .25s,box-shadow .25s,color .25s,border-color .25s;animation:bob 3s ease-in-out infinite alternate;animation-delay:var(--delay,0s)}
.stack-item:hover,.stack-item:focus-visible{translate:0 -8px;box-shadow:0 3px 5px -2px #0006;color:var(--ink);border-color:var(--coral)}
.stack-icon{display:grid;place-items:center;width:39px;height:39px}
.stack-icon svg{display:block;transition:transform .5s ease}
.snowflake-icon{color:#39b6d6}.databricks-icon{color:#ff765b}
.stack-item:hover .snowflake-icon svg,.stack-item:focus-visible .snowflake-icon svg{transform:rotate(60deg)}
.db-l{transition:transform .35s ease}
.stack-item:hover .db-l1,.stack-item:focus-visible .db-l1{transform:translateY(-4px)}
.stack-item:hover .db-l3,.stack-item:focus-visible .db-l3{transform:translateY(4px)}
.stack-item.dbt:hover .stack-icon svg,.stack-item.dbt:focus-visible .stack-icon svg{transform:rotate(90deg)}
.stack-item.airflow:hover .stack-icon svg,.stack-item.airflow:focus-visible .stack-icon svg{transform:rotate(360deg);transition-duration:.9s}
.k8s-wheel{transform-origin:20px 20px;transition:transform .5s ease}
.stack-item:hover .k8s-wheel,.stack-item:focus-visible .k8s-wheel{transform:rotate(45deg)}
.stack-item.laravel:hover .stack-icon svg,.stack-item.laravel:focus-visible .stack-icon svg{animation:hop .5s ease}
@keyframes hop{0%,100%{transform:translateY(0)}40%{transform:translateY(-8px)}70%{transform:translateY(0)}85%{transform:translateY(-3px)}}
.react-orbits{transform-origin:20px 20px;transition:transform .8s ease}
.stack-item:hover .react-orbits,.stack-item:focus-visible .react-orbits{transform:rotate(120deg)}
.aws-smile{stroke-dasharray:1;stroke-dashoffset:0}
.stack-item:hover .aws-smile,.stack-item:focus-visible .aws-smile{animation:redraw .8s ease}
@keyframes redraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.stack-item.python:hover .stack-icon svg,.stack-item.python:focus-visible .stack-icon svg{transform:rotate(180deg);transition-duration:.7s}
.go-text,.go-lines{transition:transform .35s ease}
.go-lines{transform-origin:0 21px}
.stack-item.go:hover .go-text,.stack-item.go:focus-visible .go-text{transform:translateX(4px)}
.stack-item.go:hover .go-lines,.stack-item.go:focus-visible .go-lines{transform:scaleX(1.5)}
.dk-c{transform-box:fill-box}
.stack-item.docker:hover .dk-c,.stack-item.docker:focus-visible .dk-c{animation:ctrhop .5s ease both}
.dk-c2{animation-delay:.08s!important}.dk-c3{animation-delay:.16s!important}.dk-c4{animation-delay:.24s!important}.dk-c5{animation-delay:.32s!important}
@keyframes ctrhop{0%,100%{transform:translateY(0)}40%{transform:translateY(-4px)}}
.tf{transition:transform .35s ease}
.stack-item.terraform:hover .tf1,.stack-item.terraform:focus-visible .tf1{transform:translate(-2.5px,-1.5px)}
.stack-item.terraform:hover .tf2,.stack-item.terraform:focus-visible .tf2{transform:translate(0,-2px)}
.stack-item.terraform:hover .tf3,.stack-item.terraform:focus-visible .tf3{transform:translate(0,2px) translate(0,-4px)}
.stack-item.terraform:hover .tf4,.stack-item.terraform:focus-visible .tf4{transform:translate(2.5px,-1.5px)}
.tg-wrap{transform-origin:20px 20px}
.stack-item.terragrunt:hover .tg-wrap,.stack-item.terragrunt:focus-visible .tg-wrap{animation:pulse108 .8s ease-in-out infinite}
@keyframes pulse108{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.gha-tri{transition:transform .3s ease}
.gha-orbit{transform-origin:20px 20px}
.stack-item.gha:hover .gha-tri,.stack-item.gha:focus-visible .gha-tri{transform:translateX(1.8px)}
.stack-item.gha:hover .gha-orbit,.stack-item.gha:focus-visible .gha-orbit{animation:spin 1.1s linear infinite}
/* belt segment under each crate; contiguous segments read as one belt per row */
.seg{position:absolute;z-index:0;left:calc(var(--gap) / -2);bottom:0;width:calc(100% + var(--gap));height:36px;overflow:visible}
.belt-fill{fill:var(--panel-raised)}
.belt-edge{stroke:var(--outline);stroke-width:3}
.belt-cap{fill:var(--panel-raised);stroke:var(--outline);stroke-width:3}
.belt-run{stroke:var(--faint);stroke-width:3;stroke-dasharray:14 10;stroke-dashoffset:calc((var(--xs,0) - var(--phase,0)) * 1px)}
.roller-o{fill:var(--outline)}
.roller-rim{fill:var(--panel-raised);stroke:var(--muted);stroke-width:1.6}
.roller{transform-box:fill-box;transform-origin:center;transform:rotate(calc(var(--rot,0) * 1deg))}
.roller-s path,.spokes path{stroke:var(--muted);stroke-width:1.2;stroke-linecap:round;fill:none}
.capl,.capr{display:none}
.operator{display:block;position:absolute;right:20px;bottom:20px;width:46px;height:60px;z-index:2;overflow:visible}
.slot:last-child .capr{display:inline}
@media (max-width:419px){.slot:nth-child(4n+1) .capl,.slot:nth-child(4n) .capr{display:inline}}
@media (min-width:420px){.crates{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (min-width:420px) and (max-width:999px){.slot:nth-child(5n+1) .capl,.slot:nth-child(5n) .capr{display:inline}}
@media (min-width:1000px){
  .conveyor{padding-right:56px}
  .operator{right:-4px}
  .crates{grid-template-columns:repeat(7,minmax(0,1fr))}
  .slot:nth-child(7n+1) .capl,.slot:nth-child(7n) .capr{display:inline}
}
@media (max-width:480px){.crates{--gap:6px}.conveyor{--gap:6px}.stack-item{font-size:10px;padding:12px 2px 8px;overflow-wrap:anywhere}.operator{display:none!important}}

/* === websites === */
.work{padding-bottom:34px}
.projects{display:grid;gap:56px}
.project{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:center}
.scene-win{position:relative;display:block;border-radius:14px;background:var(--panel);border:1px solid var(--line);overflow:hidden;box-shadow:var(--shadow);text-decoration:none;color:inherit;transform:perspective(900px) rotateX(calc(var(--my,0) * -3deg)) rotateY(calc(var(--mx,0) * 3deg));will-change:transform}
.win-bar{display:flex;align-items:center;gap:6px;height:30px;padding:0 12px;background:var(--panel-raised);border-bottom:1px solid var(--line);font:500 11px var(--mono);letter-spacing:.04em;color:var(--faint)}
.win-bar i{width:9px;height:9px;border-radius:50%;background:var(--line);box-shadow:inset 0 0 0 1px #0002}
.win-bar i:first-child{background:var(--coral)}
.win-bar span{margin-left:8px}
.scene-win svg.scene{display:block;width:100%;aspect-ratio:16/10;height:auto}
.scene-win:hover .win-bar{color:var(--ink)}
.project [data-scene] .layer{transform:translate3d(calc(var(--mx,0) * var(--d) * 14px),calc(var(--p,0) * var(--d) * -18px + var(--my,0) * var(--d) * 6px),0)}
.project-info{min-width:0}
.project-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.project-category{margin:0 0 4px;color:var(--muted);font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase}
.project h3{margin:0;font-size:24px;line-height:1.3;letter-spacing:-.02em}
.visit-link{flex:none;color:var(--muted);font-size:13px;font-weight:700;text-decoration:none;padding-top:4px}
.visit-link:hover{color:var(--link)}
.project-description{margin:12px 0 14px;color:var(--muted);font-size:15.5px;line-height:1.8}
.detail-link{font-size:13px;font-weight:700;text-decoration:none}
@media (min-width:860px){
  .project{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:36px}
  .project:nth-child(even) .scene-win{order:2}
}
@media (max-width:600px){.project h3{font-size:22px}}

/* --- scene-specific --- */
.sk{fill:url(#skyg)}
.wave{fill:none;stroke:var(--ice);stroke-width:2.5;stroke-linecap:round;opacity:.8}
.wave-run{animation:waveslide 5s linear infinite}
.wave-run.w2{animation-duration:7s;animation-direction:reverse}
@keyframes waveslide{from{transform:translateX(0)}to{transform:translateX(-80px)}}
.sea{fill:var(--ice-deep);opacity:.6}
.snowcap{fill:var(--face)}
.bld{fill:var(--panel-raised);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.bld-roof{fill:var(--shirt);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.bld-line{fill:none;stroke:var(--faint);stroke-width:2.5;stroke-linecap:round}
.bld-win{fill:var(--glow);opacity:.85;stroke:var(--outline);stroke-width:2}
.sign{fill:var(--panel);stroke:var(--outline);stroke-width:2}
.sign-t{font:700 8.5px var(--mono);fill:var(--ink);text-anchor:middle;letter-spacing:.02em}
.cross{fill:var(--coral);stroke:var(--outline);stroke-width:2}
.arc-dash{fill:none;stroke:var(--coral);stroke-width:3;stroke-linecap:round;stroke-dasharray:7 8;animation:dashrun 1.2s linear infinite}
@keyframes dashrun{to{stroke-dashoffset:-30}}
.handset{fill:var(--coral);stroke:var(--outline);stroke-width:2.5;stroke-linejoin:round}
.chat{animation:chatfade 4s ease-in-out infinite}
@keyframes chatfade{0%,100%{opacity:0}20%,60%{opacity:1}80%{opacity:0}}
.chat rect,.chat path.tail{fill:var(--panel);stroke:var(--outline);stroke-width:2.5}
.chat .x{stroke:var(--coral);stroke-width:4;stroke-linecap:round;fill:none}
.pulse{fill:none;stroke:var(--coral);stroke-width:3;stroke-linecap:round;transform-box:fill-box;transform-origin:center;opacity:0;animation:pulse 4s ease-out infinite}
.pulse.p2{animation-delay:.25s}
@keyframes pulse{0%,76%{opacity:0;transform:scale(.4)}80%{opacity:1}100%{opacity:0;transform:scale(1.7)}}
.suitcase{fill:var(--brick-deep);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.scarf{fill:var(--coral);stroke:var(--outline);stroke-width:3}
.gym-wall{fill:#211d19}
.gym-stripe{fill:var(--gold);opacity:.55}
.gym-floor{fill:#16130f;stroke:var(--gold);stroke-width:2}
.gold{fill:var(--gold);stroke:var(--outline);stroke-width:2.5;stroke-linejoin:round}
.shelf{fill:var(--gold);opacity:.8}
.ribbon{fill:var(--coral);stroke:var(--outline);stroke-width:2}
.press-bar{animation:press 1.6s ease-in-out infinite}
@keyframes press{0%,100%{transform:translateY(56px)}50%{transform:translateY(0)}}
.press-arm{transform-origin:0 0;animation:pressarm 1.6s ease-in-out infinite}
@keyframes pressarm{0%,100%{transform:scaleY(.2)}50%{transform:scaleY(1)}}
.plate{transform-box:fill-box;transform-origin:center;animation:plateflex 1.6s ease-in-out infinite;fill:var(--gold);stroke:var(--outline);stroke-width:3}
@keyframes plateflex{0%,40%,60%,100%{transform:scaleY(1)}50%{transform:scaleY(1.07)}}
.bar-rod{fill:#8a8680;stroke:var(--outline);stroke-width:3}
.wa{fill:var(--jungle);stroke:var(--outline);stroke-width:2.5}
.wa-float{animation:floaty 3s ease-in-out infinite alternate}
@keyframes floaty{from{transform:translateY(-4px)}to{transform:translateY(5px)}}
.map-bg{fill:var(--panel-raised)}
.street{stroke:var(--line);stroke-width:14;fill:none}
.street-c{stroke:var(--faint);stroke-width:1.5;stroke-dasharray:6 8;fill:none;opacity:.7}
.park{fill:var(--jungle);opacity:.35}
.river{fill:none;stroke:var(--ice);stroke-width:18;opacity:.55;stroke-linecap:round}
.sweep{fill:url(#sweepg);transform-origin:330px 200px;animation:sweep 4s linear infinite}
@keyframes sweep{to{transform:rotate(360deg)}}
.house-roof{fill:var(--hc,var(--brick));stroke:var(--outline);stroke-width:2.5;stroke-linejoin:round}
.house-ridge{stroke:var(--outline);stroke-width:2;opacity:.45}
.house-flash{fill:var(--glow);opacity:0;animation:hflash 4s linear infinite;animation-delay:var(--delay,0s);animation-play-state:var(--play,running)}
@keyframes hflash{0%{opacity:0}1.5%{opacity:1}22%{opacity:0}100%{opacity:0}}
.tag{animation:tagpop 4s ease-out infinite;animation-delay:var(--delay,0s);transform-box:fill-box;transform-origin:50% 100%}
@keyframes tagpop{0%{transform:scale(.3);opacity:0}4%{transform:scale(1.08);opacity:1}8%{transform:scale(1)}30%{opacity:1}42%,100%{opacity:0;transform:scale(1)}}
.tag rect{fill:var(--panel);stroke:var(--outline);stroke-width:2.5}
.tag path{fill:var(--panel);stroke:var(--outline);stroke-width:2.5}
.tag text{font:700 10px var(--mono);fill:var(--ink);text-anchor:middle}
.pin{animation:pinb .9s ease-in-out infinite alternate}
@keyframes pinb{from{transform:translateY(0)}to{transform:translateY(-9px)}}
.pin-body{fill:var(--coral);stroke:var(--outline);stroke-width:2.5}
.bino{fill:var(--outline);stroke:var(--outline);stroke-width:3}
.cliff{fill:var(--jungle);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.cliff-dark{fill:var(--jungle);opacity:.65}
.fall-line{stroke:var(--ice);stroke-width:3;stroke-linecap:round;stroke-dasharray:16 12;animation:fall 1.1s linear infinite;animation-delay:var(--delay,0s)}
@keyframes fall{to{stroke-dashoffset:-28}}
.fall-bg{fill:var(--ice);opacity:.35}
.mist{fill:var(--face);opacity:.55;animation:mistdrift 6s ease-in-out infinite alternate;animation-delay:var(--delay,0s)}
@keyframes mistdrift{from{transform:translateX(-14px)}to{transform:translateX(14px)}}
.rainbow{fill:none;stroke-width:5;opacity:.28}
.pool{fill:var(--ice-deep);opacity:.65}
.road{fill:var(--ground)}
.road-dash{stroke:var(--face);stroke-width:3;stroke-dasharray:16 14;opacity:.6}
.van{animation:drive 12s linear infinite}
@keyframes drive{from{transform:translateX(-120px)}to{transform:translateX(760px)}}
.van-body{fill:var(--coral);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.van-win{fill:var(--ice);stroke:var(--outline);stroke-width:2}
.wheel-g{transform-box:fill-box;transform-origin:center;animation:spin 1.1s linear infinite}
.wheel-o{fill:var(--outline)}
.wheel-rim{fill:var(--panel-raised);stroke:var(--muted);stroke-width:1.8}
.wheel-hub{fill:var(--muted)}
.spokes path,.roller-s path{stroke:var(--muted);stroke-width:1.3;stroke-linecap:round;fill:none}
.plane{animation:fly 10s linear infinite}
@keyframes fly{0%{transform:translateX(-80px)}45%,100%{transform:translateX(760px)}}
.plane-body{fill:var(--face);stroke:var(--outline);stroke-width:2.5;stroke-linejoin:round}
.sign-post{fill:var(--brick-deep);stroke:var(--outline);stroke-width:3}
.board{fill:var(--gold);stroke:var(--outline);stroke-width:2.5;stroke-linejoin:round}
.board-t{font:700 9px var(--mono);fill:var(--outline);text-anchor:middle}
.tou-body{fill:var(--outline);stroke:var(--outline);stroke-width:3}
.tou-chest{fill:var(--face)}
.beak-a{fill:var(--coral);stroke:var(--outline);stroke-width:2.5;stroke-linejoin:round}
.beak-b{fill:var(--gold);stroke:var(--outline);stroke-width:2.5;stroke-linejoin:round}
.tou-eye{fill:var(--face);stroke:var(--outline);stroke-width:2}
.tou-foot{stroke:var(--coral);stroke-width:3;stroke-linecap:round;fill:none}
.greet text{font:700 14px var(--sans);fill:var(--ink);text-anchor:middle;opacity:0}
.greet text:first-child{opacity:1}
.greet .g1{animation:g1 6s linear infinite}
.greet .g2{animation:g2 6s linear infinite}
.greet .g3{animation:g3 6s linear infinite}
@keyframes g1{0%,30%{opacity:1}33.4%,96.6%{opacity:0}100%{opacity:1}}
@keyframes g2{0%,30%{opacity:0}33.4%,63%{opacity:1}66.6%,100%{opacity:0}}
@keyframes g3{0%,63%{opacity:0}66.6%,96.6%{opacity:1}100%{opacity:0}}
.bubble{fill:var(--panel);stroke:var(--outline);stroke-width:2.5}

/* === notebook === */
.notebook-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.notebook-toolbar>p{margin:0;color:var(--muted);font-size:13px}
.sample-label{padding:3px 10px;border:1px solid var(--line);border-radius:99px;color:var(--muted);font-size:12px;font-weight:700;text-decoration:none}
.sample-label:hover{color:var(--ink);border-color:var(--coral)}
.paper{position:relative;padding:26px 150px 26px 64px;border:1px solid var(--line);border-radius:14px;background-color:var(--panel);background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,var(--line) 31px,var(--line) 32px);background-position:0 8px;box-shadow:var(--shadow);overflow:hidden}
.paper::before{content:"";position:absolute;left:44px;top:0;bottom:0;width:2px;background:var(--coral);opacity:.7}
.empty-notes{margin:0;color:var(--muted);font-size:14px;line-height:32px;position:relative}
.pencil-svg{position:absolute;right:6px;bottom:0;width:150px;height:130px}
.scribble{fill:none;stroke:var(--coral);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;animation:scribble 6s ease-in-out infinite}
@keyframes scribble{0%{stroke-dashoffset:1;opacity:1}55%{stroke-dashoffset:0;opacity:1}85%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
.pencil-write{animation:pwrite 6s ease-in-out infinite}
@keyframes pwrite{0%{transform:translateX(0)}55%{transform:translateX(70px)}100%{transform:translateX(70px)}}
.crumb{fill:var(--coral);opacity:.8}
.pencil-b{fill:var(--gold);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.pencil-cap{fill:var(--coral);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.pencil-tip{fill:var(--face);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.pencil-lead{fill:var(--outline)}
.ferrule{fill:var(--face);stroke:var(--outline);stroke-width:3}
@media (max-width:600px){.paper{padding:22px 16px 96px 52px}.paper::before{left:34px}.pencil-svg{width:110px;height:96px}.notebook-toolbar{flex-wrap:wrap}}

/* === footer === */
.foot-scene{position:relative;margin-top:30px;overflow:hidden}
.foot-svg{display:block;width:100%;max-width:1600px;margin:0 auto;height:clamp(150px,16vw,230px);overflow:visible}
.foot-svg .sky-f{fill:url(#skyg)}
.laptop-scr{fill:var(--glow);opacity:calc(.35 + var(--star-opacity) * .55)}
.laptop-base{fill:var(--line);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.laptop-lid{fill:var(--panel-raised);stroke:var(--outline);stroke-width:3;stroke-linejoin:round}
.legs-swing{animation:dangle 2.4s ease-in-out infinite alternate}
@keyframes dangle{from{transform:rotate(-9deg)}to{transform:rotate(9deg)}}
.drip{fill:var(--coral);animation:dripfall 1.6s ease-in infinite;animation-delay:var(--delay,0s)}
@keyframes dripfall{0%{transform:translateY(0);opacity:1}100%{transform:translateY(46px);opacity:0}}
.site-footer{display:flex;align-items:center;gap:12px;padding-top:18px;padding-bottom:35px;border-top:1px solid var(--line);color:var(--faint);font-size:13px}
.footer-inner{display:flex;align-items:center;gap:12px;width:100%}
.site-footer a:first-child{color:var(--muted);font-weight:700;text-decoration:none}
.site-footer span{flex:1}
.site-footer a{color:var(--muted);text-decoration:none}
.site-footer a:hover{color:var(--ink)}
.footer-wrap{border-top:1px solid var(--line)}
.footer-wrap .footer-inner{padding-top:18px;padding-bottom:35px}
@media (max-width:600px){.footer-inner{flex-wrap:wrap}.footer-inner span{flex-basis:100%;order:3}}

/* === spine === */
.spine{position:absolute;left:0;top:0;width:100%;height:100%;z-index:0;pointer-events:none;display:none;overflow:visible}
@media (min-width:1100px){.spine{display:block}}
.spine-ghost{fill:none;stroke:var(--line);stroke-width:8;opacity:.5;stroke-linecap:round}
.spine-under{fill:none;stroke:var(--line);stroke-width:10;stroke-linecap:round}
.spine-live{fill:none;stroke:var(--coral);stroke-width:3;stroke-linecap:round}
.spine-packet{fill:var(--coral)}

/* === dialog === */
dialog{width:min(650px,calc(100vw - 26px));max-height:min(86vh,900px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--ink);box-shadow:var(--shadow)}
dialog::backdrop{background:#080706b8;backdrop-filter:blur(3px)}
.detail-controls{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--line);background:var(--panel);color:var(--muted);font-size:11px;font-weight:700}
.detail-controls button,.detail-end button{padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel-raised);color:var(--ink);font-size:12px;font-weight:700;cursor:pointer}
#detail-content{padding:27px clamp(20px,6vw,44px) 20px;color:var(--muted);font-size:14.5px;line-height:1.8}
#detail-content h2{margin:2px 0 7px;color:var(--ink);font:italic 400 36px/1.15 var(--display);letter-spacing:-.01em}
#detail-content h3{margin:22px 0 5px;color:var(--ink);font-size:15px}
#detail-content p{margin:0 0 15px}
.detail-category{color:var(--muted);font:500 11px var(--mono);text-transform:uppercase;letter-spacing:.08em}
#detail-content .detail-lead{color:var(--ink);font-size:18px}
.detail-win{margin:20px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--panel-raised)}
.detail-image{display:block;width:100%;height:auto;max-height:330px;object-fit:cover;object-position:top}
.detail-sections{margin-top:21px}
.feature-list{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 22px;padding:0;list-style:none}
.feature-list li{padding:5px 10px;border:1px solid var(--line);border-radius:99px;font-size:12px}
.detail-visit{display:inline-flex;padding:8px 12px;border-radius:8px;background:var(--ink);color:var(--bg);font-size:13px;font-weight:700;text-decoration:none}
.detail-visit:hover{color:var(--bg);background:var(--coral)}
.detail-end{padding:12px 18px 16px;border-top:1px solid var(--line);text-align:right}
@media (max-width:600px){body{font-size:14.5px}.prose{font-size:14.5px;line-height:1.85}.hero-copy{padding-top:120px}#detail-content h2{font-size:30px}.profile-pill{top:calc(12px + env(safe-area-inset-top,0px));min-height:62px}.profile-menu{top:calc(12px + env(safe-area-inset-top,0px));max-height:calc(100dvh - 24px)}.section-title h2{font-size:32px}.theme-choices button{font-size:12px}}
@media (max-width:360px){.profile-pill{gap:9px}.avatar{width:38px;height:38px;flex-basis:38px}.profile-copy strong{font-size:13px}.profile-copy>span{font-size:11px}.theme-choices{gap:2px}.theme-choices button{gap:4px;padding:5px 2px}}

/* === reduced motion === */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .walker{transform:translateX(var(--rest,0px));opacity:1}
  .layer,.scene-win{transform:none!important}
  .greet .g2,.greet .g3{opacity:0}
}
.clouds .cloud{opacity:.6}

/* === production pages: notebook posts, archive, article, 404 === */
.text-action{border:0;background:transparent;color:var(--muted);font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.text-action:hover{color:var(--ink)}
.section-caption{margin:0 0 6px;color:var(--muted);font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase}
.article-page,.archive-page,.not-found-page{padding-top:140px;padding-bottom:48px}
.article-back{display:inline-block;margin-bottom:26px;color:var(--muted);font-size:13px;font-weight:700;text-decoration:none}
.article-back:hover{color:var(--ink)}
.article-header h1,.archive-header h1,.not-found-page h1{margin:4px 0 10px;font:italic 400 clamp(40px,6vw,56px)/1.1 var(--display);letter-spacing:-.02em}
.article-meta{display:flex;gap:12px;color:var(--faint);font-size:12px}
.article-description,.archive-description{margin:16px 0 0;color:var(--muted);font-size:15px}
.article-content{margin-top:30px;overflow-wrap:anywhere}
.article-content h2,.article-content h3,.article-content h4{margin:30px 0 9px;color:var(--ink);font-size:20px;line-height:1.45}
.article-content h3{font-size:17px}
.article-content p,.article-content ul,.article-content ol{margin:0 0 17px}
.article-content li{padding-left:4px}
.article-content img{display:block;max-width:100%;height:auto;margin:22px auto;border-radius:10px}
.article-content pre{overflow:auto;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font-size:13px;line-height:1.65}
.article-content code{font-family:var(--mono)}
.article-content :not(pre)>code{padding:2px 5px;border-radius:4px;background:var(--panel-raised);color:var(--ink);font-size:.9em}
.article-content blockquote{margin:20px 0;padding:2px 0 2px 16px;border-left:2px solid var(--coral);color:var(--muted)}
.article-end{margin-top:34px;padding-top:17px;border-top:1px solid var(--line);font-size:13px;font-weight:700}
.article-end a{color:var(--muted);text-decoration:none}
.archive-header{margin:0 0 25px}
.not-found-page>p:not(.section-caption){color:var(--muted)}
.empty-notes{margin:0;color:var(--muted);font-size:14px}
.posts{display:grid}
.post{display:grid;grid-template-columns:1fr auto;gap:1px 15px;width:100%;padding:14px 2px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}
.post:last-child{border-bottom:0}
.post:hover .post-title{color:var(--link)}
.post-meta{grid-column:1;color:var(--faint);font:500 11px var(--mono);letter-spacing:.04em}
.post-meta>*+*:before{content:"·";padding:0 6px}
.post-title,.post-summary{display:block}
.post-title{font-size:15px;font-weight:700;line-height:1.5}
.post-summary{color:var(--muted);font-size:13px;line-height:1.55}
.post-arrow{grid-column:2;grid-row:1/3;align-self:center;color:var(--muted)}
.paper.has-posts{padding:10px 24px 10px 64px;background-image:none}
.archive-posts .empty-notes{padding:6px 0}
@media (max-width:600px){.article-page,.archive-page,.not-found-page{padding-top:112px}.paper.has-posts{padding:6px 14px 6px 52px}}
