/* Jasmine Ramientas. Glass, minimal, dark by default. Layout uses container queries on .site so the mobile preview toggle renders the real mobile layout. */
:root{
  --font-ui:'Arrow Glyphs','Lato','Helvetica Neue',Arial,'Noto Naskh Arabic',sans-serif;
  --font-display:'Cooper Hewitt','Gelasio',Georgia,'Noto Naskh Arabic','Helvetica Neue',Arial,sans-serif;
  --font-body:'Arrow Glyphs','PT Serif',Georgia,'Gelasio','Noto Naskh Arabic','Charter','Bitstream Charter','Sitka Text',Cambria,'Times New Roman',serif;
  --ease:cubic-bezier(.2,.7,.1,1);
}
html[data-theme=dark]{
  --bg:#07060d;--bg2:#0d0b18;--ink:#f2eff8;--muted:#c9c3d6;--soft:#9d96ad;
  --accent:#c6b3ff;--accent2:#7fe3ff;--accent3:#ff9ad5;--on-accent:#120f1c;
  --glass:linear-gradient(135deg,rgba(255,255,255,.085),rgba(255,255,255,.025));
  --glass-solid:rgba(20,17,32,.55);--glass-strong:rgba(26,22,40,.62);
  --glass-line:rgba(255,255,255,.12);--glass-hi:rgba(255,255,255,.22);
  --shadow:0 1px 0 rgba(255,255,255,.08) inset,0 30px 80px -30px rgba(0,0,0,.8);
  --g1:rgba(122,84,255,.28);--g2:rgba(0,190,255,.16);--g3:rgba(255,80,170,.16);
  --line:rgba(255,255,255,.1);
  color-scheme:dark;
}
html[data-theme=light]{
  --bg:#efedf5;--bg2:#e7e3f0;--ink:#1a1724;--muted:#3f3a4c;--soft:#5d576b;
  --accent:#5b3fc4;--accent2:#0c7ea6;--accent3:#b8327c;--on-accent:#fff;
  --glass:linear-gradient(135deg,rgba(255,255,255,.72),rgba(255,255,255,.38));
  --glass-solid:rgba(255,255,255,.55);--glass-strong:rgba(255,255,255,.7);
  --glass-line:rgba(255,255,255,.85);--glass-hi:rgba(255,255,255,1);
  --shadow:0 1px 0 rgba(255,255,255,.9) inset,0 24px 60px -28px rgba(60,40,110,.3);
  --g1:rgba(150,120,255,.35);--g2:rgba(90,200,240,.3);--g3:rgba(255,150,200,.3);
  --line:rgba(40,25,80,.12);
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scrollbar-width:none}
html::-webkit-scrollbar{display:none}
/* the page controller moves exactly one page at a time, so the document never scrolls on its own */
html.pager{overflow:hidden;overscroll-behavior:none}
html.pager body{overflow:visible}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:0.875rem;line-height:1.7;font-weight:400;-webkit-font-smoothing:antialiased;overflow-x:hidden;transition:background-color .5s,color .5s}
a{color:inherit}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
em{font-style:italic}
:focus-visible{outline:2px solid var(--accent2);outline-offset:3px;border-radius:6px}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:fixed;left:1rem;top:-4rem;z-index:100;background:var(--ink);color:var(--bg);padding:.6rem 1rem;border-radius:10px}
.skip:focus{top:1rem}

/* background layers */
#neural{position:fixed;left:0;top:0;width:100%;height:100vh;height:100dvh;z-index:0;pointer-events:none;display:block}
.glows{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.glows span{position:absolute;border-radius:50%;filter:blur(80px);will-change:transform}
.glows .g1{width:55vmax;height:55vmax;left:-15vmax;top:-20vmax;background:var(--g1);animation:drift 26s ease-in-out infinite alternate}
.glows .g2{width:45vmax;height:45vmax;right:-15vmax;top:20vh;background:var(--g2);animation:drift 32s ease-in-out infinite alternate-reverse}
.glows .g3{width:50vmax;height:50vmax;left:20vw;bottom:-30vmax;background:var(--g3);animation:drift 30s ease-in-out infinite alternate}
@keyframes drift{to{transform:translate3d(6vmax,4vmax,0) scale(1.08)}}

.site{position:relative;z-index:1;container:site/inline-size;min-height:100vh}
html[data-view=mobile] .site{max-width:400px;margin-inline:auto;border-inline:1px solid var(--line);box-shadow:0 0 0 100vmax rgba(0,0,0,.25)}
html[data-view=mobile][data-theme=light] .site{box-shadow:0 0 0 100vmax rgba(120,110,150,.18)}

/* glass */
.glass{background:var(--glass),var(--glass-solid);border:1px solid var(--glass-line);box-shadow:var(--shadow);backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);border-radius:22px;position:relative}
.glass::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(120deg,var(--glass-hi),transparent 28%,transparent 72%,rgba(255,255,255,.06));opacity:.35;mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);mask-composite:exclude;-webkit-mask-composite:xor;padding:1px}
.glass-strong{background:var(--glass),var(--glass-strong)}
.glass-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.42rem .9rem;border-radius:12px;border:0;background:rgba(255,255,255,.06);backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);font-size:0.75rem;color:var(--muted);letter-spacing:.01em;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
html[data-theme=light] .glass-chip{background:rgba(255,255,255,.34);box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}

/* nav */
.nav{position:fixed;top:12px;left:0;right:0;z-index:20;margin:0 auto;width:min(1180px,calc(100% - 24px));width:min(1180px,calc(100cqi - 24px));display:flex;align-items:center;gap:1rem;padding:.55rem .6rem .55rem 1.1rem;border-radius:999px}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;font-family:var(--font-display);font-size:0.9688rem;white-space:nowrap}
.brand-mark{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 14px var(--accent)}
.nav-links{display:flex;gap:.2rem;margin-inline-start:auto}
.nav-links a{text-decoration:none;font-size:0.875rem;color:var(--muted);padding:.4rem .75rem;border-radius:999px;transition:background .3s,color .3s}
.nav-links a:hover{color:var(--ink);background:rgba(127,127,160,.14)}
.toggles{display:flex;gap:.35rem;align-items:center}
.tog{display:inline-flex;align-items:center;gap:.35rem;height:36px;min-width:36px;padding:0 .6rem;justify-content:center;border-radius:999px;border:1px solid var(--glass-line);background:var(--glass);color:var(--ink);font-size:0.75rem;transition:background .3s,transform .2s}
.tog:hover{background:rgba(127,127,160,.2)}
.tog:active{transform:scale(.95)}
.tog svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tog-select{appearance:none;-webkit-appearance:none;padding:0 1.6rem 0 .8rem;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%),var(--glass);background-position:calc(100% - 13px) 16px,calc(100% - 9px) 16px,0 0;background-size:4px 4px,4px 4px,100% 100%;background-repeat:no-repeat;max-width:150px}
html[dir=rtl] .tog-select{padding:0 .8rem 0 1.6rem;background-position:13px 16px,9px 16px,0 0}
.tog-select option{background:var(--bg2);color:var(--ink)}
html[data-theme=dark] .i-sun,html[data-theme=light] .i-moon{display:none}
.nav-progress{position:absolute;left:22px;right:22px;bottom:-1px;height:2px;border-radius:2px;overflow:hidden}
.nav-progress span{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--accent),var(--accent2),var(--accent3))}
html[dir=rtl] .nav-progress span{transform-origin:100% 50%}
.i18n-note{position:fixed;z-index:30;bottom:16px;left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 24px));padding:.8rem 1.1rem;font-size:0.875rem;color:var(--muted);border-radius:16px}

