/* ASC Digital — "Crypto & AI, maxed out." Graphite blue and amber; a ledger's precision. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geistmono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrumentserif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: light-dark(#f4f2ee, #0b0d10);
  --bg-2: light-dark(#ebe7e0, #101318);
  --card: light-dark(#ffffff, #141820);
  --ink: light-dark(#0e1116, #eceae5);
  --muted: light-dark(#4f5661, #9aa3af);
  --amber: light-dark(#a65a06, #f2a33a);
  --amber-hi: #f2a33a;
  --line: light-dark(rgb(14 17 22 / .12), rgb(236 234 229 / .12));
  --photo-ink: #f4f2ee;
  --night: #0b0d10;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Fluid type scale, 390 px → 1600 px */
  --step--1: clamp(.78rem, .76rem + .1vw, .85rem);
  --step-0: clamp(1rem, .96rem + .18vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.06rem + .4vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.5rem + 3vw, 4.4rem);
  --step-4: clamp(2.8rem, 1.6rem + 5.2vw, 7rem);
  --step-hero: clamp(3.5rem, .8rem + 10.8vw, 12rem);

  --gutter: clamp(1.25rem, .6rem + 3vw, 4rem);
  --space: clamp(5rem, 3rem + 8vw, 11rem);
  --radius: clamp(12px, .8vw + 8px, 20px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  /* No text selection anywhere on the site (and no iOS long-press callout) */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
/* …except where people type: fields keep selection, the caret and the callout */
input, textarea, select, [contenteditable]:not([contenteditable="false"]) {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
}
body:has(.map-modal:not([hidden])) { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
h1 em, h2 em, h3 em, blockquote em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--amber); }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

.mark { width: 1.9rem; height: 1.9rem; flex: none; }

.kicker, .eyebrow, .p-no, .role, .map-tag, .lines dt, .mono-tag, .ticker, .hero-index span, .sw-steps span, .app-bar span, .src, .app figcaption {
  font-family: var(--mono); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase;
}
.kicker { color: var(--amber); display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; }
.kicker::before { content: ""; width: .55rem; height: .55rem; background: currentColor; border-radius: 1px; }

/* ───────── Header ───────── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(.85rem, env(safe-area-inset-top)) var(--gutter) .85rem;
  color: var(--photo-ink); border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-word { font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; display: flex; gap: .35rem; align-items: baseline; }
.brand-word span { font-weight: 400; font-size: .85rem; letter-spacing: 0; opacity: .7; }
.bar ul { display: flex; gap: clamp(1rem, 2vw, 2.25rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.bar nav a { text-decoration: none; font-size: .93rem; font-weight: 500; }
.bar nav a:not(.nav-cta):hover { color: var(--amber-hi); }
.bar nav { display: none; }
@media (min-width: 900px) { .bar nav { display: block; } }
.nav-cta { padding: .55rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; white-space: nowrap; }
.nav-cta:hover { background: var(--amber-hi); color: var(--night); box-shadow: none; }
.bar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--amber-hi); transform-origin: left; scale: 0 1; }

@supports (animation-timeline: scroll()) {
  .bar { animation: bar-solid linear both; animation-timeline: scroll(root); animation-range: 55vh 80vh; }
  .bar-progress { animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes bar-solid {
  to {
    color: var(--ink); border-bottom-color: var(--line);
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  }
}
@keyframes grow-x { to { scale: 1 1; } }

/* ───────── Buttons ───────── */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.45rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: background-color .3s var(--ease), color .3s var(--ease), translate .3s var(--ease);
}
.btn:hover { translate: 0 -2px; }
.btn-solid { background: var(--amber-hi); color: var(--night); }
.btn-solid:hover { background: var(--photo-ink); }
.btn-ghost { color: var(--photo-ink); box-shadow: inset 0 0 0 1px rgb(244 242 238 / .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgb(244 242 238 / .12); }

/* ───────── Hero ───────── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-content: end; gap: clamp(2rem, 4vw, 3.5rem);
  padding: 7rem var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  color: var(--photo-ink); background: var(--night); overflow: clip; isolation: isolate;
}
.hero-plate { position: absolute; inset: -4% 0 -12%; z-index: -3; }
.hero-img, .hero-film {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  animation: ken-burns 40s var(--ease) infinite alternate;
}
.hero-film { opacity: 0; transition: opacity 1.6s ease; }
.hero-film.playing { opacity: 1; }
@media (max-width: 700px) { .hero-film { display: none; } }
@keyframes ken-burns { from { scale: 1.02; } to { scale: 1.13; translate: 1.5% -1%; } }

/* Block lattice: a grid of the mark's squares; a slow amber wave runs through it */
.lattice {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  --cell: clamp(26px, 3.2vw, 44px);
  background-image:
    linear-gradient(to right, rgb(244 242 238 / .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(244 242 238 / .07) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  mask-image: linear-gradient(105deg, transparent 30%, #000 55%, transparent 85%);
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 55%, transparent 85%);
  mask-size: 250% 100%; -webkit-mask-size: 250% 100%;
  animation: lattice-wave 14s ease-in-out infinite;
}
.lattice::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgb(242 163 58 / .55) 0 1.5px, transparent 2px);
  background-size: var(--cell) var(--cell); background-position: calc(var(--cell) / -2) calc(var(--cell) / -2);
}
@keyframes lattice-wave { from { mask-position: 100% 0; -webkit-mask-position: 100% 0; } to { mask-position: -50% 0; -webkit-mask-position: -50% 0; } }

.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(11 13 16 / .6), transparent 24%),
    linear-gradient(to top, rgb(11 13 16 / .94) 6%, rgb(11 13 16 / .5) 52%, transparent 78%);
}
.hero-copy { max-width: 80rem; display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: rgb(244 242 238 / .85); }
.dot { width: .5rem; height: .5rem; background: var(--amber-hi); border-radius: 1px; box-shadow: 0 0 0 .3rem rgb(242 163 58 / .22); }
.hero h1 { font-size: var(--step-hero); font-weight: 600; line-height: .9; letter-spacing: -.055em; margin-left: -.03em; }
.hero h1 em { color: var(--amber-hi); padding-right: .05em; }
.h1-line { display: block; }
.lede { max-width: 38rem; font-size: var(--step-1); line-height: 1.45; color: rgb(244 242 238 / .88); }

