/* ==========================================================================
   Spacetime — home
   ========================================================================== */

.home { background: var(--cream); }

/* ---------------------------------------------------------------- stage */
.stage { position: relative; }
.stage__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
  overflow: hidden; z-index: 0;
}
@supports (height: 100svh) { .stage__sticky { margin-bottom: -100svh; } }
.stage__bg { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 30% 20%, var(--hero-1) 0%, var(--hero-2) 34%, var(--hero-3) 68%, var(--hero-4) 100%); }
.stage__dusk { position: absolute; inset: 0; opacity: var(--m, 0);
  background: radial-gradient(90% 80% at 50% 50%, #3a2a22 0%, var(--dusk) 60%, #17110e 100%); }
.stage__glow { position: absolute; width: 70vmax; height: 70vmax; left: calc(var(--gx, .6) * 100% - 35vmax); top: calc(var(--gy, .4) * 100% - 35vmax);
  background: radial-gradient(closest-side, rgba(255, 243, 230, .55), rgba(255, 243, 230, 0)); opacity: calc(1 - var(--m, 0)); pointer-events: none; }
.stage__grain { position: absolute; inset: -50%; opacity: .11; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* labels projected from the 3D time cube */
.cube-labels { position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--m, 0) * 2.2); }
.cube-labels span { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1rem, 1.5vw, 1.4rem); color: var(--cream);
  text-shadow: 0 1px 12px rgba(120, 60, 30, .35); transform: translate(-200px, -200px); }
.cube-labels .cube-labels__chip { font-family: var(--font-mono); font-style: normal; font-size: 11px; letter-spacing: .06em;
  padding: .3em .7em; border: 1px solid rgba(254, 249, 237, .7); border-radius: 4px; text-shadow: none; }

/* WebGL fallback: a CSS-3D slice stack */
.cube-fallback { display: none; position: absolute; inset: 0; perspective: 1200px; }
.flat-gl .cube-fallback { display: block; }
.cube-fallback__box { position: absolute; right: 8vw; top: 50%; width: min(30vw, 380px); aspect-ratio: 16 / 10; transform-style: preserve-3d;
  transform: translateY(-50%) rotateX(14deg) rotateY(-48deg); }
.cube-fallback__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(254,249,237,.8);
  opacity: .9; box-shadow: 0 10px 30px rgba(90, 40, 20, .25); }
.cube-fallback__box img:nth-child(1) { transform: translateZ(180px); }
.cube-fallback__box img:nth-child(2) { transform: translateZ(120px); }
.cube-fallback__box img:nth-child(3) { transform: translateZ(60px); }
.cube-fallback__box img:nth-child(4) { transform: translateZ(0); }
.cube-fallback__box img:nth-child(5) { transform: translateZ(-60px); }
.cube-fallback__box img:nth-child(6) { transform: translateZ(-120px); }
.cube-fallback__box img:nth-child(7) { transform: translateZ(-180px); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; }
.hero a, .hero button { pointer-events: auto; }
.hero__inner { padding: calc(var(--header-h) + 60px) var(--edge) 9vh; max-width: min(1200px, 70vw); }
.hero__kicker { display: inline-flex; align-items: center; gap: .7em; font-size: 12px; letter-spacing: .06em; color: var(--ink-deep);
  margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-deep); box-shadow: 0 0 0 4px rgba(59,50,44,.12); }
.hero__title { font-family: var(--font-serif); font-weight: 450; color: var(--cream);
  font-size: clamp(2.9rem, 7.3vw, 7.9rem); line-height: .98; letter-spacing: -.022em;
  text-shadow: 0 2px 40px rgba(160, 80, 40, .18); }
.cap-line { display: block; }
.hero__title .w { display: inline-block; will-change: transform, opacity, filter; }
.hero__title .k { font-style: italic; color: var(--ink-deep); position: relative; z-index: 0; padding: 0 .14em 0 .06em; text-shadow: none; }
.hero__title .k::before { content: ''; position: absolute; z-index: -1; left: -.02em; right: -.02em; top: .16em; bottom: .02em;
  background: var(--mark); border-radius: .08em; transform-origin: left center; transform: scaleX(var(--hl, 1)); }