/* hero */
.hero{position:relative;height:100vh;height:100dvh;overflow:hidden;display:flex;align-items:center;padding:6rem clamp(1.2rem,5vw,4.5rem) 5rem;max-width:1320px;margin:0 auto;scroll-snap-align:start}
.hero-inner{max-width:min(640px,52%);position:relative;z-index:2}
.hero-name{font-family:var(--font-display);font-weight:800;font-size:1.75rem;line-height:1.12;letter-spacing:-.005em;margin:0 0 1.6rem}
.name-text{background:linear-gradient(180deg,var(--ink) 30%,color-mix(in oklab,var(--ink) 60%,var(--accent)));-webkit-background-clip:text;background-clip:text;color:transparent}
.period{display:inline-block;width:.15em;height:.15em;border-radius:50%;background:var(--accent);margin-inline-start:.06em;vertical-align:baseline;box-shadow:0 0 .25em var(--accent),0 0 .7em color-mix(in oklab,var(--accent) 50%,transparent);position:relative}
/* no ring. the dot flickers and drifts through neon colours */
.period{animation:neonDot 9s linear infinite,flick 5.3s steps(1) infinite}
@keyframes neonDot{0%,100%{background:#c6b3ff;box-shadow:0 0 .25em #c6b3ff,0 0 .7em #8a5cff}25%{background:#5ff2ff;box-shadow:0 0 .25em #5ff2ff,0 0 .7em #22b8ff}50%{background:#ff6fc1;box-shadow:0 0 .25em #ff6fc1,0 0 .7em #ff2fa8}75%{background:#7dffb0;box-shadow:0 0 .25em #7dffb0,0 0 .7em #22d48a}}
@keyframes flick{0%,100%{opacity:1}41%{opacity:.55}42%{opacity:1}43%{opacity:.35}44%{opacity:1}78%{opacity:.7}79%{opacity:1}}
.headline{font-family:var(--font-body);font-style:italic;font-size:1.25rem;line-height:1.1;margin:0 0 .7rem;color:var(--ink)}
.subhead{font-size:0.875rem;color:var(--muted);margin:0 0 1.5rem;max-width:34em}
.stats{list-style:none;display:flex;flex-wrap:wrap;gap:.45rem;padding:0;margin:0 0 2rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.7rem}
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.8rem 1.35rem;border-radius:999px;text-decoration:none;font-weight:700;font-size:0.875rem;border:1px solid transparent;transition:transform .3s var(--ease),box-shadow .3s,background .3s}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:linear-gradient(135deg,var(--accent),color-mix(in oklab,var(--accent) 55%,var(--accent2)));color:var(--on-accent);box-shadow:0 10px 30px -10px var(--accent)}
.btn-glass{background:var(--glass);border-color:var(--glass-line);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.scroll-cue{position:absolute;bottom:1.1rem;left:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--soft);border-radius:50%;transform:translateX(-50%);text-decoration:none}
.scroll-cue:hover,.scroll-cue:focus-visible{color:var(--text,currentColor)}
.scroll-cue svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;animation:cue 2s ease-in-out infinite}
@keyframes cue{0%,100%{transform:translateY(-3px);opacity:.65}50%{transform:translateY(5px);opacity:1}}

/* story */
.story{position:relative}
html.anim:not(.narrow) .story{height:600vh}
.snap-pts{display:none}
html.anim:not(.narrow) .snap-pts{display:block;position:absolute;inset:0;pointer-events:none}
html.anim:not(.narrow) .snap-pts i{display:block;height:100vh;scroll-snap-align:start;scroll-snap-stop:always}
.step-slot{height:100vh;height:100dvh;display:flex;align-items:center;justify-content:center;width:100%;padding:88px 0 28px;scroll-snap-align:start}
html.anim:not(.narrow) .step-slot{display:contents}
.story-sticky{position:relative;display:block;padding:0 clamp(1rem,5vw,4rem)}
html.anim:not(.narrow) .story-sticky{position:sticky;top:0;height:100vh;display:grid;place-items:center;gap:0;padding:90px clamp(1rem,5vw,4rem) 40px}
.step{width:min(720px,100%);padding:clamp(1.6rem,3.5vw,2.8rem)}
html.anim:not(.narrow) .step{grid-area:1/1;opacity:0;visibility:hidden}
html.anim:not(.narrow) .step:first-of-type{opacity:1;visibility:visible}
.step p{margin:0 0 1rem;color:var(--muted)}
.step p:last-child{margin-bottom:0}
.kicker{font-family:var(--font-display);font-size:0.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin:0 0 1.1rem}
.lead,.statement{font-family:var(--font-body);font-size:1.375rem;line-height:1.22;color:var(--ink)!important}
.quiet{font-size:0.875rem;color:var(--soft)!important}
.profile-links{display:flex;flex-wrap:wrap;gap:1.2rem;margin-top:1.5rem}
.link-arrow{color:var(--accent);text-decoration:none;font-size:0.875rem;border-bottom:1px solid color-mix(in oklab,var(--accent) 40%,transparent)}
.story-rail{display:none;position:absolute;inset-inline-end:clamp(1rem,3vw,2.5rem);top:50%;transform:translateY(-50%);list-style:none;margin:0;padding:0;display:grid;gap:12px}
.story-rail li{width:8px;height:8px;border-radius:50%;background:var(--line);border:1px solid var(--soft);transition:background .3s,transform .3s}
.story-rail li.is-active{background:var(--accent);border-color:var(--accent);transform:scale(1.4)}

/* sections */
.section{position:relative;max-width:1180px;margin:0 auto;height:100vh;height:100dvh;overflow:hidden;padding:clamp(84px,10vh,104px) clamp(1.2rem,4vw,3rem) clamp(1rem,3vh,2rem);display:flex;flex-direction:column;scroll-snap-align:start}
.dev{justify-content:center}
/* section titles are small, bold capitals so the content of each page fits on screen */
.section-head{max-width:720px;margin-bottom:clamp(1rem,3vh,1.8rem)}
.section-head h2,.connect h2,.view-title{font-family:var(--font-display);font-weight:700;font-size:0.9375rem;letter-spacing:.18em;text-transform:uppercase;line-height:1.2;margin:0 0 .6rem;background:linear-gradient(90deg,var(--accent),var(--accent2));-webkit-background-clip:text;background-clip:text;color:transparent;width:fit-content}
html[dir=rtl] .section-head h2,html[dir=rtl] .connect h2,html[dir=rtl] .view-title{letter-spacing:0}
.section-sub{color:var(--muted);margin:0}

/* segmented control */
.seg{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:5px;border-radius:999px;margin:0;position:relative}
.seg-btn{position:relative;z-index:1;border:0;background:none;padding:.65rem 1.3rem;border-radius:999px;font-weight:700;font-size:0.875rem;color:var(--muted);transition:color .3s;white-space:nowrap}
.seg-btn.is-active{color:var(--on-accent)}
.seg-pill{position:absolute;top:5px;bottom:5px;left:5px;width:calc((100% - 10px)/3);border-radius:999px;background:linear-gradient(135deg,var(--accent),color-mix(in oklab,var(--accent) 55%,var(--accent2)));transition:transform .5s var(--ease)}
.seg[data-active=timeline] .seg-pill{transform:translateX(100%)}
.seg[data-active=list] .seg-pill{transform:translateX(200%)}
html[dir=rtl] .seg-pill{left:auto;right:5px}
html[dir=rtl] .seg[data-active=timeline] .seg-pill{transform:translateX(-100%)}
html[dir=rtl] .seg[data-active=list] .seg-pill{transform:translateX(-200%)}

