:root {
  --night: oklch(0.14 0.01 70);
  --paper: oklch(0.93 0.02 85);
  --ink: oklch(0.18 0.02 70);
  --ash: oklch(0.48 0.02 70);
  --ember: oklch(0.62 0.19 38);
  --ember-ink: oklch(0.97 0.02 85);
  --teal: oklch(0.46 0.07 185);
  --blueprint: oklch(0.2 0.06 258);
  --blueprint-line: oklch(0.85 0.06 215 / 0.14);
  --line-night: oklch(0.97 0.02 85 / 0.18);
  --line-paper: oklch(0.18 0.02 70 / 0.16);
  --display: "Fraunces", "Palatino Linotype", Georgia, serif;
  --sans: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --mast: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --focus: 0 0 0 2px var(--night), 0 0 0 4px var(--ember);
  --mx: 50%;
  --my: 40%;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--mast);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ember-ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 17px;
  font-weight: 420;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  content: "";
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); font-weight: 450; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9rem; }

:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible { box-shadow: var(--focus); }

.skip-link {
  position: fixed;
  z-index: 90;
  left: 16px;
  top: 16px;
  padding: 12px 16px;
  background: var(--ember);
  color: var(--ember-ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--ember);
  color: var(--ember-ink);
  font-weight: 620;
  letter-spacing: -0.02em;
  cursor: pointer;
  isolation: isolate;
}
.tag span { position: relative; z-index: 1; }
.tag::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 80px at var(--mx, 50%) var(--my, 50%), oklch(1 0 0 / 0.28), transparent 70%);
  opacity: 0;
  transition: opacity 200ms var(--ease);
  content: "";
}
.tag:hover::before { opacity: 1; }

.tick {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: clip;
  min-height: 100svh;
  color: var(--ember-ink);
}
.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform-origin: center 40%;
}
@supports (animation-timeline: scroll()) {
  .hero-still {
    animation: hero-zoom linear both;
    animation-timeline: scroll();
    animation-range: 0 90vh;
  }
  @keyframes hero-zoom {
    to { transform: scale(1.16); }
  }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.14 0.01 70 / 0.18) 0%, oklch(0.14 0.01 70 / 0.08) 38%, oklch(0.14 0.01 70 / 0.82) 100%),
    linear-gradient(90deg, oklch(0.14 0.01 70 / 0.5) 0%, transparent 46%);
}
.hero-plate {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 100svh;
  max-width: 58rem;
  padding: calc(var(--mast) + 24px) 7vw 7vh;
}
.hero h1 .line {
  display: block;
  clip-path: inset(0 0 0 0);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
}
.lede {
  max-width: 38rem;
  margin: 22px 0 32px;
  font-size: 1.06rem;
  line-height: 1.58;
  opacity: 0.9;
}

.build { height: 340svh; background: #000; }
.build-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.build-sticky::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, oklch(0.14 0.01 70 / 0.5) 0%, transparent 32%),
    linear-gradient(270deg, oklch(0.14 0.01 70 / 0.42) 0%, transparent 34%),
    linear-gradient(180deg, oklch(0.14 0.01 70 / 0.4) 0%, transparent 24%, transparent 68%, oklch(0.14 0.01 70 / 0.5) 100%);
  pointer-events: none;
  content: "";
}
.build-stage,
.construction-poster,
.construction-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.construction-poster,
.construction-canvas { object-fit: cover; max-width: none; }
.construction-canvas { opacity: 0; }
.build-stage.is-ready .construction-poster { opacity: 0; }
.build-stage.is-ready .construction-canvas { opacity: 1; }