.hero-index {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  border-top: 1px solid rgb(244 242 238 / .2);
}
.hero-index a {
  display: flex; align-items: baseline; gap: .8rem; padding: .9rem 0; text-decoration: none;
  font-weight: 500; color: rgb(244 242 238 / .85); transition: color .3s var(--ease);
}
.hero-index a:hover { color: var(--amber-hi); }
.hero-index span { color: var(--amber-hi); }
.hero-index li + li { border-top: 1px solid rgb(244 242 238 / .12); }
@media (min-width: 760px) {
  .hero-index { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .hero-index li + li { border-top: 0; }
}

.h1-line, .hero .lede, .hero .actions, .eyebrow, .hero-index { animation: rise 1.1s var(--ease) both; }
.eyebrow { animation-delay: .1s; }
.h1-line:first-child { animation-delay: .2s; }
.h1-line + .h1-line { animation-delay: .34s; }
.hero .lede { animation-delay: .5s; }
.hero .actions { animation-delay: .62s; }
.hero-index { animation-delay: .8s; }
@keyframes rise { from { opacity: 0; translate: 0 .5em; filter: blur(6px); } }

@supports (animation-timeline: view()) {
  .hero-plate { animation: plate-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  .hero-copy { animation: copy-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
}
@keyframes plate-drift { to { translate: 0 18%; } }
@keyframes copy-drift { to { translate: 0 -30%; opacity: 0; } }

/* ───────── Ticker ───────── */
.ticker { display: flex; overflow: clip; border-block: 1px solid var(--line); background: var(--bg-2); color: var(--muted); white-space: nowrap; }
.ticker-track { display: flex; flex: none; gap: 3rem; list-style: none; margin: 0; padding: 1.05rem 1.5rem; animation: ticker 44s linear infinite; }
.ticker-track li { display: flex; gap: .7rem; align-items: baseline; }
.ticker-track li::after { content: ""; width: .4rem; height: .4rem; background: var(--amber); border-radius: 1px; margin-left: 2.3rem; align-self: center; }
.ticker b { color: var(--ink); font-weight: 600; letter-spacing: 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { translate: -100% 0; } }

/* ───────── Section heads ───────── */
.sec-head { max-width: 88rem; margin: 0 auto clamp(3rem, 6vw, 6rem); display: grid; gap: 1.4rem; }
.sec-head h2 { font-size: var(--step-4); }
.intro { max-width: 36rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
@media (min-width: 1000px) {
  .sec-head { grid-template-columns: 1.25fr 1fr; align-items: end; }
  .sec-head .kicker { grid-column: 1 / -1; margin: 0; }
}

/* ───────── Portfolio: three pillars that stack like confirmed blocks ───────── */
.portfolio { padding: var(--space) var(--gutter) 0; }
.stack { list-style: none; margin: 0 auto; padding: 0; max-width: 88rem; display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.stack-item { container-type: inline-size; }
.pillar {
  display: grid; background: var(--card); border-radius: var(--radius); overflow: clip;
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px rgb(0 0 0 / .7);
  transform-origin: 50% 0;
}
.p-pic { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: clip; background: var(--bg-2); }
.p-pic img { width: 100%; height: 100%; object-fit: cover; }
.p-body { padding: clamp(1.5rem, 4cqi, 3rem); display: grid; gap: 1.2rem; align-content: center; }
.p-no { color: var(--muted); display: flex; gap: .8rem; }
.p-no span { color: var(--amber); }
.pillar h3 { font-size: clamp(2.2rem, 7cqi, 4.6rem); letter-spacing: -.045em; line-height: .95; }
.p-body > p:not(.p-no) { font-size: var(--step-1); line-height: 1.5; color: color-mix(in oklab, var(--ink) 82%, var(--muted)); max-width: 38rem; }
.ticks { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.ticks li { display: grid; gap: .2rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.45; transition: opacity .3s var(--ease); }
.ticks b { color: var(--ink); font-weight: 600; }
.ticks:has(li:hover) li:not(:hover) { opacity: .5; }
@container (min-width: 46rem) {
  .pillar { grid-template-columns: 5fr 6fr; min-height: min(76svh, 46rem); }
  .p-pic { aspect-ratio: auto; height: 100%; }
  .ticks li { grid-template-columns: 13rem 1fr; gap: 1.2rem; align-items: baseline; }
}
.go {
  justify-self: start; display: inline-flex; gap: .45rem; align-items: center; margin-top: .3rem;
  font-weight: 600; text-decoration: none; padding-bottom: .2rem; border-bottom: 1.5px solid var(--amber);
}
.go:hover { color: var(--amber); }
.go span { transition: translate .3s var(--ease); }
.go:hover span { translate: .25rem 0; }

/* On tall desktop windows the pillars pin and stack; each one recedes as the next lands on it */
@media (min-width: 1000px) and (min-height: 760px) {
  .stack { gap: 0; }
  .stack-item { position: relative; height: 112svh; view-timeline-name: --item; view-timeline-axis: block; }
  .stack-item:last-child { height: auto; }
  .pillar { position: sticky; top: calc(5.5rem + var(--i, 0) * 1.4rem); }
  .stack-item:nth-child(2) { --i: 1; }
  .stack-item:nth-child(3) { --i: 2; }
  @supports (animation-timeline: view()) {
    .stack-item:not(:last-child) .pillar { animation: recede linear both; animation-timeline: --item; animation-range: exit 0% exit 100%; }
  }
}
@keyframes recede { to { scale: .92; filter: brightness(.55); } }

@supports (animation-timeline: view()) {
  .p-pic img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
}
@keyframes settle { from { scale: 1.2; } to { scale: 1; } }
@keyframes lift { from { opacity: 0; translate: 0 3rem; } }

/* ───────── Software ───────── */
.software {
  position: relative; margin-top: clamp(3rem, 7vw, 7rem); padding: var(--space) var(--gutter);
  background: var(--night); color: var(--photo-ink); overflow: clip; isolation: isolate;
  --muted: #9aa3af; --line: rgb(236 234 229 / .12); --ink: #eceae5; --amber: #f2a33a;
}
.sw-plate { position: absolute; inset: -12% 0; z-index: -2; opacity: .55; }
.sw-plate img { width: 100%; height: 100%; object-fit: cover; }
.software::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 13 16 / .95) 25%, rgb(11 13 16 / .55) 70%, rgb(11 13 16 / .8)); }
@supports (animation-timeline: view()) {
  .sw-plate { animation: plate-parallax linear both; animation-timeline: view(); }
}
@keyframes plate-parallax { from { translate: 0 -10%; } to { translate: 0 10%; } }
.sw-inner { max-width: 88rem; margin: 0 auto; display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .sw-inner { grid-template-columns: 5fr 7fr; } }
.sw-head { display: grid; gap: 1.4rem; }
.sw-head .kicker { margin: 0; }
.sw-head h2 { font-size: var(--step-4); }
.sw-steps { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.sw-steps li { display: grid; grid-template-columns: 2.6rem 7rem 1fr; gap: .6rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--muted); align-items: baseline; }
.sw-steps span { color: var(--amber); }
.sw-steps b { color: var(--ink); font-weight: 600; }
.sw-steps small { font-size: 1rem; }
@media (max-width: 480px) {
  .sw-steps li { grid-template-columns: 2.4rem 1fr; row-gap: .15rem; }
  .sw-steps small { grid-column: 2; }
}

/* The illustrative copilot window */
.app {
  margin: 0; border-radius: var(--radius); overflow: clip;
  background: rgb(20 24 32 / .82); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 0 0 1px rgb(236 234 229 / .14), 0 60px 120px -50px rgb(0 0 0 / .9), 0 0 80px -30px rgb(242 163 58 / .25);
}
.app-bar { display: flex; align-items: center; gap: .45rem; padding: .85rem 1rem; border-bottom: 1px solid rgb(236 234 229 / .1); }
.app-bar i { width: .65rem; height: .65rem; border-radius: 50%; background: rgb(236 234 229 / .18); }
.app-bar span { margin-left: .6rem; color: #9aa3af; }
.app-body { padding: clamp(1rem, 3vw, 1.6rem); display: grid; gap: 1rem; }
.msg { max-width: 92%; padding: .9rem 1.05rem; border-radius: 14px; line-height: 1.5; font-size: .98rem; }
.msg.q { justify-self: end; background: #f2a33a; color: #0b0d10; font-weight: 500; border-bottom-right-radius: 4px; }
.msg.a { background: rgb(236 234 229 / .06); box-shadow: inset 0 0 0 1px rgb(236 234 229 / .1); border-bottom-left-radius: 4px; display: grid; gap: .9rem; }
.msg.a b { color: #f2a33a; font-weight: 600; }
.chart { display: flex; align-items: end; gap: 6px; height: 7.5rem; padding: .6rem .2rem 0; border-bottom: 1px solid rgb(236 234 229 / .15); }
.chart span { flex: 1; max-width: 2.6rem; height: calc(var(--h) * 100%); border-radius: 5px 5px 1px 1px; background: linear-gradient(rgb(236 234 229 / .28), rgb(236 234 229 / .08)); transform-origin: bottom; }
.chart span.hi { background: linear-gradient(#f2a33a, rgb(242 163 58 / .35)); box-shadow: 0 0 24px -4px rgb(242 163 58 / .6); }
.src { color: #9aa3af; font-size: .7rem; }
.typing { display: flex; gap: .3rem; padding: .8rem 1rem; background: rgb(236 234 229 / .06); width: max-content; }
.typing i { width: .4rem; height: .4rem; border-radius: 50%; background: #9aa3af; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.app figcaption { padding: .7rem 1rem; color: #9aa3af; border-top: 1px solid rgb(236 234 229 / .1); font-size: .68rem; }
@supports (animation-timeline: view()) {
  .app { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  .msg.q { animation: lift linear both; animation-timeline: view(); animation-range: entry 20% entry 80%; }
  .msg.a { animation: lift linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
  .chart span { animation: bar-up linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
}
@keyframes bar-up { from { scale: 1 0; } }

/* ───────── Education ───────── */
.education { padding: var(--space) var(--gutter); }
.edu-grid { max-width: 88rem; margin: 0 auto; display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .edu-grid { grid-template-columns: 5fr 6fr; } }
.edu-pic { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: clip; background: var(--bg-2); }
@media (max-width: 999px) { .edu-pic { aspect-ratio: 4 / 3; } }
.edu-pic img { width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  .edu-pic { animation: wipe linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .edu-pic img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
}
@keyframes wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.edu-body { display: grid; gap: 1.4rem; container-type: inline-size; }
.edu-body .kicker { margin: 0; }
.edu-body h2 { font-size: var(--step-4); }
.formats { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: calc(var(--radius) - 4px); overflow: clip; box-shadow: 0 0 0 1px var(--line); }
@container (min-width: 34rem) { .formats { grid-template-columns: 1fr 1fr; } }
.formats li { background: var(--card); padding: 1.2rem 1.25rem; display: grid; gap: .3rem; transition: background-color .3s var(--ease); }
.formats li::before { content: ""; width: .6rem; height: .6rem; background: var(--amber); border-radius: 1px; margin-bottom: .4rem; }
.formats li:hover { background: var(--bg-2); }
.formats b { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.formats span { color: var(--muted); font-size: .95rem; }
.fine { font-size: .9rem; color: var(--muted); border-left: 2px solid var(--amber); padding-left: .9rem; max-width: 46rem; }

/* ───────── Quote band ───────── */
.quote {
  position: relative; min-height: clamp(28rem, 76svh, 50rem); display: grid; place-items: center;
  padding: var(--space) var(--gutter); overflow: clip; isolation: isolate; background: var(--night); color: var(--photo-ink);
}
.quote-plate { position: absolute; inset: -15% 0; z-index: -2; }
.quote-plate img { width: 100%; height: 100%; object-fit: cover; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 50% 50%, rgb(11 13 16 / .5), rgb(11 13 16 / .88)); }
.quote blockquote { margin: 0; max-width: 62rem; text-align: center; }
.quote p { font-size: var(--step-3); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; }
.quote em { color: var(--amber-hi); }
@supports (animation-timeline: view()) {
  .quote-plate { animation: plate-parallax linear both; animation-timeline: view(); }
  .quote blockquote { animation: focus-in linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
}
@keyframes focus-in { from { opacity: 0; scale: .94; filter: blur(8px); } }

/* ───────── Team ───────── */
.team { padding: var(--space) var(--gutter); }
.team-pic { margin: 0 auto clamp(2rem, 4vw, 3.5rem); max-width: 88rem; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: clip; }
@media (max-width: 700px) { .team-pic { aspect-ratio: 4 / 3; } }
.team-pic img { width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  .team-pic img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}
.people { max-width: 88rem; margin: 0 auto; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem) clamp(0rem, 2vw, 2rem) clamp(1.5rem, 3vw, 2.25rem) 0; display: grid; gap: .6rem; align-content: start; }
@media (min-width: 900px) { .person + .person { padding-left: clamp(1.5rem, 2.5vw, 2.25rem); } }
.mono-tag { justify-self: start; padding: .25rem .5rem; border-radius: 4px; color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.person h3 { font-size: var(--step-2); letter-spacing: -.03em; margin-top: .6rem; }
.role { color: var(--muted); }
.person p:last-child { color: var(--muted); max-width: 30rem; }

/* ───────── Contact & map ───────── */
.contact { padding: 0 var(--gutter) var(--space); max-width: 88rem; margin: 0 auto; display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 1000px) { .contact { grid-template-columns: 1fr 1.15fr; align-items: center; } }
.contact-copy { display: grid; gap: 1.4rem; }
.contact h2 { font-size: var(--step-4); }
.lines { margin: .8rem 0 0; display: grid; border-top: 1px solid var(--line); }
.lines div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.lines dt { color: var(--muted); }
.lines dd { margin: 0; font-size: var(--step-1); font-weight: 550; letter-spacing: -.015em; }
.lines dd a { text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.lines dd a:hover { background-size: 100% 1.5px; }
.lines address { font-style: normal; line-height: 1.35; }

.licence {
  margin-top: .4rem; padding: 1.1rem 1.25rem 1.2rem; border-radius: calc(var(--radius) - 4px);
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in oklab, var(--amber) 6%, transparent) 14px 15px);
}
.licence-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; font-weight: 600; font-size: 1.02rem; }
.licence-head .mark { width: 1.4rem; height: 1.4rem; }
.licence dl { margin: 0; display: grid; gap: .55rem; }
.licence dl div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-top: 1px dashed var(--line); padding-top: .55rem; }
.licence dt { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.licence dd { margin: 0; font-family: var(--mono); font-weight: 500; font-size: .95rem; font-variant-numeric: tabular-nums; text-align: right; }
.licence small { display: block; font-size: .72rem; color: var(--muted); }
@media (min-width: 560px) { .licence small { display: inline; margin-left: .4rem; } }

.map-card { position: relative; }
.map-open {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; position: relative;
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: clip; background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgb(0 0 0 / .5);
}
@media (min-width: 700px) { .map-open { aspect-ratio: 5 / 4; } }
.map-card:has(.map-open:focus-visible) .map-open { outline: 2px solid var(--amber-hi); outline-offset: 4px; }
.map-preview { position: absolute; inset: 0; pointer-events: none; }
.map-preview img { width: 100%; height: 100%; object-fit: cover; }
.map-preview .mk-map-view { position: absolute !important; inset: 0; }
.map-preview.live .map-fallback img { opacity: 0; transition: opacity .8s ease; }
.map-tag {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; border-radius: calc(var(--radius) - 6px);
  background: color-mix(in oklab, var(--card) 84%, transparent); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--line);
}
.map-coord { display: none; }
@media (min-width: 560px) { .map-coord { display: inline; } }
.map-hint { margin-left: auto; color: var(--amber); }
.map-hint::after { content: " ↗"; font-family: var(--sans); }
.pulse { width: .55rem; height: .55rem; border-radius: 1px; background: var(--amber); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--amber); animation: ping 2s ease-out infinite; }
@keyframes ping { to { scale: 3; opacity: 0; } }

.map-modal { position: fixed; inset: 0; height: 100dvh; z-index: 200; background: var(--bg); view-transition-name: map-modal; }
.map-modal[hidden] { display: none; }
.map-full { position: absolute; inset: 0; }
.map-modal-bar {
  position: absolute; left: max(1rem, env(safe-area-inset-left)); right: max(1rem, env(safe-area-inset-right)); top: max(1rem, env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .7rem .7rem 1.2rem; border-radius: 999px;
  background: color-mix(in oklab, var(--card) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgb(0 0 0 / .45);
}
.map-modal-bar p { display: grid; line-height: 1.25; font-size: .92rem; }
.map-modal-bar span { color: var(--muted); font-size: .85rem; }
.map-close { all: unset; cursor: pointer; width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.map-close:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; }
.map-close svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
::view-transition-old(map-modal), ::view-transition-new(map-modal) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-new(map-modal) { animation-name: modal-in; }
::view-transition-old(map-modal) { animation-name: modal-out; }
@keyframes modal-in { from { opacity: 0; scale: .96; } }
@keyframes modal-out { to { opacity: 0; scale: .96; } }

.asc-pin { display: grid; justify-items: center; }
.asc-pin b {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 10px;
  background: #0b0d10; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .6), 0 0 0 2px #f2a33a;
}
.asc-pin svg { width: 1.7rem; height: 1.7rem; }
.asc-pin .mk-a { fill: #f4f2ee; }
.asc-pin .mk-b { fill: #f2a33a; }
.asc-pin span {
  margin-top: .75rem; padding: .3rem .65rem; border-radius: 999px; white-space: nowrap;
  font: 600 .8rem/1.2 var(--sans); background: #f4f2ee; color: #0e1116; box-shadow: 0 6px 16px -8px rgb(0 0 0 / .5);
}

/* ───────── Footer ───────── */
.foot {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg-2);
  display: grid; gap: 2rem; font-size: .92rem; color: var(--muted);
}
.foot-brand { display: flex; gap: .8rem; align-items: center; color: var(--ink); }
.foot-brand .mark { width: 2.4rem; height: 2.4rem; }
.foot-brand p { font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; line-height: 1.1; }
.foot-brand span { white-space: nowrap; font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal h2 { font: 500 var(--step--1) var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: .6rem; }
.legal p { line-height: 1.6; }
.copy { font-size: var(--step--1); }
@media (min-width: 1000px) { .foot { grid-template-columns: 1fr 2fr; align-items: start; } .copy { grid-column: 1 / -1; } }

/* ───────── Header end: language switch + CTA ───────── */
.bar-end { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1rem); }
.lang { display: flex; border-radius: 999px; padding: .2rem; box-shadow: inset 0 0 0 1px color-mix(in oklab, currentColor 35%, transparent); }
.lang button {
  display: inline-flex; align-items: center; gap: .35rem;
  font: 600 .72rem/1 var(--mono); letter-spacing: .06em; color: inherit;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  min-height: 2rem; padding: 0 .55rem; opacity: .75; transition: opacity .2s, background-color .2s;
}
.lang button svg { width: 1.05rem; height: .7rem; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .25); }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { opacity: 1; background: color-mix(in oklab, currentColor 16%, transparent); }
.hero-index b { font-weight: 500; }
.go i { font-style: normal; transition: translate .3s var(--ease); }
.go:hover i { translate: .25rem 0; }
@media (max-width: 520px) { .bar-end .nav-cta { display: none; } }

/* ───────── The chain rail: Genesis → Tip, on the right edge ───────── */
.rail {
  position: fixed; z-index: 45; right: clamp(.35rem, 1vw, 1.1rem); top: 50%; translate: 0 -50%;
  display: grid; justify-items: center; gap: .55rem; pointer-events: none;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.rail-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail-blocks li {
  width: 9px; height: 9px; border-radius: 2px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--muted) 55%, transparent);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), scale .35s var(--ease);
}
.rail-blocks li.on { background: color-mix(in oklab, var(--amber) 55%, transparent); box-shadow: none; }
.rail-blocks li.tip { background: var(--amber-hi); scale: 1.35; box-shadow: 0 0 0 3px rgb(242 163 58 / .22), 0 0 14px rgb(242 163 58 / .55); }
.rail-end { writing-mode: vertical-rl; rotate: 180deg; color: var(--muted); }
.rail-top { color: var(--amber); }
.rail-now {
  position: absolute; right: calc(100% + .7rem); top: calc(var(--p, 0) * (100% - 1.4rem));
  display: grid; justify-items: end; gap: .1rem; white-space: nowrap;
  padding: .35rem .55rem; border-radius: 6px;
  background: color-mix(in oklab, var(--card) 80%, transparent); box-shadow: 0 0 0 1px var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; translate: .4rem 0;
  transition: top .25s var(--ease), opacity .4s var(--ease), translate .4s var(--ease);
}
/* The block height and section show while the page moves, then step aside for the text */
.rail.moving .rail-now { opacity: 1; translate: 0 0; }
.rail-now b { color: var(--amber); font-weight: 600; font-size: .72rem; }
.rail-sec { color: var(--ink); }
/* Over the photo hero the rail draws in photo ink */
@supports (animation-timeline: scroll()) {
  .rail { animation: rail-ink linear both; animation-timeline: scroll(root); animation-range: 55vh 80vh; }
}
@keyframes rail-ink { from { --muted: rgb(244 242 238 / .7); } }
@media (max-width: 999px) {
  .rail { right: .3rem; gap: .4rem; }
  .rail-end, .rail-now { display: none; }
  .rail-blocks { gap: 3px; }
  .rail-blocks li { width: 5px; height: 5px; border-radius: 1px; }
}

/* ───────── Our own treasury ───────── */
.own { padding: var(--space) var(--gutter) 0; }
.own-grid { max-width: 88rem; margin: 0 auto; display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 1000px) { .own-grid { grid-template-columns: 7fr 5fr; } }
.own-copy { display: grid; gap: 1.4rem; }
.own-copy .kicker { margin: 0; }
.own-copy h2 { font-size: var(--step-4); }
.proofs { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); container-type: inline-size; }
.proofs li { background: var(--bg); display: grid; gap: .3rem; padding: 1.1rem 0; }
.proofs b { font-weight: 600; font-size: 1.1rem; letter-spacing: -.015em; display: flex; gap: .7rem; align-items: center; }
.proofs b::before { content: ""; width: .6rem; height: .6rem; background: var(--amber); border-radius: 1px; flex: none; }
.proofs span { color: var(--muted); padding-left: 1.3rem; }
@container (min-width: 40rem) { .proofs li { grid-template-columns: 15rem 1fr; gap: 1.5rem; align-items: baseline; } .proofs span { padding-left: 0; } }

.ledger {
  margin: 0; border-radius: var(--radius); overflow: clip; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -50px rgb(0 0 0 / .7), 0 0 90px -40px rgb(242 163 58 / .35);
  font-family: var(--mono);
}
.ledger-head { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ledger-head .mark { width: 1.3rem; height: 1.3rem; color: var(--ink); }
.ledger dl { margin: 0; padding: .4rem 1.25rem; }
.ledger dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.ledger dl div:last-child { border-bottom: 0; }
.ledger dt { font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex: none; }
.ledger dd { margin: 0; text-align: right; font-size: .92rem; color: var(--ink); }
.ledger dl div:first-child dd { color: var(--amber); font-weight: 600; }
.ledger-blocks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.ledger-blocks i { aspect-ratio: 1; border-radius: 2px; background: color-mix(in oklab, var(--amber) 70%, transparent); }
.ledger-blocks i:last-child { background: var(--amber-hi); box-shadow: 0 0 14px rgb(242 163 58 / .6); animation: tip-pulse 2.4s ease-in-out infinite; }
@keyframes tip-pulse { 50% { opacity: .45; } }
@supports (animation-timeline: view()) {
  .ledger-blocks i { animation: block-in linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  .ledger-blocks i:nth-child(n) { animation-delay: 0s; }
  .ledger { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes block-in { from { opacity: 0; scale: .4; } }

/* ───────── The plan: a flywheel and four stages ───────── */
.plan { padding: var(--space) var(--gutter) 0; }
.plan-grid { max-width: 88rem; margin: 0 auto; display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (min-width: 1000px) {
  .plan-grid { grid-template-columns: 5fr 7fr; }
  .plan-grid .wheel { position: sticky; top: 7rem; }
}
.wheel { margin: 0 auto; position: relative; width: min(100%, 30rem); aspect-ratio: 1; }
.wheel-svg { width: 100%; height: 100%; overflow: visible; }
.w-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.w-arc { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 942.5; stroke-dashoffset: 942.5; transform: rotate(-90deg); transform-origin: 200px 200px; }
.w-node { fill: var(--card); stroke: var(--amber); stroke-width: 1.5; }
.w-node.hot { fill: var(--amber); }
.w-mark { color: var(--ink); }
.w-nodes { transform-origin: 200px 200px; }
.wheel-labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.wheel-labels li { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; }
.wheel-labels b {
  display: inline-block; padding: .3rem .6rem; border-radius: 6px; white-space: nowrap;
  font: 600 var(--step--1)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line);
}
.wheel-labels li:first-child b { color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
/* The arc draws itself around the wheel as the plan scrolls past; the nodes turn a fifth of a turn */
@supports (animation-timeline: view()) {
  .plan-grid { view-timeline-name: --plan; }
  .w-arc { animation: arc-draw linear both; animation-timeline: --plan; animation-range: entry 30% exit 40%; }
  .w-mark { animation: mark-spin linear both; animation-timeline: --plan; animation-range: entry 30% exit 40%; transform-origin: 200px 200px; }
}
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-spin { from { scale: .8; opacity: .6; } to { scale: 1; opacity: 1; } }

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: st; }
.stage {
  position: relative; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius);
  background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: .8rem;
  transition: translate .35s var(--ease), box-shadow .35s var(--ease);
}
.stage:hover { translate: 0 -3px; box-shadow: 0 0 0 1px color-mix(in oklab, var(--amber) 60%, transparent); }
.stages:has(.stage:hover) .stage:not(:hover) { opacity: .6; }
.stage { transition: opacity .3s var(--ease), translate .35s var(--ease), box-shadow .35s var(--ease); }
.stage + .stage::before {
  content: ""; position: absolute; left: clamp(2rem, 4vw, 2.9rem); top: -1rem; width: 2px; height: 1rem; background: var(--amber);
}
.st-when { display: flex; gap: .8rem; align-items: center; font: 500 var(--step--1) var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-when span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 4px; background: var(--amber); color: var(--night); font-weight: 600; }
.st-when b { font-weight: 500; }
.stage h3 { font-size: var(--step-2); letter-spacing: -.03em; }
.stage > p:not(.st-when):not(.st-earn) { color: var(--muted); max-width: 44rem; }
.st-earn { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .95rem; }
.st-earn span { font: 500 var(--step--1) var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.st-earn b { font-weight: 600; }
@supports (animation-timeline: view()) {
  .stage { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .st-when span { animation: confirm linear both; animation-timeline: view(); animation-range: entry 60% cover 40%; }
}
@keyframes confirm { from { background: transparent; box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--amber); rotate: -45deg; scale: .75; } }

/* ═════════ Theme rooms: each practice is a room you walk into ═════════ */
.portfolio:has(.room) { padding-bottom: 0; }
.portfolio:has(.room) .stack { max-width: none; margin: 0 calc(var(--gutter) * -1); gap: 0; }
.stack-item.room {
  position: relative; height: auto; min-height: 118svh; display: grid; align-items: center;
  padding: clamp(7rem, 14vw, 11rem) var(--gutter); overflow: clip; isolation: isolate;
  background: var(--room-bg); color: var(--ink);
}
.stack-item.room .pillar {
  position: relative; top: auto; animation: none; display: block; min-height: 0;
  max-width: 88rem; width: 100%; margin: 0 auto; background: none; box-shadow: none; overflow: visible; border-radius: 0;
}
.stack-item.room .p-body { max-width: 38rem; padding: 0; gap: 1.3rem; }
.stack-item.room .pillar h3 { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 6.4rem); }
.stack-item.room .ticks li { grid-template-columns: 1fr; gap: .15rem; }
@container (min-width: 46rem) { .stack-item.room .ticks li { grid-template-columns: 13rem 1fr; gap: 1.2rem; } }
.room-label { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.2rem; font: 500 var(--step--1) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.room-label span:first-child { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 4px; box-shadow: inset 0 0 0 1.5px currentColor; }
.stack-item.room .p-no { display: none; }
.room-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: clip; }
.stack-item.room .p-pic { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; height: auto; border-radius: 0; background: none; }
@supports (animation-timeline: view()) {
  .stack-item.room .p-body { animation: lift linear both; animation-timeline: view(); animation-range: entry 35% entry 95%; }
}

/* The doors: closed as the room arrives, they slide apart as you walk in */
.door { display: none; }
@supports (animation-timeline: view()) {
  .door {
    position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 6; display: flex; align-items: center;
    background: #0b0d10; color: #eceae5;
    font: 600 clamp(1.6rem, 1rem + 3vw, 4rem)/1 var(--sans); letter-spacing: -.04em;
    animation: linear both; animation-timeline: --room; animation-range: entry 50% cover 43%;
  }
  .door span { padding: 0 clamp(1rem, 2.5vw, 2.5rem); }
  .door-l { left: 0; justify-content: flex-end; animation-name: door-left; box-shadow: inset -1px 0 0 var(--amber-hi), 30px 0 60px -20px rgb(0 0 0 / .6); }
  .door-r { right: 0; animation-name: door-right; box-shadow: inset 1px 0 0 var(--amber-hi), -30px 0 60px -20px rgb(0 0 0 / .6); }
  .door-r span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--amber); }
}
@keyframes door-left { to { translate: -101% 0; } }
@keyframes door-right { to { translate: 101% 0; } }

/* Room 01 · The Vault — black and gold */
.room-vault { --room-bg: #050506; --ink: #f1e9da; --muted: #a59d8f; --amber: #f2b34a; --line: rgb(242 179 74 / .18); color-scheme: dark; }
.stack-item.room-vault .p-pic { display: none; }
.room-vault .p-pic img { object-position: 80% 50%; filter: saturate(.8); }
.room-vault .p-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #050506 30%, rgb(5 5 6 / .55) 65%, rgb(5 5 6 / .2)); }
.vault-cap {
  position: absolute; left: 0; bottom: 4%; white-space: nowrap;
  font: 700 clamp(6rem, 22vw, 24rem)/.8 var(--sans); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgb(242 179 74 / .35);
}
@supports (animation-timeline: view()) {
  .vault-cap { animation: cap-drift linear both; animation-timeline: view(); }
}
@keyframes cap-drift { from { translate: 15% 0; } to { translate: -45% 0; } }
/* The isometric gold tower: blocks drop in one by one as you walk into the vault */
.stack-item.room { view-timeline-name: --room; }
.iso { position: absolute; right: clamp(2rem, 11vw, 13rem); top: 50%; translate: 0 -50%; width: clamp(14rem, 26vw, 25rem); overflow: visible; }
.iso .i-t { fill: #2b2415; stroke: rgb(242 179 74 / .9); stroke-width: 1; }
.iso .i-l { fill: #15120c; stroke: rgb(242 179 74 / .55); stroke-width: 1; }
.iso .i-r { fill: #0c0a07; stroke: rgb(242 179 74 / .55); stroke-width: 1; }
.iso .h-t { fill: #ffd98a; }
.iso .h-l { fill: #f2a33a; }
.iso .h-r { fill: #b66d10; }
.iso .b6 { filter: drop-shadow(0 0 18px rgb(242 163 58 / .75)); animation: hot-glow 3s ease-in-out infinite; }
@keyframes hot-glow { 50% { filter: drop-shadow(0 0 34px rgb(242 163 58 / .95)); } }
@supports (animation-timeline: view()) {
  .iso .ib { animation: block-drop linear both; animation-timeline: --room; }
  .iso .b1 { animation-range: entry 45% entry 70%; }
  .iso .b2 { animation-range: entry 52% entry 77%; }
  .iso .b3 { animation-range: entry 59% entry 84%; }
  .iso .b4 { animation-range: entry 66% entry 91%; }
  .iso .b5 { animation-range: entry 73% entry 98%; }
  .iso .b6 { animation: block-drop linear both, hot-glow 3s ease-in-out infinite; animation-timeline: --room, auto; animation-range: entry 80% cover 52%, normal; }
}
@keyframes block-drop { from { translate: 0 -140px; opacity: 0; } }
.vault-floor {
  position: absolute; left: -40%; right: -40%; bottom: -8%; height: 55%;
  background-image: linear-gradient(rgb(242 179 74 / .22) 1px, transparent 1px), linear-gradient(90deg, rgb(242 179 74 / .22) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(700px) rotateX(72deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
.room-vault::after { content: ""; position: absolute; z-index: -1; right: 5%; top: 15%; width: 40vw; height: 40vw; border-radius: 50%; background: radial-gradient(circle, rgb(242 179 74 / .18), transparent 65%); pointer-events: none; }
@media (max-width: 999px) {
  .iso { right: 4%; top: 6%; translate: 0 0; width: 9.5rem; opacity: .8; }
  .room-vault .p-pic::after { background: linear-gradient(0deg, #050506 45%, rgb(5 5 6 / .5)); }
}

/* Room 02 · The Engine Room — cyan on black, code falling through it */
.room-engine { --room-bg: #03080c; --ink: #e6f6fb; --muted: #8fb3c0; --amber: #5fd7ff; --line: rgb(95 215 255 / .18); color-scheme: dark; }
.room-engine .p-pic { opacity: .55; }
.room-engine .p-pic img { filter: hue-rotate(-12deg) saturate(1.1); }
.room-engine .p-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, #03080c 28%, rgb(3 8 12 / .55) 60%, rgb(3 8 12 / .3)), radial-gradient(60% 60% at 25% 50%, rgb(95 215 255 / .12), transparent 70%); }
.stack-item.room-engine .pillar { display: flex; justify-content: flex-end; }
.stack-item.room-engine .p-body {
  padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius);
  background: rgb(3 8 12 / .62); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 0 0 1px rgb(95 215 255 / .25), 0 0 80px -30px rgb(95 215 255 / .45);
}
.stack-item.room-engine .pillar { flex-direction: column; align-items: flex-end; }
.room-engine .room-label { align-self: flex-end; }
.rain {
  position: absolute; inset: 0; display: flex; justify-content: space-around;
  mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent);
}
.rain pre {
  margin: 0; writing-mode: vertical-rl; font: 500 .82rem/1.3 var(--mono); letter-spacing: .18em; color: rgb(95 215 255 / .5);
  text-shadow: 0 0 12px rgb(95 215 255 / .6); white-space: pre; animation: rain-fall 11s linear infinite; translate: 0 -100%;
}
.rain pre:nth-child(2n) { animation-duration: 15s; animation-delay: -4s; color: rgb(95 215 255 / .32); }
.rain pre:nth-child(3n) { animation-duration: 9s; animation-delay: -7s; }
.rain pre:nth-child(4n) { animation-duration: 13s; animation-delay: -2s; color: rgb(242 163 58 / .45); text-shadow: 0 0 12px rgb(242 163 58 / .5); }
.rain pre:nth-child(5n) { animation-delay: -9s; }
@keyframes rain-fall { from { translate: 0 -100%; } to { translate: 0 130svh; } }
.scanline { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, rgb(95 215 255 / .7), transparent); box-shadow: 0 0 20px rgb(95 215 255 / .6); animation: scan 6s ease-in-out infinite; }
@keyframes scan { from { translate: 0 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { translate: 0 118svh; opacity: 0; } }
@media (max-width: 999px) { .stack-item.room-engine .pillar { align-items: stretch; } .room-engine .room-label { align-self: flex-start; } .rain pre:nth-child(n+5) { display: none; } }

/* Room 03 · The Studio — a light paper room; a page layout assembles itself as you walk in */
.room-studio {
  --room-bg: #eee8dd; --ink: #0e1116; --muted: #4f5661; --amber: #a65a06; --line: rgb(14 17 22 / .14); --card: #fff; color-scheme: light;
  background-image: radial-gradient(circle at 1px 1px, rgb(14 17 22 / .12) 1px, transparent 1.5px); background-size: 22px 22px;
}
.stack-item.room-studio .p-pic {
  inset: auto clamp(1rem, 6vw, 7rem) 9% auto; width: clamp(9rem, 17vw, 16rem); height: auto; aspect-ratio: 4 / 5;
  rotate: -5deg; border-radius: 6px; overflow: clip; box-shadow: 0 30px 60px -25px rgb(14 17 22 / .45), 0 0 0 8px #fff; z-index: -1;
}
.room-studio .p-pic::before { content: ""; position: absolute; z-index: 2; top: -10px; left: 35%; width: 32%; height: 22px; background: rgb(242 163 58 / .55); rotate: 3deg; }
.layout {
  position: absolute; right: clamp(4rem, 15vw, 18rem); top: 50%; translate: 0 -55%;
  width: clamp(14rem, 26vw, 25rem); aspect-ratio: 3 / 4; display: grid; gap: 10px; padding: 14px;
  grid-template: "nav nav" 8% "hero hero" 38% "a b" 1fr "c c" 14% "foot foot" 7% / 1fr 1fr;
  background: #fff; border-radius: 12px; box-shadow: 0 40px 80px -40px rgb(14 17 22 / .5), 0 0 0 1px rgb(14 17 22 / .08);
}
.layout i { border-radius: 6px; background: #e8e2d7; }
.layout .l-nav { grid-area: nav; background: #0e1116; }
.layout .l-hero { grid-area: hero; background: linear-gradient(135deg, #0b0d10, #2a3140); position: relative; }
.layout .l-hero::after { content: ""; position: absolute; left: 10%; bottom: 14%; width: 46%; height: 12%; border-radius: 99px; background: #f2a33a; }
.layout .l-a { grid-area: a; }
.layout .l-b { grid-area: b; background: #f2a33a; }
.layout .l-c { grid-area: c; }
.layout .l-foot { grid-area: foot; background: #0e1116; opacity: .85; }
.swatches { position: absolute; right: clamp(2rem, 8vw, 9rem); top: 16%; display: flex; gap: .6rem; }
.swatches i { width: 2.6rem; height: 2.6rem; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 10px 20px -10px rgb(14 17 22 / .4); }
.swatches i:nth-child(1) { background: #0b0d10; }
.swatches i:nth-child(2) { background: #2a3140; }
.swatches i:nth-child(3) { background: #f2a33a; }
.swatches i:nth-child(4) { background: #eee8dd; }
@supports (animation-timeline: view()) {
  .layout i { animation: assemble linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  .layout .l-nav { --dx: -120px; --dy: -80px; --r: -18deg; }
  .layout .l-hero { --dx: 160px; --dy: -60px; --r: 12deg; }
  .layout .l-a { --dx: -200px; --dy: 40px; --r: -25deg; }
  .layout .l-b { --dx: 220px; --dy: 90px; --r: 30deg; }
  .layout .l-c { --dx: -90px; --dy: 160px; --r: 10deg; }
  .layout .l-foot { --dx: 120px; --dy: 200px; --r: -14deg; }
  .swatches i { animation: swatch-in linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
  .swatches i:nth-child(2) { animation-range: entry 45% cover 52%; }
  .swatches i:nth-child(3) { animation-range: entry 50% cover 54%; }
  .swatches i:nth-child(4) { animation-range: entry 55% cover 56%; }
}
@keyframes assemble { from { translate: var(--dx) var(--dy); rotate: var(--r); opacity: 0; } }
@keyframes swatch-in { from { scale: 0; } }
@media (max-width: 999px) {
  .layout { right: 6%; top: 12%; translate: 0 0; width: 9rem; opacity: .55; }
  .swatches { top: auto; bottom: 5%; right: 6%; }
  .room-studio .p-pic { display: none; }
}

/* ═════════ Software: one rule in eight languages, one app on every screen ═════════ */
.forge { margin: 0; display: grid; gap: 1.2rem; min-width: 0; }
.sw-inner > *, .code, .snips { min-width: 0; }
.snip { overflow-x: auto; scrollbar-width: none; }
@media (max-width: 999px) {
  .devices { height: auto; aspect-ratio: 16 / 11; }
  .laptop { left: 18%; right: 4%; }
  .stack-item.room { padding-top: 15rem; align-items: start; }
  .iso { top: 3.5rem; width: 8.5rem; }
  .layout { top: 3rem; right: 6%; width: 8rem; opacity: .8; }
  .swatches { top: 4.5rem; bottom: auto; right: auto; left: var(--gutter); }
  .swatches i { width: 1.8rem; height: 1.8rem; }
}
.code {
  border-radius: var(--radius); overflow: clip; background: #070b10;
  box-shadow: 0 0 0 1px rgb(236 234 229 / .14), 0 50px 100px -50px rgb(0 0 0 / .9), 0 0 80px -40px rgb(95 215 255 / .35);
}
.code-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border-bottom: 1px solid rgb(236 234 229 / .08); }
.code-bar > i { width: .6rem; height: .6rem; border-radius: 50%; background: rgb(236 234 229 / .16); flex: none; }
.tabs { list-style: none; margin: 0 0 0 .6rem; padding: 0; display: flex; gap: .2rem; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tabs li { font: 500 .68rem/1 var(--mono); padding: .4rem .55rem; border-radius: 5px; color: #6b7684; white-space: nowrap; animation: tab-on 24s infinite backwards; }
.snips { display: grid; padding: 1.2rem 1.3rem .6rem; min-height: 10.5rem; }
.snip { grid-area: 1 / 1; margin: 0; font: 400 clamp(.72rem, .66rem + .25vw, .86rem)/1.65 var(--mono); color: #d7dde4; white-space: pre; overflow: hidden; animation: snip-on 24s infinite backwards; }
.snip .c { color: #5d6875; }
.snip .k { color: #f2a33a; }
.snip .t { color: #5fd7ff; }
.snip .f { color: #fff; font-weight: 600; }
.snip .n { color: #b9f18d; }
.snip:nth-child(2), .tabs li:nth-child(2) { animation-delay: 3s; }
.snip:nth-child(3), .tabs li:nth-child(3) { animation-delay: 6s; }
.snip:nth-child(4), .tabs li:nth-child(4) { animation-delay: 9s; }
.snip:nth-child(5), .tabs li:nth-child(5) { animation-delay: 12s; }
.snip:nth-child(6), .tabs li:nth-child(6) { animation-delay: 15s; }
.snip:nth-child(7), .tabs li:nth-child(7) { animation-delay: 18s; }
.snip:nth-child(8), .tabs li:nth-child(8) { animation-delay: 21s; }
@keyframes snip-on { 0% { opacity: 0; translate: 0 .5rem; filter: blur(4px); } 2%, 11% { opacity: 1; translate: 0 0; filter: blur(0); } 13%, 100% { opacity: 0; translate: 0 -.5rem; filter: blur(4px); } }
@keyframes tab-on { 0% { color: #6b7684; background: transparent; } .5%, 12% { color: #0b0d10; background: #f2a33a; } 12.5%, 100% { color: #6b7684; background: transparent; } }
.code-foot { display: flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-top: 1px solid rgb(236 234 229 / .08); font: 500 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8b96a4; }
.cursor { width: .5rem; height: .9rem; background: #f2a33a; animation: blink 1s steps(1) infinite; }

.devices { position: relative; height: clamp(15rem, 26vw, 21rem); }
.dev .screen { background: #0a0f15; overflow: clip; position: relative; }
.laptop { position: absolute; left: 14%; right: 0; top: 0; }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 12px 12px 0 0; border: 8px solid #1b2129; border-bottom-width: 12px; padding: 4% 5%; display: grid; grid-template-rows: auto 1fr; gap: 6%; }
.laptop .base { height: 12px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#2a313b, #12161c); }
.phone { position: absolute; left: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 19; }
.phone .screen { height: 100%; border-radius: 22px; border: 6px solid #1b2129; padding: 18% 9% 9%; display: grid; align-content: start; gap: 9%; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8); }
.watch { position: absolute; right: 4%; bottom: -4%; width: 18%; aspect-ratio: 4 / 5; }
.watch .screen { height: 100%; border-radius: 28%; border: 6px solid #1b2129; display: grid; place-items: center; padding: 12%; box-shadow: 0 20px 40px -15px rgb(0 0 0 / .8), 0 0 0 2px #2a313b; }
.ui-top { display: flex; align-items: center; gap: .4rem; font: 600 .62rem var(--mono); color: #8b96a4; letter-spacing: .06em; text-transform: uppercase; }
.ui-top i { width: .7rem; height: .7rem; border-radius: 2px; background: #f2a33a; }
.ui-main { display: grid; grid-template-columns: 38% 1fr; gap: 6%; align-items: end; }
.ring { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring .r-bg { fill: none; stroke: rgb(236 234 229 / .1); stroke-width: 8; }
.ring .r-fg { fill: none; stroke: #f2a33a; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; animation: ring-fill 6s var(--ease) infinite; filter: drop-shadow(0 0 6px rgb(242 163 58 / .6)); }
.ring b { font: 600 clamp(.8rem, 1.6vw, 1.5rem)/1 var(--sans); color: #fff; letter-spacing: -.03em; display: grid; justify-items: center; }
.ring small { position: absolute; bottom: 24%; font: 500 .5rem var(--mono); color: #8b96a4; text-transform: uppercase; letter-spacing: .06em; }
.phone .ring b { font-size: clamp(.7rem, 1.3vw, 1.1rem); }
.watch .ring b { font-size: clamp(.6rem, 1vw, .9rem); }
.bars { display: flex; align-items: end; gap: 5%; height: 100%; min-height: 3rem; }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px 3px 1px 1px; background: linear-gradient(rgb(95 215 255 / .7), rgb(95 215 255 / .12)); transform-origin: bottom; animation: bar-pulse 6s var(--ease) infinite; }
.bars i.hi { background: linear-gradient(#f2a33a, rgb(242 163 58 / .2)); }
.phone .bars { height: 4rem; }
@keyframes ring-fill { 0% { stroke-dashoffset: 264; } 35%, 85% { stroke-dashoffset: 74; } 100% { stroke-dashoffset: 264; } }
@keyframes bar-pulse { 0% { scale: 1 .1; } 35%, 85% { scale: 1 1; } 100% { scale: 1 .1; } }
.platforms { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.platforms li { font: 500 .72rem/1 var(--mono); letter-spacing: .04em; padding: .5rem .7rem; border-radius: 999px; color: #d7dde4; box-shadow: inset 0 0 0 1px rgb(236 234 229 / .18); }
.platforms li:nth-child(3n+1) { box-shadow: inset 0 0 0 1px rgb(242 163 58 / .5); }
.forge figcaption { font: 500 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #8b96a4; }
@supports (animation-timeline: view()) {
  .code { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .devices { animation: lift linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
}

/* ═════════ Portraits: one frame for three very different photos ═════════ */
/* The ring lives on the figure; the photo is clipped by .pt with clip-path, which Safari keeps
   round while the filter and blend animate (a rounded overflow clip flashes square corners). */
.portrait {
  position: relative; margin: 0 0 .6rem; width: clamp(9.5rem, 13vw, 12.5rem); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--amber), 0 24px 50px -24px rgb(0 0 0 / .6);
}
.pt { position: absolute; inset: 0; display: block; clip-path: circle(50% at 50% 50%); background: #fff; isolation: isolate; }
/* No long-press lift, callout, drag or selection on the avatars (iOS) */
.portrait, .portrait * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.portrait img { pointer-events: none; }
.portrait img {
  position: absolute; max-width: none;
  left: calc(var(--x) * 100%); top: calc(var(--y) * 100%);
  width: calc(var(--w, var(--s)) * 100%); height: calc(var(--s) * 100%);
  filter: grayscale(1) contrast(1.08) brightness(1.04);
  transition: filter .5s var(--ease);
}
/* Timo's passport crop is smaller than the frame: its edges fade into the same white the duotone tints */
.portrait.feather img {
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, #000 88%, transparent);
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.pt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(160deg, #f6d39c, #d99a4a 70%, #b8762f);
  transition: opacity .5s var(--ease);
}
@media (hover: hover) {
  .person:hover .portrait img { filter: none; }
  .person:hover .pt::after { opacity: 0; }
}

/* ───────── Reduced motion: every film and scroll scene rests ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-film { display: none; }
  .lattice { mask-position: 40% 0; -webkit-mask-position: 40% 0; }
  .w-arc { stroke-dashoffset: 0; }
  .door, .rain, .scanline { display: none !important; }
  .snip:not(:first-child) { display: none; }
  .tabs li:first-child { color: #0b0d10; background: #f2a33a; }
  .ring .r-fg { stroke-dashoffset: 74; }
  .ticker { white-space: normal; }
  .ticker-track[aria-hidden] { display: none; }
  .ticker-track { flex-wrap: wrap; row-gap: .6rem; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