/* timeline map */
.map{flex:1;min-height:300px;overflow:hidden;touch-action:none;cursor:grab;padding:0}
.map.dragging{cursor:grabbing}
#mapSvg{width:100%;height:100%;display:block;direction:ltr}
.map-tools{position:absolute;top:14px;inset-inline-end:14px;display:flex;gap:.35rem;z-index:2}
.map-hint{position:absolute;bottom:10px;left:16px;margin:0;font-size:0.75rem;color:var(--soft);pointer-events:none}
.m-axis{stroke:var(--line);stroke-width:1}
.m-spine{stroke:url(#spineGrad);stroke-width:2}
.m-tick text,.m-month{fill:var(--soft);font-size:calc(0.75rem*var(--ms,1));letter-spacing:.12em;text-transform:uppercase;font-family:var(--font-display)}
.m-day{fill:var(--soft);font-size:calc(0.75rem*var(--ms,1));font-family:var(--font-display)}
.m-stem{fill:none;stroke-width:1;opacity:.45}
.m-link{fill:none;stroke:var(--accent3);stroke-width:1.2;stroke-dasharray:4 4;opacity:.8}
.m-node{cursor:pointer;outline:none}
.m-node circle.core{transition:r .25s}
.m-node .halo{opacity:.18;transition:opacity .3s}
.m-node:hover .halo,.m-node:focus .halo,.m-node.is-sel .halo{opacity:.55}
.m-node text{fill:var(--ink);font-size:0.75rem;font-family:var(--font-body);pointer-events:none;paint-order:stroke;stroke:var(--bg);stroke-width:3px;stroke-linejoin:round}
.m-node .lbl{transition:opacity .3s}
.map-card{position:absolute;z-index:3;inset-inline-start:16px;top:16px;width:min(360px,calc(100% - 32px));padding:1.2rem 1.3rem;border-radius:18px;cursor:auto}
.map-card h3{font-family:var(--font-display);font-weight:800;font-size:1.0938rem;line-height:1.15;margin:.4rem 0 .6rem}
.map-card p{margin:0 0 .9rem;font-size:0.875rem;color:var(--muted)}
.map-card .close{position:absolute;top:10px;inset-inline-end:10px;height:30px;min-width:30px}
.meta{font-size:0.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--soft)}
.legend{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem 1.3rem;padding:0;margin:1rem 0 0;font-size:0.75rem;color:var(--muted)}
.legend li{display:flex;align-items:center;gap:.45rem}
.lg{width:10px;height:10px;border-radius:50%;display:inline-block}
.lg-ai{background:#a98bff}.lg-knowledge{background:#7fe3ff}.lg-cognition{background:#ff9ad5}.lg-systems{background:#ffd27f}
.lg-sup{border:1.5px dashed var(--accent3);width:12px;height:12px}

/* paper cards */
.filters{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1.4rem}
.chip{border:1px solid var(--glass-line);background:var(--glass);border-radius:999px;padding:.45rem .95rem;font-size:0.875rem;color:var(--muted);transition:all .3s}
.chip:hover{color:var(--ink)}
.chip.is-active{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.papers{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;perspective:1200px}
.paper{display:flex;flex-direction:column;padding:1.4rem 1.4rem 1.2rem;transform-style:preserve-3d;transition:transform .5s var(--ease),border-color .3s,opacity .4s;min-height:260px}
.paper:hover{border-color:color-mix(in oklab,var(--accent) 50%,var(--glass-line))}
.paper.is-hidden{display:none}
.paper .meta{display:flex;justify-content:space-between;gap:.5rem;margin-bottom:.8rem}
.paper h3{font-family:var(--font-display);font-weight:800;font-size:1.075rem;line-height:1.14;margin:0 0 .7rem}
.paper h3 a{text-decoration:none}
.paper h3 a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.paper p{font-size:0.875rem;color:var(--muted);margin:0 0 1rem}
.paper .tags{display:flex;flex-wrap:wrap;gap:.3rem;margin:auto 0 .8rem;padding:0;list-style:none}
.paper .tags li{font-size:0.75rem;padding:.12rem .55rem;border-radius:999px;border:1px solid var(--line);color:var(--soft)}
.paper .foot{display:flex;justify-content:space-between;align-items:center;font-size:0.75rem;color:var(--soft);border-top:1px solid var(--line);padding-top:.8rem;gap:.5rem}
.paper .foot .go{color:var(--accent);font-weight:400;white-space:nowrap}
.paper details{position:relative;z-index:2;margin:0 0 1rem;font-size:0.875rem;color:var(--muted)}
.paper summary{cursor:pointer;color:var(--accent);font-size:0.75rem}
.paper details p{margin:.6rem 0 0;font-size:0.875rem}
.paper.is-sup{border-style:dashed}
.badge{font-size:0.75rem;letter-spacing:.1em;text-transform:uppercase;padding:.15rem .5rem;border-radius:999px;border:1px solid currentColor}

/* wheel */
.dev-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
.wheel-box{position:relative;width:min(460px,100%);aspect-ratio:1;margin-inline:auto}
.wheel{width:100%;height:100%;display:block;filter:drop-shadow(0 30px 60px rgba(0,0,0,.35))}
.wheel .seg-path{stroke:var(--glass-line);stroke-width:.6}
.wheel text{font-family:var(--font-display);font-size:11px;fill:var(--ink)}
.wheel .rim{fill:none;stroke:var(--glass-line);stroke-width:1.2}
.wheel .peg{fill:var(--ink);opacity:.6}
.wheel-pointer{position:absolute;top:-8px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:26px solid var(--accent);filter:drop-shadow(0 4px 10px var(--accent));z-index:2}
.wheel-hub{position:absolute;left:50%;top:50%;width:26%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;border:1px solid var(--glass-line);background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.35),transparent 60%),linear-gradient(135deg,var(--accent),color-mix(in oklab,var(--accent) 50%,var(--accent3)));color:var(--on-accent);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:0.875rem;box-shadow:0 10px 30px -8px var(--accent);transition:transform .2s}
.wheel-hub:hover{transform:translate(-50%,-50%) scale(1.05)}
.wheel-hub:disabled{opacity:.8;cursor:progress}
.result{padding:clamp(1.5rem,3vw,2.4rem);min-height:280px}
.result h3{font-family:var(--font-display);font-weight:800;font-size:1.375rem;line-height:1.15;margin:.7rem 0 1.1rem}
.result-empty p:last-child{color:var(--muted);margin:0}
.status{display:inline-flex;align-items:center;gap:.45rem;font-size:0.75rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;padding:.3rem .75rem;border-radius:999px}
.status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
.s-writing{color:#7fe3ff;background:rgba(127,227,255,.12)}
.s-committed{color:#c6b3ff;background:rgba(198,179,255,.14)}
.s-exploring{color:#ffd27f;background:rgba(255,210,127,.13)}
html[data-theme=light] .s-writing{color:#076a8c}
html[data-theme=light] .s-committed{color:#5b3fc4}
html[data-theme=light] .s-exploring{color:#8a5a00}
.notify label{display:block;font-size:0.875rem;color:var(--muted);margin-bottom:.5rem}
.notify-row{display:flex;gap:.5rem}
.notify input{flex:1;min-width:0;padding:.75rem 1rem;border-radius:999px;border:1px solid var(--glass-line);background:var(--glass-solid);color:var(--ink)}
.notify input::placeholder{color:var(--soft)}
.notify-msg{min-height:1.4em;margin:.6rem 0 0;font-size:0.75rem;color:var(--soft)}
.link-quiet{display:inline-block;margin:.9rem 0 0;padding:0;background:none;border:0;font-size:0.75rem;color:var(--soft);text-decoration:underline;text-decoration-color:color-mix(in oklab,var(--soft) 45%,transparent);text-underline-offset:3px;cursor:pointer}
.link-quiet:hover{color:var(--ink)}
.dev-list{list-style:none;padding:0;margin:.7rem 0 0;display:grid;gap:.4rem}
.dev-list li{display:flex;justify-content:space-between;gap:.8rem;align-items:center;border-top:1px solid var(--line);padding-top:.4rem;font-size:0.75rem;line-height:1.35;color:var(--muted)}
.dev-list .status{font-size:0.75rem;padding:.2rem .55rem;flex:none}

/* connect */
.connect{padding-bottom:1.6rem}
.connect-main{flex:1;display:flex;flex-direction:column;justify-content:center}
.to-top{align-self:center;display:inline-flex;align-items:center;gap:.45rem;margin-top:1.1rem;padding:.6rem 1.3rem;border-radius:999px;border:1px solid color-mix(in oklab,var(--accent) 55%,transparent);background:color-mix(in oklab,var(--accent) 16%,transparent);color:var(--ink);font-size:0.875rem;font-weight:700;box-shadow:0 0 24px -6px var(--accent);text-decoration:none;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:color .3s,transform .3s var(--ease)}
.to-top:hover{color:var(--ink);transform:translateY(-2px)}
.connect-card{padding:clamp(1.8rem,4vw,3.2rem);text-align:center}
.connect-card h2{margin-inline:auto}
.email{display:inline-block;font-family:var(--font-display);font-weight:700;font-size:1rem;letter-spacing:.01em;text-decoration:none;margin:.4rem 0 1.6rem;background:linear-gradient(90deg,var(--accent),var(--accent2));-webkit-background-clip:text;background-clip:text;color:transparent;word-break:break-word}
.connect-links{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center}
.footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-top:1.2rem;font-size:0.75rem;color:var(--soft)}
.motion-toggle{background:none;border:1px solid var(--line);border-radius:999px;padding:.35rem .9rem;color:var(--soft);font-size:0.75rem}

/* reveal initial state (only when js+gsap run) */
html.anim .reveal,html.anim .paper{opacity:0}
html.anim .hero-fade,html.anim .hero-name{opacity:0}

/* container responsive */
@container site (max-width:1020px){
  .papers{grid-template-columns:repeat(2,1fr)}
  .nav-links{display:none}
  .toggles{margin-inline-start:auto}
}
@container site (max-width:760px){
  .hero{align-items:flex-end;padding-top:38vh;padding-bottom:5rem;min-height:100svh}
  .hero-inner{max-width:100%}
  .hero-name{font-size:1.625rem}
  .headline{font-size:1.125rem}
  .subhead{font-size:0.875rem}
  .stats li{font-size:0.75rem;padding:.3rem .65rem}
  .dev-wrap{grid-template-columns:1fr}
  .papers{grid-template-columns:1fr}
  .paper{min-height:0}
  .story{height:auto}
  .story-sticky{position:relative;height:auto;display:block;padding:0 1.1rem}
  .step-slot{padding:84px 0 20px}
  .step{grid-area:auto;opacity:1;visibility:visible}
  .story-rail{display:none}
  .map-card{inset:auto 10px 10px 10px;width:auto;top:auto}
  .map-hint{display:none}
  .brand{font-size:0.875rem}
  .nav{padding-inline-start:.9rem}
  .seg{display:grid;width:100%}
  .seg-btn{padding:.5rem .4rem;font-size:0.75rem;white-space:normal;line-height:1.15;text-align:center}
  .step{padding:1.35rem 1.3rem}
  .step p:not(.lead):not(.statement){font-size:0.875rem;line-height:1.6;margin-bottom:.8rem}
  .lead,.statement{font-size:1.1875rem}
  .footer{justify-content:center;text-align:center}
}
@container site (max-width:420px){
  .tog#viewToggle span{display:none}
  .tog-select{max-width:96px;font-size:0.75rem}
  .notify-row{flex-direction:column}
}
@media (max-height:720px) and (min-width:761px){
  .story-sticky{padding-top:80px}
  .step p{font-size:0.875rem;margin-bottom:.7rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
}
html.paused .glows span,html.paused .period,html.paused .scroll-cue svg{animation-play-state:paused}

/* quotes, ids, card extras */
blockquote.q{margin:0 0 1rem;padding:0 0 0 .9rem;border-inline-start:2px solid var(--accent3)}
html[dir=rtl] blockquote.q{padding:0 .9rem 0 0}
blockquote.q p{font-family:var(--font-body);font-style:italic;font-size:0.9375rem;line-height:1.35;color:var(--ink);margin:0}
blockquote.q cite{display:block;font-style:normal;font-size:0.75rem;color:var(--soft);margin-top:.35rem;letter-spacing:.08em}
blockquote.q-lg{border:0;padding:0;margin:0 0 1rem}
blockquote.q-lg p{font-size:1.25rem;line-height:1.25;background:linear-gradient(90deg,var(--ink),color-mix(in oklab,var(--ink) 60%,var(--accent3)));-webkit-background-clip:text;background-clip:text;color:transparent}
.map-card{max-height:calc(100% - 32px);overflow:auto}
.map-card h3{font-size:0.9062rem;margin:.2rem 0 .6rem}
.map-card .parent{font-size:0.75rem}
.ids{display:grid;grid-template-columns:auto 1fr;gap:.2rem .8rem;margin:0 0 .9rem;font-size:0.75rem}
.ids div{display:contents}
.ids dt{color:var(--soft);font-size:0.75rem;letter-spacing:.1em;padding-top:.15rem}
.ids dd{margin:0}
.ids a{color:var(--accent)}
.btn-sm{padding:.6rem 1.1rem;font-size:0.875rem}
details.abs{margin:0 0 1rem;font-size:0.875rem;color:var(--muted)}
details.abs summary{cursor:pointer;color:var(--accent);font-size:0.75rem}
details.abs p{margin:.5rem 0 0;font-size:0.875rem;max-height:16em;overflow:auto}
.paper{position:relative}
.paper::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(400px circle at var(--mx,50%) var(--my,0%),rgba(255,255,255,.08),transparent 45%);opacity:0;transition:opacity .4s}
.paper:hover::after{opacity:1}
.pending-tr{opacity:.92}

html[dir=rtl] .hero-name{text-align:right}
html[dir=rtl] .pending-tr{text-align:right}
@container site (min-width:421px) and (max-width:760px){ .brand span{display:inline} }
html.anim:not(.narrow) .story-rail{display:grid}

/* paper network stage. the canvas behind renders the nodes, this layer handles picking, tooltip, line and card */
.net-stage.is-hot{cursor:pointer}
.net-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.net-line path{fill:none}
#netPath{stroke:var(--accent2);stroke-width:1.2;stroke-dasharray:1;stroke-dashoffset:1;opacity:.5}
#netPath.draw{transition:stroke-dashoffset .7s cubic-bezier(.6,.1,.2,1)}
#netPath.on{stroke-dashoffset:0}
#netFlow{stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-dasharray:.34 1.4;stroke-dashoffset:.34;opacity:0;filter:drop-shadow(0 0 5px var(--accent2))}
#netFlow.on{opacity:.95;animation:netflow 2.2s .75s linear infinite}
html[data-theme=light] #netFlow{stroke:var(--accent)}
@keyframes netflow{from{stroke-dashoffset:.34}to{stroke-dashoffset:-1}}
.net-line circle{fill:var(--accent2);opacity:0;filter:drop-shadow(0 0 6px var(--accent2))}
.net-line circle.on{opacity:1}
.net-tip{position:absolute;left:0;top:0;pointer-events:none;padding:.45rem .8rem;border-radius:12px;font-size:0.75rem;max-width:280px;line-height:1.3;transform:translate(-50%,calc(-100% - 18px));white-space:normal;z-index:3}
.net-tip small{display:block;color:var(--soft);font-size:0.75rem;letter-spacing:.08em;text-transform:uppercase;margin-top:.15rem}
.net-card{position:absolute;inset-inline-end:clamp(1rem,3vw,2.5rem);top:1rem;width:min(400px,calc(100% - 2rem));overflow:auto;padding:1.4rem 1.5rem 0;border-radius:20px;z-index:4;cursor:auto;overscroll-behavior:contain}
.net-card h3{font-family:var(--font-display);font-weight:800;font-size:0.9375rem;line-height:1.2;margin:.2rem 0 .6rem}
.net-card .close{position:absolute;top:10px;inset-inline-end:10px;height:30px;min-width:30px}
.net-card p{font-size:0.875rem;color:var(--muted);margin:0 0 .8rem}
.net-card.enter{animation:cardIn .55s .35s both cubic-bezier(.2,.7,.1,1)}
@keyframes cardIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
.card-foot{position:sticky;bottom:0;z-index:2;margin:0 -1.5rem;padding:.7rem 1.5rem 1.2rem;background:linear-gradient(to bottom,transparent,color-mix(in oklab,var(--bg2) 88%,transparent) 32%)}
.map-card{padding-bottom:0}
.map-card .card-foot{margin:0 -1.3rem;padding:.7rem 1.3rem 1.1rem}
.net-keys:focus-within{position:absolute!important;width:auto;height:auto;clip:auto;left:1rem;top:1rem;z-index:5;list-style:none;padding:.6rem;margin:0;background:var(--glass-strong);border-radius:12px;max-height:60%;overflow:auto}
.net-keys button{background:none;border:0;color:var(--ink);text-align:start;padding:.2rem .3rem;font-size:0.75rem}
.net-card blockquote.q-lg{padding-inline-end:1.6rem}
.net-hint-li{flex-basis:100%}
.net-hint{font-size:0.75rem;color:var(--soft)}
@container site (min-width:1021px){ .net-hint-li{flex-basis:auto;margin-inline-end:auto} }

@container site (max-width:760px){
  .net-card{inset-inline:.75rem;width:auto;padding:1.1rem 1.15rem 0}
  .card-foot{margin:0 -1.15rem;padding:.6rem 1.15rem 1rem}
  .net-card.enter{animation-name:cardInM}
  .net-tip{max-width:220px}
  .legend{gap:.25rem .8rem;font-size:0.75rem;margin-top:.5rem}
  .net-hint{font-size:0.75rem}
}
  .net-tip{max-width:220px}
  .legend{gap:.25rem .8rem;font-size:0.75rem;margin-top:.5rem}
  .net-hint{font-size:0.75rem}
@keyframes cardInM{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){ #netPath.draw{transition:none} #netFlow.on{animation:none;opacity:0} }

/* frameworks as quiet labels inside How I work */
.fw-label{margin:1.3rem 0 .5rem!important;font-size:0.75rem;letter-spacing:.16em;text-transform:uppercase;color:var(--soft)!important}
.fw-list{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem;margin:0;padding:0}
.fw-list li{font-size:0.75rem;letter-spacing:.06em;text-transform:uppercase;padding:.24rem .65rem;border-radius:8px;background:rgba(255,255,255,.06);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:var(--muted)}
html[data-theme=light] .fw-list li{background:rgba(255,255,255,.4)}

/* ---------- Published work hub ---------- */
.work{justify-content:center}
.hub{display:flex;flex-direction:column;align-items:center;text-align:center;transition:opacity .45s var(--ease),transform .45s var(--ease)}
.hub .section-head{display:flex;flex-direction:column;align-items:center;margin-bottom:clamp(1.6rem,5vh,2.8rem)}
.hub .section-head h2{font-size:1.0625rem}
.hub-options{display:grid;grid-template-columns:repeat(3,minmax(0,220px));gap:clamp(.8rem,2vw,1.4rem);justify-content:center;width:100%}
.hub-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.9rem;min-height:clamp(130px,20vh,180px);padding:1.2rem;color:var(--ink);font-size:0.875rem;font-weight:700;border-radius:22px;transition:transform .4s var(--ease),border-color .3s,box-shadow .3s}
.hub-btn svg{width:42px;height:42px;fill:none;stroke:var(--accent2);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 8px color-mix(in oklab,var(--accent2) 60%,transparent))}
.hub-btn:hover,.hub-btn:focus-visible{transform:translateY(-4px);border-color:color-mix(in oklab,var(--accent) 60%,var(--glass-line));box-shadow:var(--shadow),0 0 40px -10px var(--accent)}
html[data-vopen] .hub{opacity:0;transform:scale(.97);pointer-events:none;visibility:hidden;transition:opacity .35s,transform .35s,visibility 0s .35s}

/* ---------- full screen views ---------- */
.view{position:fixed;left:0;right:0;top:var(--vt,80px);bottom:0;z-index:15;display:flex;flex-direction:column;padding:0 clamp(.8rem,2.5vw,2.2rem) clamp(.6rem,1.6vh,1rem);container:view/inline-size}
.view > *{width:min(1320px,100%);margin-inline:auto}
html[data-view=mobile] .view{left:50%;right:auto;width:400px;transform:translateX(-50%)}
.view-bar{display:flex;align-items:center;gap:.8rem;flex:none;height:46px;margin-bottom:.5rem}
.view-back{height:38px;padding:0 .95rem 0 .75rem;gap:.45rem;font-weight:700}
.view-back span:first-child{font-size:0.875rem;line-height:1}
html[dir=rtl] .view-back span:first-child{transform:scaleX(-1)}
.view-title{margin:0 0 0 .3rem}
.view-switch{display:flex;gap:.35rem;margin-inline-start:auto}
.view-switch .tog{width:38px;height:38px;padding:0}
.view .net-stage{position:relative;flex:1;min-height:0;cursor:crosshair;touch-action:none}
.view .map{flex:1;min-height:0}
.view .legend{flex:none;margin:.55rem 0 0}
#view-timeline,#view-list{background:linear-gradient(to bottom,transparent,color-mix(in oklab,var(--bg) 35%,transparent) 30%)}
.list-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem 1.2rem;flex:none;margin-bottom:.8rem}
.list-top .filters{margin:0}
.see-dev{margin:0;color:var(--accent)}
.papers-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 4px 1rem;margin-inline:auto;scrollbar-width:thin;mask-image:linear-gradient(to bottom,transparent,#000 12px,#000 calc(100% - 24px),transparent)}
.papers-scroll::-webkit-scrollbar{display:block;width:6px}
.papers-scroll::-webkit-scrollbar-thumb{background:var(--glass-line);border-radius:6px}
html.anim .view .paper{opacity:1}
/* backwards fill, so no transform is left on the view once it has arrived. a leftover transform stops the cards inside from blurring what is behind them */
.view.v-in{animation:viewIn .55s var(--ease) backwards}
@keyframes viewIn{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
html[data-view=mobile] .view.v-in{animation-name:viewInM}
@keyframes viewInM{from{opacity:0;transform:translate(-50%,18px)}to{opacity:1;transform:translateX(-50%)}}
@container view (max-width:760px){
  .view-bar{gap:.5rem;height:42px}
  .view-title{font-size:0.875rem;letter-spacing:.12em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .view-back{height:36px;padding:0 .8rem 0 .6rem}
  .view-switch .tog{width:36px;height:36px}
  .list-top{gap:.5rem}
  .list-top .filters{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:2px;scrollbar-width:none}
  .list-top .filters .chip{flex:none}
  .papers{grid-template-columns:1fr}
  .map-card{inset:auto 8px 8px 8px;width:auto;top:auto}
  .map-hint{display:none}
}
@container view (min-width:761px) and (max-width:1020px){ .papers{grid-template-columns:repeat(2,1fr)} }

/* ---------- pages that must fit one screen ---------- */
.dev .section-head{margin-bottom:clamp(.8rem,2.5vh,1.6rem)}
.dev-wrap{align-items:center}
.wheel-box{width:min(440px,100%,calc(100dvh - 300px))}
.dev-list{max-height:min(30vh,210px);overflow:auto;overscroll-behavior:contain;padding-inline-end:4px;scrollbar-width:thin}
.result .link-quiet{margin-top:.5rem}
.connect{justify-content:center}
.connect .footer{margin-top:1.2rem}
@container site (max-width:760px){
  .hero{padding-top:34vh;padding-bottom:3.6rem}
  .section{padding:82px 1.1rem 1rem}
  .hub-options{grid-template-columns:1fr;max-width:340px}
  .hub-btn{flex-direction:row;justify-content:flex-start;min-height:0;padding:1rem 1.2rem;gap:1rem}
  .hub-btn svg{width:32px;height:32px}
  .step-slot{padding:80px 0 16px}
  .step{max-height:calc(100dvh - 100px);overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
  .dev .section-sub{font-size:0.875rem;line-height:1.5}
  .dev-wrap{gap:.9rem;align-content:start}
  .wheel-box{width:min(64vw,calc(100dvh - 560px),300px);min-width:180px}
  .result{min-height:0;padding:1.1rem 1.2rem}
  .result h3{font-size:1.1875rem;margin:.5rem 0 .7rem}
  .notify label{font-size:0.75rem;margin-bottom:.35rem}
  .notify input{padding:.6rem .9rem}
  .notify .btn{padding:.6rem 1rem}
  .notify-msg{min-height:0;margin:.3rem 0 0}
  .dev-list{max-height:min(22dvh,170px)}
  .connect-card{padding:1.6rem 1.2rem}
}
@container site (max-width:420px){ .notify-row{flex-direction:row} }

/* ---------- real glass for every content card and panel ---------- */
html[data-theme=dark]{
  --cg-fill:linear-gradient(135deg,rgba(255,255,255,.13) 0%,rgba(255,255,255,.06) 38%,rgba(255,255,255,.04) 62%,rgba(255,255,255,.09) 100%);
  --cg-line:rgba(255,255,255,.16);
  --cg-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(255,255,255,.04),0 24px 60px -24px rgba(0,0,0,.6);
  --cg-text-shadow:0 1px 2px rgba(5,4,12,.55);
}
html[data-theme=light]{
  --cg-fill:linear-gradient(135deg,rgba(255,255,255,.42) 0%,rgba(255,255,255,.26) 38%,rgba(255,255,255,.22) 62%,rgba(255,255,255,.34) 100%);
  --cg-line:rgba(255,255,255,.6);
  --cg-shadow:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -1px 0 rgba(255,255,255,.25),0 22px 50px -26px rgba(60,40,110,.35);
  --cg-text-shadow:0 1px 1px rgba(255,255,255,.55);
}
:is(.step,.connect-card,.result,.net-card,.map-card,.paper,.hub-btn,.map){
  background:var(--cg-fill);
  border:1px solid var(--cg-line);
  box-shadow:var(--cg-shadow);
  backdrop-filter:blur(7px) saturate(170%);
  -webkit-backdrop-filter:blur(7px) saturate(170%);
}
:is(.step,.connect-card,.result,.net-card,.map-card,.paper,.hub-btn)::before{opacity:.55}
:is(.step,.connect-card,.result,.net-card,.map-card,.paper) :is(p,h3,dd,dt,li,label,.meta,.kicker,blockquote){text-shadow:var(--cg-text-shadow)}
.paper.is-sup{border-style:dashed}
/* the sticky button strip inside a card stays readable without hiding the glass */
.card-foot{background:linear-gradient(to bottom,transparent,color-mix(in oklab,var(--bg2) 55%,transparent) 40%)}
.q-lg p,.q-lg cite{text-shadow:none}


/* ---------- mobile alignment pass (iPhone Safari) ---------- */
/* phones always get the mobile layout, so the view toggle is not offered there */
html.small-screen #viewToggle{display:none}

/* the timeline card lives beside the map panel, not inside it, so its own glass can blur what is behind it on Safari */
.map-wrap{position:relative;display:flex;flex-direction:column}
.view .map-wrap{flex:1;min-height:0}
.view .map-wrap > .map{flex:1;min-height:0}
.map-wrap > .map-card{inset-inline-start:16px;top:16px}

/* cards are a frame with a fixed close button and a scrolling body */
.net-card,.map-card{display:flex;flex-direction:column;overflow:hidden;padding:0}
.card-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:1.4rem 1.5rem 0;scrollbar-width:thin}
.map-card .card-body{padding:1.2rem 1.3rem 0}
.net-card .close,.map-card .close{z-index:3}
.map-card{max-height:calc(100% - 32px)}

/* iOS safe areas. nothing sits under the home indicator or the toolbar */
.nav{top:max(12px,env(safe-area-inset-top))}
.view{padding-bottom:max(clamp(.6rem,1.6vh,1rem),env(safe-area-inset-bottom));padding-left:max(clamp(.8rem,2.5vw,2.2rem),env(safe-area-inset-left));padding-right:max(clamp(.8rem,2.5vw,2.2rem),env(safe-area-inset-right))}
.section{padding-bottom:max(clamp(1rem,3vh,2rem),env(safe-area-inset-bottom))}

@container site (max-width:760px){
  /* hero. the brain takes the band above the name, the text block hugs the bottom */
  .hero{padding-top:0;padding-bottom:calc(1.5rem + env(safe-area-inset-bottom));min-height:0}
}
@media (max-width:760px) and (max-height:760px){
  .hero-name{font-size:1.625rem;margin-bottom:1rem}
  .headline{font-size:1.125rem;margin-bottom:.45rem}
  .subhead{font-size:0.875rem;margin-bottom:.9rem}
  .stats{margin-bottom:1.1rem;gap:.35rem}
  .btn{padding:.7rem 1.15rem}
}

@container view (max-width:760px){
  /* bottom sheet cards. the legend steps aside while a card is open */
  .view:has(.net-card:not([hidden])) .legend,.view:has(.map-card:not([hidden])) .legend{display:none}
  .net-card.sheet{inset-inline:0;width:auto;border-radius:22px}
  .net-card .card-body{padding:1.1rem 1.15rem 0}
  .map-wrap > .map-card{inset:auto 0 0 0;top:auto;width:auto;max-height:72%;border-radius:22px}
  .map-card .card-body{padding:1.1rem 1.15rem 0}
  .card-foot,.map-card .card-foot{position:static;margin:.4rem 0 0;padding:.2rem 0 1.1rem;background:none}
  .net-card .close,.map-card .close{top:10px;inset-inline-end:10px;width:38px;height:38px;min-width:38px;font-size:0.9062rem}
  .net-card blockquote.q-lg,.map-card blockquote.q-lg{padding-inline-end:2.6rem}
  /* zoom controls step aside while a timeline card is open */
  .map-wrap:has(> .map-card:not([hidden])) .map-tools{display:none}
  /* slightly stronger glass so nodes behind never compete with the text */
  .net-card,.map-card{backdrop-filter:blur(26px) saturate(1.5);-webkit-backdrop-filter:blur(26px) saturate(1.5);
    background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.14)),color-mix(in oklab,var(--bg) 34%,transparent)}
  html[data-theme=light] .net-card,html[data-theme=light] .map-card{background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.5))}
}
@container site (max-width:760px){
  /* the wheel result card keeps to the column, long titles wrap inside it */
  .dev-wrap{grid-template-columns:minmax(0,1fr)}
  .result{min-width:0}
}
@container view (max-width:420px){
  /* long view titles wrap onto two short lines rather than being cut */
  .view-title{white-space:normal;overflow:visible;text-overflow:clip;font-size:0.75rem;letter-spacing:.08em;line-height:1.15}
}
@container view (max-width:760px){
  /* while a timeline card is open the timeline behind it steps back, so its nodes never sit under the text */
  .map-wrap:has(> .map-card:not([hidden])) #mapSvg{opacity:.22;filter:blur(1.5px);transition:opacity .3s}
  .map-wrap > .map-card{background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.14)),color-mix(in oklab,var(--bg) 34%,transparent)}
  html[data-theme=light] .map-wrap > .map-card{background:linear-gradient(135deg,rgba(255,255,255,.66),rgba(255,255,255,.54))}
}
.card-body.has-more{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 40px),transparent)}
/* the timeline card sits over dense labels, so it gets the stronger glass at every size */
.map-wrap > .map-card{backdrop-filter:blur(22px) saturate(1.5);-webkit-backdrop-filter:blur(22px) saturate(1.5);background:linear-gradient(135deg,rgba(255,255,255,.17),rgba(255,255,255,.13)),color-mix(in oklab,var(--bg) 30%,transparent)}
html[data-theme=light] .map-wrap > .map-card{background:linear-gradient(135deg,rgba(255,255,255,.64),rgba(255,255,255,.52))}
@container view (max-width:760px){ .map-wrap:has(> .map-card:not([hidden])) #mapSvg{opacity:.4;filter:none} }

/* 27 Oct 2026. hero label above the two paper buttons, and the plain paper list kept in the HTML for search and AI crawlers */
.hero-label{flex:0 0 100%;margin:0 0 .15rem;font-size:0.75rem;letter-spacing:.16em;text-transform:uppercase;color:var(--soft)}
html[dir=rtl] .hero-label{letter-spacing:0}
.papers-plain{margin:1.1rem auto 0;max-width:640px;text-align:left;font-size:0.75rem;color:var(--muted)}
.papers-plain summary{cursor:pointer;text-align:center;font-size:0.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--soft);padding:.4rem}
.papers-plain ol{max-height:28vh;overflow:auto;margin:.6rem 0 0;padding:0 1rem 0 1.4rem;line-height:1.5}
.papers-plain li{margin:0 0 .45rem}
.papers-plain a{color:var(--ink)}
/* card link to the paper page, and two buttons in the card foot */
.q-more{margin:-.4rem 0 .9rem;font-size:0.75rem}
.q-more a{color:var(--accent);text-decoration:none;font-weight:400}
.q-more a:hover{text-decoration:underline}
.card-foot{display:flex;flex-wrap:wrap;gap:.5rem}
.paper .q-more{margin:-.6rem 0 .8rem}

