@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..600&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap");


:root {
  --bg: #04070d;
  --ink: #ece6d8;
  --muted: #8d97a6;
  --line: rgba(236, 230, 216, .14);
  --glass: rgba(14, 20, 30, .58);
  --blue: #2b63f6;
  --teal: #6fdcc4;
  --gold: #d6b98a;
  --rose: #e9a1c8;
  --orange: #f26a1b;
  --accent: var(--blue);
  --vis: 1;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
body[data-chapter="systems"] { --accent: var(--teal); }
body[data-chapter="growth"] { --accent: var(--rose); }
body[data-chapter="craft"] { --accent: var(--gold); }
body[data-chapter="lab"] { --accent: var(--orange); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font: 16px/1.55 "Archivo", "Segoe UI", system-ui, sans-serif; font-stretch: 100%; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- start-up */
.boot { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; place-items: center; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.boot.done { opacity: 0; visibility: hidden; }
.hands { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .6s; pointer-events: none; }
.hands.on { opacity: 1; }
.hands-cam { position: absolute; isolation: isolate; will-change: transform; -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 14%, #000 86%, transparent 98%); mask-image: linear-gradient(90deg, transparent 2%, #000 14%, #000 86%, transparent 98%); }
.hands .hand { position: absolute; left: 0; top: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: 0; will-change: transform, opacity, filter; user-select: none; -webkit-user-drag: none; }
.hands .hand.spark { width: auto; height: auto; mix-blend-mode: plus-lighter; filter: none; }
.hands-veil { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.92), rgba(0,0,0,.6) 45%, rgba(0,0,0,.2) 75%, transparent); }
.hands-flash { position: absolute; left: 50%; top: 50%; width: 46vmin; height: 46vmin; border-radius: 50%; opacity: 0; mix-blend-mode: plus-lighter;
  background: radial-gradient(closest-side, rgba(235,242,255,.95), rgba(90,140,255,.35) 35%, rgba(43,99,246,.08) 65%, transparent); }
.hands-ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; overflow: visible; opacity: 0; }
.hands-ring polygon { fill: none; stroke: #b9cdff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.boot-mark { z-index: 2; }
.boot-mark { position: relative; width: min(120px, 26vw); height: auto; overflow: visible; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 0 22px rgba(120,160,255,.55)); }
.boot-mark.live { opacity: 1; }
.boot-lines { z-index: 1; }
.boot-mark path { fill: transparent; stroke: #f2f4f7; stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.boot-mark path.drawn { animation: draw .55s var(--ease) forwards, fill .5s ease .45s forwards; }
.boot-mark path.accent { stroke: var(--blue); }
.boot-mark path.accent.drawn { animation: draw .55s var(--ease) forwards, fillAccent .6s ease .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill: #f2f4f7; stroke-width: 0; } }
@keyframes fillAccent { to { fill: var(--blue); stroke-width: 0; filter: drop-shadow(0 0 18px rgba(43, 99, 246, .7)); } }
.boot-lines { position: absolute; bottom: 12vh; left: 0; right: 0; display: grid; gap: 6px; text-align: center; font-size: 11px; letter-spacing: 5px; color: var(--muted); }
.boot-lines span:first-child { color: var(--ink); }
.boot-lines small { margin-top: 18px; font-size: 9px; letter-spacing: 4px; opacity: .45; text-transform: uppercase; }

/* ---------- world canvas + chrome */
#space { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; letter-spacing: .4px; }
.brand img { width: 28px; height: 28px; }
.brand b { font-weight: 500; color: var(--accent); transition: color .8s; }
.tool { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; font-size: 11px; letter-spacing: 2px; color: var(--muted); cursor: pointer; }
.tool i { font-style: normal; color: var(--ink); }
.tool[aria-pressed="true"] i { color: var(--accent); }
.tools { display: flex; gap: 8px; }
.subtitle { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 8px); z-index: 30; max-width: min(760px, 88vw); padding: 10px 18px; border-radius: 12px; background: rgba(4, 7, 13, .72); backdrop-filter: blur(8px); color: var(--ink); font-size: 17px; line-height: 1.45; text-align: center; opacity: 0; transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.subtitle.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .subtitle { bottom: 18px; font-size: 15px; } }

.rail { position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 10px; }
.rail button { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--muted); font-size: 11px; letter-spacing: 1.4px; text-align: left; }
.rail button::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .4s var(--ease), background .4s; }
.rail button span { opacity: 0; transform: translateX(-6px); transition: .35s var(--ease); white-space: nowrap; }
.rail:hover button span, .rail button[aria-current="true"] span { opacity: 1; transform: none; }
.rail button[aria-current="true"] { color: var(--ink); }
.rail button[aria-current="true"]::before { width: 30px; background: var(--accent); }