.hero__title .k + .k { margin-left: -.18em; }
.hero__sub { margin-top: clamp(1.4rem, 3.4vh, 2.4rem); max-width: 34rem; font-family: var(--font-serif); font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.35; color: var(--ink-deep); }
.hero__roles { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__roles li { font-size: 11px; letter-spacing: .02em; color: var(--ink-deep); padding: .55em 1em; border-radius: 999px;
  background: rgba(254, 249, 237, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__roles b { font-weight: 500; color: var(--hero-5); margin-right: .5em; }
.hero__cue { position: absolute; left: var(--edge); bottom: 28px; display: inline-flex; align-items: center; gap: 1rem;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-deep); }
.hero__cue i { position: relative; width: 64px; height: 1px; background: rgba(59,50,44,.25); overflow: hidden; }
.hero__cue i::after { content: ''; position: absolute; inset: 0; background: var(--ink-deep); animation: cue 2.2s var(--ease-out-expo) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------------------------------------------------------------- flight */
.flight { position: relative; z-index: 2; height: 1100vh; pointer-events: none; }
.flight__static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* HUD */
.hud { position: absolute; inset: 0; pointer-events: none; opacity: var(--hud, 0); color: var(--cream);
  visibility: hidden; }
.hud.is-live { visibility: visible; }
.hud.is-live a, .hud.is-live button, .hud.is-live [role="slider"] { pointer-events: auto; }
.hud__caption { position: absolute; left: 50%; top: calc(var(--header-h) + 13vh); transform: translateX(-50%); width: min(92vw, 980px);
  text-align: center; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(15px, 1.7vw, 24px); line-height: 1.35; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hud__caption .w { display: inline-block; opacity: 0; transform: translateY(.5em) scale(.96); }
.hud__caption .w.is-in { opacity: 1; transform: none; transition: opacity .35s, transform .5s var(--ease-out-expo); }
.hud__caption .k { color: var(--ember); }
.hud__card { position: absolute; left: var(--edge); bottom: 150px; width: min(30rem, 86vw); }
.hud__card.is-right { left: auto; right: var(--edge); }
.hud__card::before { content: ''; position: absolute; z-index: -1; inset: -30% -40% -30% -30%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(23,17,14,.78), rgba(23,17,14,0)); }
.hud__link[hidden] { display: none; }
.hud__count { font-size: 11px; letter-spacing: .12em; color: rgba(254,249,237,.6); }
.hud__dates { margin-top: .9rem; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ember); }
.hud__title { margin-top: .3rem; font-family: var(--font-serif); font-weight: 450; font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: .95; letter-spacing: -.02em; }
.hud__line { margin-top: .9rem; font-family: var(--font-serif); font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.4; color: rgba(254,249,237,.82); max-width: 28rem; }
.hud__link { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .6em; font-size: 12px; letter-spacing: .04em;
  padding: .8em 1.3em; border-radius: 999px; background: var(--cream); color: var(--ink-deep); transition: transform .35s var(--ease-out-quart); }
.hud__link svg { width: 1em; height: 1em; }
.hud__link:hover { transform: translateY(-2px); }
.hud__card.is-swap > * { animation: hudswap .7s var(--ease-out-expo) both; }
.hud__card.is-swap > *:nth-child(2) { animation-delay: .03s; } .hud__card.is-swap > *:nth-child(3) { animation-delay: .06s; }
.hud__card.is-swap > *:nth-child(4) { animation-delay: .1s; } .hud__card.is-swap > *:nth-child(5) { animation-delay: .14s; }
@keyframes hudswap { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hud__skip { position: absolute; right: var(--edge); top: calc(var(--header-h) + 44px); display: inline-flex; align-items: center; gap: .5em; font-size: 11px;
  letter-spacing: .06em; color: rgba(254,249,237,.75); padding: .6em 1em; border-radius: 999px; border: 1px solid rgba(254,249,237,.3); }
.hud__skip svg { width: 12px; height: 12px; }
.hud__skip:hover { color: var(--cream); border-color: var(--cream); }

/* time ruler */
.ruler { position: absolute; left: var(--edge); right: var(--edge); bottom: 26px; }
.ruler__track { position: relative; height: 40px; cursor: pointer; touch-action: none; }
.ruler__ticks { position: absolute; inset: 0; }
.ruler__ticks i { position: absolute; bottom: 0; width: 1px; height: 8px; background: rgba(254,249,237,.28); }
.ruler__ticks i.y { height: 22px; background: rgba(254,249,237,.7); }
.ruler__ticks i.ev { height: 14px; width: 3px; margin-left: -1px; background: var(--ember); border-radius: 2px; bottom: 26px; }
.ruler__fill { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--rp, 0) * 100%); background: var(--ember); }
.ruler__head { position: absolute; bottom: 0; left: calc(var(--rp, 0) * 100%); width: 1px; height: 40px; background: var(--cream); }
.ruler__head span { position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(-50%); font-size: 11px; font-variant-numeric: tabular-nums;
  background: var(--cream); color: var(--ink-deep); padding: .25em .55em; border-radius: 4px; white-space: nowrap; }
.ruler__years { position: relative; height: 18px; margin-top: 6px; }
.ruler__years button { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: rgba(254,249,237,.6); letter-spacing: .04em; padding: 0 .3em; }
.ruler__years button:hover, .ruler__years button.is-on { color: var(--cream); }
.ruler__years button:first-child { transform: none; }

/* ---------------------------------------------------------------- flat mode (no WebGL / reduced motion) */
.flat .flight { height: auto; pointer-events: auto; background: var(--dusk); color: var(--cream); padding: 16vh var(--edge) 14vh; }
.flat .flight__static { position: static; width: auto; height: auto; clip: auto; overflow: visible; max-width: 1100px; margin: 0 auto; }
.flat .stage__sticky { position: absolute; top: 0; left: 0; right: 0; margin-bottom: 0; }
.flat .hud { display: none; }
.flight__title { font-family: var(--font-serif); font-weight: 450; font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 3rem; }
.flight__title .eyebrow { display: flex; color: var(--ember); margin-bottom: 1rem; }
.flight__title em { font-style: italic; color: var(--ember); }
.flight__events li { display: grid; grid-template-columns: 11rem 1fr; gap: .3rem 2rem; padding: 1.3rem 0; border-top: 1px solid var(--dusk-line); }
.flight__events time { font-size: 12px; letter-spacing: .05em; color: var(--ember); grid-row: span 2; padding-top: .35rem; }
.flight__events b, .flight__events a { font-family: var(--font-serif); font-weight: 450; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.flight__events a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.flight__events span { font-size: 13px; color: rgba(254,249,237,.72); line-height: 1.5; }

/* ---------------------------------------------------------------- volume */
.volume { position: relative; height: 460vh; background: var(--dusk); color: var(--cream); }
.volume__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center; overflow: hidden; }
.volume__viz { position: relative; height: 100%; }
.volume__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.volume__fallback { display: none; }
.flat-gl .volume__fallback { display: block; position: absolute; left: 12%; top: 50%; width: 60%; aspect-ratio: 16/9; transform-style: preserve-3d;
  transform: translateY(-50%) perspective(1200px) rotateX(16deg) rotateY(-40deg); }
.flat-gl .volume__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; border: 1px solid rgba(254,249,237,.5); }
.flat-gl .volume__fallback img:nth-child(1) { transform: translateZ(160px); opacity: 1; }
.flat-gl .volume__fallback img:nth-child(2) { transform: translateZ(80px); }
.flat-gl .volume__fallback img:nth-child(4) { transform: translateZ(-80px); }
.flat-gl .volume__fallback img:nth-child(5) { transform: translateZ(-160px); }
.volume__readout { position: absolute; left: var(--edge); bottom: 28px; display: flex; gap: 1.6rem; font-size: 11px; letter-spacing: .05em; color: rgba(254,249,237,.6); font-variant-numeric: tabular-nums; }
.volume__readout b { color: var(--cream); font-weight: 500; }
.volume__readout [data-vol-mode] { color: var(--ember); text-transform: uppercase; }
.volume__axes { position: absolute; left: var(--edge); top: calc(var(--header-h) + 50px); display: grid; gap: .35rem; font-size: 11px; color: rgba(254,249,237,.55); }
.volume__axes .ax::before { content: ''; display: inline-block; width: 18px; height: 1px; margin-right: .6em; vertical-align: middle; background: currentColor; }
.volume__axes .ax--t { color: var(--ember); }
.volume__copy { padding: 0 var(--edge) 0 1rem; max-width: 32rem; }
.volume__copy .eyebrow { color: var(--ember); }
.volume__title { margin-top: 1rem; font-family: var(--font-serif); font-weight: 450; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .98; letter-spacing: -.02em; }
.volume__title em { font-style: italic; color: var(--ember); }
.volume__steps { margin-top: 2.2rem; display: grid; gap: 0; }
.volume__steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; padding: 1rem 0; border-top: 1px solid var(--dusk-line);
  opacity: .32; transition: opacity .5s var(--ease-out-quart); }