.film-edge {
  position: absolute;
  z-index: 2;
  top: calc(var(--mast) + 8px);
  right: max(24px, calc((100% - 1180px) / 2));
  text-align: right;
  text-shadow: 0 8px 28px oklch(0 0 0 / 0.55);
}
.film-code {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.film-count {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.film-count small {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
}

.film-index {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: 48px;
  max-width: 24rem;
  text-shadow: 0 10px 30px oklch(0 0 0 / 0.6);
}
.film-index h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.build-steps {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.build-step {
  padding: 0;
  border: 0;
  background: transparent;
  color: oklch(0.97 0.02 85 / 0.78);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
}
.build-step.is-active { color: var(--ember-ink); text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.film-now {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.build-progress {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: oklch(0.97 0.02 85 / 0.16);
}
.build-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ember);
}

/* ---------- shared layout ---------- */
.folio {
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(oklch(0.18 0.02 70 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.18 0.02 70 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.section-note { margin-top: 12px; color: var(--ash); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid oklch(0.97 0.02 85 / 0.5);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.ghost:hover { background: oklch(0.97 0.02 85 / 0.12); border-color: var(--ember-ink); }

.mark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 560;
  letter-spacing: -0.04em;
}

/* ---------- why ---------- */
.why { padding: 112px 0 72px; }
.why h2 { max-width: 20ch; }
.why-lede { max-width: 40rem; margin-top: 20px; color: var(--ash); font-size: 1.12rem; }
.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line-paper);
}
.role {
  padding: 24px 24px 8px 0;
}
.role + .role { padding-left: 24px; border-left: 1px solid var(--line-paper); }
.role .tick { color: var(--teal); }
.role h3 { margin-bottom: 12px; font-size: 1.35rem; line-height: 1.08; }
.role p:not(.tick) { color: var(--ash); font-size: 0.96rem; }













/* ---------- From sheet to space: stacked by default, pinned with louvre reveals when motion is on ---------- */
.strip { padding: 24px 0 96px; }
.strip-stage { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.strip-layers { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.strip-layers img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.strip-copy .tick { margin: 28px 0 10px; }
.strip-captions { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.strip-captions li { display: grid; gap: 2px; }
.strip-captions b { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.strip-captions span { color: var(--ash); }
.strip-count { display: none; }

.strip.is-pinned { padding: 0; background: var(--blueprint); }
.is-pinned .strip-stage { position: relative; width: 100%; height: 100svh; margin: 0; overflow: hidden; background: var(--blueprint); }
.is-pinned .strip-layers { display: block; }
.is-pinned .strip-layers li { position: absolute; inset: 0; }
.is-pinned .strip-layers img { width: 100%; height: 100%; aspect-ratio: auto; transform-origin: center; }
/* louvres: every slat opens left to right, like the timber slats on the facade */
.is-pinned.is-louvre .strip-layers li:not(:first-child) {
  -webkit-mask-image: linear-gradient(90deg, #000 var(--w, 0%), transparent var(--w, 0%));
  mask-image: linear-gradient(90deg, #000 var(--w, 0%), transparent var(--w, 0%));
  -webkit-mask-size: calc(100% / 14) 100%;
  mask-size: calc(100% / 14) 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}
.is-pinned .strip-layers li.is-open { -webkit-mask-image: none; mask-image: none; }
.is-pinned .strip-layers li.is-wait { visibility: hidden; }
.is-pinned .strip-stage::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, oklch(0.14 0.01 70 / 0.62), transparent 48%), linear-gradient(0deg, oklch(0.14 0.01 70 / 0.6), transparent 42%);
  pointer-events: none;
  content: "";
}
.is-pinned .strip-copy { position: absolute; z-index: 3; left: max(24px, calc((100% - 1180px) / 2)); bottom: 8vh; max-width: min(44rem, calc(100% - 48px)); color: var(--ember-ink); }
.is-pinned .strip-copy .tick { margin: 0 0 18px; color: oklch(0.97 0.02 85 / 0.8); }
.is-pinned .strip-copy h2 { margin-bottom: 26px; font-size: clamp(3.2rem, 8.4vw, 8rem); }
.is-pinned .strip-copy .dim { color: var(--ember-ink); }
.is-pinned .strip-captions { display: grid; margin-top: 0; }
.is-pinned .strip-captions li { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.is-pinned .strip-captions li.is-active { opacity: 1; transform: none; }
.is-pinned .strip-captions b { color: var(--ember); }
.is-pinned .strip-captions span { color: oklch(0.97 0.02 85 / 0.9); font-size: 1.3rem; text-shadow: 0 4px 20px oklch(0 0 0 / 0.5); }
.is-pinned .strip-count {
  position: absolute;
  z-index: 3;
  top: calc(var(--mast) + 18px);
  right: max(24px, calc((100% - 1180px) / 2));
  display: block;
  margin: 0;
  color: var(--ember-ink);
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-shadow: 0 6px 28px oklch(0 0 0 / 0.55);
}
.is-pinned .strip-count b { font-weight: 500; }

/* ---------- site plan ---------- */
.studio { padding: 0 0 96px; }
.sheet {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  border: 1px solid var(--line-paper);
}
.sheet-meta { padding: 32px 28px 22px; }
.sheet-meta p:not(.tick) { max-width: 38rem; color: var(--ash); margin-top: 12px; }
.sheet-field {
  position: relative;
  aspect-ratio: 1920 / 1072;
  overflow: hidden;
  background: #1c2a1c;
  cursor: grab;
  touch-action: pan-y; /* a thumb scrolls the page until the map is zoomed in */
  container-type: size;
}
.sheet-field:active { cursor: grabbing; }
.sheet-field.is-zoomed { touch-action: none; }
.site-plan-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  user-select: none;
}
.map-controls { display: flex; gap: 8px; margin-top: 20px; }
.map-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.map-controls button:hover { background: var(--ink); color: var(--paper); }

/* ---------- process ---------- */
.process { padding: 40px 0 104px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.steps li { padding: 0 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line-paper); }
.steps { position: relative; }
.step-no {
  position: relative;
  display: block;
  margin-bottom: 40px;
  color: var(--ember);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ash); font-size: 0.98rem; }

/* ---------- faq ---------- */
.faq { padding: 104px 0 104px; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq-list { border-top: 1px solid var(--line-paper); }
.faq-list details { border-bottom: 1px solid var(--line-paper); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.12rem;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  color: var(--ember);
  font-family: var(--mono);
  font-size: 1.3rem;
  content: "+";
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 36rem; padding: 0 0 22px; color: var(--ash); }

/* ---------- book ---------- */
.book {
  position: relative;
  padding: 96px 0 112px;
  background-color: var(--blueprint);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  color: var(--ember-ink);
}
/* drafting-sheet corner ticks */
.book::before, .book::after {
  position: absolute;
  top: 28px;
  width: 36px;
  height: 36px;
  border-top: 1px solid oklch(0.85 0.06 215 / 0.55);
  content: "";
}
.book::before { left: max(20px, calc((100% - 1180px) / 2)); border-left: 1px solid oklch(0.85 0.06 215 / 0.55); }
.book::after { right: max(20px, calc((100% - 1180px) / 2)); border-right: 1px solid oklch(0.85 0.06 215 / 0.55); }
.book-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.book-note { max-width: 30rem; margin-top: 20px; opacity: 0.8; }
.book-direct {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 22px;
  border: 1px solid oklch(0.97 0.02 85 / 0.5);
  font-weight: 600;
}
.book-direct[hidden] { display: none; }
.letter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}
.letter label { display: grid; gap: 8px; }
.letter .span-2,
.form-status { grid-column: 1 / -1; }
.letter label > span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.letter input,
.letter textarea,
.letter select {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid oklch(0.97 0.02 85 / 0.5);
  border-radius: 0;
  background: transparent;
  color: var(--ember-ink);
}
.letter select option { color: var(--ink); }
.letter textarea { min-height: 110px; resize: vertical; }
.form-status { min-height: 1.3em; font-size: 0.92rem; opacity: 0.85; }
.form-status.is-error { color: oklch(0.78 0.14 35); opacity: 1; }
.letter .tag { justify-self: start; }

.colophon {
  display: flex;
  justify-content: space-between;
  padding: 20px max(20px, calc((100% - 1180px) / 2)) 36px;
  border-top: 1px solid var(--blueprint-line);
  color: oklch(0.97 0.02 85 / 0.6);
  background: var(--blueprint);
  font-size: 0.88rem;
}

.reveal {
  animation: rise linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
}

/* ---------- walk: chapters, loader, enter button ---------- */
.film-side {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 48px;
  display: grid;
  justify-items: end;
  gap: 16px;
  width: min(23rem, 38vw);
}
.chapters { position: relative; display: grid; width: 100%; }
.chapter {
  grid-area: 1 / 1;
  padding: 20px 22px 22px;
  border: 1px solid oklch(0.97 0.02 85 / 0.18);
  background: oklch(0.14 0.01 70 / 0.38);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  pointer-events: none;
}
.chapter.is-active { opacity: 1; transform: none; pointer-events: auto; }
.chapter .tick { margin-bottom: 10px; color: var(--ember); }
.chapter h3 { margin-bottom: 8px; font-size: 1.5rem; line-height: 1.04; }
.chapter p:not(.tick) { font-size: 0.95rem; opacity: 0.86; }

.walk-enter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid oklch(0.97 0.02 85 / 0.45);
  border-radius: 999px;
  background: oklch(0.97 0.02 85 / 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ember-ink);
  font-weight: 620;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}
.walk-enter i { font-style: normal; transition: transform 220ms var(--ease); }
.walk-enter:hover { background: var(--ember); border-color: var(--ember); }
.walk-enter:hover i { transform: translateX(4px); }

.walk-loader {
  position: absolute;
  z-index: 2;
  top: calc(var(--mast) + 14px);
  left: max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 4px 16px oklch(0 0 0 / 0.6);
  transition: opacity 600ms var(--ease) 400ms;
}
.walk-loader.is-done { opacity: 0; pointer-events: none; }
.walk-loader-bar { width: 72px; height: 2px; background: oklch(0.97 0.02 85 / 0.25); overflow: hidden; }
.walk-loader-bar i { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 200ms linear; }

.build-step.is-active { text-shadow: 0 6px 20px oklch(0 0 0 / 0.5); }


.walk-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.walk-mini {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid oklch(0.97 0.02 85 / 0.32);
  border-radius: 999px;
  background: oklch(0.14 0.01 70 / 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ember-ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.walk-mini:hover { background: oklch(0.97 0.02 85 / 0.16); }
.walk-mini[aria-pressed="true"] { border-color: var(--ember); color: var(--ember); }
.walk-row { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }


/* ---------- hotspots on the footage ---------- */
.hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.walk .hotspots { z-index: 1; }
.hotspot { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; color: #fff; pointer-events: auto; cursor: pointer; will-change: transform, opacity; }
.hotspot[hidden] { display: none; }
.hotspot i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 1.5px solid #fff; border-radius: 50%; background: oklch(0.14 0.01 70 / 0.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 18px oklch(0 0 0 / 0.35); }
.hotspot i::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-style: normal; line-height: 1; content: "+"; transition: transform 300ms var(--ease); }
.hotspot i::before { position: absolute; inset: -8px; border: 1px solid #fff; border-radius: 50%; opacity: 0; animation: hotspot-ping 2.4s var(--ease) infinite; content: ""; }
@keyframes hotspot-ping { 0% { opacity: 0.7; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.5); } }
.hotspot span { position: absolute; left: 26px; top: -17px; padding: 8px 14px; border: 1px solid oklch(0.97 0.02 85 / 0.2); border-radius: 999px; background: oklch(0.14 0.01 70 / 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 0.82rem; font-weight: 560; letter-spacing: -0.01em; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity 250ms var(--ease), transform 250ms var(--ease); pointer-events: none; }
.hotspot.is-flip span { left: auto; right: 26px; transform: translateX(6px); }
.hotspot:hover span, .hotspot:focus-visible span, .hotspot.is-open span { opacity: 1; transform: none; }
.hotspot:hover i::after, .hotspot.is-open i::after { transform: rotate(45deg); }
.hotspot:focus-visible { outline: none; }
.hotspot:focus-visible i { box-shadow: var(--focus); }

/* ---------- walk it yourself (native dialog) ---------- */
html.is-walking { overflow: hidden; }
dialog.walk {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #000;
  color: var(--ember-ink);
  opacity: 1;
  transition: opacity 350ms var(--ease), display 350ms allow-discrete, overlay 350ms allow-discrete;
}
@starting-style { dialog.walk[open] { opacity: 0; } }
dialog.walk:not([open]) { opacity: 0; }
dialog.walk::backdrop { background: #000; }
.walk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
dialog.walk.is-dragging .walk-canvas { cursor: grabbing; }
.walk-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, oklch(0.14 0.01 70 / 0.5), transparent 22%, transparent 62%, oklch(0.14 0.01 70 / 0.6));
}
.walk-ui > * { position: absolute; pointer-events: auto; }
.walk-close {
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid oklch(0.97 0.02 85 / 0.4);
  border-radius: 999px;
  background: oklch(0.14 0.01 70 / 0.4);
  backdrop-filter: blur(14px);
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}
.walk-close kbd {
  padding: 2px 6px;
  border: 1px solid oklch(0.97 0.02 85 / 0.35);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  opacity: 0.75;
}
.walk-count {
  top: 18px;
  right: 24px;
  margin: 0;
  pointer-events: none;
  text-align: right;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 8px 28px oklch(0 0 0 / 0.55);
}
.walk-count small { margin-left: 4px; font-family: var(--mono); font-size: 0.8rem; opacity: 0.7; }
.walk-caption {
  left: 24px;
  bottom: 28px;
  max-width: 26rem;
  padding: 20px 22px 22px;
  border: 1px solid oklch(0.97 0.02 85 / 0.18);
  background: oklch(0.14 0.01 70 / 0.4);
  backdrop-filter: blur(18px);
}
.walk-caption .tick { margin-bottom: 10px; color: var(--ember); }
.walk-caption h3 { margin-bottom: 8px; font-size: 1.5rem; line-height: 1.04; }
.walk-caption p:not(.tick) { font-size: 0.95rem; opacity: 0.86; }
.walk-controls {
  right: 24px;
  bottom: 28px;
  display: grid;
  justify-items: end;
  gap: 12px;
}
.walk-play {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ember-ink);
  font-weight: 620;
  cursor: pointer;
}
.walk-hint { margin: 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.walk-end {
  width: min(88vw, 26rem);
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px 32px;
  border: 1px solid oklch(0.97 0.02 85 / 0.2);
  background: oklch(0.14 0.01 70 / 0.62);
  backdrop-filter: blur(20px);
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.walk-end[hidden] { display: none; }
.walk-end p { margin: 0; text-wrap: balance; }
.walk-end .tag { white-space: nowrap; font-family: var(--sans); font-size: 1rem; letter-spacing: -0.02em; }


/* ---------- plan: layer, badge, chips, focus ---------- */
.plan-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, calc(100cqh * 1.791));
  aspect-ratio: 1920 / 1072;
  container-type: inline-size;
  transform: translate(-50%, -50%) translate(var(--map-x, 0px), var(--map-y, 0px)) scale(var(--map-scale, 1));
  transform-origin: center;
  will-change: transform;
}
.plan-layer.is-flying { transition: transform 700ms var(--ease); }
.plan-badge {
  position: absolute;
  left: 0.3%;
  top: 0.6%;
  width: 18.4%;
  height: 9.9%;
  display: grid;
  place-items: center;
  border-radius: 1.2cqw;
  background: oklch(0.14 0.01 70);
  color: var(--ember-ink);
  font-family: var(--display);
  font-size: 3.4cqw;
  font-weight: 560;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.plan-sample {
  position: absolute;
  right: 0.6%;
  bottom: 3.6%;
  display: grid;
  gap: 0.25cqw;
  padding: 1cqw 1.8cqw;
  border-radius: 1.2cqw;
  background: oklch(0.14 0.01 70);
  color: var(--ember-ink);
  font-family: var(--mono);
  font-size: 1cqw;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
}
.plan-sample small { font-size: 0.8cqw; opacity: 0.65; }
.plan-focus {
  position: absolute;
  width: 7cqw;
  height: 7cqw;
  margin: -3.5cqw 0 0 -3.5cqw;
  border: 0.25cqw solid var(--ember);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.plan-focus.is-on { animation: focus-ping 1.6s var(--ease) 0.5s 2 both; }
@keyframes focus-ping {
  0% { opacity: 0.95; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(1.6); }
}
.plan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.plan-list button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-paper);
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 560;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.plan-list button:hover { border-color: var(--ink); }
.plan-list button[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- hero: reveal canvas, hint, persona ---------- */
.hero-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform-origin: center 40%;
  transition: opacity 500ms var(--ease);
}
.hero-reveal.is-on { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .hero-reveal { animation: hero-zoom linear both; animation-timeline: scroll(); animation-range: 0 90vh; }
}
.hero-hint {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 3vh;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 700ms var(--ease);
  pointer-events: none;
}
.hero-hint.is-gone { opacity: 0; }
.hero-hint [data-hint-coarse] { display: none; }
@media (pointer: coarse) {
  .hero-hint [data-hint-fine] { display: none; }
  .hero-hint [data-hint-coarse] { display: inline; }
}
.persona {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}
.persona-label {
  margin-right: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}
.persona button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid oklch(0.97 0.02 85 / 0.38);
  border-radius: 99px;
  background: oklch(0.14 0.01 70 / 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ember-ink);
  font-size: 0.88rem;
  font-weight: 560;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.persona button:hover { background: oklch(0.97 0.02 85 / 0.16); }
.persona button[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); }
.lede { transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.lede.is-swapping { opacity: 0; transform: translateY(6px); }
.role.is-yours { box-shadow: inset 0 3px 0 var(--ember); }
.role.is-yours h3 { color: var(--ember); }

/* ---------- 2026 motion polish ---------- */


.w {
  display: inline-block;
  animation: word linear both;
  animation-timeline: view();
  animation-range: entry calc(var(--i) * 3%) entry calc(55% + var(--i) * 2%);
}
@keyframes word { from { opacity: 0.12; filter: blur(5px); transform: translateY(0.18em); } }

.role {
  position: relative;
  isolation: isolate;
}
.role::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px 200px at var(--rx, 50%) var(--ry, 0%), oklch(0.62 0.19 38 / 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  content: "";
}
.role:hover::before { opacity: 1; }


@keyframes pulse { 50% { box-shadow: 0 0 0 10px oklch(0.62 0.19 38 / 0.18), 0 6px 24px oklch(0 0 0 / 0.35); } }

.reveal { animation-name: rise; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); filter: blur(6px); } }


/* ================= Stage 1: pill nav, menu, build progress, scenes ================= */
.pill {
  position: fixed;
  z-index: 40;
  top: 14px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(640px, calc(100% - 24px));
  height: 54px;
  padding: 0 8px 0 8px;
  transform: translateX(-50%);
  border: 1px solid oklch(0.97 0.02 85 / 0.16);
  border-radius: 999px;
  background: oklch(0.14 0.01 70 / 0.55);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  color: var(--ember-ink);
  box-shadow: 0 10px 40px oklch(0 0 0 / 0.25);
}
.pill-menu {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms var(--ease);
}
.pill-menu:hover { background: oklch(0.97 0.02 85 / 0.12); }
.pill-lines { display: grid; gap: 5px; width: 18px; }
.pill-lines i { display: block; height: 1.5px; background: currentColor; transition: transform 300ms var(--ease); }
.pill-lines i:last-child { width: 62%; }
.pill-menu:hover .pill-lines i:last-child { transform: scaleX(1.6); transform-origin: left; }
.pill-mark { font-family: var(--display); font-size: 1.45rem; font-weight: 560; letter-spacing: -0.04em; }
.pill-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ember-ink);
  font-size: 0.88rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  transition: filter 200ms var(--ease);
}
.pill-cta:hover { filter: brightness(1.1); }

/* full-screen menu */
dialog.menu {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background-color: var(--blueprint);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ember-ink);
  opacity: 1;
  transition: opacity 400ms var(--ease), display 400ms allow-discrete, overlay 400ms allow-discrete;
}
@starting-style { dialog.menu[open] { opacity: 0; } }
dialog.menu:not([open]) { opacity: 0; }
dialog.menu::backdrop { background: var(--blueprint); }
.menu-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 48px;
  height: 100%;
  padding: 96px max(24px, 5vw) 48px;
}
.menu-close {
  position: absolute;
  top: 18px;
  right: max(18px, 3vw);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid oklch(0.97 0.02 85 / 0.4);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}
.menu-close kbd { padding: 2px 6px; border: 1px solid oklch(0.97 0.02 85 / 0.35); border-radius: 4px; font-family: var(--mono); font-size: 0.68rem; opacity: 0.75; }
.menu-links { display: grid; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 22px;
  overflow: hidden;
  padding: 0.04em 0;
  border-bottom: 1px solid oklch(0.97 0.02 85 / 0.14);
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.menu-links a i { flex: none; width: 2.6rem; font-family: var(--mono); font-size: 0.78rem; font-style: normal; letter-spacing: 0.14em; color: var(--ember); }
.menu-links a span { display: inline-block; transition: transform 900ms var(--ease) calc(var(--i, 1) * 70ms), color 250ms var(--ease), font-style 0s; }
.menu-links a:nth-child(1) { --i: 1; } .menu-links a:nth-child(2) { --i: 2; } .menu-links a:nth-child(3) { --i: 3; } .menu-links a:nth-child(4) { --i: 4; } .menu-links a:nth-child(5) { --i: 5; }
@starting-style { dialog.menu[open] .menu-links a span { transform: translateY(110%); } }
.menu-links a:hover span { color: var(--ember); font-style: italic; }
.menu-meta { display: grid; justify-items: start; gap: 22px; }
.menu-note { max-width: 20rem; color: oklch(0.97 0.02 85 / 0.7); }
html.menu-open { overflow: hidden; }

/* build progress */
.phase {
  position: fixed;
  z-index: 35;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  mix-blend-mode: difference;
  transition: opacity 400ms var(--ease);
}
.phase.is-hidden { opacity: 0; pointer-events: none; }
.phase ol { display: grid; justify-items: end; gap: 14px; margin: 0; padding: 0; list-style: none; }
.phase li { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.4; transition: opacity 300ms var(--ease); }
.phase li span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 600ms var(--ease); }
.phase li b { font-weight: 500; }
.phase li.is-done { opacity: 0.8; }
.phase li.is-active { opacity: 1; }
.phase li.is-active span { max-width: 120px; }

/* the architectural mask: one cut corner, used everywhere imagery and cards appear */
.tag, .chapter, .walk-caption, .proof-card { --c: 16px; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.tag { --c: 9px; }
.tag:focus-visible { clip-path: none; }

/* colour-blocked scene: the process sits on the dark, warm sheet */
.process {
  padding: 104px 0 112px;
  background-color: var(--night);
  background-image:
    linear-gradient(oklch(0.97 0.02 85 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.97 0.02 85 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--ember-ink);
}
.process .tick { color: oklch(0.97 0.02 85 / 0.7); }
.process .steps li + li { border-left-color: var(--line-night); }
.process .steps p { color: oklch(0.97 0.02 85 / 0.7); }
.process .dim { color: var(--ember-ink); }
.process .step-no { color: var(--ember); }

/* role picker now lives in the "why" scene */
.why-who { margin: 28px 0 4px; }
.persona--paper { margin: 0; }
.persona--paper .persona-label { color: var(--ash); }
.persona--paper button { border-color: var(--line-paper); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink); }
.persona--paper button:hover { background: oklch(0.18 0.02 70 / 0.06); }
.persona--paper button[aria-pressed="true"] { border-color: var(--ember); background: var(--ember); color: var(--ember-ink); }
.why-lede { transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.why-lede.is-swapping { opacity: 0; transform: translateY(6px); }

@media (max-width: 900px) {
  .phase { display: none; }
  .menu-sheet { grid-template-columns: 1fr; align-content: center; gap: 28px; padding-top: 88px; }
  .menu-links a { font-size: clamp(2.2rem, 11vw, 3.4rem); gap: 14px; }
  .menu-links a i { width: 1.8rem; }
  .pill-mark { font-size: 1.3rem; }
}

/* ================= 2026 layer: intro, cursor, calm walk UI, drafting marks ================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* motion gate (set by the head script; always released by motion.js or its failsafe) */
.motion .hero-plate > *, .motion .hero-hint { opacity: 0; }
.intro-on { overflow: hidden; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background-color: var(--blueprint);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 48px 48px;
  color: oklch(0.9 0.05 215);
}
.intro-on .intro { display: grid; }
.intro-draw { width: min(92vw, 1100px); height: auto; max-height: 70vh; }
.intro-dim { opacity: 0.6; }
@media (max-width: 600px) { .intro-draw { width: 150vw; max-width: none; } }
.intro-mark {
  position: absolute;
  left: 50%;
  bottom: 13vh;
  margin: 0;
  transform: translateX(-50%);
  color: var(--ember-ink);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 520;
  letter-spacing: -0.04em;
}
.intro-meta {
  position: absolute;
  inset: auto max(24px, 4vw) 26px;
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.intro-meta b { color: var(--ember); font-weight: 500; }
.intro-sheet { position: absolute; inset: auto 0 0; height: 3px; background: var(--ember); }

/* cursor ring */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transition: width 320ms var(--ease), height 320ms var(--ease), margin 320ms var(--ease), opacity 250ms;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.is-named { width: 82px; height: 82px; margin: -41px 0 0 -41px; }
.cursor-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
@media (pointer: coarse) { .cursor { display: none; } }

/* the walk, quieter: one rail, one caption, one action */
.film-index {
  top: 50%;
  bottom: auto;
  max-width: none;
  transform: translateY(-50%);
  text-shadow: none;
}
.build-steps { position: relative; gap: 0; }
.build-steps::before {
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: oklch(0.97 0.02 85 / 0.32);
  content: "";
}
.build-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  color: oklch(0.97 0.02 85 / 0.66);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 250ms var(--ease);
}
.build-step i {
  position: relative;
  z-index: 1;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1.5px solid oklch(0.97 0.02 85 / 0.75);
  border-radius: 50%;
  background: oklch(0.14 0.01 70 / 0.6);
  transition: background 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.build-step:hover { color: #fff; }
.build-step.is-active { color: #fff; text-decoration: none; }
.build-step.is-active i { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 5px oklch(0.62 0.19 38 / 0.28); }

.walk-actions { gap: 10px; }
.walk-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid oklch(0.97 0.02 85 / 0.4);
  border-radius: 50%;
  background: oklch(0.14 0.01 70 / 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ember-ink);
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.walk-icon:hover { background: oklch(0.97 0.02 85 / 0.18); }
.walk-icon[aria-pressed="true"] { border-color: var(--ember); color: var(--ember); }
.walk-icon .wave { opacity: 0.3; transition: opacity 200ms; }
.walk-icon[aria-pressed="true"] .wave { opacity: 1; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 500ms var(--ease);
  pointer-events: none;
  text-shadow: 0 4px 16px oklch(0 0 0 / 0.5);
}
.scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--ember-ink), transparent); transform-origin: top; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.scroll-cue.is-gone { opacity: 0; }

/* drafting marks under headings */
.dim {
  position: relative;
  display: block;
  width: min(240px, 40%);
  height: 9px;
  margin-top: 22px;
  border-inline: 1px solid currentColor;
  color: var(--ink);
  opacity: 0.55;
}
.dim::before { position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; content: ""; }
.book .dim { color: oklch(0.85 0.06 215); }
.sheet-meta .dim { display: none; }

/* proof */
.proof { padding: 40px 0 104px; }
.proof[hidden] { display: none; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.proof-card { margin: 0; padding: 26px; border: 1px solid var(--line-paper); background: oklch(0.97 0.02 85 / 0.5); }
.proof-metric { margin: 0 0 16px; font-family: var(--display); font-size: 3rem; line-height: 0.9; color: var(--ember); }
.proof-metric small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.proof-card blockquote { margin: 0 0 18px; font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.proof-card figcaption { color: var(--ash); font-size: 0.88rem; }

@media (max-width: 900px) {
  .hero-plate { padding: calc(var(--mast) + 16px) 20px 44px; }
  .persona button { min-height: 36px; padding: 0 12px; font-size: 0.82rem; }
  .hero-hint { bottom: 12px; font-size: 0.6rem; }
  .film-edge { right: 16px; }
  .film-index { left: 16px; right: 16px; bottom: 20px; max-width: none; }
  .film-index { top: auto; transform: none; }
  .build-steps { display: flex; gap: 16px; }
  .build-steps::before { display: none; }
  .build-step { padding: 6px 0; gap: 8px; font-size: 0.64rem; letter-spacing: 0.1em; }
  .build-step i { width: 9px; height: 9px; }
  /* only the current chapter shows its name on phones; the others stay readable to screen readers */
  .build-step:not(.is-active) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .build-steps { gap: 18px; align-items: center; }
  .scroll-cue { display: none; }
  .film-side { left: 16px; right: 16px; bottom: 64px; width: auto; justify-items: stretch; }
  .chapter { padding: 14px 16px 16px; }
  .chapter h3 { font-size: 1.2rem; }
  .chapter p:not(.tick) { font-size: 0.88rem; }
  .walk-actions { justify-content: flex-start; }
  .walk-row { justify-content: flex-start; }
  .walk-loader { left: 16px; }
  .walk-loader #walk-loader-text { display: none; }
  .walk-caption { left: 16px; right: 16px; bottom: 96px; max-width: none; padding: 14px 16px 16px; }
  .walk-controls { left: 16px; right: 16px; bottom: 22px; display: flex; justify-content: space-between; align-items: center; }
  .walk-hint { display: none; }
  .walk-close { top: 14px; left: 14px; }
  .walk-close kbd { display: none; }
  .walk-count { right: 16px; }
  .why { padding: 80px 0 48px; }
  .roles, .steps { grid-template-columns: 1fr; margin-top: 36px; }
  .role, .role + .role, .steps li, .steps li + li {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-paper);
  }
  .step-no { margin-bottom: 14px; }
  .faq-grid, .book-grid { grid-template-columns: 1fr; gap: 32px; }
  .letter { grid-template-columns: 1fr; }
  .sheet-meta { padding: 24px 20px 18px; }
  .sheet-field { aspect-ratio: auto; height: 58vh; }
  .plan-list { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .plan-list li { flex: 0 0 auto; }
  .plan-list::-webkit-scrollbar { display: none; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .roles, .steps { grid-template-columns: repeat(2, 1fr); }
  .role:nth-child(3), .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .role:nth-child(n+3), .steps li:nth-child(n+3) { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w { opacity: 1 !important; filter: none !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .build { height: auto; }
  .build-sticky { position: relative; height: 100svh; }
}

/* Lenis housekeeping */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ================= Stage 5: scenes tied to the transformation ================= */
.chamfer-media { --c: 22px; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }

/* why: four fragments of the same building, in build order */
.roles { gap: 22px; margin-top: 56px; border-top: 0; }
.role { padding: 0; }
.role + .role { padding-left: 0; border-left: 0; }
.role-fig { position: relative; aspect-ratio: 4 / 3; margin: 0 0 20px; overflow: hidden; background: var(--blueprint); }
.role-fig { --c: 22px; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.role-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease); }
.role:hover .role-fig img { transform: scale(1.07); }
.role-fig::after { position: absolute; inset: 0; background: linear-gradient(0deg, oklch(0.14 0.01 70 / 0.6), transparent 45%); content: ""; pointer-events: none; }
.role-fig figcaption { position: absolute; z-index: 1; left: 18px; bottom: 14px; color: #fff; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.role.is-yours .role-fig { outline: 3px solid var(--ember); outline-offset: -3px; }
.role.is-yours { box-shadow: none; }

/* the plan becomes a site table: full width, headline set over it */
@media (min-width: 901px) {
  .studio { padding: 0; }
  .sheet { position: relative; width: 100%; margin: 0; border: 0; }
  .sheet::after { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, oklch(0.14 0.01 70 / 0.86), transparent 58%), linear-gradient(90deg, oklch(0.14 0.01 70 / 0.55), transparent 52%); content: ""; pointer-events: none; }
  .sheet-field { height: min(94vh, 900px); aspect-ratio: auto; background: #0c1a10; }
  .sheet-meta { position: absolute; z-index: 3; left: 0; bottom: 0; max-width: 46rem; padding: 0 0 clamp(40px, 8vh, 96px) max(24px, calc((100% - 1180px) / 2)); color: var(--ember-ink); }
  .sheet-meta .tick { color: oklch(0.97 0.02 85 / 0.85); }
  .sheet-meta h2 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
  .sheet-meta .plan-list { margin-top: 16px; }
  .sheet-meta .map-controls { margin-top: 14px; }
  .sheet-meta p:not(.tick) { color: oklch(0.97 0.02 85 / 0.9); max-width: 32rem; }
  .plan-list button { border-color: oklch(0.97 0.02 85 / 0.42); background: oklch(0.14 0.01 70 / 0.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ember-ink); }
  .plan-list button:hover { border-color: var(--ember-ink); }
  .plan-list button[aria-current="true"] { border-color: var(--ember); background: var(--ember); }
  .map-controls button { border-color: var(--ember-ink); background: oklch(0.14 0.01 70 / 0.4); color: var(--ember-ink); }
  .map-controls button:hover { background: var(--ember-ink); color: var(--night); }
  .studio .dim { color: var(--ember-ink); }
}

/* process: one picture that changes with each step */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.process-sticky { position: sticky; top: calc(var(--mast) + 18px); }
.process-media { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; background: var(--blueprint); --c: 28px; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.process-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 800ms var(--ease), transform 1400ms var(--ease); }
.process-media img.is-active { opacity: 1; transform: none; }
.process-count { margin: 14px 0 0; font-family: var(--display); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.process-count b { font-weight: 500; color: var(--ember); }
.process-body .steps { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
.process-body .steps li, .process-body .steps li + li { display: flex; flex-direction: column; justify-content: center; min-height: 54vh; padding: 0; border-left: 0; opacity: 0.32; transition: opacity 500ms var(--ease); }
.process-body .steps li.is-active { opacity: 1; }
.process-body .step-no { margin-bottom: 22px; }
.process-body .steps h3 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.process-body .steps p { max-width: 30rem; font-size: 1.15rem; }
@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr 1fr; }
  .role, .role + .role { border-bottom: 0; padding: 0 0 12px; }
  .process-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-sticky { z-index: 2; top: calc(var(--mast) - 6px); padding: 8px 0 10px; background: var(--night); }
  .process-media { aspect-ratio: 16 / 9; }
  .process-count { display: none; }
  .process-body .steps li, .process-body .steps li + li { min-height: 46vh; border-bottom: 0; padding: 0; }
}
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }

/* the walk, with half the chrome: a small clock and a rail that shows names only on hover */
.film-count { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1; }
.film-count small { display: inline; margin-left: 6px; font-size: 0.7rem; }
.film-code { margin-bottom: 8px; }
@media (min-width: 901px) {
  .build-step:not(.is-active) span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 500ms var(--ease), opacity 300ms var(--ease); }
  .build-steps:hover .build-step span { max-width: 9rem; opacity: 1; }
  .chapter { padding: 16px 18px 18px; }
  .chapter h3 { font-size: 1.3rem; }
}

/* about: who we are, and where */
.about { padding: 24px 0 96px; }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.about-lead { margin-bottom: 18px; font-family: var(--display); font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; }
.about-body > p:not(.about-lead) { max-width: 38rem; color: var(--ash); }
.regions { display: grid; gap: 0; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-paper); }
.regions li { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-paper); }
.regions b { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.regions span { color: var(--ink); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } .regions li { grid-template-columns: 1fr; gap: 4px; } }