.arrows { position: fixed; right: 28px; bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(4, 7, 13, .5); cursor: pointer; font-size: 16px; }
.arrows button:hover { border-color: var(--accent); }

/* ---------- 3D stage (desktop) */
.stage { position: fixed; inset: 0; z-index: 5; perspective: 1000px; perspective-origin: 50% 50%; overflow: hidden; }
.world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.scene { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none; }
.scene-inner { position: absolute; left: 0; top: 0; width: min(1180px, 86vw); transform: translate(-50%, -50%); opacity: var(--vis); }
.scene:not(.in-view) .scene-inner { visibility: hidden; }
.scene.active button, .scene.active a, .scene.active video { pointer-events: auto; }
.scene-inner > * { transform: translateY(calc((1 - var(--vis)) * 28px)); transition: transform .2s linear; }

.kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); transition: color .8s; }
h1, h2 { margin: 0; font-weight: 300; letter-spacing: -.5px; font-stretch: 112%; }
h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 1; }
h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.1; }

.cover { text-align: center; }
.cover-mark { width: 120px; height: 120px; margin-bottom: 30px; filter: drop-shadow(0 0 30px rgba(43, 99, 246, .35)); }
.roles { margin: 22px 0 36px; font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); }
.roles i { font-style: normal; color: var(--accent); margin: 0 8px; }
.begin { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 12px 24px; letter-spacing: 3px; font-size: 12px; text-transform: uppercase; cursor: pointer; transition: border-color .3s, background .3s; }
.begin:hover { border-color: var(--accent); background: rgba(255, 255, 255, .04); }

.thesis, .chapter-card { text-align: center; max-width: 980px; }
.thesis h2, .chapter-card h2 { font-size: clamp(32px, 4.2vw, 62px); }
.chapter-card .begin { margin-top: 40px; }

