:root {
  --bg: #0b0b0d;
  --ink: #f2f0e9;
  --muted: rgba(242, 240, 233, 0.58);
  --faint: rgba(242, 240, 233, 0.11);
  --line: rgba(242, 240, 233, 0.18);
  --accent: #ff6042;
  --cool: #95a8ff;
  --acid: #d6ff66;
  --order: .68;
  --vitality: .82;
  --friction: .46;
  --mx: .5;
  --my: .5;
  --activity: .12;
  --pad: clamp(22px, 4vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, "Noto Sans SC", system-ui, sans-serif; overflow-x: hidden; }
::selection { color: var(--bg); background: var(--acid); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.mono { font-family: "DM Mono", monospace; }

#field, #gpuField { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#gpuField { opacity: 0; transition: opacity .42s ease; }
.has-webgpu #gpuField { opacity: 1; }
.has-webgpu #field { opacity: 0; }
.page-grid { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: calc(.38 + var(--order) * .32); background-image: linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.023) 1px, transparent 1px); background-size: calc(100vw / 12) 100%, 100% 72px; mask-image: linear-gradient(to bottom, transparent, #000 9vh, #000 91vh, transparent); }
.page-grid::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 28% 38%, rgba(149,168,255,.07), transparent 28%), radial-gradient(circle at 78% 58%, rgba(255,96,66,.045), transparent 24%), radial-gradient(circle at 58% 82%, rgba(214,255,102,.018), transparent 20%); }
.grain { position: fixed; inset: -12%; z-index: 20; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E"); animation: grainShift 2.8s steps(2,end) infinite; will-change: transform; }
@keyframes grainShift { 50% { transform: translate3d(1.5%, -1%, 0); } }
.pointer-light { position: fixed; z-index: 1; width: 52vw; aspect-ratio: 1; left: 0; top: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(149,168,255, calc(.055 + var(--vitality) * .075)) 0, rgba(149,168,255,.035) 28%, rgba(255,96,66,.018) 48%, transparent 70%); opacity:calc(.22 + var(--activity) * .78); transition:opacity .7s ease; will-change: transform, opacity; contain: strict; }