.volume__steps li.is-on { opacity: 1; }
.volume__steps b { font-size: 11px; font-weight: 500; color: var(--ember); padding-top: .3rem; }
.volume__steps p { font-family: var(--font-serif); font-size: clamp(1.02rem, 1.2vw, 1.18rem); line-height: 1.42; }
.volume__steps em { font-style: italic; color: var(--ember); }
.volume__cta { margin-top: 2rem; }

/* volume without WebGL: a static figure, all four notes readable */
.flat-gl .volume { height: auto; }
.flat-gl .volume__sticky { position: relative; min-height: 100svh; height: auto; }
.flat-gl .volume__steps li { opacity: 1; display: grid; }
.flat-gl .volume__readout { display: none; }
@media (max-width: 1080px) { .flat-gl .volume__sticky { grid-template-rows: 46vh auto; padding-bottom: 10vh; } }

/* ---------------------------------------------------------------- chapters */
.chapters { position: relative; background: var(--cream); }
.chapter { position: relative; }
.chapter__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4vw; align-items: center;
  padding: 18vh var(--edge) 10vh; max-width: 1600px; margin: 0 auto; }
.chapter__title { margin-top: 1rem; font-family: var(--font-serif); font-weight: 450; font-size: clamp(2.3rem, 4.4vw, 4.6rem); line-height: 1; letter-spacing: -.02em; color: var(--ink-deep); }
.chapter__title em { font-style: italic; color: var(--terracotta); }
.chapter__lede { margin-top: 1.6rem; font-family: var(--font-serif); font-size: clamp(1.08rem, 1.3vw, 1.3rem); line-height: 1.5; max-width: 34rem; }