/* the map */
.map { text-align: center; }
.orbit { position: relative; width: min(640px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.orbit::before { content: ""; position: absolute; inset: 14%; border: 1px dashed var(--line); border-radius: 50%; animation: spin 80s linear infinite; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 24px rgba(43, 99, 246, .45)); }
.node { position: absolute; width: 190px; transform: translate(-50%, -50%); background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-align: left; cursor: pointer; backdrop-filter: blur(10px); transition: border-color .3s, transform .4s var(--ease); }
.node b { display: block; font-weight: 500; font-size: 20px; }
.node small { color: var(--muted); font-size: 13px; }
.node:hover { transform: translate(-50%, -50%) scale(1.04); }
.n1 { left: 50%; top: 10%; border-color: rgba(111, 220, 196, .5); } .n1 b { color: var(--teal); }
.n2 { left: 92%; top: 50%; border-color: rgba(233, 161, 200, .5); } .n2 b { color: var(--rose); }
.n3 { left: 50%; top: 90%; border-color: rgba(214, 185, 138, .5); } .n3 b { color: var(--gold); }
.n4 { left: 8%; top: 50%; border-color: rgba(242, 106, 27, .5); } .n4 b { color: var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }

/* project slabs */
.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; }
.split.reverse .copy { order: 2; }
.lede { color: #cfc9bc; font-size: 17px; margin: 22px 0; max-width: 46ch; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.facts li { padding-left: 22px; position: relative; color: var(--ink); font-size: 15px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--accent); }
.note { font-size: 12px; color: var(--muted); letter-spacing: .4px; }
.slab { position: relative; margin: 0; padding: 14px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .18); backdrop-filter: blur(14px); }
.slab::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 60px -20px var(--accent); opacity: .5; }
.clip { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #000; }
.clip-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.clip-tabs button { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 12px; color: var(--muted); cursor: pointer; }
.clip-tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); }
/* sphere cut-outs are drawn in the 3D world (js/world.js); their videos stay hidden here as texture sources */
.orb-src { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

/* ---------- phones: flat, scrollable scenes; the world keeps moving behind */
@media (max-width: 760px) {
  html, body { height: auto; }
  body { overflow: visible; overflow-x: clip; }  /* the window scrolls, so the 3D camera can follow it */
  .stage { position: relative; inset: auto; perspective: none; overflow: visible; }
  .world { position: static; width: auto; height: auto; transform: none !important; }
  .scene { position: relative; width: auto; height: auto; transform: none !important; min-height: 100svh; display: flex; align-items: center; padding: 96px 18px 80px; pointer-events: auto; }
  .scene-inner { position: relative; transform: none; width: 100%; opacity: 1; }
  .scene:not(.in-view) .scene-inner { visibility: visible; }
  .scene-inner > * { transform: none; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .copy { order: 0; }
  .rail, .arrows { display: none; }
  .topbar { padding: 14px 16px; background: linear-gradient(rgba(4, 7, 13, .9), rgba(4, 7, 13, 0)); }
  .node { width: 140px; padding: 10px 12px; } .node b { font-size: 16px; } .node small { font-size: 11px; }
  h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit::before { animation: none; }
  .boot { display: none; }
}

/* ---------- v1 scene layouts */
.lede b { color: var(--ink); font-weight: 500; }
.note a { color: var(--accent); text-decoration: none; }
.duo { display: grid; gap: 12px; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reel { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; max-height: 300px; }
.duo .clip { aspect-ratio: 16 / 9; }
.gallery { position: relative; height: 520px; }
.gallery img { position: absolute; width: 44%; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .14); transition: transform .6s var(--ease); }
.gallery img:nth-child(1) { left: 0; top: 6%; transform: rotate(-7deg); }
.gallery img:nth-child(2) { left: 20%; top: 0; transform: rotate(-2deg); z-index: 2; }
.gallery img:nth-child(3) { left: 40%; top: 8%; transform: rotate(4deg); z-index: 3; }
.gallery img:nth-child(4) { left: 58%; top: 2%; transform: rotate(8deg); z-index: 1; }
.gallery img:nth-child(5) { left: 30%; top: 36%; transform: rotate(-3deg); z-index: 4; width: 40%; }
.gallery img:hover { transform: translateY(-14px) rotate(0); z-index: 9; }
.player { padding: 10px; }
.player iframe { display: block; width: 100%; aspect-ratio: 1; border: 0; border-radius: 14px; background: #04070d; }
.lab-logo { width: 220px; margin-bottom: 18px; border-radius: 16px; }
.islands { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.islands img { width: 100%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); image-rendering: auto; }
.islands .buddy { position: absolute; width: 18%; left: 41%; top: 30%; border: 0; image-rendering: pixelated; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .7)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }
.capabilities, .partners, .contact { text-align: center; max-width: 1080px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; text-align: left; }
.caps div { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(10px); }
.caps b { display: block; font-weight: 500; font-size: 18px; margin-bottom: 6px; color: var(--accent); }
.caps span { color: #cfc9bc; font-size: 14px; }
.partner-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.partner { min-width: 260px; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 22px; backdrop-filter: blur(10px); }
.partner img { width: 44px; height: 44px; display: block; margin: 0 auto 10px; }
.partner b { display: block; font-weight: 500; font-size: 20px; } .partner span { color: var(--muted); font-size: 14px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 26px; }
.contact-links .begin { text-decoration: none; }
.contact .cover-mark { width: 90px; height: 90px; margin-bottom: 20px; }
.begin.ghost { border-color: transparent; color: var(--muted); }
@media (max-width: 760px) {
  .gallery { height: 420px; } .gallery img { width: 52%; }
  .caps { grid-template-columns: 1fr; }
  .reel { max-height: 240px; }
}

/* ---------- capabilities v2, experience, contact buttons */
.caps { grid-template-columns: repeat(4, 1fr); }
.caps span { font-size: 13.5px; line-height: 1.5; }
.experience { max-width: 980px; text-align: center; }
.timeline { list-style: none; padding: 0; margin: 34px auto 18px; display: grid; gap: 8px; text-align: left; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 200px 1fr 70px; gap: 16px; align-items: baseline; padding: 11px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.timeline b { font-weight: 500; } .timeline span { color: #cfc9bc; font-size: 14px; } .timeline i { font-style: normal; color: var(--accent); font-size: 12px; text-align: right; letter-spacing: 1px; }
.certs { color: var(--muted); font-size: 13px; }
a.partner { color: inherit; text-decoration: none; transition: border-color .3s; } a.partner:hover { border-color: var(--accent); }
.begin.primary { background: #1fa855; border-color: #1fa855; color: #fff; }
.contact .note { margin-top: -18px; }
.contact .note a { color: var(--accent); text-decoration: none; }
@media (max-width: 1100px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .caps { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr auto; } .timeline li span { grid-column: 1 / -1; }
}


/* =====================================================================
   v2 design: Sora / Inter / JetBrains Mono, HUD buttons, hexagon map
   ===================================================================== */
:root { --display: "Sora", "Segoe UI", sans-serif; --text: "Inter", "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace; --hud: rgba(236, 230, 216, .55); }
body { font-family: var(--text); font-size: 15.5px; letter-spacing: .1px; }
h1, h2 { font-family: var(--display); font-weight: 200; font-stretch: normal; letter-spacing: -.02em; }
h1 { font-weight: 200; letter-spacing: -.035em; }
h2 b, h1 b { font-weight: 500; }
.kicker, .roles, .tool, .rail button, .arrows, .boot-lines, .note, .certs, .timeline i, .clip-tabs button, .begin { font-family: var(--mono); }
.kicker { font-size: 11px; letter-spacing: .32em; font-weight: 400; }
.kicker::before { content: "▸ "; opacity: .7; }
.lede { font-weight: 300; color: #d6d0c3; }

/* HUD buttons: square, thin, corner brackets in the chapter colour */
.begin, .clip-tabs button, .tool, .arrows button {
  --b: var(--accent); border-radius: 0 !important; border: 1px solid rgba(236, 230, 216, .12) !important;
  background:
    linear-gradient(var(--b), var(--b)) top left / 9px 1px no-repeat, linear-gradient(var(--b), var(--b)) top left / 1px 9px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 9px 1px no-repeat, linear-gradient(var(--b), var(--b)) top right / 1px 9px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 9px 1px no-repeat, linear-gradient(var(--b), var(--b)) bottom left / 1px 9px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 9px 1px no-repeat, linear-gradient(var(--b), var(--b)) bottom right / 1px 9px no-repeat,
    rgba(8, 12, 20, .55) !important;
  backdrop-filter: blur(6px); text-transform: uppercase; letter-spacing: .22em; font-size: 10.5px; padding: 11px 18px; color: var(--ink);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.begin:hover, .clip-tabs button:hover, .tool:hover, .arrows button:hover { box-shadow: 0 0 24px -6px var(--accent), inset 0 0 18px -10px var(--accent); }
.clip-tabs button { padding: 8px 12px; font-size: 9.5px; color: var(--muted); --b: rgba(236, 230, 216, .35); }
.clip-tabs button[aria-pressed="true"] { color: var(--ink); --b: var(--accent); box-shadow: inset 0 0 22px -12px var(--accent); }
.tool { padding: 7px 12px; font-size: 10px; --b: rgba(236, 230, 216, .3); }
.tool[aria-pressed="true"] { --b: var(--accent); }
.arrows button { width: 44px; height: 44px; padding: 0; font-family: var(--text); font-size: 15px; }
.begin.primary { --b: #7dffb0; background-color: rgba(31, 168, 85, .35) !important; }
.begin.ghost { --b: transparent; border-color: transparent !important; background: none !important; color: var(--muted); }

/* glass slabs: sharper corners, HUD brackets, inner line */
.slab { border-radius: 4px; }
.slab::before { content: ""; position: absolute; inset: -6px; pointer-events: none; --b: var(--accent);
  background:
    linear-gradient(var(--b), var(--b)) top left / 22px 1px no-repeat, linear-gradient(var(--b), var(--b)) top left / 1px 22px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 22px 1px no-repeat, linear-gradient(var(--b), var(--b)) bottom right / 1px 22px no-repeat; opacity: .9; }
.clip, .reel, .player iframe, .islands img, .gallery img { border-radius: 2px; }
.caps div, .timeline li, .partner { border-radius: 2px; }

/* the map: hexagon nodes joined to the core by light lines, hexagonal orbit */
.orbit::before { display: none; }
.orbit-hex, .orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.orbit-hex { animation: spin 120s linear infinite; }
.orbit-hex polygon { fill: none; stroke: rgba(236, 230, 216, .16); stroke-width: .25; stroke-dasharray: .8 1.6; }
.orbit-lines line { stroke: url(#lineGrad); stroke-width: .3; stroke-dasharray: 1.2 1.4; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10.4; } }
.node { width: auto; min-width: 0; display: flex; align-items: center; gap: 14px; background: none !important; border: 0 !important; padding: 6px; backdrop-filter: none; }
.node::before { content: ""; flex: 0 0 auto; width: 40px; height: 46px; background: currentColor; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); opacity: .95;
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%); filter: drop-shadow(0 0 10px currentColor); }
.node span { display: block; text-align: left; }
.node b { font-family: var(--display); font-weight: 300; font-size: 22px; letter-spacing: -.01em; }
.node small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.n1 { color: var(--teal); } .n2 { color: var(--rose); } .n3 { color: var(--gold); } .n4 { color: var(--orange); }
.n1 b, .n2 b, .n3 b, .n4 b { color: var(--ink); }
.node:hover::before { filter: drop-shadow(0 0 18px currentColor); }
.n4 { flex-direction: row-reverse; } .n4 span { text-align: right; }

/* cover */
.cover h1 { font-size: clamp(48px, 7.4vw, 112px); background: linear-gradient(180deg, #fff 0%, #cfd6e6 60%, #8f9bb3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roles { font-size: 11px; letter-spacing: .38em; }
@media (max-width: 760px) {
  .node::before { width: 30px; height: 34px; } .node b { font-size: 17px; } .node small { font-size: 8.5px; }
}


/* ---------- arrival: staggered, focus-pull reveal and a light sweep across each slab */
.scene-inner { opacity: 1; }
.scene-inner > *, .scene-inner > .copy > * {
  --v: clamp(0, calc((var(--vis) - var(--d, 0)) / (1 - var(--d, 0))), 1);
  opacity: var(--v);
  transform: translate3d(0, calc((1 - var(--v)) * 34px), 0) scale(calc(.975 + var(--v) * .025)) !important;
  filter: blur(calc((1 - var(--v)) * 7px));
  transition: none;
}
.scene-inner > .copy { opacity: 1; transform: none !important; filter: none; }
.sweep { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .14) 48%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, .14) 52%, transparent 62%);
  background-size: 260% 100%; background-position: 140% 0; opacity: 0; mix-blend-mode: screen; }
.scene.arrived .sweep { animation: sweep 1.6s cubic-bezier(.3, .6, .2, 1) .15s 1; }
@keyframes sweep { 0% { background-position: 140% 0; opacity: 1; } 100% { background-position: -40% 0; opacity: 0; } }
.scene.arrived .slab { animation: slabLight 2.2s ease-out 1; }
@keyframes slabLight { 0% { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 0 transparent; } 30% { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 90px -10px var(--accent); } 100% { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 0 transparent; } }
.gallery, .islands { position: relative; }
/* map text never wraps into a column */
.node small { white-space: nowrap; }
@media (max-width: 760px) {
  .scene-inner > *, .scene-inner > .copy > * { opacity: 1; transform: none !important; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-inner > *, .scene-inner > .copy > * { filter: none; transform: none !important; }
  .sweep { display: none; }
}

.partner-row { gap: 16px; }
.partner { min-width: 250px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 24px 22px; }
.partner .plogo { width: auto; height: 46px; max-width: 190px; object-fit: contain; margin: 0 0 12px; }
.partner .plogo.mark { height: 52px; }


/* =====================================================================
   v3 design, "Blueprint to machine" (drael.sh mix): Instrument Serif / Switzer / Geist Mono,
   near-black, white hairlines at stepped opacities, one solid white action, HUD brackets only on the HUD
   ===================================================================== */
:root {
  --bg: #08090b; --ink: #f3f3f1; --muted: rgba(243, 243, 241, .5); --line: rgba(255, 255, 255, .09); --glass: rgba(14, 15, 18, .72);
  --display: "Instrument Serif", Georgia, serif; --text: "Switzer", "Inter", "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
body { font-family: var(--text); font-size: 15.5px; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
h1 { font-size: clamp(56px, 8.4vw, 128px); }
h2 { font-size: clamp(36px, 4.6vw, 68px); }
h2 b, h1 b { font-weight: 400; font-style: italic; color: var(--muted); }
.thesis h2, .chapter-card h2 { font-size: clamp(40px, 5.4vw, 78px); }
.cover h1 { background: none; color: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; }
.cover-mark { filter: none; }
.lede, .caps span, .timeline span { color: rgba(243, 243, 241, .62); font-weight: 400; }
.lede b { color: var(--ink); }
.kicker { font-size: 10.5px; letter-spacing: .24em; color: rgba(243, 243, 241, .42); }
.kicker::before { content: none; }
.kicker::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; background: var(--accent); vertical-align: 1px; transition: background .8s; }
.roles { font-size: 10.5px; letter-spacing: .3em; color: rgba(243, 243, 241, .45); }
.roles i { color: rgba(243, 243, 241, .25); }
.brand b { color: var(--muted); font-weight: 400; }
.facts li::before { background: rgba(243, 243, 241, .35); }

/* buttons: one solid white action, quiet outlined ones; brackets stay on the HUD (tools, arrows, clip tabs) */
.begin { --b: transparent; border-radius: 8px !important; border: 1px solid rgba(255, 255, 255, .14) !important; background: rgba(255, 255, 255, .02) !important;
  backdrop-filter: none; font-family: var(--text); text-transform: none; letter-spacing: -.01em; font-size: 14px; padding: 11px 18px; color: var(--ink); }
.begin:hover { box-shadow: none; background: rgba(255, 255, 255, .07) !important; border-color: rgba(255, 255, 255, .28) !important; }
.cover .begin, .chapter-card .begin, .begin.primary { background: #f3f3f1 !important; border-color: #f3f3f1 !important; color: #08090b; font-weight: 500; }
.cover .begin:hover, .chapter-card .begin:hover, .begin.primary:hover { background: #fff !important; }
.begin.ghost { color: var(--muted); border-color: transparent !important; background: none !important; }
.tool, .arrows button, .clip-tabs button { --b: rgba(255, 255, 255, .45); background-color: rgba(8, 9, 11, .6) !important; }
.clip-tabs button[aria-pressed="true"] { --b: var(--accent); box-shadow: none; color: var(--ink); }
.begin:focus-visible, .tool:focus-visible, .clip-tabs button:focus-visible, .arrows button:focus-visible, .hudmark path:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* containers: dark, hairline, slight radius; the corner brackets stay as the signature, in white */
.slab { border-radius: 10px; background: rgba(14, 15, 18, .62); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.slab::before { --b: rgba(255, 255, 255, .55); }
.slab::after { display: none; }
.scene.arrived .slab { animation: none; }
.caps div, .timeline li, .partner { border-radius: 10px; background: rgba(14, 15, 18, .62); border-color: rgba(255, 255, 255, .08); }
.caps b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ink); letter-spacing: -.02em; }
.timeline b { font-weight: 500; } .timeline i { color: var(--muted); font-family: var(--mono); }
.partner b { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.02em; }
.node b { font-family: var(--display); font-weight: 400; font-size: 26px; }

/* the drafting frame: hairlines with + marks at the crossings (desktop) */
.frame { position: fixed; inset: 0; z-index: 4; pointer-events: none; --gx: 64px; --gy: 66px; }
.frame i { position: absolute; background: rgba(255, 255, 255, .06); }
.frame .fx { top: 0; bottom: 0; width: 1px; } .frame .l { left: var(--gx); } .frame .r { right: var(--gx); }
.frame .fy { left: 0; right: 0; height: 1px; } .frame .t { top: var(--gy); } .frame .b { bottom: var(--gy); }
.frame .plus { position: absolute; width: 11px; height: 11px; margin: -5px 0 0 -5px;
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) center / 11px 1px no-repeat, linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) center / 1px 11px no-repeat; }
.frame .tl { left: var(--gx); top: var(--gy); } .frame .tr { left: calc(100% - var(--gx)); top: var(--gy); }
.frame .bl { left: var(--gx); top: calc(100% - var(--gy)); } .frame .br { left: calc(100% - var(--gx)); top: calc(100% - var(--gy)); }
.rail { left: 22px; }
.rail button[aria-current="true"] span { opacity: 0; transform: translateX(-6px); }
.rail:hover button span { opacity: 1; transform: none; }
.rail:hover { z-index: 25; }
.rail:hover::before { content: ""; position: absolute; inset: -20px -30px -20px -22px; z-index: -1; background: linear-gradient(90deg, rgba(8,9,11,.92) 60%, transparent); }

/* journey HUD: the logo's blades fill in as each part is seen */
.hudmark { position: fixed; left: 84px; bottom: 18px; z-index: 21; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.hudmark svg { width: 34px; height: 34px; overflow: visible; }
.hudmark path { fill: transparent; stroke: rgba(255, 255, 255, .45); stroke-width: 14; cursor: pointer; transition: fill .8s var(--ease), stroke .4s; }
.hudmark path:hover { stroke: #fff; }
.hudmark path.seen { fill: rgba(243, 243, 241, .85); stroke: transparent; }
.hudmark path[data-group="contact"].seen { fill: var(--blue); }
.hudmark path.here { stroke: #fff; animation: here 1.6s ease-in-out infinite; }
@keyframes here { 50% { stroke-opacity: .3; } }
.arrows { right: 84px; bottom: 18px; font-family: var(--mono); }

@media (max-width: 760px) {
  .frame { display: none; }
  .hudmark { left: 12px; bottom: 12px; padding: 6px; border-radius: 50%; background: rgba(8, 9, 11, .6); backdrop-filter: blur(6px); }
  .hudmark svg { width: 24px; height: 24px; } .hudmark span { display: none; }
  .brand { font-size: 13px; gap: 9px; } .brand img { width: 24px; height: 24px; }
  .tools { gap: 6px; } .tool { padding: 6px 8px; font-size: 9px; letter-spacing: .12em; }
  .topbar { background: linear-gradient(rgba(8, 9, 11, .92), rgba(8, 9, 11, 0)); }
  h1 { font-size: 64px; } h2 { font-size: 40px; }
  .subtitle { bottom: 70px; }
}

@media (min-width: 761px) { body.has-world .contact .cover-mark { visibility: hidden; } }

/* =====================================================================
   v4: square, console-like type (Space Mono headlines and labels, Space Grotesk text), minimal map markers
   ===================================================================== */
:root { --display: "Space Mono", ui-monospace, Consolas, monospace; --text: "Space Grotesk", "Segoe UI", sans-serif; --mono: "Space Mono", ui-monospace, Consolas, monospace; }
body { font-family: var(--text); font-weight: 400; letter-spacing: -.005em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.055em; line-height: 1.05; }
h1 { font-size: clamp(46px, 6.6vw, 104px); }
h2 { font-size: clamp(28px, 3.3vw, 50px); }
.thesis h2, .chapter-card h2 { font-size: clamp(32px, 4vw, 60px); }
h2 b, h1 b { font-style: italic; font-weight: 400; color: var(--muted); }
.caps b, .partner b, .node b { font-family: var(--display); letter-spacing: -.04em; }
.caps b { font-size: 19px; } .partner b { font-size: 20px; } .node b { font-size: 21px; }
.lede { font-weight: 300; }
.kicker, .roles, .tool, .rail button, .arrows, .boot-lines, .note, .certs, .timeline i, .clip-tabs button, .hudmark { font-family: var(--mono); }
.begin { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }

/* map: no hexagons, no orbit lines; a small chapter-coloured square and an index */
.orbit-hex, .orbit-lines { display: none; }
.orbit { counter-reset: node; }
.node { counter-increment: node; gap: 12px; align-items: flex-start; }
.node::before { content: ""; width: 7px; height: 7px; margin-top: 11px; clip-path: none; -webkit-mask: none; mask: none; filter: none; background: currentColor; opacity: 1; }
.node span::before { content: "0" counter(node); display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); margin-bottom: 2px; }
.n4 span::before { text-align: right; }
.node:hover::before { filter: none; transform: scale(1.4); }
@media (max-width: 760px) { .node::before { width: 6px; height: 6px; margin-top: 9px; } .node b { font-size: 16px; } h1 { font-size: 46px; } h2 { font-size: 30px; } }

/* the map's centre: the 3D Aperture on desktop, the flat logo on phones */
.orbit-core { display: none; width: 26%; filter: none; }
@media (max-width: 760px) {
  .orbit-core { display: block; }
  .node small { white-space: normal; display: block; max-width: 104px; line-height: 1.4; }
  .n2 { left: 80%; } .n4 { left: 20%; }
  .roles i { display: none; } .roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
}
.hands-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene.active iframe { pointer-events: auto; }   /* the music player lives in an iframe */

/* Behavior Games: transparent, the blades breathe in a slow wave, the orange blade pulses, a light passes over the name */
.bg-logo { display: block; width: min(230px, 52vw); height: auto; margin: 0 auto 22px; overflow: visible; }
.bg-blade { fill: #f2f4f7; transform-box: view-box; animation: bgBreathe 5.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.87s); }
.bg-blade.accent { fill: #f26a1b; animation: bgBreathe 5.2s ease-in-out infinite, bgPulse 2.6s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(242, 106, 27, .55)); }
.bg-mark { animation: bgTurn 40s linear infinite; }
.bg-word { fill: #f2f4f7; } .bg-games { fill: #f26a1b; }
.bg-shine { opacity: .35; animation: bgShine 6s cubic-bezier(.4, 0, .2, 1) infinite 1.2s; }
@keyframes bgBreathe { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(var(--dx), var(--dy)); } }
@keyframes bgPulse { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes bgTurn { to { transform: rotate(360deg); } }
@keyframes bgShine { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(860px); } }
@media (prefers-reduced-motion: reduce) { .bg-blade, .bg-mark, .bg-shine { animation: none; } }

/* ---------- Lab · the engines: four rings, seed at the centre, a society on the outside */
.engine-fig { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; }
.engine-map { width: min(440px, 100%); height: auto; overflow: visible; }
.engine-map .ring { fill: none; stroke: rgba(243, 243, 241, .22); stroke-width: 1; transition: stroke .4s, stroke-width .4s; }
.engine-map .e-sim .links line { stroke: rgba(243, 243, 241, .12); stroke-width: .8; }
.engine-map .e-sim .agents circle { fill: rgba(243, 243, 241, .7); animation: agent 4s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.engine-map .e-task .ticks line { stroke: rgba(243, 243, 241, .18); }
.engine-map .e-task .nodes rect { fill: #08090b; stroke: rgba(243, 243, 241, .7); stroke-width: 1; }
.engine-map .e-psy .spokes line { stroke: rgba(243, 243, 241, .14); }
.engine-map .e-psy .nodes circle { fill: rgba(243, 243, 241, .85); }
.engine-map .seed { fill: var(--orange); }
.engine-map .halo { fill: var(--orange); opacity: .18; transform-origin: 280px 280px; animation: seed 3.2s ease-in-out infinite; }
.engine-map .e-soul .ring { stroke: rgba(242, 106, 27, .55); }
.engine-map .sig { fill: var(--orange); }
.engine-map .idx text { font: 10px var(--mono); fill: rgba(243, 243, 241, .45); letter-spacing: .1em; }
.engine-map .spin { transform-origin: 280px 280px; animation: spin 90s linear infinite; }
.engine-map .spin-rev { transform-origin: 280px 280px; animation: spin 140s linear infinite reverse; }
@keyframes agent { 50% { opacity: .35; } }
@keyframes seed { 50% { transform: scale(1.35); opacity: .06; } }
.engine-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; width: min(460px, 100%); }
.engine-legend li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); cursor: default; transition: border-color .3s; }
.engine-legend i { grid-row: span 2; font: 10px/1.9 var(--mono); font-style: normal; color: var(--muted); letter-spacing: .1em; }
.engine-legend b { font: 400 14px var(--mono); letter-spacing: -.02em; }
.engine-legend span { font-size: 12.5px; color: var(--muted); }
.engine-legend li[data-e="soul"] i { color: var(--orange); }
/* hovering an engine lights its ring */
.engine-fig:has(li[data-e="soul"]:hover) .e-soul .ring,
.engine-fig:has(li[data-e="psy"]:hover) .e-psy .ring,
.engine-fig:has(li[data-e="task"]:hover) .e-task .ring,
.engine-fig:has(li[data-e="sim"]:hover) .e-sim .ring { stroke: var(--orange); stroke-width: 1.6; }
.engine-legend li:hover { border-color: var(--orange); }
.scene.active .engine-legend li { pointer-events: auto; }
@media (max-width: 760px) { .engine-legend { grid-template-columns: 1fr; } .engine-map { width: min(340px, 100%); } }
@media (prefers-reduced-motion: reduce) { .engine-map .spin, .engine-map .spin-rev, .engine-map .halo, .engine-map .agents circle { animation: none; } }

/* ---------- focus mode: a clip glides toward the camera */
.focus { position: fixed; inset: 0; z-index: 45; }
.focus[hidden] { display: none; }
.focus-back { position: absolute; inset: 0; background: rgba(8, 9, 11, .62); backdrop-filter: blur(12px) saturate(.8); -webkit-backdrop-filter: blur(12px) saturate(.8); opacity: 0; transition: opacity .5s var(--ease); cursor: zoom-out; }
.focus.in .focus-back { opacity: 1; }
.focus-frame { position: fixed; overflow: hidden; transform-origin: 0 0; background: #000; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4); will-change: transform; }
.focus-frame video, .focus-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.focus-head, .focus-close, .focus-tabs { position: fixed; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease) .18s, transform .45s var(--ease) .18s; }
.focus.in .focus-head, .focus.in .focus-close, .focus.in .focus-tabs { opacity: 1; transform: none; }
.focus-kicker { margin: 0 0 6px; font: 10.5px var(--mono); letter-spacing: .24em; text-transform: uppercase; color: rgba(243, 243, 241, .5); }
.focus-kicker::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; background: var(--accent); vertical-align: 1px; }
.focus-title { margin: 0; font: 400 clamp(20px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.focus-title small { font: inherit; }
.focus-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.focus-tabs[hidden] { display: none; }
.focus-close { padding: 7px 12px; top: 22px; right: 28px; }
@media (max-width: 760px) { .focus-close { top: 14px; right: 14px; } }
.focus-close i { font-style: normal; margin-left: 6px; }
video.clip, video.reel, .gallery img, .islands img:not(.buddy) { cursor: zoom-in; }
.focus-src { visibility: hidden; }
html.focus-open, html.focus-open body { overflow: hidden; }
@media (max-width: 760px) { .focus-title { font-size: 20px; } .focus-tabs button { padding: 7px 9px; font-size: 9px; } }
.subtitle { z-index: 47; }   /* stays readable above the focus view */

/* ---------- Capital Catalyst: role labels and the systems' figures */
.cc-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.cc-roles span { font: 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; color: var(--ink); }
.cc-roles span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--accent); vertical-align: 1px; }
.cc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 6px 0 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.cc-stats div { margin: 0; }
.cc-stats dt { font: 400 24px var(--display); letter-spacing: -.04em; color: var(--ink); }
.cc-stats dd { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
@media (max-width: 760px) { .cc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-stats + .note { margin-top: 0; }