.topbar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 66px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, rgba(11,11,13,.8), rgba(11,11,13,.66)); backdrop-filter: blur(14px) saturate(125%); -webkit-backdrop-filter: blur(14px) saturate(125%); }
.topbar::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:linear-gradient(90deg,var(--accent),var(--cool),var(--acid)); transform:scaleX(0); transform-origin:left; opacity:.78; }
.identity, .nav-trigger { display: inline-flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.identity { justify-self: start; }
.identity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.top-note { margin: 0; font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.nav-trigger { justify-self: end; border: 0; background: none; padding: 12px 0; cursor: pointer; }
.nav-trigger b { font-size: 18px; font-weight: 400; transition: transform .4s ease; }
.nav-trigger.open b { transform: rotate(45deg); }
.index-panel { position: fixed; z-index: 45; inset: 66px 0 auto auto; width: min(520px, 100%); min-height: calc(100vh - 66px); padding: 44px var(--pad) 34px 44px; border-left: 1px solid var(--line); background: linear-gradient(145deg, rgba(17,17,21,.9), rgba(10,10,12,.82)); transform: translateX(102%); transition: transform .55s cubic-bezier(.16,1,.3,1); will-change: transform; }
.index-panel.open { transform: translateX(0); }
.index-panel.open { backdrop-filter: blur(18px) saturate(128%); -webkit-backdrop-filter: blur(18px) saturate(128%); }
.index-meta { color: var(--muted); font-size: 10px; margin-bottom: 38px; }
.index-panel nav { border-top: 1px solid var(--line); }
.index-panel nav a { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.index-panel nav i { font: 400 10px "DM Mono"; color: var(--accent); font-style: normal; }
.index-panel nav span { font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -.05em; }
.index-panel nav small { color: var(--muted); font-size: 11px; }
.index-panel nav a:hover span { font-family: "Playfair Display", serif; font-style: italic; font-weight: 600; }
.index-foot { margin: 52px 0 0; color: var(--muted); line-height: 1.8; font-size: 13px; }
.side-index { position: fixed; right: 15px; top: 50%; z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateY(-50%); font-size: 9px; color: var(--muted); writing-mode: vertical-rl; }
.side-index i { display: block; width: 1px; height: 48px; background: var(--line); }

main { position: relative; z-index: 5; }
.scene { position: relative; width: 100%; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { margin: 0; font: 500 10px "DM Mono"; letter-spacing: .1em; color: var(--accent); }
.hero { min-height: 100svh; padding-top: 120px; padding-bottom: 54px; display: grid; grid-template-columns: minmax(0, 8fr) minmax(320px, 4fr); gap: 2vw; align-items: center; border-bottom: 1px solid var(--line); }
.hero-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.display { margin: 26px 0 28px; font-size: clamp(62px, 10.4vw, 190px); line-height: .77; letter-spacing: -.075em; font-weight: 800; }
.display > span { display: block; }
.display-row { display: flex !important; align-items: flex-end; gap: .14em; }
.display em { font-family: "Playfair Display", serif; font-weight: 600; }
.display small { margin: 0 0 .9em auto; font: 400 10px "DM Mono"; letter-spacing: 0; color: var(--muted); }
.display .outline > span { color: transparent; -webkit-text-stroke: 1px rgba(242,240,233,.65); }
.hero-note { margin-left: 42%; max-width: 520px; display: grid; grid-template-columns: .8fr 1.4fr; gap: 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.hero-note p { margin: 0; }
.hero-note strong { color: var(--ink); font-weight: 500; }
.organism-wrap { position: relative; aspect-ratio: 1 / 1.16; display: grid; place-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); perspective: 1200px; }
.organism-wrap::before, .organism-wrap::after { content:""; position:absolute; background:var(--line); }
.organism-wrap::before { width:100%; height:1px; top:50%; left:0; }
.organism-wrap::after { width:1px; height:100%; left:50%; top:0; }
.organism { position: relative; z-index: 2; width: 66%; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(calc((.5 - var(--my)) * 22deg)) rotateY(calc((var(--mx) - .5) * 30deg)); transition: transform .16s ease-out; }
.orbit { position:absolute; inset:8%; border:1px solid rgba(242,240,233,.5); border-radius:50%; transform-style:preserve-3d; box-shadow: inset 0 0 35px rgba(149,168,255,.035); }
.orbit-a { transform: rotateX(64deg) rotateZ(12deg); animation: spinA 13s linear infinite; }
.orbit-b { transform: rotateY(70deg) rotateZ(32deg); animation: spinB 17s linear infinite reverse; }
.orbit-c { inset: 20%; transform: rotateX(42deg) rotateY(54deg); border-color: rgba(255,96,66,.65); animation: spinA 9s linear infinite reverse; }
.orbit-d { inset: 33%; border-color: rgba(214,255,102,.7); transform: rotateY(76deg); animation: spinB 7s linear infinite; }
.organism-core { position:absolute; inset:43%; border-radius:50%; background:var(--ink); box-shadow:0 0 calc(40px + var(--vitality) * 50px) rgba(255,96,66,.65), 0 0 110px rgba(149,168,255,.25); }
.node { position:absolute; width:9px; height:9px; border:1px solid var(--ink); background:var(--bg); border-radius:50%; }
.node-a { top:14%; left:31%; animation:nodeFloat 4s ease-in-out infinite; }
.node-b { right:9%; top:53%; animation:nodeFloat 5.2s ease-in-out infinite reverse; }
.node-c { left:22%; bottom:10%; background:var(--accent); border-color:var(--accent); animation:nodeFloat 3.6s ease-in-out infinite .4s; }
@keyframes spinA { to { transform: rotateX(64deg) rotateZ(372deg); } }
@keyframes spinB { to { transform: rotateY(430deg) rotateZ(32deg); } }
@keyframes nodeFloat { 50% { transform:translate3d(calc((var(--mx) - .5) * 20px), calc((var(--my) - .5) * 20px - 12px), 35px); } }
.organism-caption { position:absolute; z-index:3; left:18px; right:18px; bottom:18px; display:flex; justify-content:space-between; font-size:9px; color:var(--muted); }
.field-pressed .organism-core { transform:scale(.72); box-shadow:0 0 90px rgba(255,96,66,.78), 0 0 170px rgba(149,168,255,.32); }
.field-pressed .orbit { opacity:.72; }
.live-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--acid); margin-right:5px; box-shadow:0 0 10px var(--acid); }
.coordinate { position:absolute; z-index:3; font-size:8px; color:rgba(242,240,233,.4); }
.coordinate-a { top:18px; left:18px; }
.coordinate-b { top:18px; right:18px; }
.scroll-cue { position:absolute; left:var(--pad); bottom:18px; display:flex; align-items:center; gap:16px; font-size:9px; color:var(--muted); }
.scroll-cue b, .replay b { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--line); border-radius:50%; color:var(--ink); font-weight:400; }

.grammar { padding-top: 160px; padding-bottom: 170px; }
.scene-head { display:grid; grid-template-columns: 2fr 7fr 3fr; column-gap:2vw; align-items:start; margin-bottom:72px; }
.scene-head .eyebrow { grid-column:1; margin-top:8px; }
.scene-head h2 { grid-column:2 / 4; margin:0; max-width:1050px; font-size:clamp(42px,6vw,92px); line-height:.98; letter-spacing:-.055em; font-weight:650; }
.scene-head h2 em { font-family:"Playfair Display",serif; font-weight:600; color:var(--muted); }
.living-grid { display:grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 310px 290px 250px; border-top:1px solid var(--line); border-left:1px solid var(--line); }
.cell { position:relative; overflow:hidden; padding:20px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:linear-gradient(145deg, rgba(255,255,255,calc(.022 + var(--order) * .014)), rgba(255,255,255,.006)); transition: background .35s ease, transform .35s ease, opacity .35s ease, filter .35s ease; cursor:pointer; }
.cell::after { content:""; position:absolute; inset:-35% -20%; pointer-events:none; background:linear-gradient(115deg, transparent 28%, rgba(255,255,255,.035) 46%, transparent 62%); transform:translate3d(-24%,0,0) rotate(4deg); opacity:calc(.32 + var(--vitality) * .3); transition:transform .7s cubic-bezier(.16,1,.3,1); }
.cell:hover::after { transform:translate3d(18%,0,0) rotate(4deg); }
.living-grid.is-inspecting .cell:not(.is-selected) { opacity:.22; filter:saturate(.45) brightness(.72); }
.living-grid .cell.is-selected { z-index:3; background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.015)); box-shadow:0 28px 80px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.11); }
.living-grid .cell:focus-visible { outline:1px solid var(--accent); outline-offset:-3px; }
.cell:hover { background:rgba(255,255,255,.05); }
.cell-top { display:flex; justify-content:space-between; font-size:9px; color:var(--muted); }
.cell-spatial { grid-column:1 / 8; grid-row:1 / 3; display:grid; grid-template-columns:1.2fr 1fr; grid-template-rows:auto 1fr auto; }
.cell-type { grid-column:8 / 13; grid-row:1; }
.cell-material { grid-column:8 / 13; grid-row:2; }
.cell-rule { grid-column:1 / 6; grid-row:3; }
.cell-motion { grid-column:6 / 13; grid-row:3; }
.cell-copy { grid-column:1 / 3; display:flex; justify-content:space-between; align-items:end; gap:30px; }
.cell-copy h3 { margin:0; font-size:clamp(38px,4vw,68px); line-height:.92; letter-spacing:-.06em; }
.cell-copy h3 em { font-family:"Playfair Display",serif; font-weight:600; }
.cell-copy p, .cell > p { margin:0; max-width:330px; color:var(--muted); font-size:12px; line-height:1.65; }
.mini-field { grid-column:1/3; position:relative; display:grid; grid-template-columns:repeat(9,1fr); align-items:center; gap:8px; padding:25px 8%; }
.mini-field i { display:block; aspect-ratio:1; border:1px solid rgba(242,240,233,.26); border-radius:50%; transform:scale(calc(.4 + var(--vitality) * .55)); }
.mini-field i:nth-child(2n) { transform:translateY(calc((var(--my) - .5) * 35px)) scale(calc(.35 + var(--vitality) * .8)); border-color:rgba(255,96,66,.45); }
.mini-field b { position:absolute; left:calc(var(--mx) * 70% + 15%); top:calc(var(--my) * 60% + 20%); width:42px; height:42px; border-radius:50%; background:var(--accent); filter:blur(5px); box-shadow:0 0 70px rgba(255,96,66,.6); transition:left .18s ease,top .18s ease; }
.type-specimen { margin-top:34px; display:flex; align-items:flex-start; }
.type-specimen span { font-size:clamp(90px,10vw,150px); line-height:.7; letter-spacing:-.09em; font-weight:800; }
.type-specimen em { font:italic 600 30px "Playfair Display"; color:var(--accent); margin-left:10px; }
.cell-type p { position:absolute; bottom:20px; right:20px; text-align:right; }
.material-sample { position:absolute; inset:54px 20px 50px; }
.material-sample span { position:absolute; display:block; border:1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px rgba(255,255,255,.12), 0 18px 60px rgba(0,0,0,.18); backdrop-filter:blur(10px) saturate(140%); -webkit-backdrop-filter:blur(10px) saturate(140%); }
.material-a { inset:12% 32% 5% 8%; background:linear-gradient(145deg,rgba(149,168,255,.16),rgba(255,255,255,.025)); transform:rotate(-4deg); }
.material-b { inset:0 8% 24% 43%; background:linear-gradient(145deg,rgba(255,96,66,.15),rgba(255,255,255,.025)); transform:rotate(6deg); }
.material-c { width:96px; aspect-ratio:1; right:26%; bottom:5%; border-radius:50%; background:rgba(214,255,102,.18); }
.cell-material p { position:absolute; left:20px; bottom:18px; }
.cell-rule blockquote { margin:30px 0 0; font-size:clamp(31px,3.5vw,54px); line-height:.84; letter-spacing:-.055em; font-weight:800; }
.cell-rule blockquote em { font-family:"Playfair Display",serif; font-weight:600; color:var(--accent); }
.cell-rule p { position:absolute; right:18px; bottom:18px; max-width:240px; }
.motion-line { height:120px; display:flex; align-items:flex-end; gap:clamp(4px,1vw,14px); margin-top:24px; }
.motion-line i { flex:1; height:calc(12% + var(--vitality) * 74%); border-top:1px solid var(--ink); background:linear-gradient(to top,transparent,rgba(149,168,255,.14)); transform-origin:bottom; animation:pulseBar calc(1.7s + var(--order) * 1.2s) ease-in-out infinite alternate; }
.motion-line i:nth-child(2n) { animation-delay:-.7s; height:42%; }
.motion-line i:nth-child(3n) { animation-delay:-1.1s; height:74%; }
@keyframes pulseBar { to { transform:scaleY(.28); opacity:.42; } }
.motion-meta { display:flex; justify-content:space-between; margin-top:25px; font-size:8px; color:var(--muted); }