/* typography: Georgia-like serif everywhere, regular 400 and bold 700 only */
html:lang(zh-CN){--font-body:'PT Serif',Georgia,'Gelasio','Noto Serif CJK SC','Source Han Serif SC','Songti SC','STSong','SimSun','Noto Sans CJK SC',serif;--font-display:'Cooper Hewitt','Gelasio',Georgia,'Noto Sans CJK SC','PingFang SC','Microsoft YaHei','Noto Serif CJK SC',sans-serif}
html:lang(zh-HK){--font-body:'PT Serif',Georgia,'Gelasio','Noto Serif CJK HK','Noto Serif CJK TC','Source Han Serif TC','Songti TC','PMingLiU','MingLiU','Noto Sans CJK HK',serif;--font-display:'Cooper Hewitt','Gelasio',Georgia,'Noto Sans CJK HK','Noto Sans CJK TC','PingFang HK','Microsoft JhengHei','Noto Serif CJK HK',sans-serif}
html[dir=rtl] .hero-name,html[dir=rtl] .headline{letter-spacing:0}

/* typography: Cooper Hewitt (Heavy 800 for headings, Bold 700 / Semibold 600 for small UI) and PT Serif (400, 400 italic, 700) for reading text */
.brand,.btn,.seg-btn,.hub-btn,.to-top,.view-back,.status,.pp-nv span,.nav-links a,.chip,.paper .tags li,.paper .foot .go,.q-more a,.pp-card-foot a,.lang-select,select,button{font-family:var(--font-display)}
.nav-links a,.chip,.paper .tags li,.paper .foot .go,.q-more a,.pp-card-foot a,.lang-select,select{font-weight:600}
.m-node text{font-family:var(--font-display);font-weight:600}
.wheel text{font-weight:600}
.pp-sub,.pp-quote p.pp-sub{font-family:var(--font-display)}
/* small labels use Cooper Hewitt Semibold, small running text is 13px PT Serif */
.badge,.dev-list .status,.glass-chip,.ids dt,.legend,.link-quiet,.map-card .parent,.map-hint,.meta,.motion-toggle,.net-hint,.net-keys button,.net-tip small,.paper .foot,.paper .tags li,.paper summary,.pp .tags li,.pp-crumb,.pp-d,.pp-meta,.pp-minor,.pp-nv small,.hero-label,.fw-label,.q-more,.view-title,details.abs summary,.tog,.tog-select,.stats li,.pp-foot,.footer,.papers-plain summary,.pp-doi{font-family:var(--font-display);font-weight:600}
.dev-list li,.fw-list li,.ids,.net-tip,.pp-cite,.pp-src,.papers-plain,blockquote.q cite,.notify-msg{font-size:0.8125rem}