/* wireframe "time box" header */
.tbox { position: relative; width: 100%; }
.tbox svg { width: 100%; height: auto; overflow: visible; }
.tbox .edge { fill: none; stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.tbox .edge--back { stroke-opacity: .35; stroke-dasharray: 4 4; }
.tbox .lbl { font-family: var(--font-serif); font-style: italic; font-size: 28px; fill: var(--ink-soft); }
.tbox .lbl.is-on { fill: var(--terracotta); }
.tbox .chip { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-soft); letter-spacing: .06em; }
.tbox .slice-frame { fill: none; stroke: var(--cream); stroke-width: 1; }
.tbox .slice { transition: opacity .6s; }
.tbox .seg { stroke: var(--terracotta); stroke-width: 3; }

/* PAST: horizontal track */
.past { position: relative; padding: 4vh 0 16vh; overflow: hidden; }
.past__rail { position: relative; margin: 0 var(--edge) 4vh; height: 1px; background: rgba(93,82,75,.2); }
.past__rail span { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--terracotta); transform-origin: left; transform: scaleX(var(--pp, 0)); }
.past__track { display: flex; gap: 4vw; padding: 0 var(--edge); width: max-content; will-change: transform; }
.pcard { width: clamp(300px, 36vw, 560px); flex: none; }
.pcard__media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--paper);
  clip-path: inset(var(--ci, 0%) var(--ci, 0%) var(--ci, 0%) var(--ci, 0%) round 6px); }
.pcard__media img { width: 118%; max-width: none; height: 100%; object-fit: cover; transform: translateX(var(--px, -8%)); transition: filter .6s; }
.pcard__media:hover img { filter: saturate(1.1) contrast(1.05); }
.pcard__body { padding-top: 1.4rem; }
.pcard__meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; color: var(--rust); }
.pcard__title { margin-top: .6rem; font-family: var(--font-serif); font-weight: 450; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; letter-spacing: -.015em; color: var(--ink-deep); }
.pcard__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out-expo); }
.pcard__title a:hover { background-size: 100% 1px; }
.pcard__tag { margin-top: .8rem; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.4; max-width: 30rem; }
.pcard__facts { margin-top: 1rem; display: grid; gap: .45rem; }
.pcard__facts li { font-size: 12px; line-height: 1.45; padding-left: 1.2rem; position: relative; color: var(--ink); }
.pcard__facts li::before { content: ''; position: absolute; left: 0; top: .55em; width: .6rem; height: 1px; background: var(--terracotta); }

/* PRESENT: expanding slice */
.present { position: relative; height: 320vh; }
.present__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.present__media { position: absolute; inset: 0; margin: 0; clip-path: inset(var(--ct, 30%) var(--cx, 34%) var(--ct, 30%) var(--cx, 34%) round var(--cr, 10px)); }
.present__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--ps, 1.25)); }
.present__media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(36,27,23,.25), rgba(36,27,23,.82)); opacity: var(--po, 0); }
.present__over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--edge) 9vh; color: var(--cream); }
.present__over > * { opacity: var(--po, 0); }
.present__kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ember); }
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 1.4rem; position: relative; z-index: 1; }
.chain li { position: relative; padding-top: 1.6rem; opacity: 0; transform: translateY(14px); }
.chain li.is-in { opacity: 1; transform: none; transition: opacity .6s, transform .8s var(--ease-out-expo); }
.chain i { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 5px rgba(233,160,122,.25); }
.chain b { display: block; font-family: var(--font-serif); font-weight: 450; font-size: clamp(1.15rem, 1.8vw, 1.8rem); line-height: 1.05; }
.chain span { display: block; margin-top: .35rem; font-size: 11px; color: rgba(254,249,237,.7); }
.chain::before { content: ''; position: absolute; left: 6px; right: calc(20% - 6px); top: 5px; height: 1.5px; background: var(--ember); transform-origin: left; transform: scaleX(var(--cl, 0)); }
.present__headline { font-family: var(--font-serif); font-weight: 450; font-size: clamp(2.2rem, 4.6vw, 4.8rem); line-height: .98; letter-spacing: -.02em; margin-bottom: 4vh; max-width: 18ch; }
.present__headline em { font-style: italic; color: var(--ember); }
.present__media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(23,17,14,.55), rgba(23,17,14,0) 70%); opacity: var(--po, 0); }
.present__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2vw; margin-top: 4vh; padding-top: 1.6rem; border-top: 1px solid rgba(254,249,237,.25); }
.present__facts b { display: block; font-family: var(--font-serif); font-weight: 450; font-size: clamp(1.6rem, 2.6vw, 2.6rem); color: var(--cream); }
.present__facts span { display: block; margin-top: .4rem; font-size: 12px; line-height: 1.5; color: rgba(254,249,237,.78); }
.present__cta { margin-top: 2.2rem; align-self: flex-start; }