.instrument { padding-top:150px; padding-bottom:170px; border-top:1px solid var(--line); }
.instrument-head { margin-bottom:62px; }
.instrument-shell { min-height:620px; display:grid; grid-template-columns: 4fr 4fr 4fr; border:1px solid var(--line); background:linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.008)); box-shadow:inset 0 1px rgba(255,255,255,.05), 0 28px 90px rgba(0,0,0,.16); }
.instrument-shell > div { padding:28px; min-width:0; }
.instrument-shell > div + div { border-left:1px solid var(--line); }
.readout-title { font-size:9px; color:var(--muted); }
.state-word { margin-top:110px; font-size:clamp(55px,6vw,96px); line-height:.8; letter-spacing:-.07em; font-weight:800; transform:scaleX(calc(.85 + var(--friction) * .25)); transform-origin:left; }
.instrument-readout p { margin:30px 0 0; max-width:260px; color:var(--muted); font-size:13px; line-height:1.7; }
.state-meter { margin-top:80px; height:2px; background:var(--faint); }
.state-meter i { display:block; height:100%; width:calc((var(--order) + var(--vitality) + var(--friction)) / 3 * 100%); background:var(--accent); box-shadow:0 0 18px var(--accent); transition:width .4s ease; }
.controls { display:flex; flex-direction:column; justify-content:center; gap:58px; }
.control { display:block; }
.control-label { display:flex; align-items:baseline; justify-content:space-between; }
.control-label b { font-size:12px; letter-spacing:.06em; }
.control-label output { font:400 34px "DM Mono"; }
.control input { width:100%; margin:20px 0 10px; accent-color:var(--accent); cursor:ew-resize; }
.control small { font-size:10px; color:var(--muted); }
.instrument-diagram { position:relative; display:grid; place-items:center; overflow:hidden; perspective:1000px; cursor:grab; touch-action:none; user-select:none; }
.instrument-diagram.is-dragging { cursor:grabbing; }
.diagram-ring { position:absolute; width:54%; aspect-ratio:1; border:1px solid rgba(242,240,233,.35); border-radius:50%; transform-style:preserve-3d; }
.ring-1 { transform:rotateX(calc(38deg + var(--order) * 28deg)) rotateZ(calc(var(--vitality) * 60deg)); }
.ring-2 { width:42%; transform:rotateY(calc(42deg + var(--friction) * 44deg)) rotateZ(-24deg); border-color:rgba(255,96,66,.6); }
.ring-3 { width:28%; border-color:rgba(214,255,102,.55); transform:rotateX(72deg) rotateY(calc(var(--mx) * 80deg)); }
.diagram-core { width:22px; height:22px; border-radius:50%; background:var(--ink); box-shadow:0 0 55px rgba(255,96,66,.75); transform:translate(var(--diagram-dx, 0px), var(--diagram-dy, 0px)); transition:transform .16s cubic-bezier(.16,1,.3,1), box-shadow .2s ease; }
.instrument-diagram.is-dragging .diagram-core { transition:none; box-shadow:0 0 90px rgba(255,96,66,.9),0 0 150px rgba(149,168,255,.35); }
.diagram-cross { position:absolute; background:var(--line); }
.cross-x { width:100%; height:1px; }
.cross-y { height:100%; width:1px; }
.diagram-tag { position:absolute; font-size:8px; color:var(--muted); }
.tag-a { left:22px; top:22px; }.tag-b { right:22px; top:22px; }.tag-c { right:22px; bottom:22px; }
.diagram-hint { position:absolute; left:22px; bottom:22px; font-size:8px; color:var(--muted); letter-spacing:.08em; }