/* small UI text: Lato 400 and 700. Cooper Hewitt stays on headings, titles, kickers and the brand. */
.btn,.seg-btn,.hub-btn,.to-top,.view-back,.status,.dev-list .status,.chip,.paper .tags li,.pp .tags li,.badge,.glass-chip,.tog,.tog-select,.lang-select,select,button,.net-keys button,.paper .foot .go,.q-more a,.pp-card-foot a,.nav-links a{font-family:var(--font-ui);font-weight:700}
.nav-links a,.q-more a,.paper .foot .go,.pp-card-foot a{font-weight:400}
.m-node text,.wheel text,.m-tick text,.m-month,.m-day,.ids dt,.legend,.link-quiet,.map-card .parent,.map-hint,.meta,.motion-toggle,.net-hint,.net-tip small,.paper .foot,.paper summary,.pp-crumb,.pp-d,.pp-meta,.pp-minor,.pp-nv small,.stats li,.pp-foot,.footer,.papers-plain summary,.pp-doi,details.abs summary,.q-more{font-family:var(--font-ui);font-weight:400}
.m-node text,.pp-meta,.pp-crumb{font-weight:700}
html:lang(zh-CN){--font-ui:'Arrow Glyphs','Lato','Noto Sans CJK SC','PingFang SC','Microsoft YaHei',sans-serif}
html:lang(zh-HK){--font-ui:'Arrow Glyphs','Lato','Noto Sans CJK HK','Noto Sans CJK TC','PingFang HK','Microsoft JhengHei',sans-serif}