/* FUTURE: features */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 5vw; align-items: center; padding: 6vh var(--edge) 14vh; max-width: 1600px; margin: 0 auto; }
.feature--strat .feature__media { order: 2; }
.feature__media { perspective: 1400px; }
.feature__slice { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--dusk);
  transform: rotateY(var(--ry, -22deg)) rotateX(var(--rx, 6deg)) scale(var(--fs, .9)); transform-origin: center;
  box-shadow: 30px 40px 80px -30px rgba(59,50,44,.45); }
.feature--strat .feature__slice { --ry: 22deg; box-shadow: -30px 40px 80px -30px rgba(59,50,44,.45); }
.feature__slice video { width: 100%; height: 100%; object-fit: cover; }
.feature__slice::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(254,249,237,.35); border-radius: 8px; pointer-events: none; }
.feature__stamp { position: absolute; left: 14px; top: 12px; font-size: 10px; letter-spacing: .1em; color: var(--cream); background: rgba(36,27,23,.55); padding: .35em .7em; border-radius: 3px; }
.feature__meta { display: flex; gap: 1.4rem; font-size: 11px; letter-spacing: .06em; color: var(--rust); text-transform: uppercase; }
.feature__title { margin-top: .7rem; font-family: var(--font-serif); font-weight: 450; font-size: clamp(2.8rem, 5.5vw, 5.8rem); line-height: .95; letter-spacing: -.025em; color: var(--ink-deep); }
.feature__title a { background: linear-gradient(currentColor, currentColor) 0 96% / 0 2px no-repeat; transition: background-size .6s var(--ease-out-expo); }
.feature__title a:hover { background-size: 100% 2px; }
.feature__tag { margin-top: 1.2rem; font-family: var(--font-serif); font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.4; color: var(--ink-deep); }
.feature__tag .sw { opacity: var(--o, .18); transition: opacity .2s; }
.feature__cmd { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .8rem; font-size: 12px; color: var(--ink-soft); }
.feature__cmd code { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--cream); background: var(--ink-deep); padding: .45em .8em; border-radius: 6px; min-width: 15ch; }
.feature__quote { margin-top: 1.2rem; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--terracotta); }
.stats { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(93,82,75,.2); }
.stats > div { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid rgba(93,82,75,.2); }
.stats > div:nth-child(odd) { border-right: 1px solid rgba(93,82,75,.2); }
.stats > div:nth-child(even) { padding-left: 1.2rem; }
.stats dt { font-size: 11px; line-height: 1.4; color: var(--ink-soft); }
.stats dd { margin-top: .35rem; font-family: var(--font-serif); font-size: clamp(1.6rem, 2.4vw, 2.3rem); color: var(--ink-deep); font-variant-numeric: tabular-nums; }
.feature__links { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: 12px; }
.feature__links a { color: var(--ink-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.feature__links a:hover { color: var(--terracotta); }

/* ---------------------------------------------------------------- bento */
.bento { padding: 16vh var(--edge) 14vh; max-width: 1600px; margin: 0 auto; }
.bento__title { margin-top: 1rem; font-family: var(--font-serif); font-weight: 450; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1; letter-spacing: -.02em; color: var(--ink-deep); }
.bento__title em { font-style: italic; color: var(--terracotta); }
.bento__grid { margin-top: 6vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.cell { position: relative; border-radius: 26px; padding: clamp(1.4rem, 2.2vw, 2.2rem); background: var(--paper); overflow: hidden; display: flex; flex-direction: column; min-height: 300px; }
.cell h3 { font-family: var(--font-serif); font-weight: 450; font-size: clamp(1.7rem, 2.4vw, 2.5rem); line-height: 1.02; letter-spacing: -.015em; color: var(--ink-deep); margin-top: .5rem; }
.cell__n { font-size: 11px; letter-spacing: .1em; color: var(--rust); }
.cell__txt { margin-top: .8rem; font-size: 13px; line-height: 1.6; max-width: 36rem; }
.cell__nums { margin-top: auto; padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; }
.cell__nums dd { font-family: var(--font-serif); font-size: clamp(1.8rem, 2.6vw, 2.8rem); line-height: 1; color: var(--ink-deep); font-variant-numeric: tabular-nums; }
.cell__nums dt { margin-top: .35rem; font-size: 11px; color: var(--ink-soft); max-width: 14rem; }
.cell--models { grid-column: 1 / 8; grid-row: 1 / 3; background: var(--dusk); color: rgba(254,249,237,.82); }
.cell--models h3, .cell--models .cell__nums dd { color: var(--cream); }
.cell--models .cell__n { color: var(--ember); }
.cell--models .cell__nums dt { color: rgba(254,249,237,.6); }
.cell--products { grid-column: 8 / 13; grid-row: 1 / 2; }
.cell--ops { grid-column: 8 / 13; grid-row: 2 / 3; }
.cell--stack { grid-column: 1 / 6; grid-row: 3 / 4; background: linear-gradient(150deg, var(--hero-1), var(--hero-3)); }
.cell--edu { grid-column: 6 / 13; grid-row: 3 / 4; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(93,82,75,.18); justify-content: space-between; }
.cell__big { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.02em; color: var(--ink-deep); margin-top: 1rem; }
.cell__big em { font-style: italic; color: var(--terracotta); }
.cell--marquee { grid-column: 1 / 13; min-height: 0; padding: 1.3rem 0; background: var(--terracotta); color: var(--cream); border-radius: 999px; }

/* widget: decode */
.w-decode { margin-top: 1.6rem; border: 1px solid rgba(254,249,237,.14); border-radius: 14px; padding: 1.1rem 1.2rem; background: rgba(0,0,0,.18); font-size: 12px; line-height: 1.6; }
.w-decode__in { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--cream); }
.w-decode__tok { margin-top: .7rem; min-height: 1.9rem; display: flex; flex-wrap: wrap; gap: 4px; }
.w-decode__tok span { font-size: 10.5px; padding: .15em .5em; border-radius: 4px; background: rgba(233,160,122,.16); color: var(--ember); animation: tokin .35s var(--ease-out-expo) both; }
@keyframes tokin { from { opacity: 0; transform: translateY(6px); } }
.w-decode__out { margin-top: .7rem; display: flex; align-items: center; gap: .8rem; color: rgba(254,249,237,.6); }
.w-decode__out b { font-weight: 500; font-size: 1.15rem; color: var(--cream); letter-spacing: .04em; min-width: 14ch; }
.w-decode__out b::after { content: '▍'; color: var(--ember); animation: tpulse 1s steps(1) infinite; margin-left: 2px; }
.w-decode__out i { margin-left: auto; font-style: normal; font-size: 10.5px; padding: .25em .6em; border-radius: 999px; border: 1px solid rgba(233,160,122,.5); color: var(--ember); }

/* model shelf */
.shelf { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shelf li { border: 1px solid rgba(254,249,237,.14); border-radius: 14px; padding: 1rem 1rem 1.1rem; display: grid; gap: .3rem; position: relative; overflow: hidden; }
.shelf li::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ember); transform-origin: left; animation: shelfbar 3.6s var(--ease-out-expo) infinite; }
.shelf li:nth-child(2)::after { animation-delay: .5s; } .shelf li:nth-child(3)::after { animation-delay: 1s; }
@keyframes shelfbar { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); opacity: 0; } }
.shelf__k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.shelf b { font-family: var(--font-serif); font-weight: 450; font-size: 1.35rem; color: var(--cream); }
.shelf em { font-style: normal; font-size: 12px; color: var(--cream); }
.shelf__m { font-size: 10.5px; line-height: 1.5; color: rgba(254,249,237,.6); }