.manifesto { padding-top:170px; padding-bottom:170px; border-top:1px solid var(--line); }
.manifesto-rule { display:flex; justify-content:space-between; padding-bottom:18px; border-bottom:1px solid var(--line); font-size:9px; color:var(--muted); }
.manifesto-text { margin-top:52px; }
.manifesto-text p { margin:0; font-size:clamp(54px,9.4vw,168px); line-height:.82; letter-spacing:-.075em; font-weight:800; white-space:nowrap; }
.manifesto-text p:nth-child(2), .manifesto-text p:nth-child(5) { margin-left:19%; }
.manifesto-text .serif { font-family:"Playfair Display",serif; font-weight:600; color:var(--accent); }
.manifesto-text .outline { color:transparent; -webkit-text-stroke:1px rgba(242,240,233,.6); text-align:right; }
.manifesto-cn { margin:70px 0 0 auto; width:min(540px,100%); display:grid; grid-template-columns:1fr 1.7fr; gap:30px; color:var(--muted); font-size:13px; }
.manifesto-cn strong { color:var(--ink); font-weight:500; }
.continuum { margin-top:150px; border:1px solid var(--line); padding:20px; background:linear-gradient(145deg,rgba(255,255,255,.025),rgba(255,255,255,.006)); }
.continuum-label { display:flex; justify-content:space-between; color:var(--muted); font-size:8px; }
.continuum-track { position:relative; height:210px; margin:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); overflow:hidden; }
.continuum-grid { position:absolute; inset:0 75% 0 0; background-image:linear-gradient(to right,rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(to bottom,rgba(255,255,255,.12) 1px,transparent 1px); background-size:25% 25%; }
.continuum-glass { position:absolute; left:18%; top:24px; width:31%; height:160px; border:1px solid rgba(255,255,255,.2); background:linear-gradient(135deg,rgba(149,168,255,.15),rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.13), 0 22px 70px rgba(0,0,0,.2); backdrop-filter:blur(10px) saturate(145%); -webkit-backdrop-filter:blur(10px) saturate(145%); transform:skewX(-7deg); }
.continuum-type { position:absolute; left:44%; top:18px; font-size:150px; line-height:1; letter-spacing:-.09em; font-family:"Playfair Display",serif; font-style:italic; color:var(--ink); }
.continuum-object { position:absolute; right:7%; top:40px; width:130px; height:130px; border-radius:50%; border:1px solid var(--ink); box-shadow:0 0 70px rgba(255,96,66,.35), inset 0 0 40px rgba(149,168,255,.16); animation:continuumSpin 6s linear infinite; }
.continuum-object::after { content:""; position:absolute; inset:25%; border:1px solid var(--accent); border-radius:50%; transform:rotateX(65deg); }
@keyframes continuumSpin { to { transform:rotate(360deg); } }
.continuum > p { margin:16px 0 0; color:var(--muted); font-size:11px; }

.end { min-height:100svh; padding-top:140px; padding-bottom:24px; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; border-top:1px solid var(--line); }
.end-ghost { position:absolute; inset:5% auto auto 41%; font-size:44vw; line-height:.7; font-weight:900; letter-spacing:-.12em; color:rgba(255,255,255,.017); pointer-events:none; }
.end-title { position:relative; margin:28px 0 60px; font-size:clamp(66px,11vw,186px); line-height:.77; letter-spacing:-.078em; font-weight:800; }
.end-title em { font-family:"Playfair Display",serif; font-weight:600; color:var(--accent); }
.end-title span { color:transparent; -webkit-text-stroke:1px rgba(242,240,233,.64); }
.end-bottom { display:grid; grid-template-columns:1fr auto; align-items:end; gap:40px; padding-bottom:50px; }
.end-bottom p { margin:0; max-width:520px; color:var(--muted); font-size:13px; line-height:1.75; }
.replay { display:flex; align-items:center; gap:20px; border:0; background:none; padding:0; cursor:pointer; font:500 10px "DM Mono"; color:var(--muted); }
.footer { display:flex; justify-content:space-between; padding-top:16px; border-top:1px solid var(--line); color:rgba(242,240,233,.38); font-size:8px; }
.reveal { opacity:0; transform:translateY(24px); transition:opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity:1; transform:none; }
.grammar, .instrument, .manifesto, .end { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.scene:not(.is-active) .orbit-a,
.scene:not(.is-active) .orbit-b,
.scene:not(.is-active) .orbit-c,
.scene:not(.is-active) .orbit-d,
.scene:not(.is-active) .node,
.scene:not(.is-active) .motion-line i,
.scene:not(.is-active) .continuum-object { animation-play-state: paused; }

.user-idle .grain,
.user-idle .orbit-a,
.user-idle .orbit-b,
.user-idle .orbit-c,
.user-idle .orbit-d,
.user-idle .node,
.user-idle .motion-line i,
.user-idle .continuum-object { animation-play-state: paused; }
.user-idle .cell::after { opacity:.12; }
.user-active .cell::after { opacity:calc(.26 + var(--vitality) * .26); }
.organism-caption span:first-child,
.diagram-hint { transition:opacity .45s ease, color .45s ease; }
.user-idle .organism-caption span:first-child,
.user-idle .diagram-hint { opacity:.92; color:rgba(242,240,233,.72); }
.user-active .organism-caption span:first-child,
.user-active .diagram-hint { opacity:.42; }

@supports (animation-timeline: scroll()) {
  .topbar::after {
    animation: readingProgress 1ms linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes readingProgress { to { transform: scaleX(1); } }
}

@supports (animation-timeline: view()) {
  .continuum-glass {
    animation: glassTraverse 1ms linear both;
    animation-timeline: view(block);
    animation-range: entry 5% cover 72%;
  }
  .continuum-type {
    animation: typeTraverse 1ms linear both;
    animation-timeline: view(block);
    animation-range: entry 8% cover 70%;
  }
  .manifesto-text p.visible {
    animation: wordResolve 1ms linear both;
    animation-timeline: view(block);
    animation-range: entry 0% cover 42%;
  }
  @keyframes glassTraverse { from { translate: -38px 0; } to { translate: 34px 0; } }
  @keyframes typeTraverse { from { translate: 18px 0; } to { translate: -18px 0; } }
  @keyframes wordResolve { from { translate: 0 12px; scale: .985; } to { translate: 0 0; scale: 1; } }
}

::view-transition-old(root) { animation: vtOld .26s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vtNew .42s cubic-bezier(.16,1,.3,1) both; }
@keyframes vtOld { to { opacity:0; scale:.992; } }
@keyframes vtNew { from { opacity:0; scale:1.008; } }

@media (max-width: 980px) {
  .top-note { display:none; }.topbar { grid-template-columns:1fr 1fr; }
  .hero { grid-template-columns:1fr; padding-top:110px; }.hero-copy { min-height:66svh; }.hero-note { margin-left:28%; }
  .organism-wrap { width:100%; aspect-ratio:1.5; border-top:1px solid var(--line); }.organism { width:42%; }
  .scene-head { grid-template-columns:1fr; gap:22px; }.scene-head .eyebrow, .scene-head h2 { grid-column:1; }
  .living-grid { grid-template-rows:400px 270px 270px 250px; }.cell-spatial { grid-column:1/13; grid-row:1; }.cell-type { grid-column:1/7; grid-row:2; }.cell-material { grid-column:7/13; grid-row:2; }.cell-rule { grid-column:1/13; grid-row:3; }.cell-motion { grid-column:1/13; grid-row:4; }
  .instrument-shell { grid-template-columns:1fr 1fr; }.instrument-diagram { grid-column:1/3; height:420px; border-left:0 !important; border-top:1px solid var(--line); }
  .manifesto-text p { white-space:normal; }
}

@media (max-width: 680px) {
  :root { --pad: 18px; }.topbar { height:58px; backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px); }.index-panel { top:58px; min-height:calc(100vh - 58px); padding:30px 22px; }.index-panel nav a { grid-template-columns:34px 1fr; }.index-panel nav small { display:none; }.side-index, .pointer-light { display:none; }
  .hero { padding-top:88px; }.display { font-size:clamp(54px,19vw,104px); }.hero-note { margin-left:0; grid-template-columns:1fr; width:78%; }.organism-wrap { aspect-ratio:1; }.organism { width:64%; }.scroll-cue { display:none; }
  .grammar, .instrument, .manifesto { padding-top:110px; padding-bottom:110px; }.scene-head { margin-bottom:42px; }.scene-head h2 { font-size:41px; }
  .living-grid { display:block; border-top:1px solid var(--line); }.cell { min-height:250px; border-left:1px solid var(--line); }.cell-spatial { min-height:470px; display:block; }.mini-field { height:230px; display:grid; }.cell-copy { display:block; }.cell-copy p { margin-top:20px; }.cell-type { min-height:250px; }.cell-material { min-height:280px; }.cell-rule { min-height:300px; }.cell-rule p { left:20px; right:auto; }
  .instrument-shell { grid-template-columns:1fr; min-height:0; }.instrument-shell > div { min-height:380px; }.instrument-shell > div + div { border-left:0; border-top:1px solid var(--line); }.instrument-diagram { grid-column:1; height:390px; }.state-word { margin-top:90px; }
  .manifesto-rule span:last-child { display:none; }.manifesto-text p { font-size:clamp(48px,17vw,88px); }.manifesto-text p:nth-child(2), .manifesto-text p:nth-child(5) { margin-left:8%; }.manifesto-cn { grid-template-columns:1fr; }
  .continuum { margin-top:90px; padding:14px; }.continuum-track { height:170px; }.continuum-type { font-size:105px; left:35%; top:28px; }.continuum-object { width:90px; height:90px; top:40px; right:4%; }
  .end { padding-top:100px; }.end-title { font-size:clamp(62px,19vw,98px); margin-bottom:50px; }.end-bottom { grid-template-columns:1fr; }.footer { gap:18px; flex-wrap:wrap; }
}

@media (max-width: 680px), (prefers-reduced-motion: reduce) {
  .grain { animation:none; opacity:.018; }
  .material-sample span, .continuum-glass { backdrop-filter:none; -webkit-backdrop-filter:none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; } }