/* ---------- logo (Option 3): theme-switched lockups ---------- */
/* nav wordmark: flat light (dark theme) / flat dark (light theme) at every size so the thin script stays crisp */
.brand{gap:0;line-height:0}
.brand-logo{display:block;height:38px;width:auto;max-width:100%}
.hero-logo{display:block;width:min(480px,100%);height:auto;margin-inline-start:-2%}
.bl-d,.bl-l,.bl-df,.bl-lf,.hero-logo--light{display:none}
html:not([data-theme=light]) .bl-df{display:block}
html[data-theme=light] .bl-lf{display:block}
html[data-theme=light] .hero-logo--dark{display:none}
html[data-theme=light] .hero-logo--light{display:block}
.hero-name{line-height:0;font-size:0}
@media (max-width:760px){
 .brand-logo{height:34px}.hero-logo{width:min(300px,88%)}
 .bl-d,.bl-l{display:none!important}
 html:not([data-theme=light]) .bl-df{display:block!important}
 html[data-theme=light] .bl-lf{display:block!important}
}
@container site (max-width:760px){
 .brand-logo{height:34px}.hero-logo{width:min(300px,88%)}
 .bl-d,.bl-l{display:none!important}
 html:not([data-theme=light]) .bl-df{display:block!important}
 html[data-theme=light] .bl-lf{display:block!important}
}

