/* EWM Challenge — shared styles */
:root {
  --bg: #050608;
  --fg: #eef2ee;
  --muted: #8b958f;
  --line: rgba(255, 255, 255, 0.10);
  --card: rgba(12, 14, 16, 0.78);
  --holo: #00ff88;
  --holo-2: #00c2a8;
  --holo-deep: #02140c;
  --city: #b06bff;
  --city-2: #ff5fd2;
  --city-deep: #0d0519;
  --sw: #8fd6ff;          /* EWM Challenge: ice blue, above the two worlds' green and violet */
  --sw-2: #e4f3ff;
  --sw-deep: #04121c;
  --accent: var(--holo);
  --accent-2: var(--holo-2);
  --deep: var(--holo-deep);
  --radius: 14px;
  --font-display: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
.theme-city { --accent: var(--city); --accent-2: var(--city-2); --deep: var(--city-deep); }
.theme-sw { --accent: var(--sw); --accent-2: var(--sw-2); --deep: var(--sw-deep); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, summary { text-wrap: balance; }
p, li, td { text-wrap: pretty; }
.stat > span { display: block; text-wrap: balance; }   /* never matches the .ph spans themselves */
.ph { white-space: nowrap; text-wrap-mode: nowrap; }        /* a CJK phrase kept on one line (see i18n.js) */
.brand-sub { font-weight: 500; color: var(--muted); }
@media (max-width: 420px) { .brand-sub { display: none; } }
img, video, canvas, iframe { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #000; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: translate .6s cubic-bezier(.22,1,.36,1), background-color .4s, padding .3s; view-transition-name: topbar;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar.tucked { translate: 0 -105%; }   /* hidden while scrolling down, back on the way up */
.topbar.solid {
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
  transition: padding .3s;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; font-size: 18px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; position: relative; overflow: hidden;
  background: conic-gradient(from 200deg, var(--holo), #0a3 25%, #111 50%, var(--city) 75%, var(--holo));
  animation: spin 8s linear infinite;
}
.brand-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 4px; background: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { display: flex; gap: 26px; align-items: center; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.nav-links { display: flex; gap: 22px; position: relative; padding: 6px 0; }
/* reading progress under the section links: fills left to right, reaching each link as its section arrives */
.nav-links .nav-track, .nav-links .nav-bar { position: absolute; left: 0; bottom: -3px; pointer-events: none; border-radius: 2px; }
.nav-links .nav-track { right: 0; height: 1px; background: var(--line); }
.nav-links .nav-bar { height: 2px; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
.nav-links a { transition: color .3s; }
.nav-links a.active { color: var(--fg); }
.lang-toggle { white-space: nowrap; flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--fg);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- track chooser (tracks.html) ----------
   Three panels each cover the full screen; two diagonal seams decide what each shows.
   The media layers never resize, so video and canvases keep playing smoothly on hover.
   --c1 / --c2 = where the seams cross the vertical centre; --lean = half the horizontal run
   of a line 12° off vertical across the full height (tan 12° ≈ 0.2126 → 10.63vh). */
@property --c1 { syntax: "<percentage>"; inherits: true; initial-value: 33.33%; }
@property --c2 { syntax: "<percentage>"; inherits: true; initial-value: 66.67%; }
.split {
  --c1: 33.33%; --c2: 66.67%; --lean: 10.63vh;
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #000;
  transition: --c1 1.4s cubic-bezier(.22,1,.36,1), --c2 1.4s cubic-bezier(.22,1,.36,1);
}
.split:has(.side-t1:hover) { --c1: 40%; --c2: 70%; }
.split:has(.side-t2:hover) { --c1: 28%; --c2: 72%; }
.split:has(.side-t3:hover) { --c1: 30%; --c2: 60%; }
.side { position: absolute; inset: 0; overflow: hidden; isolation: isolate; display: block; cursor: pointer; }
.side-t1 { clip-path: polygon(0 0, calc(var(--c1) + var(--lean)) 0, calc(var(--c1) - var(--lean)) 100%, 0 100%);
  background: radial-gradient(120% 90% at 18% 30%, #063a22 0%, #02140c 45%, #000 100%); }
.side-t2 { clip-path: polygon(calc(var(--c1) + var(--lean)) 0, calc(var(--c2) + var(--lean)) 0, calc(var(--c2) - var(--lean)) 100%, calc(var(--c1) - var(--lean)) 100%);
  background: radial-gradient(90% 80% at 50% 40%, #04302c 0%, #021412 45%, #000 100%); }
.side-t3 { clip-path: polygon(calc(var(--c2) + var(--lean)) 0, 100% 0, 100% 100%, calc(var(--c2) - var(--lean)) 100%);
  background: radial-gradient(120% 90% at 82% 70%, #2a0e4a 0%, #0d0519 45%, #000 100%); }
.side-t1, .side-t2 { --c-col: var(--holo); }
.side-t2 { --c-col: #3ff2c8; }
.side-t3 { --c-col: var(--city); }
.side canvas.fx, .side video.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side canvas.fx { z-index: -1; }
/* canvases only span the widest each panel can become (performance: ~half the pixels of full-screen layers) */
.side-t1 canvas.fx, .side-t1 canvas.fx-top { left: 0; width: 48%; }
.side-t2 canvas.fx { left: 20%; width: 58%; }
.side-t3 canvas.fx { left: 24%; width: 76%; }
.side .tint { position: absolute; z-index: -2; inset: auto 0 0 auto; width: min(62vw, 1000px); aspect-ratio: 16 / 9; max-width: 100%; background: rgba(46, 12, 92, .55); pointer-events: none; }
.side canvas.fx.flip { transform: scaleY(-1); }   /* Agentic City: the district hangs from the top edge */
.side video.bg-video { z-index: -2; opacity: .3;
  inset: auto 0 0 auto; width: min(62vw, 1000px); height: auto; aspect-ratio: 16 / 9; max-width: 100%;
  -webkit-mask-image: radial-gradient(110% 110% at 90% 95%, #000 50%, transparent 80%); mask-image: radial-gradient(110% 110% at 90% 95%, #000 50%, transparent 80%); }
.side canvas.fx-top {
  position: absolute; left: 0; top: 0; height: 58%; z-index: -2; opacity: .4;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 98%); mask-image: linear-gradient(180deg, #000 50%, transparent 98%);
}
.side::before { /* vignette */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 32%, transparent 52%, rgba(0,0,0,.88) 100%);
}
.side::after { /* dim layer for the panels that aren't hovered */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(0,0,0,0); transition: background-color 1.2s cubic-bezier(.22,1,.36,1);
}
.split:has(.side:hover) .side:not(:hover)::after { background-color: rgba(0,0,0,.45); }

/* each panel's text sits low in its own column, clear of both seams */
.side-content { position: absolute; z-index: 2; bottom: clamp(36px, 8vh, 84px); transition: left 1.4s cubic-bezier(.22,1,.36,1), width 1.4s cubic-bezier(.22,1,.36,1); }
.side-t1 .side-content { left: clamp(20px, 3vw, 48px); width: calc(var(--c1) - var(--lean) - clamp(20px, 3vw, 48px) - 28px); }
.side-t2 .side-content { left: calc(var(--c1) + 28px); width: calc(var(--c2) - var(--c1) - var(--lean) - 56px); }
.side-t3 .side-content { left: calc(var(--c2) + 28px); width: calc(100% - var(--c2) - 28px - clamp(20px, 3vw, 48px)); }
.track-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-col); margin-bottom: 14px;
}
.track-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-col); box-shadow: 0 0 12px var(--c-col); animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.side h2 {
  font-family: var(--font-display); font-weight: 700; line-height: .98; letter-spacing: -.035em;
  font-size: clamp(32px, 3.6vw, 60px); color: #fff;
  text-shadow: 0 0 60px color-mix(in srgb, var(--c-col) 45%, transparent);
}
.side .world { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.side .lede { margin-top: 14px; max-width: 36ch; color: rgba(255,255,255,.8); font-size: clamp(14px, 1.05vw, 16px); }
.chip { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px 12px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.enter {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: #000; background: var(--c-col); padding: 13px 22px; border-radius: 999px;
  box-shadow: 0 10px 40px -10px var(--c-col);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .6s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.enter .arrow { transition: transform .3s; }
.side:hover .enter { box-shadow: 0 18px 60px -14px var(--c-col); }
.side:hover .enter .arrow { transform: translateX(6px); }

.divider {
  position: absolute; z-index: 5; top: 50%; width: 2px; height: 130vh;
  transform: translate(-50%, -50%) rotate(12deg); pointer-events: none;
}
.divider.d1 { left: var(--c1); background: linear-gradient(180deg, transparent, var(--holo) 30%, #fff 50%, #3ff2c8 70%, transparent); box-shadow: 0 0 24px rgba(0,255,136,.5); }
.divider.d2 { left: var(--c2); background: linear-gradient(180deg, transparent, #3ff2c8 30%, #fff 50%, var(--city) 70%, transparent); box-shadow: 0 0 24px rgba(176,107,255,.6); }
.divider::after { /* a spark that travels along the seam */
  content: ""; position: absolute; left: 50%; top: 0; width: 6px; height: 90px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, #fff, transparent); filter: blur(1px);
  animation: spark 3.2s linear infinite;
}
.divider.d2::after { animation-delay: -1.6s; }
@keyframes spark { from { top: -10%; } to { top: 100%; } }
/* chooser heading: fixed at the top centre, dims on the same timing as the seams */
.chooser-head {
  position: absolute; z-index: 6; top: clamp(84px, 13vh, 130px); left: 50%; transform: translateX(-50%); width: min(92vw, 900px);
  text-align: center; pointer-events: none; transition: opacity 1.4s cubic-bezier(.22,1,.36,1);
  padding: 28px 24px; border-radius: 40px; background: radial-gradient(closest-side, rgba(0,0,0,.72), rgba(0,0,0,.45) 60%, transparent);
}
.chooser-head .kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--sw); }
.chooser-head h1 { margin-top: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-size: clamp(36px, 5vw, 76px); color: #fff;
  text-shadow: 0 0 50px color-mix(in srgb, var(--sw) 45%, transparent); }
.chooser-head p { margin-top: 12px; font-family: var(--font-mono); font-size: clamp(11px, .95vw, 13px); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.split:has(.side:hover) .chooser-head { opacity: .25; }
.hint {
  position: absolute; z-index: 6; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .25em; color: rgba(255,255,255,.45); text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 860px) {
  .split { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding-top: 76px; }
  .side { position: relative; inset: auto; clip-path: none; min-height: 72svh; }
  .side-content, .side-t1 .side-content, .side-t2 .side-content, .side-t3 .side-content { left: 20px; right: 20px; width: auto; bottom: 40px; }
  .side video.bg-video { width: 100%; }
  .divider { display: none; }
  .chooser-head { position: relative; order: -1; top: auto; left: auto; transform: none; width: auto; margin: 0 16px 24px; }
  .split:has(.side:hover) .chooser-head { opacity: 1; }
  .hint { display: none; }
}

/* ---------- inner pages ---------- */
.page { position: relative; }
.page-bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 50% 0%, var(--deep) 0%, var(--bg) 70%); }
.page-bg canvas { width: 100%; height: calc(100% + 170px); opacity: .38; }   /* extra height: it drifts up as the page scrolls */
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero video { position: absolute; inset: auto 0 auto auto; top: 50%; transform: translateY(-46%); width: min(74vw, 1180px); height: auto; aspect-ratio: 16 / 9; max-width: 100%; object-fit: cover; opacity: .3; -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 40%, transparent 78%); mask-image: radial-gradient(70% 70% at 60% 50%, #000 40%, transparent 78%); z-index: -1; filter: grayscale(.3) sepia(.3) hue-rotate(220deg) saturate(2) brightness(.65) contrast(1.15); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,6,8,.2), rgba(5,6,8,.4) 60%, var(--bg)); }
/* scroll cue at the bottom of a track hero: breathes gently, fades away once the reader scrolls */
.scroll-cue {
  position: fixed; z-index: 40; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;   /* pinned to the first screen whatever the hero height */
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px);
  animation: cue-breathe 2.6s ease-in-out infinite; transition: opacity .6s cubic-bezier(.22,1,.36,1);
}
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scroll-cue:hover, .scroll-cue:focus-visible { border-color: var(--accent); }
.scroll-cue.gone { animation: none; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s, visibility 0s .6s; }   /* the breathing animation would otherwise keep it visible */
@keyframes cue-breathe {
  0%, 100% { transform: translateY(0); opacity: .45; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
  50% { transform: translateY(6px); opacity: 1; box-shadow: 0 0 22px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
}
section.block[id] { scroll-margin-top: 72px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: inline-block; line-height: 1.8; }
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 26px; height: 1px; margin-right: 10px; background: var(--accent); }
@media (max-width: 360px) {
  .hero-initiative { display: inline-flex; align-items: center; max-width: 100%; }
  .hero-initiative::before { flex: 0 0 26px; }
  .hero-initiative .ph { white-space: normal; text-wrap-mode: wrap; }
}
.hero h1 {
  margin-top: 22px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: .98;
  font-size: clamp(44px, 8vw, 116px); max-width: 14ch;
}
.hero h1 .glow { color: var(--accent); text-shadow: 0 0 50px color-mix(in srgb, var(--accent) 55%, transparent); }
.hero .lede { margin-top: 26px; font-size: clamp(16px, 1.5vw, 20px); color: rgba(255,255,255,.78); max-width: 60ch; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 13px 22px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: all .25s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 10px 40px -12px var(--accent); }
.btn-primary:hover { color: #000; box-shadow: 0 16px 50px -10px var(--accent); }
.btn .soon { font-size: 10px; opacity: .7; border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.btn[aria-disabled="true"] { cursor: default; opacity: .75; }

.stats { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(5,6,8,.75); padding: 22px; backdrop-filter: blur(8px); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); letter-spacing: -.02em; color: var(--fg); }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

section.block { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 56px; }
.sec-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .2em; }
.sec-head h2 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -.035em; line-height: 1.02; margin-top: 10px; }
.sec-head p { color: var(--muted); font-size: 17px; max-width: 62ch; }
@media (max-width: 860px) { .sec-head { gap: 14px; } }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 26px; overflow: hidden; transition: border-color .4s, translate .6s cubic-bezier(.22,1,.36,1), rotate .6s cubic-bezier(.22,1,.36,1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  rotate: var(--tilt, 0 0 1 0deg);   /* set by fx.js from the pointer; individual properties never fight reveal transforms */
}
.card::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); translate: 0 -3px; }
.grid, .people, .host-grid { perspective: 1400px; }
.card:hover::before { opacity: 1; }
.card h3 { font-family: var(--font-display); font-size: 21px; letter-spacing: -.01em; margin-bottom: 10px; }
.card p, .card li { color: rgba(255,255,255,.72); font-size: 15px; }
.card ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.card li { padding-left: 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.card .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.card .icon svg { width: 22px; height: 22px; }
.card.big { padding: 34px; }
.card.big h3 { font-size: 28px; }
.badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); margin-bottom: 14px; }

/* flow / steps */
.flow { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; counter-reset: step; position: relative; }
.flow::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .5; }
.flow .step { position: relative; padding-right: 18px; counter-increment: step; }
.flow .step::before {
  content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 13px; background: var(--bg); border: 1px solid var(--accent); color: var(--accent);
  position: relative; z-index: 1; margin-bottom: 18px; box-shadow: 0 0 22px -4px var(--accent);
}
.flow .step h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.flow .step p { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .flow .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0; }
  .flow .step::before { margin: 0; grid-row: span 2; }
}

/* timeline */
.timeline { position: relative; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 170px 28px 1fr; gap: 18px; padding: 18px 0; align-items: start; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-date { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.tl-date small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tl-dot { width: 12px; height: 12px; margin: 6px auto 0; border-radius: 50%; border: 2px solid var(--accent); }
.tl-item.done .tl-dot { background: var(--accent); }
.tl-item.next .tl-dot { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse 1.6s infinite; }
.tl-body h4 { font-family: var(--font-display); font-size: 18px; }
.tl-body p { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } .tl-dot { display: none; } }
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* countdown */
.countdown { display: inline-flex; gap: 10px; margin-top: 30px; font-family: var(--font-mono); align-items: center; flex-wrap: wrap; }
.countdown .lbl { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.countdown .u { min-width: 64px; text-align: center; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.countdown .u b { display: block; font-size: 24px; color: var(--accent); font-weight: 500; }
.countdown .u i { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.countdown-target { flex-basis: 100%; color: var(--muted); font-size: 11px; line-height: 1.6; }
.research-note { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.research-note p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 90ch; }
.research-note a { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 13px; }
.data-use-list li { margin: 10px 0; color: var(--muted); line-height: 1.8; }

/* score ring */
.score { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.ring { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 22; }
.ring .track { stroke: rgba(255,255,255,.07); }
.ring .a { stroke: var(--accent); stroke-linecap: butt; transition: stroke-dasharray 1.8s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 10px var(--accent)); }
.ring .b { stroke: var(--accent-2); transition: stroke-dasharray 1.8s cubic-bezier(.2,.8,.2,1), stroke-dashoffset 1.8s cubic-bezier(.2,.8,.2,1); }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .center b { font-family: var(--font-display); font-size: 54px; letter-spacing: -.03em; display: block; line-height: 1; }
.ring .center span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; color: var(--muted); }
.legend { display: grid; gap: 16px; }
.legend .row { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.legend .pct { font-family: var(--font-display); font-size: 34px; letter-spacing: -.03em; }
.legend .row:nth-child(1) .pct { color: var(--accent); }
.legend .row:nth-child(2) .pct { color: var(--accent-2); }
.legend .row:nth-child(3) .pct { color: #ff6b6b; font-size: 24px; }
.legend h4 { font-family: var(--font-display); font-size: 18px; }
.legend p { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .score { grid-template-columns: 1fr; justify-items: center; } .legend { width: 100%; } }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; display: block; position: relative; }   /* block, so phrase spans flow as text */
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 22px; font-family: var(--font-mono); color: var(--accent); font-size: 20px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: rgba(255,255,255,.72); font-size: 15px; }

/* table */
.dims { width: 100%; border-collapse: collapse; font-size: 15px; }
.dims th, .dims td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dims th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.dims td:first-child { font-weight: 600; white-space: nowrap; }
.dims td { color: rgba(255,255,255,.78); }
.dims tr:hover td { background: rgba(255,255,255,.02); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

/* flip cards (stress) */
.flip { perspective: 900px; height: 170px; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.3,.7,.2,1); transform-style: preserve-3d; }
.flip:hover .flip-inner, .flip:focus-within .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; background: var(--card); }
.flip-face.back { transform: rotateY(180deg); background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, #000), #000); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.flip-face .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.flip-face h4 { font-family: var(--font-display); font-size: 19px; }
.flip-face p { font-size: 14px; color: rgba(255,255,255,.78); }

/* radar */
.radar-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.radar { width: 100%; max-width: 520px; margin: 0 auto; overflow: visible; }
.radar .grid-poly { fill: none; stroke: rgba(255,255,255,.1); }
.radar .axis { stroke: rgba(255,255,255,.08); }
.radar .shape { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 12px var(--accent)); transform-origin: 50% 50%; transform: scale(.05); transition: transform 1.6s cubic-bezier(.2,.9,.2,1.2); }
.radar.in .shape { transform: scale(1); }
.radar text { fill: rgba(255,255,255,.8); font-size: 13px; font-family: var(--font-body); }
@media (max-width: 860px) { .radar-wrap { grid-template-columns: 1fr; } }

/* loop diagram */
.loop { width: 100%; max-width: 520px; margin: 0 auto; }
.loop .orbit { fill: none; stroke: color-mix(in srgb, var(--accent) 40%, transparent); stroke-width: 1.5; stroke-dasharray: 6 8; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.loop .node circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.loop .node text { fill: #fff; font-size: 15px; font-family: var(--font-display); text-anchor: middle; dominant-baseline: middle; }
.loop .runner { fill: var(--accent-2); filter: drop-shadow(0 0 8px var(--accent-2)); }
.loop .core { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); }
.loop .core-t { fill: var(--accent); font-family: var(--font-mono); font-size: 13px; text-anchor: middle; letter-spacing: .1em; }

/* embed */
.embed { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: #000; box-shadow: 0 30px 120px -40px var(--accent); }
.embed-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.embed-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.embed-bar .url { margin-left: 10px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-bar a { color: var(--accent); }
.embed iframe { width: 100%; height: min(78vh, 760px); border: 0; background: #fff; }
.embed .fallback { position: absolute; inset: 44px 0 0 0; display: none; place-items: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 18%, #000), #000); }
.embed.failed .fallback { display: grid; }

/* Agentic City studio: load its map and 3D assets only on request. */
.city-demo .sec-head { margin-bottom: 30px; }
.city-demo-cover { min-height: 420px; display: flex; align-items: center; padding: clamp(28px, 6vw, 76px); background: linear-gradient(90deg, rgba(13,5,25,.96), rgba(13,5,25,.8) 46%, rgba(13,5,25,.3)), url(../media/agentic-city-demo-map.svg) center / cover; }
.city-demo-intro { max-width: 620px; }
.city-demo-intro h3 { margin: 20px 0 16px; font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
.city-demo-intro p { max-width: 46ch; color: rgba(255,255,255,.76); }
.city-demo-shell iframe { display: block; height: clamp(600px, 82vh, 940px); }
.city-demo-shell [hidden] { display: none; }
.city-demo-note, .city-demo-loading { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 90ch; }
.city-demo-loading { color: var(--accent); }
.city-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.city-video-guide { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.city-video-guide figcaption { flex: 1; padding: 0 0 20px; }
.city-video-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.city-video-meta .k { color: var(--accent); letter-spacing: .1em; }
.city-video-guide h3 { margin: 12px 0 10px; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.city-video-guide p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.city-video-guide .demo-frame video { object-fit: contain; }
.city-video-language { margin: 18px 0 38px; color: var(--muted); font-size: 12px; }
@media (max-width: 860px) {
  .city-video-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .city-demo-cover { min-height: 400px; }
  .city-demo .embed-bar { flex-wrap: wrap; }
  .city-demo .embed-bar .url { flex-basis: calc(100% - 74px); }
  .city-demo .embed-bar a { margin-left: auto; }
  .city-demo .cta-row { gap: 10px; }
  .city-demo .btn { font-size: 11px; padding: 12px 16px; }
  .city-demo-shell iframe { height: 760px; }
}

.demo-frame { border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); position: relative; background: #000; }
.demo-frame video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.demo-frame .tag { position: absolute; left: 16px; top: 16px; }

/* sponsor tiers */
.tier { text-align: left; }
.tier .tier-name { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.tier.t1 .tier-name { background: linear-gradient(90deg, #e5e4e2, #b8c6db, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier.t2 .tier-name { color: #f5c542; }
.tier.t3 .tier-name { color: #c9d1d9; }
.tier.t4 .tier-name { color: #d08a5a; }

/* contact */
.contact { border-radius: 22px; padding: clamp(32px, 6vw, 72px); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--card); position: relative; overflow: hidden; }
.contact h2 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 56px); letter-spacing: -.03em; line-height: 1.05; }
.contact p { margin-top: 14px; color: var(--muted); max-width: 56ch; }

footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--fg); }
footer .wrap.legal { display: block; margin-top: 18px; font-size: 12px; line-height: 1.6; opacity: .85; }
footer .legal p { margin: 0 0 6px; max-width: 880px; }

/* track switcher pill (inner pages) */
.switch-track { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); }
.switch-track:hover { border-color: var(--accent); }

/* Shared registration entry and the dedicated signup page. */
.registration-nav { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--fg); white-space: nowrap; }
.registration-banner { display: grid; grid-template-columns: minmax(0, 1fr) 224px; align-items: center; gap: clamp(28px, 6vw, 80px); padding: clamp(26px, 5vw, 60px); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 24px; background: radial-gradient(ellipse at 5% 0, rgba(0, 255, 136, .09), transparent 65%), var(--card); }
.registration-banner h2 { margin: 16px 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: -.03em; }
.registration-banner p { color: var(--muted); max-width: 60ch; }
.registration-banner .cta-row { margin-top: 26px; }
.registration-qr { display: grid; gap: 15px; justify-items: center; text-align: center; font-size: 13px; color: var(--muted); }
.registration-qr img { width: 224px; height: 224px; background: #fff; border: 10px solid #fff; border-radius: 12px; }
.registration-caption { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 18px; }
.registration-hero { padding: clamp(130px, 14vw, 180px) 0 70px; }
.registration-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.registration-back { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 38px; }
.registration-intro .eyebrow { display: block; font-size: 11px; line-height: 1.6; letter-spacing: .13em; }
.registration-intro h1 { margin: 20px 0; font: 600 clamp(44px, 5.5vw, 76px)/1.04 var(--font-display); letter-spacing: -.045em; }
.registration-lede { font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 38ch; }
.registration-track-links { margin-top: 34px; display: grid; }
.registration-track-links a { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.registration-track-links a > span { font: 12px var(--font-mono); color: var(--accent); }
.registration-track-links a > span:last-child { margin-left: auto; }
.registration-track-links b { font-weight: 500; font-size: 16px; }
.registration-track-links small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.registration-panel { min-width: 0; border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 3vw, 40px); background: linear-gradient(145deg, rgba(0, 255, 136, .045), transparent 60%), var(--card); }
.registration-free { display: inline-block; color: var(--accent); font: 11px var(--font-mono); letter-spacing: .1em; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 8px 12px; }
.registration-panel h2 { font: 500 clamp(27px, 3vw, 38px)/1.2 var(--font-display); letter-spacing: -.025em; margin: 22px 0 14px; }
.registration-panel > p, .registration-checklist li > span { color: var(--muted); font-size: 14px; line-height: 1.75; }
.registration-checklist { list-style: decimal-leading-zero; padding-left: 28px; margin: 28px 0; }
.registration-checklist li { padding-left: 8px; margin-bottom: 20px; }
.registration-checklist li::marker { color: var(--accent); font: 12px var(--font-mono); }
.registration-checklist li > b, .registration-checklist li > span { display: block; }
.registration-checklist b { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.registration-action .btn { width: 100%; justify-content: center; }
.registration-action .btn[aria-disabled="true"] { box-shadow: none; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }
.registration-action .registration-caption { margin-top: 12px; }
[data-registration-ready][hidden], [data-registration-pending][hidden] { display: none; }
.registration-panel .registration-panel-contact { padding-top: 24px; margin-top: 26px; border-top: 1px solid var(--line); }
.registration-panel-contact span, .registration-panel-contact a { display: block; }
.registration-panel-contact a { margin-top: 3px; color: var(--fg); overflow-wrap: anywhere; }
.registration-opening { border-block: 1px solid var(--line); padding: 32px 0; }
.registration-opening .eyebrow { font-size: 11px; }
.registration-opening h2 { margin: 12px 0 8px; font: 500 clamp(22px, 3vw, 32px)/1.25 var(--font-display); letter-spacing: -.02em; }
.registration-opening p { color: var(--muted); font-size: 14px; }
.registration-information .card p { font-size: 15px; line-height: 1.85; }
.registration-text-link { display: inline-block; margin-top: 20px; font-size: 13px; color: var(--accent); }
@media (max-width: 760px) {
  .registration-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .registration-banner { grid-template-columns: minmax(0, 1fr); }
  .registration-qr { justify-self: start; }
  .registration-qr img { width: 200px; height: 200px; }
  .registration-lede { max-width: none; }
  .registration-back { margin-bottom: 26px; }
}
@media (max-width: 480px) {
  .topbar .nav { gap: 10px; }
  .registration-nav { font-size: 11px; padding-inline: 10px; }
  .registration-banner .cta-row .btn { width: 100%; justify-content: center; }
}

/* reveal */
/* reveal: content is visible by default; .pre (added by script only while the page is actually playing) hides it until scrolled in */
.reveal { transition: opacity 1.1s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.22,1,.36,1), filter 1.1s cubic-bezier(.22,1,.36,1); }
.reveal.pre { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.reveal.pre.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.marquee .track { display: inline-flex; gap: 48px; animation: marq 40s linear infinite; padding-left: 48px; }
.marquee b { color: var(--accent); font-weight: 400; }
@keyframes marq { to { transform: translateX(-50%); } }

/* cursor glow */
.cursor-glow { position: fixed; z-index: 60; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%); mix-blend-mode: screen; transition: opacity .3s; will-change: transform; }
@media (hover: none) { .cursor-glow { display: none; } }


/* ---------- scroll-driven scenes ---------- */
[data-scene] { position: relative; height: var(--len, 300vh); --p: 0; }
.scene-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.calm [data-scene] { height: auto; }
.calm .scene-stick { position: static; height: auto; overflow: visible; padding-block: 80px; }
@media (max-width: 760px) { [data-scene] { height: var(--len-m, 220vh); } }

/* HoloBit · statement that writes itself, then zooms through the screen */
.scene-statement { --len: 300vh; --len-m: 240vh; }
.scene-statement .scene-stick { align-items: center; text-align: center;
  background: radial-gradient(60% 50% at 50% 55%, color-mix(in srgb, var(--accent) calc(var(--p) * 22%), transparent), transparent 70%); }
.statement { display: grid; gap: .1em; padding-inline: 16px; transform-origin: 50% 46%;
  transform: scale(calc(1 + max(0, var(--p) - .72) * 26)); opacity: calc(1 - max(0, var(--p) - .8) * 5); will-change: transform; }
.st-line { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(44px, 9vw, 150px); color: var(--fg); opacity: .08; filter: blur(6px); transform: translateY(.18em);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), filter .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.st-line.on { opacity: 1; filter: none; transform: none; }
.st-line:last-of-type.on { color: var(--accent); text-shadow: 0 0 60px color-mix(in srgb, var(--accent) 55%, transparent); }
.st-sub { margin-top: 28px; font-family: var(--font-mono); font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity .8s; }
.st-sub.on { opacity: 1; }

/* HoloBit · live trading terminal behind the hero copy */
.theme-holo .hero .wrap { position: relative; z-index: 1; }
.theme-holo .hero canvas.hero-term { position: absolute; z-index: 0; right: 0; top: 50%; translate: 0 -46%;
  width: min(56vw, 860px); height: min(66vh, 580px); opacity: .62; pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 72% at 68% 50%, #000 42%, transparent 82%); mask-image: radial-gradient(70% 72% at 68% 50%, #000 42%, transparent 82%); }
@media (max-width: 900px) { .theme-holo .hero canvas.hero-term { display: none; } }

/* HoloBit · the highlighted word in the hero title carries a slow moving gradient */
.theme-holo .hero h1 .glow { color: var(--accent); text-shadow: none;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 30%, #c9ffe6 50%, var(--accent-2) 70%, var(--accent) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--accent) 40%, transparent)); animation: glow-flow 7s linear infinite; }
@keyframes glow-flow { to { background-position: -200% 0; } }

/* HoloBit · a small live chart at the top of each track card */
.card .card-art { position: relative; height: 136px; margin: -26px -26px 22px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 100% at 50% 100%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.card .card-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card .card-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, var(--card)); }

/* HoloBit · step lines draw themselves as the block slides up, and each step lights up as the line reaches it */
.flow[data-scene] { height: auto; }
.flow[data-scene]::before { transform-origin: left center; transform: scaleX(var(--p)); opacity: .85; transition: transform .2s linear; }
.flow[data-scene] .step::before { color: var(--muted); border-color: var(--line); box-shadow: none;
  transition: color .5s, border-color .5s, box-shadow .5s, background-color .5s; }
.flow[data-scene] .step.on::before { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 22px -4px var(--accent); }
.flow[data-scene] .step.now::before { background-color: color-mix(in srgb, var(--accent) 16%, var(--bg)); animation: step-glow 1.8s ease-in-out infinite; }
@keyframes step-glow { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 28px -2px var(--accent); } }
@media (max-width: 860px) { .flow[data-scene]::before { transform-origin: center top; transform: scaleY(var(--p)); } }

/* line icons trace themselves when their card scrolls in */
.icon.draw svg > * { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.22,1,.36,1) .25s; }
.pre:not(.in) .icon.draw svg > * { stroke-dashoffset: 1; transition: none; }

/* Agentic City · builder grows from a card to the stage, then the conversation plays with the scroll */
.scene-builder { --len: 340vh; --len-m: 260vh; }
.scene-builder .builder { transform: scale(calc(.62 + min(var(--p) / .28, 1) * .38)); transform-origin: 50% 50%;
  border-radius: calc(36px - min(var(--p) / .28, 1) * 18px); will-change: transform; }
.scene-builder .msg { transition: opacity .5s, transform .5s cubic-bezier(.22,1,.36,1); }
.scene-builder .scene-cap { text-align: center; margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }




/* ---------- EWM Challenge home ---------- */
.hero-sw { isolation: isolate; }
.hero-sw::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 35% 40% at 75% 62%, rgba(31, 87, 210, .29), transparent 100%),
    radial-gradient(ellipse 39% 44% at 77% 43%, rgba(40, 66, 146, .14), transparent 100%);
}
.hero-sw::after { background: linear-gradient(180deg, rgba(5,6,8,.04), rgba(5,6,8,.08) 69%, var(--bg)); }
.hero-globe {
  position: absolute; z-index: -1; left: 75%; top: 53svh;
  width: min(57.4vw, 93.8svh); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url("../models/people/earth-3d-preview.webp?v=5") center / contain no-repeat;
}
.hero-globe[data-ready] { background-image: none; }
.hero-globe canvas { display: block; width: 100%; height: 100%; }
.hero-globe:not([data-ready]) canvas { visibility: hidden; }
.hero-sw h1 { font-size: clamp(34px, 5.45vw, 88px); max-width: none; }
.hero-sw h1 > span { display: block; }
.hero-sw .hero-subtitle { margin-top: 18px; max-width: 43ch; font-family: var(--font-display); font-size: clamp(17px, 1.75vw, 24px); line-height: 1.45; color: var(--fg); }
.hero-sw .hero-subtitle .glow { color: var(--accent); }
.hero-sw .lede { margin-top: 16px; max-width: 54ch; }
@media (min-width: 761px) { .hero-sw .lede { max-width: min(54ch, 41vw); } }
.hero-sw .wrap { position: relative; }
.sw-stats { grid-template-columns: repeat(3, 1fr); max-width: 820px; }
.sw-stats .stat b { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; }
@media (max-width: 760px) {
  .hero-sw { padding-top: 356px; }
  .hero-globe { left: 50%; top: 204px; width: min(114vw, 332px); }
  .hero-sw::before { background: radial-gradient(ellipse 91% 236px at 50% 230px, rgba(32, 82, 188, .26), transparent 96%); }
  .hero-sw .scroll-cue { position: absolute; bottom: 20px; }
  .sw-stats { grid-template-columns: 1fr; }
}

/* the stack: economic world model → multi-agent simulation → the challenge, assembled by scrolling */
.scene-stack { --len: 520vh; --len-m: 380vh;
  --s1: clamp(0, var(--p) * 7, 1); --s2: clamp(0, (var(--p) - .32) * 6, 1); --s3: clamp(0, (var(--p) - .64) * 6, 1); }
.stack-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; width: min(1180px, 100% - 32px); }
.stack-copy { display: grid; gap: 26px; }
.stack-group { position: relative; display: grid; gap: 14px; }
.stack-group-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.ewm-head { display: grid; gap: 6px; }
.ewm-title { font-family: var(--font-display); font-size: clamp(32px, 3.2vw, 46px); line-height: 1; letter-spacing: -.035em;
  background: linear-gradient(100deg, #f2fbff 10%, var(--accent) 60%, #b06bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack-group:not(.stack-outer) .stack-steps { position: relative; padding: 6px 0 6px 18px; }
.stack-group:not(.stack-outer) .stack-steps::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), #b06bff); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); opacity: .85; }
.stack-outer { padding-top: 18px; border-top: 1px solid var(--line); }
.stack-steps { list-style: none; display: grid; gap: 12px; }
.stack-steps li { padding-left: 16px; border-left: 2px solid var(--line); opacity: .3; transition: opacity .7s cubic-bezier(.22,1,.36,1), border-color .7s; }
.stack-steps li.on { opacity: .62; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.stack-steps li.now { opacity: 1; border-color: var(--accent); }
.stack-steps li p { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height .7s cubic-bezier(.22,1,.36,1), opacity .5s, margin .6s; }
.stack-steps li.now p { max-height: 10em; opacity: 1; margin-top: 6px; }
.stack-steps .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.stack-steps h3 { margin-top: 4px; font-family: var(--font-display); font-size: clamp(19px, 1.75vw, 26px); letter-spacing: -.02em; line-height: 1.15; }
.stack-steps p { color: var(--muted); max-width: 44ch; font-size: 14.5px; line-height: 1.55; }
.stack3d { height: min(72vh, 600px); perspective: 1700px; display: grid; place-items: center; }
.stack-inner { position: relative; width: min(400px, 62vw); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-40deg) translateZ(-90px); }
.layer { position: absolute; inset: 0; border-radius: 18px; transform-style: preserve-3d; display: grid; padding: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); }
.layer span { align-self: end; justify-self: start; opacity: .85; }
.l1 { border: 1px solid color-mix(in srgb, var(--sw) 60%, transparent); opacity: calc(.12 + var(--s1) * .88);
  background: linear-gradient(color-mix(in srgb, var(--sw) 16%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
              linear-gradient(90deg, color-mix(in srgb, var(--sw) 16%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
              radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--sw) 18%, #04121c), #04121c);
  box-shadow: 0 0 80px -20px var(--sw); transform: translateZ(0); }
.l2 { border: 1px solid color-mix(in srgb, var(--sw-2) 50%, transparent); opacity: var(--s2);
  background: radial-gradient(circle, color-mix(in srgb, var(--sw-2) 90%, transparent) 1.6px, transparent 2.4px) 0 0 / 22px 22px,
              color-mix(in srgb, #04121c 70%, transparent);
  animation: agents-drift 6s linear infinite; transform: translateZ(calc(40px + var(--s2) * 90px)); }
@keyframes agents-drift { to { background-position: 22px 44px, 0 0; } }
.l3 { border: 1px dashed color-mix(in srgb, var(--sw) 55%, transparent); opacity: var(--s3); background: color-mix(in srgb, #04121c 40%, transparent);
  grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 24% 10%; align-items: center;
  transform: translateZ(calc(170px + var(--s3) * 90px)); }
.tile { display: grid; place-items: center; height: 70%; border-radius: 10px; font-style: normal; color: #000; font-weight: 500;
  transform: translateZ(calc(var(--s3) * 46px)); transition: transform .3s; }
.tile.t1 { background: var(--holo); box-shadow: 0 0 40px -6px var(--holo); }
.tile.t2 { background: #3ff2c8; box-shadow: 0 0 40px -6px #3ff2c8; }
.tile.t3 { background: var(--city); box-shadow: 0 0 40px -6px var(--city); }
@media (max-width: 860px) {
  .stack-wrap { grid-template-columns: 1fr; gap: 8px; }
  .stack3d { height: 44vh; order: -1; }
  .stack-steps { gap: 8px; } .stack-copy { gap: 10px; } .stack-steps h3 { font-size: 17px; }
  .stack-steps p { display: none; }
}

/* track cards */
.track-card { display: flex; flex-direction: column; gap: 10px; --accent: var(--c-col); border-top: 3px solid var(--c-col); }
.track-card .k { color: var(--c-col); margin-bottom: 0; }
.track-card h3 { font-size: 26px; margin: 0; }
.track-card .world { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.track-card p { flex: 1; }
.track-card .next { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.75); border-top: 1px solid var(--line); padding-top: 12px; }
.track-card .next b { color: var(--c-col); font-weight: 500; }
.track-card .go { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-col); }
.timeline.compact .tl-item { grid-template-columns: 110px 22px 1fr; padding: 12px 0; }
.timeline.compact .tl-body p { display: none; }
.timeline.compact .tl-body h4 { font-size: 15px; }
@media (max-width: 640px) { .timeline.compact .tl-item { grid-template-columns: 92px 1fr; gap: 10px; } .timeline.compact .tl-dot { display: none; } }
#dates .countdown { margin: 14px 0 10px; }
#dates .countdown .lbl { flex-basis: 100%; margin-bottom: 4px; }

/* ---------- organisers (landing) ---------- */
.organisers { padding-block: clamp(56px, 8vw, 96px); background: linear-gradient(180deg, #000, var(--bg)); border-top: 1px solid var(--line); }
.organisers .eyebrow { color: var(--muted); }
.organisers .eyebrow::before { background: var(--muted); }
.org-grid { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.org { min-width: 0; }
.org a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  height: 100%; min-height: 144px; padding: 18px; border-radius: 14px; background: #f4f4f1; color: #14161a;
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s; }
.org a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(255,255,255,.35); }
.org img { display: block; width: auto; max-width: 100%; height: 64px; object-fit: contain; }
.org-ccds img { height: 88px; }
.org-slai img { height: 80px; }
.org-name { text-align: center; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }


/* hosts, partners, committee */
.organisers .sec-head { margin-bottom: 36px; }
.org-label { display: block; margin: 40px 0 0; }
.hosted-line { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hosted-line a { color: var(--accent); }
.host-grid { list-style: none; margin-top: 18px; }
.host a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 120px; padding: 18px 28px; border-radius: 16px; background: #f4f4f1; color: #14161a;
  transition: transform .6s cubic-bezier(.22,1,.36,1), box-shadow .6s cubic-bezier(.22,1,.36,1); }
.host a:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -22px rgba(143,214,255,.55); }
.host img { width: 100%; max-width: 460px; height: auto; max-height: 84px; object-fit: contain; object-position: left center; }
.host-name { display: grid; gap: 2px; padding-left: 22px; border-left: 1px solid #d8d8d2; }
.host-name b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.01em; }
.host-name span { font-size: 13px; color: #4a4d55; }
.host-go { font-family: var(--font-mono); color: #4a4d55; }
.people { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.person { display: flex; flex-direction: column; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: "Noto Sans SC", var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .02em; color: #04121c;
  background: linear-gradient(135deg, var(--sw-2), var(--sw) 55%, color-mix(in srgb, var(--city) 60%, var(--sw))); box-shadow: 0 10px 30px -12px var(--sw); }
.person h3 { font-size: 19px; margin-bottom: 6px; }
.person .zh-name { font-family: "Noto Sans SC", var(--font-body); font-weight: 500; font-size: 15px; color: var(--muted); margin-left: 4px; }
.person-body p { font-size: 14px; color: var(--muted); }
.person-link { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .people { grid-template-columns: 1fr; }
  .host a { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 12px; }
  .host-go { display: none; }
  .host-name { padding-left: 0; border-left: 0; }
  .host-name b { font-size: 20px; }
}


/* ---------- auto-scrolling rails (tracks, papers) ---------- */
.rail { position: relative; width: min(1360px, 100% - 32px); margin-inline: auto; overflow-x: auto; overflow-y: hidden; padding: 10px 0 28px;
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; }
.rail.dragging a { pointer-events: none; }
.rail img { -webkit-user-drag: none; }
.rail-track { display: flex; gap: 16px; width: max-content; padding-inline: 8px; }
@media (max-width: 560px) { .rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); } }
.tracks-rail .track-card { flex: none; width: min(380px, 82vw); }
.track-card .countdown.mini { margin: 6px 0 0; gap: 6px; }
.track-card .countdown.mini .lbl { flex-basis: 100%; font-size: 10px; margin-bottom: 2px; }
.track-card .countdown.mini .u { min-width: 50px; padding: 7px 4px; }
.track-card .countdown.mini .u b { font-size: 18px; color: var(--c-col); }
.track-card .timeline.compact { margin-top: 4px; }
.track-card .timeline.compact .tl-item { grid-template-columns: 78px 1fr; gap: 10px; padding: 9px 0; }
.track-card .timeline.compact .tl-dot { display: none; }
.track-card .timeline.compact .tl-date { color: var(--c-col); font-size: 12px; }
.track-card .timeline.compact .tl-body h4 { font-size: 13px; font-weight: 500; }
.more-card { border-style: dashed; justify-content: center; margin-right: clamp(64px, 10vw, 180px); }
.more-card .plus { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--sw); opacity: .6; margin-top: 8px; }

/* paper covers */
.papers-rail { margin-top: 20px; }
.paper { flex: none; width: 216px; aspect-ratio: 3 / 4.1; border-radius: 6px; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
  color: #10131a; box-shadow: 0 22px 50px -26px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.08); transition: translate .6s cubic-bezier(.22,1,.36,1), rotate .6s cubic-bezier(.22,1,.36,1), box-shadow .6s; }
.paper:hover { translate: 0 -6px; rotate: -1deg; box-shadow: 0 30px 60px -24px rgba(143,214,255,.45); }
.paper::after { content: ""; position: absolute; inset: auto -20% -30% -20%; height: 55%; pointer-events: none; opacity: .5; }
.paper-venue { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.paper h4 { font-family: var(--font-display); font-size: 19px; line-height: 1.1; letter-spacing: -.01em; margin-top: 10px; }
.paper-sub { font-size: 12px; line-height: 1.35; opacity: .8; }
.paper-auth { margin-top: auto; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; opacity: .75; position: relative; z-index: 1; }
.paper.p1 { background: linear-gradient(160deg, #0b2233, #04121c); color: #e4f3ff; }
.paper.p1::after { background: repeating-linear-gradient(90deg, rgba(143,214,255,.35) 0 1px, transparent 1px 14px), repeating-linear-gradient(0deg, rgba(143,214,255,.35) 0 1px, transparent 1px 14px); transform: perspective(300px) rotateX(58deg); }
.paper.p2 { background: #f3f1ea; border-top: 10px solid #1d2a5a; }
.paper.p2::after { background: radial-gradient(circle at 50% 100%, rgba(29,42,90,.35), transparent 60%); }
.paper.p3 { background: linear-gradient(170deg, #0b3a26, #06180f); color: #dfffee; }
.paper.p3::after { background: repeating-radial-gradient(circle at 80% 120%, rgba(0,255,150,.28) 0 1px, transparent 1px 12px); }
.paper.p4 { background: linear-gradient(170deg, #3b1020, #1a0710); color: #ffe7ee; }
.paper.p4::after { background: repeating-linear-gradient(135deg, rgba(255,140,170,.25) 0 1px, transparent 1px 10px); }
.paper.p5 { background: #fbf7ef; border-left: 12px solid #a3192d; }
.paper.p5::after { background: repeating-linear-gradient(0deg, rgba(163,25,45,.18) 0 2px, transparent 2px 9px); }
.paper-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.paper-links a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); padding-bottom: 2px; transition: border-color .3s; }
.paper-links a:hover { border-color: var(--accent); }

/* Research excerpts with the author's portrait. */
.research-voice { margin: 56px 0 0; padding-top: 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.research-voice-photo { display: block; width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #151922; }
.research-voice-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.research-voice figcaption { min-width: 0; }
.research-voice .eyebrow { display: block; margin-bottom: 20px; }
.research-voice blockquote { margin: 0; }
.research-voice-intro { color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; margin: 0 0 16px; }
.research-voice-quote { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.42; letter-spacing: -.02em; margin: 0; text-wrap: pretty; }
.research-voice-author { font-family: var(--font-display); color: var(--accent); font-size: 19px; margin: 24px 0 12px; }
.research-voice-source { display: inline-flex; flex-direction: column; gap: 5px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.research-voice-source cite { font-style: normal; }
.research-voice-source:hover { color: var(--accent); }
@media (max-width: 760px) {
  .research-voice { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; padding-top: 32px; }
  .research-voice-photo { width: min(72%, 280px); }
  .research-voice-quote { font-size: clamp(24px, 5.4vw, 32px); }
}

/* people with photos */
.people { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.person { flex-direction: row; align-items: flex-start; gap: 16px; }
.person-photo { flex: 0 0 auto; display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 4px color-mix(in srgb, var(--accent) 0%, transparent); transition: box-shadow .5s cubic-bezier(.22,1,.36,1);
  background: linear-gradient(135deg, var(--sw-2), var(--sw) 55%, color-mix(in srgb, var(--city) 60%, var(--sw))); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s cubic-bezier(.22,1,.36,1); }
.person:hover .person-photo { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.person:hover .person-photo img { scale: 1.06; }
.person-body { min-width: 0; }
.person-photo .mono { display: grid; place-items: center; height: 100%; font-family: "Noto Sans SC", var(--font-display); font-weight: 700; font-size: 28px; color: #04121c; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr !important; } .person-photo { width: 60px; height: 60px; } }

/* WebGL stack: the CSS layers stay as the fallback */
.stack3d { position: relative; }
.stack-gl { position: absolute; inset: -10% -14%; width: 128%; height: 120%; display: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.stack3d.gl-on .stack-gl { display: block; }
.stack3d.gl-on .stack-inner { display: none; }

/* load choreography: characters and blocks rise out of a soft blur */
.char { display: inline-block; white-space: pre; }
.char-word { display: inline-block; white-space: nowrap; }   /* a word's letters stay together when a heading wraps */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal.pre { opacity: 1; transform: none; filter: none; }
  .theme-holo .hero h1 .glow { animation: none; }
  .pre:not(.in) .icon.draw svg > * { stroke-dashoffset: 0; }
}

@media (max-width: 760px) {
  .side-t3 canvas.fx { opacity: .5; }
  .hero video { width: 100%; top: 0; transform: none; opacity: .2; }
}

@media (max-width: 640px) { .dims { min-width: 560px; } }


/* small finishing touches */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn { position: relative; overflow: hidden; transition: color .3s, border-color .3s, background-color .3s, transform .45s cubic-bezier(.22,1,.36,1), translate .5s cubic-bezier(.22,1,.36,1), box-shadow .5s cubic-bezier(.22,1,.36,1); }
.btn-primary::after { /* a soft sheen that sweeps across on hover */
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { translate: 0 -2px; }
.marquee .track { will-change: transform; }

/* page-to-page transitions (cross-document view transitions; ignored where unsupported) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.012); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@media (max-width: 860px) { .stack-gl { inset: -6% 0; width: 100%; height: 112%; } }
/* the finished stack, faint, behind the foundation section */
#foundation { position: relative; }
#foundation > :not(.found-gl):not(.sec-ghost) { position: relative; z-index: 1; }
.found-gl { position: absolute; top: -26vh; right: -4vw; width: min(78vw, 1200px); height: 112vh; z-index: 0; pointer-events: none; display: none;
  opacity: .22;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
#foundation.gl-on .found-gl { display: block; }
@media (max-width: 760px) { .found-gl { right: -30vw; width: 130vw; height: 80vh; opacity: .16; } }
/* title pages and abstracts, drifting the other way under the covers */
.abstracts-rail { margin-top: -6px; }
.abstract { flex: none; display: block; position: relative; width: 440px; height: 330px; border-radius: 6px; overflow: hidden; background: #fff;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.8); transition: translate .5s cubic-bezier(.22,1,.36,1), box-shadow .5s; }
.abstract img { display: block; width: 100%; height: auto; padding: 18px 20px 0; }
.abstract::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff 85%); pointer-events: none; }
.abstract:hover { translate: 0 -5px; box-shadow: 0 30px 60px -24px rgba(143,214,255,.45); }
@media (max-width: 560px) { .abstract { width: 300px; height: 240px; } .abstract img { padding: 12px 14px 0; } }

/* section depth: ghost numeral and a wandering glow behind the content (driven by fx.js) */
.has-depth { position: relative; overflow-x: clip; }
.has-depth > :not(.sec-ghost):not(.found-gl) { position: relative; z-index: 1; }
.has-depth::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 38% at 78% calc(30% + var(--glow-y, 0%)), color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%); }
.sec-ghost { position: absolute; z-index: 0; top: clamp(20px, 4vw, 60px); right: max(16px, (100% - 1180px) / 2); pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(160px, 26vw, 380px); line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 22%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 75%); -webkit-background-clip: text; background-clip: text; }
@media (prefers-reduced-motion: reduce) { .sec-ghost { translate: none !important; } }
.stack3d.can-drag .stack-gl { cursor: grab; }
.stack3d.grabbing .stack-gl { cursor: grabbing; }

/* the 3D model fills the pinned screen on desktop; the copy sits on the left over a soft shade */
@media (min-width: 861px) {
  .scene-stack .stack-wrap { position: static; grid-template-columns: minmax(0, 400px) 1fr; width: min(1360px, 100% - 64px); }
  .scene-stack .stack-copy { position: relative; z-index: 2; }
  .scene-stack .stack3d { position: absolute; inset: 0; height: auto; z-index: 0; }
  .scene-stack .stack3d .stack-gl { inset: 0; width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); }
  .scene-stack .scene-stick::after { content: ""; position: absolute; inset: 0 auto 0 0; width: min(46vw, 640px); z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(5,6,8,.82), rgba(5,6,8,.55) 55%, transparent); }
}
@media (max-width: 860px) {
  .scene-stack .stack3d { height: 50vh; }
  .ewm-title { font-size: 24px; } .stack-copy { gap: 8px; } .stack-group { gap: 6px; } .stack-outer { padding-top: 8px; }
  .stack-steps li { padding-left: 12px; } .stack-steps .n { font-size: 10px; } .stack-steps h3 { font-size: 15px; margin-top: 0; }
}