/* widget: pipe */
.w-pipe { position: relative; margin-top: 1.2rem; height: 130px; }
.w-pipe__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-pipe__p { fill: none; stroke: rgba(93,82,75,.35); stroke-width: 1.2; stroke-dasharray: 3 5; }
.w-pipe__dot { fill: var(--terracotta); }
.w-pipe span { position: absolute; left: var(--x); top: var(--y); font-size: 10.5px; padding: .3em .7em; background: var(--cream); border-radius: 999px; box-shadow: 0 2px 10px rgba(93,82,75,.12); color: var(--ink-deep); }

/* widget: phone */
.w-phone { margin: 1.2rem auto 0; width: 150px; height: 190px; border-radius: 26px 26px 0 0; background: var(--ink-deep); padding: 8px 8px 0; position: relative; margin-bottom: -2.2rem; }
.w-phone__screen { position: relative; height: 100%; border-radius: 20px 20px 0 0; background: var(--cream); overflow: hidden; }
.w-phone__wave { height: 46px; background: var(--hero-3);
  -webkit-mask: radial-gradient(10px at 50% 100%, #0000 98%, #000) 0 -0px / 20px 100%; mask: radial-gradient(10px at 50% 100%, #0000 98%, #000) 0 0 / 20px 100%; }
.w-phone__list { padding: 10px; display: grid; gap: 7px; animation: listscroll 6s linear infinite; }
.w-phone__list i { height: 18px; border-radius: 6px; background: var(--paper); position: relative; }
.w-phone__list i::before { content: ''; position: absolute; left: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--hero-4); }
@keyframes listscroll { 50% { transform: translateY(-40px); } }
.w-phone__search { position: absolute; left: 8px; right: 8px; top: 12px; height: 22px; border-radius: 999px; background: var(--cream); font-size: 9.5px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; color: var(--ink-deep); }
.w-phone__search em { font-style: normal; color: var(--terracotta); }

/* widget: log */
.w-log { margin-top: 1rem; height: 112px; overflow: hidden; border-radius: 12px; background: var(--ink-deep); padding: .7rem .9rem; font-size: 10.5px; line-height: 1.75; color: rgba(254,249,237,.75);
  -webkit-mask: linear-gradient(transparent, #000 30%); mask: linear-gradient(transparent, #000 30%); display: flex; flex-direction: column; justify-content: flex-end; }
.w-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tokin .4s var(--ease-out-expo) both; }
.w-log .ok { color: #a9d39a; } .w-log .lv { color: var(--ember); }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__row { display: inline-block; font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 2.2rem); padding-left: 2rem; animation: marquee 60s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- index */
.index { position: relative; padding: 14vh var(--edge) 16vh; max-width: 1600px; margin: 0 auto; }
.index__title { margin-top: 1rem; font-family: var(--font-serif); font-weight: 450; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1; letter-spacing: -.02em; color: var(--ink-deep); }
.index__title em { font-style: italic; color: var(--terracotta); }
.index__list { margin-top: 6vh; border-bottom: 1px solid rgba(93,82,75,.25); }
.irow { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 22rem) 6rem; align-items: baseline; gap: 1.5rem;
  padding: 1.5rem 0 1.3rem; border-top: 1px solid rgba(93,82,75,.25); transition: opacity .4s, color .3s; }
.irow__n { font-size: 11px; color: var(--rust); }
.irow__t { font-family: var(--font-serif); font-weight: 450; font-size: clamp(2rem, 4.6vw, 4.8rem); line-height: .95; letter-spacing: -.02em; color: var(--ink-deep);
  transition: transform .6s var(--ease-out-expo), font-style .3s; }
.irow__k { font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.irow__d { font-size: 12px; text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.irow__thumb { display: none; }
.index__list:hover .irow { opacity: .35; }
.index__list .irow:hover, .index__list .irow:focus-visible { opacity: 1; }
.irow:hover .irow__t, .irow:focus-visible .irow__t { transform: translateX(2.2rem); font-style: italic; color: var(--terracotta); }
.index__gl { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }
.index__follow { position: fixed; left: 0; top: 0; width: 340px; aspect-ratio: 8 / 5; pointer-events: none; z-index: 5; opacity: 0; border-radius: 6px; overflow: hidden;
  transition: opacity .3s; }
.index__follow img { width: 100%; height: 100%; object-fit: cover; }
.no-gl-index .index__follow.is-on { opacity: 1; }

/* ---------------------------------------------------------------- contact */
.contact { position: relative; padding: 14vh var(--edge) 12vh; color: var(--ink-deep); overflow: hidden;
  background: radial-gradient(120% 120% at 70% 100%, var(--hero-4) 0%, var(--hero-3) 30%, var(--hero-2) 62%, var(--hero-1) 100%); }
.now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(59,50,44,.25); max-width: 1600px; margin: 0 auto; }
.now__cell { padding: 1.2rem 1.4rem 1.2rem 0; }
.now__cell + .now__cell { padding-left: 1.4rem; border-left: 1px solid rgba(59,50,44,.25); }
.now__k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(59,50,44,.7); }
.now__v { margin-top: .5rem; font-family: var(--font-serif); font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.35; }
.now__v span[data-delhi-clock] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.2em; }
.now__v small { font-family: var(--font-mono); font-size: 11px; }
.contact__title { max-width: 1600px; margin: 12vh auto 0; font-family: var(--font-serif); font-weight: 450; font-size: clamp(3rem, 9.6vw, 10.5rem); line-height: .92; letter-spacing: -.03em; }
.contact__title .cline { display: block; overflow: hidden; padding-bottom: .06em; }
.contact__title .cline > span { display: inline-block; }
.contact__title em { font-style: italic; color: #9c4a2a; }
.contact__actions { max-width: 1600px; margin: 5vh auto 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.contact__links { max-width: 1600px; margin: 9vh auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(59,50,44,.25); }
.contact__links a { display: block; padding: 1.2rem 1rem 1.2rem 0; }
.contact__links span { display: block; font-family: var(--font-serif); font-size: 1.5rem; }
.contact__links small { display: block; margin-top: .3rem; font-size: 11px; color: rgba(59,50,44,.72); overflow-wrap: anywhere; }
.contact__links a:hover span { font-style: italic; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem var(--edge) 2rem; background: var(--dusk); color: rgba(254,249,237,.7); font-size: 11px; }
.foot__name { font-family: var(--font-serif); font-size: 1.4rem; color: var(--cream); }
.foot a:hover { color: var(--cream); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero__inner { max-width: 100%; }
  .volume__sticky { grid-template-columns: 1fr; grid-template-rows: 52% 48%; }
  .volume__copy { align-self: start; padding: 0 var(--edge); max-width: 40rem; }
  .volume__steps { margin-top: 1rem; }
  .volume__steps li { display: none; padding: .6rem 0; }
  .volume__steps li.is-on { display: grid; }
  .volume__title { font-size: clamp(2rem, 7vw, 3.2rem); }
  .volume__readout { bottom: 10px; }
  .chapter__head { grid-template-columns: 1fr; padding-top: 14vh; }
  .chapter__head .tbox { max-width: 560px; }
  .feature, .feature--strat { grid-template-columns: 1fr; gap: 2.4rem; }
  .feature--strat .feature__media { order: 0; }
  .present__facts { grid-template-columns: 1fr 1fr; }
  .cell--models { grid-column: 1 / 13; grid-row: auto; }
  .cell--products, .cell--ops { grid-column: span 6; grid-row: auto; }
  .cell--stack { grid-column: 1 / 6; grid-row: auto; }
  .cell--edu { grid-column: 6 / 13; grid-row: auto; }
}
@media (max-width: 720px) {
  .hero { justify-content: flex-end; }
  .hero__inner { padding-bottom: 92px; padding-top: 45vh; }
  .hero__title { font-size: clamp(2.5rem, 12.4vw, 3.6rem); }
  .hero__sub { font-size: 1.05rem; }
  .hero__roles li { font-size: 10.5px; }
  .hud__caption { top: calc(var(--header-h) + 40px); font-size: 13px; }
  .hud__card { bottom: 118px; }
  .hud__title { font-size: 2.4rem; }
  .hud__line { font-size: .98rem; }
  .hud__skip { display: none; }
  .ruler__years button { font-size: 10px; }
  .ruler__years button:nth-child(even) { display: none; }
  .flight__events li { grid-template-columns: 1fr; }
  .flight__events time { grid-row: auto; }
  .past { padding-bottom: 8vh; }
  .past__rail { display: none; }
  .past__track { flex-direction: column; width: auto; gap: 3.2rem; }
  .pcard { width: 100%; }
  .present { height: 260vh; }
  .chain { grid-template-columns: 1fr; gap: .9rem; }
  .chain li { padding: 0 0 0 1.6rem; }
  .chain i { top: .3rem; }
  .chain b { font-size: 1.2rem; }
  .chain span { display: inline; margin-left: .6rem; }
  .chain::before { display: none; }
  .shelf { grid-template-columns: 1fr; }
  .present__headline { font-size: 2rem; margin-bottom: 2vh; }
  .present__over { padding-bottom: 6vh; }
  .present__facts { grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4vh; padding-top: 1rem; }
  .present__facts b { font-size: 1.35rem; }
  .present__facts span { font-size: 10.5px; }
  .present__facts li:nth-child(n+3) { display: none; }
  .present__cta { margin-top: 1.4rem; }
  .stats { grid-template-columns: 1fr; }
  .stats > div:nth-child(odd) { border-right: 0; }
  .stats > div:nth-child(even) { padding-left: 0; }
  .feature__title { font-size: 3rem; }
  .cell { grid-column: 1 / -1 !important; min-height: 0; }
  .cell--stack { padding-bottom: 0; }
  .irow { grid-template-columns: 2rem minmax(0, 1fr) 64px; gap: .3rem 1rem; padding: 1.1rem 0; align-items: center; }
  .irow__t { font-size: 2rem; }
  .irow__k { grid-column: 2; grid-row: 2; font-size: 11px; }
  .irow__d { display: none; }
  .irow__thumb { display: block; grid-column: 3; grid-row: 1 / 3; width: 64px; height: 44px; object-fit: cover; border-radius: 4px; }
  .index__list:hover .irow { opacity: 1; }
  .now { grid-template-columns: 1fr; }
  .now__cell + .now__cell { padding-left: 0; border-left: 0; border-top: 1px solid rgba(59,50,44,.2); }
  .contact__links { grid-template-columns: 1fr 1fr; }
  .contact__title { font-size: clamp(2.8rem, 13vw, 4.4rem); }
}
@media (hover: none) {
  .index__gl, .index__follow { display: none; }
}

@media (max-width: 600px) { .hero__title .w--dash { display: none; } }