/* ---------- narrow hero: the brain sits in a reserved slot above the logo, then the text ---------- */
.hero-brain{display:none}
@container site (max-width:760px){
  .hero{height:auto;min-height:100svh;align-items:flex-start;padding-top:calc(env(safe-area-inset-top) + 78px);padding-bottom:calc(1.5rem + env(safe-area-inset-bottom))}
  .hero-brain{display:block;width:min(330px,100%);height:min(190px,26svh);min-height:150px;margin:0 auto .2rem}
  .hero-logo{width:min(300px,88%)}
}

/* ---------- one reading style: every body/prose element is PT Serif 14px, one line-height, one colour per theme ---------- */
html[data-theme=dark]{--prose:#F5F5F7}
html[data-theme=light]{--prose:#1E0B33}
html body :is(
  .subhead,.section-sub,.step p:where(:not(.fw-label,.kicker,.lead,.statement)),.step cite,
  .paper>p:not(.pp-meta):not(.kicker),.paper details.abs,.paper details.abs p,details.abs p,.paper blockquote.q p,.paper blockquote.q cite,blockquote.q p,blockquote.q cite,
  .map-card p,.net-card p,.result-empty p:not(.kicker),.notify label,.i18n-note,
  .fw-list li,.dev-list li>span:not(.status),.hub li>a,.hub ol>li,.hub ul>li,.hub li,
  .pp-lede,.pp-parent,.pp-parent span,.pp-quote p:not(.pp-sub),.pp-abs>p,.pp-abs-text,.pp-src,.pp-cite,.pp-card blockquote.q p
){
  font-family:var(--font-body)!important;font-size:15px!important;line-height:1.7!important;font-weight:400;
  color:var(--prose)!important;letter-spacing:normal;
}
html body :is(.fw-list li){text-transform:uppercase;letter-spacing:.06em;line-height:1.35!important}
html body .pp-parent a,html body .step a.link-arrow,html body .q-more a{font-size:15px}

/* the two big intro lines keep their original sizes */
html body :is(.lead,.statement){font-family:var(--font-body)!important;font-size:22px!important;line-height:1.22!important;font-weight:400;color:var(--prose)!important}
@container site (max-width:760px){ html body :is(.lead,.statement){font-size:19px!important} }

/* ---------- section headings: Cooper Hewitt Heavy, +6px (3 steps of 2px) ---------- */
html body :is(.kicker,.pp .kicker,.fw-label){font-family:var(--font-display);font-weight:800;font-size:18px;letter-spacing:.1em;line-height:1.2;margin-bottom:1rem}
html body .fw-label{color:var(--accent)!important;margin:1.4rem 0 .6rem!important}
html body :is(.section-head h2,.connect h2,.view-title){font-weight:800;font-size:21px;letter-spacing:.1em}
html body .hub .section-head h2{font-size:23px}
html[dir=rtl] body :is(.kicker,.fw-label,.section-head h2,.connect h2,.view-title){letter-spacing:0}
@container view (max-width:760px){ html body .view-title{font-size:20px;letter-spacing:.08em} }
@container view (max-width:420px){ html body .view-title{font-size:18px;letter-spacing:.06em;line-height:1.1} .view-bar{height:auto;min-height:42px} }

/* ---------- home: no wordmark at top left, the nav pill hugs the right edge ---------- */
.nav--home .brand{display:none}
.nav--home{left:auto;right:max(12px,calc((100cqi - 1180px)/2));margin:0;width:auto;max-width:calc(100cqi - 24px);padding-inline-start:.7rem}
html[dir=rtl] .nav--home{right:auto;left:max(12px,calc((100cqi - 1180px)/2))}
.nav--home .nav-links{margin-inline-start:0}

/* ---------- nav: near-transparent fluid glass ---------- */
html[data-theme=dark]{--nav-bg:rgba(10,8,20,.18);--nav-line:rgba(255,255,255,.16);--nav-hi:rgba(255,255,255,.22);--nav-shadow:0 12px 40px -18px rgba(0,0,0,.55);--nav-text:#F5F5F7;--nav-tshadow:0 1px 2px rgba(5,4,12,.55);--nav-chip:rgba(255,255,255,.07);--nav-solid:rgba(14,11,26,.8)}
html[data-theme=light]{--nav-bg:rgba(255,255,255,.22);--nav-line:rgba(255,255,255,.6);--nav-hi:rgba(255,255,255,.9);--nav-shadow:0 12px 40px -20px rgba(60,40,110,.3);--nav-text:#1E0B33;--nav-tshadow:0 1px 1px rgba(255,255,255,.55);--nav-chip:rgba(255,255,255,.26);--nav-solid:rgba(255,255,255,.84)}
html body .nav.glass{background:var(--nav-bg);border:1px solid var(--nav-line);box-shadow:inset 0 1px 0 var(--nav-hi),inset 0 -1px 0 rgba(255,255,255,.05),var(--nav-shadow);-webkit-backdrop-filter:blur(16px) saturate(170%);backdrop-filter:blur(16px) saturate(170%)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ html body .nav.glass{background:var(--nav-solid)} }
html body .nav .nav-links a{color:var(--nav-text);text-shadow:var(--nav-tshadow)}
html body .nav .nav-links a:hover{background:var(--nav-chip)}
html body .nav :is(.tog,.tog-select){border:1px solid var(--nav-line);color:var(--nav-text);text-shadow:var(--nav-tshadow)}
html body .nav .tog:not(.tog-select){background:var(--nav-chip)}
html body .nav .tog-select{background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%),linear-gradient(var(--nav-chip),var(--nav-chip))}
html body .nav .tog:hover{background-color:var(--nav-chip)}
/* framework chips are labels: on narrow screens they stay compact so the whole card fits */
@container site (max-width:760px){
  html body .step ul.fw-list.fw-list{gap:.25rem}
  html body .step ul.fw-list.fw-list>li{font-size:12px!important;line-height:1.2!important;padding:.12rem .4rem;letter-spacing:.02em}
  html body .fw-label{margin:.7rem 0 .4rem!important}
  html body .step{padding:.9rem 1.05rem}
  html body .step :is(.kicker){margin-bottom:.55rem}
  html body .step p:not(.fw-label):not(.kicker){margin-bottom:.5rem}
}
html body .step p.fw-label.fw-label{font-family:var(--font-display);font-size:18px!important;font-weight:800;line-height:1.2!important;letter-spacing:.1em}
