/* ============================================================
   Adam Hölzl - Digital Flagship
   Iteration 3 - memorability, pacing, restraint.
   Editorial documentary, not agency portfolio.
   One theme (near-black), one accent (ember). Type-led.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/CabinetGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0c0b;
  --ink: #eeeae1;
  --ink-dim: #a8a297;
  --ink-faint: #6d685f;
  --accent: #c97856;
  --line: rgba(238, 234, 225, 0.12);
  --font-display: "Cabinet Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-text: "General Sans", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.375rem, 5vw, 5rem);
  --scene-gap: clamp(6.5rem, 16vh, 12.5rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #35322d var(--bg);
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 420;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--pad);
  z-index: 200;
  padding: 0.6rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 520;
}
.skip-link:focus-visible { top: 1rem; }

/* ============================================================
   Atmosphere - deeper, cinematic, never flat
   ============================================================ */

/* Volumetric ambient light: large glows, very slow drift */
.ambient {
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(62vw 54vw at 50% 26%, rgba(201, 120, 86, 0.06), transparent 72%);
  will-change: transform;
  animation: drift-base 60s ease-in-out infinite alternate;
}
.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: -14%;
  will-change: transform;
}
.ambient::before {
  background:
    radial-gradient(34vw 30vw at 26% 22%, rgba(201, 120, 86, 0.18), transparent 60%),
    radial-gradient(24vw 24vw at 70% 58%, rgba(238, 234, 225, 0.05), transparent 62%);
  animation: drift-a 34s ease-in-out infinite alternate;
}
.ambient::after {
  background:
    radial-gradient(40vw 34vw at 66% 80%, rgba(201, 120, 86, 0.12), transparent 60%),
    radial-gradient(22vw 22vw at 18% 82%, rgba(238, 234, 225, 0.045), transparent 60%);
  animation: drift-b 46s ease-in-out infinite alternate;
}
@keyframes drift-base {
  from { transform: translate3d(-1%, 1%, 0) scale(1); }
  to { transform: translate3d(1.5%, -1.5%, 0) scale(1.08); }
}
@keyframes drift-a {
  from { transform: translate3d(-2.5%, -1.5%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
  to { transform: translate3d(-2.5%, -2%, 0) scale(1); }
}

/* Persistent particle field + drifting brand watermark (living continuity) */
.field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
/* Soft vignette - edges darker, breathing very slowly */
body::before {
  content: "";
  position: fixed;
  inset: -2%;
  z-index: 55;
  pointer-events: none;
  background: radial-gradient(126% 100% at 50% 40%, transparent 48%, rgba(4, 3, 2, 0.62) 100%);
  will-change: transform, opacity;
  animation: vignette-breathe 19s ease-in-out infinite alternate;
}
@keyframes vignette-breathe {
  from { transform: scale(1); opacity: 0.82; }
  to { transform: scale(1.035); opacity: 1; }
}

/* Animated film grain - premium cinema texture (~+40% presence) */
body::after {
  content: "";
  position: fixed;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  z-index: 60;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  opacity: 0.11;
  will-change: transform;
  animation: grain 0.62s steps(5) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-3%, -2%); }
  33%  { transform: translate(2%, -4%); }
  50%  { transform: translate(-2%, 3%); }
  66%  { transform: translate(3%, 1%); }
  83%  { transform: translate(-1%, -3%); }
  100% { transform: translate(1%, 2%); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient, .ambient::before, .ambient::after,
  body::before, body::after { animation: none !important; }
}

/* ---------- Layer order (depth planes) ---------- */
.site-header { z-index: 100; }
#main { position: relative; z-index: 2; }

/* ---------- Layout primitives ---------- */
.wrap {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.scene { padding-block: var(--scene-gap); }

/* ---------- Type ---------- */
/* magazine wrapping: avoid single-word last lines */
p, .focus-value, .how-text, .proof-label { text-wrap: pretty; }
.display {
  font-family: var(--font-display);
  font-weight: 730;
  letter-spacing: -0.028em;
  line-height: 0.98;
  text-wrap: balance;
}
.lead {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.body-copy {
  color: var(--ink-dim);
  max-width: 34em;
  font-size: 1.05rem;
  line-height: 1.7;
}
.body-copy + .body-copy { margin-top: 1.4em; }

h2.display {
  font-size: clamp(2.6rem, 6.4vw, 5.75rem);
  max-width: 15ch;
}

.eyebrow {
  font-family: var(--font-text);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

/* ============================================================
   Reveals - word split, blur, mask, translate, stagger
   ============================================================ */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; }
.word__inner { display: inline-block; will-change: transform; }
.js [data-split].is-split .word__inner {
  transform: translateY(115%);
  opacity: 0;
  transition: transform 1.15s var(--ease-out), opacity 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 42ms);
}
.js [data-split].is-split.is-in .word__inner { transform: none; opacity: 1; }

/* standard reveals: opacity + rise only; defocus is reserved for the
   hero load-in and the constellation focus pull (rare = cinematic) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.25s var(--ease-out),
    transform 1.25s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 105ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="mask"] {
  opacity: 1; transform: none; filter: none;
  clip-path: inset(16% 10% 16% 10%);
  transition: clip-path 1.4s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 105ms);
}
.js [data-reveal="mask"] img { scale: 1.08; transition: scale 1.6s var(--ease-out); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"].is-in img { scale: 1; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal="mask"],
  .js [data-reveal="mask"] img,
  .js [data-split].is-split .word__inner {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    scale: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   Header - minimal, floating, smaller type
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  transition: background-color 0.6s ease, border-color 0.6s ease, backdrop-filter 0.6s ease, transform 0.55s var(--ease);
  border-bottom: 1px solid transparent;
}
/* editorial header: steps aside while you read down, returns on the
   way up or the moment you pause */
.site-header.is-hidden { transform: translateY(-103%); }
.site-header.is-scrolled {
  background: rgba(13, 12, 11, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom-color: rgba(238, 234, 225, 0.07);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  transition: color 0.4s ease, opacity 0.4s ease;
}
.wordmark .logo { height: 8px; width: auto; display: block; }
.wordmark:hover { color: #fff; }
.header-cta {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}
.header-cta:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }

/* ============================================================
   Scene 01 - Hero (magazine cover, subtle life)
   ============================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
}
/* local volumetric light, extremely slow breathing */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(58% 48% at 22% 32%, rgba(201, 120, 86, 0.12), transparent 68%);
  will-change: transform, opacity;
  animation: hero-breathe 22s ease-in-out infinite alternate;
}
@keyframes hero-breathe {
  from { transform: scale(1) translate(0, 0); opacity: 0.75; }
  to { transform: scale(1.14) translate(1.5%, -1%); opacity: 1; }
}
/* Iteration 11: the hero is a centered opening frame; everything
   below stays left-aligned editorial */
.hero .wrap { padding-block: 8rem; width: 100%; text-align: center; }
.hero h1 {
  font-size: clamp(2.85rem, 8.2vw, 7.5rem);
  line-height: 0.95;
  max-width: 15ch;
  margin-inline: auto;
}
.hero-lead {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-top: clamp(3rem, 5.5vw, 5rem);
  margin-inline: auto;
  max-width: 22em;
}
.hero-sub {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--ink-dim);
  max-width: 30em;
  margin-inline: auto;
}
.hero-sub span { display: inline-block; }
.hero-cta-row {
  margin-top: clamp(3rem, 5.5vw, 4.75rem);
}
/* quiet links: the type stands still, only the underline moves,
   sweeping left to right into the ember accent (one language for
   every underlined invitation on the site) */
.cta-quiet {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-weight: 500; font-size: 1rem;
  color: var(--ink-dim);
  padding-bottom: 0.5rem;
}
.cta-quiet svg { width: 12px; height: 12px; }
.cta-quiet, .cover-open, .footer-start, .contact-email {
  position: relative;
  transition: color 0.45s ease;
}
.cta-quiet::after, .cover-open::after, .footer-start::after, .contact-email::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line);
}
.cta-quiet::before, .cover-open::before, .footer-start::before, .contact-email::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
  z-index: 1;
}
.cta-quiet:hover, .footer-start:hover, .contact-email:hover { color: var(--ink); }
.cta-quiet:hover::before,
.cover-link:hover .cover-open::before,
.footer-start:hover::before,
.contact-email:hover::before { transform: scaleX(1); }

/* Hero load-in */
.js .hero [data-reveal-load] { opacity: 0; transform: translateY(24px); filter: blur(10px); }
.js .hero.is-ready [data-reveal-load] {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
}
.js .hero.is-ready .hero-lead { transition-delay: 0.7s; }
.js .hero.is-ready .hero-sub { transition-delay: 0.95s; }
.js .hero.is-ready .hero-cta-row { transition-delay: 1.2s; }
/* slower entrance for the headline only: someone stepping on stage */
.js .hero [data-split].is-split .word__inner {
  transition-duration: 1.7s, 1.6s;
  transition-delay: calc(var(--i, 0) * 110ms);
}
/* quiet idle drift on the CTA arrow: "there is more" */
@media (prefers-reduced-motion: no-preference) {
  .hero .cta-quiet svg { animation: cta-drift 5.5s ease-in-out infinite; }
}
@keyframes cta-drift {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(3px); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none !important; }
  .js .hero [data-reveal-load] { opacity: 1 !important; transform: none !important; filter: none !important; }
}
/* subtle parallax as the hero leaves */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero .wrap {
      animation: hero-par linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}
@keyframes hero-par { to { transform: translateY(-7%); opacity: 0.55; } }

/* ============================================================
   Scene 02 - Introduction (editorial offset)
   ============================================================ */
.intro .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.intro-figure { overflow: hidden; margin-top: clamp(0rem, 6vw, 5rem); }
.intro-figure img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  filter: grayscale(0.2) contrast(1.03);
}
.intro-copy { padding-top: clamp(2rem, 8vw, 7rem); }
.intro-copy .lead { font-size: clamp(1.9rem, 3.6vw, 3.5rem); max-width: 15ch; }
.intro-copy .body-copy { margin-top: 2.6rem; max-width: 32em; }

/* ============================================================
   Scene 03 - Clients (no boxes, huge whitespace)
   ============================================================ */
.clients h2 { max-width: 20ch; }
.clients .body-copy { margin-top: 1.8rem; }
.logo-row {
  margin-top: clamp(5rem, 12vh, 9rem);
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: clamp(2.75rem, 6vw, 6.5rem) clamp(3rem, 7vw, 8rem);
}
.logo-row li {
  color: var(--ink); opacity: 0.42;
  transition: opacity 0.6s ease, filter 0.6s ease;
  filter: grayscale(1);
}
.logo-row li:hover { opacity: 0.92; }
.logo-row svg { display: block; }
.logo-nike { width: clamp(58px, 6vw, 82px); }
.logo-redbull { width: clamp(52px, 5vw, 70px); }
.logo-xiaomi { width: clamp(38px, 3.5vw, 50px); }
.logo-vans { width: clamp(74px, 8vw, 104px); }
.logo-canon { width: clamp(86px, 9vw, 120px); }
.logo-onyxw { width: clamp(74px, 7.5vw, 100px); }
.logo-biggboss { display: block; width: clamp(54px, 5.5vw, 74px); height: auto; }
.logo-qline { display: block; width: clamp(78px, 8vw, 106px); height: auto; }
.logo-vafo { display: block; width: clamp(58px, 6vw, 80px); height: auto; }

/* ============================================================
   Scene 04 - The path (personal, quiet, whisper)
   ============================================================ */
.path .wrap { max-width: 1040px; }
.path-lead {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  max-width: 17ch;
}
.path-thread {
  position: relative;
  margin: clamp(4rem, 11vh, 8rem) 0 clamp(3.5rem, 9vh, 6rem);
  max-width: 620px;
  margin-left: clamp(0rem, 8vw, 8rem);
}
.path-thread::before {
  content: "";
  position: absolute;
  left: 5px; top: 1.4rem; bottom: 1.4rem;
  width: 1px;
  background: linear-gradient(var(--ink-faint), var(--line) 70%, transparent);
  transform-origin: top;
}
.path-step {
  position: relative;
  padding: clamp(1.3rem, 3.5vh, 2.2rem) 0 clamp(1.3rem, 3.5vh, 2.2rem) 3rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.path-step::before {
  content: "";
  position: absolute;
  left: 1px; top: clamp(1.55rem, 3.75vh, 2.45rem);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink-faint);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.path-step:hover::before { background: var(--accent); border-color: var(--accent); }
.path-era {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-faint);
}
.path-note {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.3rem, 2.5vw, 2.05rem);
  letter-spacing: -0.016em;
  line-height: 1.15;
  color: var(--ink);
}
/* thread draws itself in as it enters (invisible structure revealing) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .path-thread::before {
      scale: 1 0;
      animation: thread-draw linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 35%;
    }
  }
}
@keyframes thread-draw { to { scale: 1 1; } }

/* ============================================================
   Scene 05 - How I think (living constellation, centerpiece)
   ============================================================ */
.system { text-align: center; }
.system .eyebrow { margin-inline: auto; }
.system h2 { margin-inline: auto; }
.system-sub { margin: 1.8rem auto 0; max-width: 30em; text-align: center; }
.constellation {
  margin: clamp(2.5rem, 7vh, 5rem) auto 0;
  max-width: 940px;
  position: relative;
}
.c-svg { width: 100%; height: auto; display: block; overflow: visible; }

.c-edge {
  stroke: rgba(238, 234, 225, 0.16);
  stroke-width: 1;
  fill: none;
  transition: stroke 0.45s ease, stroke-width 0.45s ease;
}
.c-edge--ring { stroke: rgba(238, 234, 225, 0.09); }
.c-edge.is-hot { stroke: rgba(201, 120, 86, 0.85); stroke-width: 1.4; }

.c-dot {
  fill: var(--ink);
  filter: drop-shadow(0 0 3px rgba(238, 234, 225, 0.28));
  transition: r 0.35s var(--ease), fill 0.35s ease, filter 0.35s ease;
}
.c-node.is-active .c-dot {
  fill: #fff;
  r: 6;
  filter: drop-shadow(0 0 7px rgba(201, 120, 86, 0.6));
}

.c-label {
  font-family: var(--font-text);
  font-weight: 380;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  fill: var(--ink-faint);
  transition: fill 0.4s ease;
}
.c-node.is-active .c-label,
.c-node.is-near .c-label { fill: var(--ink); }
.c-label--center {
  font-family: var(--font-display);
  font-weight: 660;
  font-size: 27px;
  letter-spacing: -0.014em;
  text-transform: none;
  fill: var(--ink);
}
.c-ring {
  fill: none;
  stroke: rgba(238, 234, 225, 0.22);
  stroke-width: 1;
}
.c-pulse { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(201, 120, 86, 0.7)); }

.system-chain { display: none; }

/* ============================================================
   Scene 06 - Selected work (editorial covers, not cards)
   One project = one magazine opening spread. Future projects
   repeat this exact grammar: folio, bleeding image, overlapping
   title, floating meta, one line, quiet invitation.
   ============================================================ */
.work h2 { margin-bottom: clamp(4rem, 10vh, 7rem); }
.cover + .cover { margin-top: clamp(7rem, 18vh, 13rem); }
.cover-link { display: block; color: inherit; }
.cover-grid { position: relative; }
/* oversized folio, drawn in outline so it sits IN the composition,
   not on top of it */
.cover-index {
  position: absolute;
  top: -0.42em;
  left: -0.04em;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(5.5rem, 13vw, 11.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 234, 225, 0.26);
  text-stroke: 1px rgba(238, 234, 225, 0.26);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
/* the photograph is not trapped in a rectangle: air on the left,
   bleeding off the right edge of the page */
.cover-media {
  margin-left: clamp(2.5rem, 8vw, 8rem);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}
.cover-media img {
  width: 100%; aspect-ratio: 21 / 10; object-fit: cover; display: block;
  filter: grayscale(0.1) contrast(1.02);
}
.cover-meta {
  position: absolute;
  top: 1.6rem;
  right: clamp(1.25rem, 3vw, 2.5rem);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(238, 234, 225, 0.8);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}
/* the title walks over the photograph's lower edge */
.cover-title {
  position: relative;
  z-index: 2;
  margin-top: -0.58em;
  font-family: var(--font-display);
  font-weight: 730;
  font-size: clamp(3.4rem, 9.5vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.cover-line {
  margin-top: clamp(1.25rem, 2.5vw, 1.9rem);
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 30em;
}
.cover-open {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500; font-size: 0.95rem;
  color: var(--ink-dim);
  padding-bottom: 0.5rem;
}
.cover-open svg { width: 12px; height: 12px; rotate: -90deg; }
.cover-link:hover .cover-open { color: var(--ink); }
.cover-link:hover .cover-title { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .intro-figure img {
      animation: par-img linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    .js [data-reveal="mask"].is-in .intro-figure img { scale: none; }
  }
}
@keyframes par-img {
  from { transform: translateY(-5%) scale(1.12); }
  to { transform: translateY(5%) scale(1.12); }
}

/* ============================================================
   Scene 08 - Current focus (editorial index)
   ============================================================ */
.focus h2 { max-width: 16ch; }
.focus .body-copy { margin-top: 1.6rem; }
.focus-index {
  margin-top: clamp(4rem, 9vh, 6.5rem);
  border-top: 1px solid var(--line);
}
.focus-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  align-items: baseline;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(1.5rem, 3.6vh, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.focus-num {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s ease;
}
.focus-topic {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--ink-dim);
  transition: color 0.55s var(--ease), transform 0.55s var(--ease), opacity 0.55s ease;
  transform-origin: left center;
  width: fit-content;
}
@media (hover: hover) {
  .focus-index:hover .focus-topic { opacity: 0.5; }
  .focus-row:hover .focus-topic { opacity: 1; color: var(--ink); transform: translateX(14px); }
  .focus-row:hover .focus-num { color: var(--accent); }
}

/* ============================================================
   Scene 09 - Contact (strong ending)
   ============================================================ */
.contact { position: relative; }
.contact h2 { font-size: clamp(3rem, 9vw, 8rem); max-width: 13ch; line-height: 0.94; }
.contact .body-copy { margin-top: 2.2rem; max-width: 30em; }
.contact-row {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta-solid {
  display: inline-flex; align-items: center;
  padding: 1.05rem 2.1rem;
  background: var(--ink); color: var(--bg);
  font-weight: 560; font-size: 1.02rem;
  border-radius: 999px;
  transition: background-color 0.4s ease, transform 0.35s var(--ease), box-shadow 0.4s ease, translate 0.5s var(--ease);
  will-change: translate;
}
.cta-solid:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); }
.cta-solid:active { transform: translateY(0) scale(0.99); }
.contact-email {
  color: var(--ink-dim); font-size: 1.02rem;
  padding-bottom: 3px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(238, 234, 225, 0.07); position: relative; z-index: 1; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 2.4rem;
  color: var(--ink-faint); font-size: 0.9rem;
}

/* ============================================================
   Mobile (single column, intentional recomposition)
   ============================================================ */
@media (max-width: 900px) {
  .wordmark .logo { height: 7px; }

  .intro .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .intro-figure { order: -1; width: min(100%, 440px); margin-top: 0; }
  .intro-copy { padding-top: 0; }

  .path-thread { margin-left: 0; }

  .system-sub { max-width: none; }
  .constellation { display: none; }
  .system-chain {
    display: flex; flex-direction: column; align-items: center;
    margin-top: 3.5rem;
  }
  .system-chain li {
    font-family: var(--font-text); font-weight: 460;
    color: var(--ink-dim); text-align: center;
    letter-spacing: 0.02em;
  }
  .system-chain li:not(:last-child)::after {
    content: ""; display: block; width: 1px; height: 28px;
    margin: 0.8rem auto; background: rgba(238, 234, 225, 0.22);
  }
  .system-chain .chain-end {
    font-family: var(--font-display); font-weight: 680; font-size: 1.4rem;
    color: var(--ink);
    border: 1px solid rgba(238, 234, 225, 0.2);
    border-radius: 999px; padding: 0.75rem 1.8rem; margin-top: 0.3rem;
  }

  .focus-row { grid-template-columns: 2.5rem 1fr; }
}

/* ============================================================
   ITERATION 5 - soul, story, living details
   ============================================================ */

/* ---- Hero: cinematic projector light + quiet trust line ---- */
.hero .wrap { position: relative; z-index: 1; }
.hero-light { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-light::before {
  content: "";
  position: absolute;
  top: -40%; left: -35%;
  width: 52%; height: 180%;
  background: radial-gradient(closest-side, rgba(238, 234, 225, 0.09), transparent 72%);
  transform: rotate(16deg);
  will-change: transform;
  animation: hero-sweep 38s ease-in-out infinite alternate;
}
@keyframes hero-sweep {
  from { transform: translateX(-15%) rotate(16deg); }
  to { transform: translateX(230%) rotate(16deg); }
}

/* ---- Hero: atmospheric video loop (lives behind the light sweep,
   invisible until JS confirms the file actually plays) ---- */
.hero { --loop-alpha: 0.09; }
.hero-loop { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-loop video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.74) contrast(1.06);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 2.6s var(--ease-out);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 93%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 93%);
}
.hero.has-loop .hero-loop video { opacity: var(--loop-alpha); }

@media (prefers-reduced-motion: reduce) {
  .hero-light::before { animation: none !important; }
  .hero-loop { display: none; }
}

/* ---- Path: story of evolution (what I learned + why it led on) ---- */
.path-what {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  letter-spacing: -0.016em;
  line-height: 1.16;
  color: var(--ink);
  max-width: 28ch;
}
.path-why {
  margin-top: 1rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 36ch;
}
.path-step { gap: 0.9rem; }

/* ---- Focus: capabilities, value revealed on hover ---- */
.focus-row { grid-template-columns: 3.25rem minmax(0, 1fr); }
.focus-num { grid-column: 1; grid-row: 1; }
.focus-topic { grid-column: 2; grid-row: 1; }
/* values live in the open; hover only turns the light up */
.focus-value {
  grid-column: 2; grid-row: 2;
  opacity: 0.7;
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 44ch;
  margin-top: 0.75rem;
  transition: opacity 0.55s ease;
}
@media (hover: hover) {
  .focus-row:hover .focus-value { opacity: 1; }
}
@media (hover: none) {
  .focus-value { opacity: 1; }
}

/* ---- Clients: marks only, no captions ---- */
.logo-item { display: flex; flex-direction: column; align-items: center; }
.logo-mark { display: flex; align-items: center; justify-content: center; }

/* ---- Buttons: slow, elegant, specular ---- */
.cta-solid { position: relative; overflow: hidden; }
.cta-solid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
}
.cta-solid:hover { background: #fff; transform: scale(1.02); box-shadow: 0 12px 44px rgba(201, 120, 86, 0.18); }
.cta-solid:hover::after { transform: translateX(130%); }
.cta-solid:active { transform: scale(0.99); }
.header-cta { transition: color 0.5s ease, border-color 0.5s ease, background-color 0.5s ease; }

/* ---- Cinematic image treatment (projected, not displayed) ---- */
.cover-media, .intro-figure { position: relative; }
.cover-media::after, .intro-figure::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(132% 120% at 50% 42%, transparent 52%, rgba(0, 0, 0, 0.5) 100%);
}
.cover-media::before, .intro-figure::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(238, 234, 225, 0.015);
  animation: film-flicker 5s steps(1) infinite;
}
@keyframes film-flicker {
  0%, 100% { opacity: 0.5; } 25% { opacity: 0.95; } 50% { opacity: 0.25; } 75% { opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-media::before, .intro-figure::before { animation: none !important; }
}

/* ---- Footer: the credits ---- */
.site-footer > .wrap { display: block; padding-block: clamp(4rem, 9vh, 7rem) 2.4rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.footer-col { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col--right { align-items: flex-end; text-align: right; }
.footer-label {
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint);
}
.footer-avail { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink-dim); font-size: 0.98rem; }
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #83b083; flex: none;
  animation: avail-pulse 3.6s ease-in-out infinite;
}
@keyframes avail-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(131, 176, 131, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(131, 176, 131, 0); }
}
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { width: fit-content; color: var(--ink-dim); font-size: 0.98rem; transition: color 0.4s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-time { color: var(--ink-dim); font-size: 0.98rem; }
.footer-time time { font-variant-numeric: tabular-nums; }
.footer-tz { color: var(--ink-faint); }
.footer-mark {
  margin: clamp(4rem, 10vh, 7rem) 0 clamp(2rem, 4vh, 3rem);
  height: clamp(46px, 8.5vw, 120px);
  background: var(--ink);
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
  mask: url("../img/logo.svg") center / contain no-repeat;
  opacity: 0.13;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid rgba(238, 234, 225, 0.07);
  color: var(--ink-faint); font-size: 0.9rem;
}
.footer-start { color: var(--ink-dim); padding-bottom: 2px; }

/* sound toggle - the icon says the state: crossed speaker = muted */
.sound-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--ink-faint); font: inherit; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.4s ease;
}
.sound-toggle:hover { color: var(--ink-dim); }
.sound-icon { display: inline-flex; }
.sound-icon svg { width: 16px; height: 16px; display: block; }
.sound-icon .s-w1, .sound-icon .s-w2, .sound-icon .s-mute { transition: opacity 0.35s ease; }
.sound-toggle .s-w1, .sound-toggle .s-w2 { opacity: 0; }
.sound-toggle .s-mute { opacity: 1; }
.sound-toggle[aria-pressed="true"] { color: var(--ink); }
.sound-toggle[aria-pressed="true"] .s-w1, .sound-toggle[aria-pressed="true"] .s-w2 { opacity: 1; }
.sound-toggle[aria-pressed="true"] .s-mute { opacity: 0; }

/* ---- Contact modal (glass) ---- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 7, 6, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.5s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-card {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -46%;
  width: min(92vw, 540px);
  max-height: 88vh; overflow-y: auto;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  border: 1px solid rgba(238, 234, 225, 0.14);
  background: linear-gradient(160deg, rgba(32, 29, 26, 0.82), rgba(17, 15, 13, 0.9));
  -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%);
  box-shadow: 0 44px 130px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out);
}
.modal-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.modal.is-open .modal-card { opacity: 1; translate: -50% -50%; }
.modal-close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: none;
  color: var(--ink-dim); cursor: pointer;
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { color: var(--ink); border-color: var(--ink); transform: rotate(90deg); }
.modal-card .eyebrow { margin-bottom: 0.8rem; }
.modal-title {
  font-family: var(--font-display); font-weight: 680;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.04;
}
.modal-sub { margin-top: 1rem; color: var(--ink-dim); font-size: 1rem; max-width: 38ch; }
.modal-form { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem; }
.field-block { display: flex; flex-direction: column; gap: 0.5rem; }
.field-block label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.field-block input, .field-block textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.85rem 1rem; color: var(--ink); font: inherit; font-size: 1rem; resize: vertical;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.field-block input:focus, .field-block textarea:focus {
  outline: none; border-color: rgba(238, 234, 225, 0.4); background: rgba(255, 255, 255, 0.05);
}
.modal-send { margin-top: 0.4rem; justify-content: center; width: 100%; }
.modal-alt { margin-top: 1.4rem; font-size: 0.92rem; color: var(--ink-faint); position: relative; }
.modal-alt a { color: var(--ink-dim); border-bottom: 1px solid var(--line); }
.modal-alt a:hover { color: var(--ink); }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-card, .modal-close { transition: none !important; }
  .avail-dot { animation: none !important; }
}

/* ---- Iteration 5 mobile ---- */
@media (max-width: 900px) {
  .path-why { max-width: none; }
  /* the cover recomposes: image full-bleed, meta becomes an eyebrow,
     the title overlap is a desktop gesture */
  .cover-media { margin-left: 0; margin-inline: calc(50% - 50vw); }
  .cover-media img { aspect-ratio: 4 / 3; }
  .cover-index { top: -0.5em; }
  .cover-meta {
    position: static;
    display: block;
    margin: 1.1rem 0 0;
    padding-inline: var(--pad);
    color: var(--ink-faint);
    text-shadow: none;
  }
  .cover-title { margin-top: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-col--right { align-items: flex-start; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
}

/* ============================================================
   ITERATION 6 - cinematic direction
   ============================================================ */

/* Per-section light moods (light, not colour; each scene lit differently) */
.intro, .path, .system, .work, .focus { position: relative; }
.intro::after, .path::after, .system::after,
.work::after, .focus::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.intro::after   { background: radial-gradient(48% 62% at 6% 38%, rgba(238, 234, 225, 0.05), transparent 62%); }        /* soft side light */
.path::after    { background: radial-gradient(60% 55% at 50% 104%, rgba(201, 120, 86, 0.055), transparent 60%); }      /* low warm floor light */
.system::after  { background: radial-gradient(52% 46% at 50% -6%, rgba(238, 234, 225, 0.07), transparent 60%); }       /* cold overhead */
.work::after    { background: radial-gradient(46% 58% at 90% 8%, rgba(238, 234, 225, 0.05), transparent 60%); }        /* backlight */
.focus::after   { background: radial-gradient(56% 52% at 8% 94%, rgba(201, 120, 86, 0.05), transparent 60%); }         /* warm low corner */

/* Tiny proof of track record (quiet, confident) */
.proof {
  margin-top: clamp(4rem, 9vh, 6.5rem);
  padding-top: clamp(2.5rem, 5vh, 4rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.proof li { display: flex; flex-direction: column; gap: 0.55rem; text-align: center; max-width: 22ch; }
.proof-num {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.proof-label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}

/* Footer atmosphere: signature breathes with the room */
.footer-mark { animation: footer-breathe 26s ease-in-out infinite alternate; }
@keyframes footer-breathe { from { opacity: 0.1; } to { opacity: 0.17; } }

@media (prefers-reduced-motion: reduce) {
  .footer-mark { animation: none !important; }
}

@media (max-width: 900px) {
  .proof { flex-direction: column; align-items: center; gap: 1.9rem; }
  .proof li { max-width: none; }
}

/* ============================================================
   ITERATION 7 - protagonist, title card, clarity, the peak
   ============================================================ */

/* ---- Portrait: Adam emerges from the darkness of the page ---- */
.intro-portrait { overflow: visible; margin-top: clamp(0rem, 4vw, 3rem); }
.intro-portrait::after, .intro-portrait::before { content: none; }
.intro-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: contrast(1.06) brightness(1.02);
  scale: none;
  animation: none;
  /* transparent cutout: only melt the shoulders into the page */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

/* ---- Opening title card: logo glitch on black, with grain ---- */
.titlecard {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: #0b0a09;
  animation: tc-out 0.7s var(--ease-out) 1.15s forwards;
}
.titlecard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
.tc-logo {
  width: clamp(120px, 16vw, 190px);
  aspect-ratio: 1459.87 / 120;
  background: var(--ink);
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
  mask: url("../img/logo.svg") center / contain no-repeat;
  will-change: transform, clip-path, opacity;
  animation: tc-glitch 0.95s steps(1) both;
}
@keyframes tc-glitch {
  0%   { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
  12%  { opacity: 1; clip-path: inset(42% 0 40% 0); transform: translateX(-4px); }
  22%  { clip-path: inset(0 0 68% 0); transform: translateX(3px); }
  32%  { clip-path: inset(58% 0 8% 0); transform: translateX(-2px); }
  44%  { clip-path: inset(12% 0 12% 0); transform: translateX(2px); }
  54%  { clip-path: inset(0 0 0 0); transform: translateX(0); opacity: 1; }
  58%  { opacity: 0.35; }
  62%  { opacity: 1; }
  74%  { opacity: 0.7; transform: translateX(1px); }
  100% { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
}
@keyframes tc-out {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.14); filter: blur(9px); visibility: hidden; pointer-events: none; }
}
.titlecard.skip { display: none; }
@media (prefers-reduced-motion: reduce) { .titlecard { display: none; } }

/* ---- Contact: how it works (soft ask becomes actionable) ---- */
.contact-how {
  margin-top: clamp(3.5rem, 7vh, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 62rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vh, 3rem);
}
.contact-how li { display: flex; flex-direction: column; gap: 0.9rem; }
.how-step {
  font-size: 0.74rem; letter-spacing: 0.2em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.how-text { color: var(--ink-dim); font-size: 1.02rem; line-height: 1.45; max-width: 22ch; }
.contact-note { margin-top: 2rem; color: var(--ink-faint); font-size: 0.92rem; }

/* ---- The constellation as the peak: a focus pull as it arrives ---- */
.js .constellation {
  opacity: 0;
  filter: blur(16px);
  scale: 1.06;
  transition: opacity 1.4s var(--ease-out), filter 1.6s var(--ease-out), scale 1.8s var(--ease-out);
}
.js .constellation.focused { opacity: 1; filter: blur(0); scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .constellation { opacity: 1; filter: none; scale: none; transition: none; }
}

@media (max-width: 900px) {
  .contact-how { grid-template-columns: 1fr; gap: 1.4rem; }
  .contact-how li { flex-direction: row; align-items: baseline; gap: 1rem; }
  .how-text { max-width: none; }
}

/* ============================================================
   ITERATION 8 - flow, sound access, stack, mobile fixes
   ============================================================ */

/* keep the page from drifting sideways (mobile) */
body { overflow-x: clip; }
.hero, .contact { overflow: clip; }

/* ---- Primary navigation: three quiet words, the CTA stays the only action ---- */
.site-nav { display: flex; gap: clamp(1.6rem, 3vw, 2.75rem); }
.site-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.4s ease;
}
.site-nav a:hover { color: var(--ink-dim); }
.site-nav a.is-active { color: var(--ink); }

/* menu toggle: two lines, desktop never sees it */
.menu-toggle {
  display: none;
  background: none; border: 0; padding: 0.45rem; cursor: pointer;
  color: var(--ink-dim);
}
.menu-lines { display: block; width: 20px; }
.menu-lines i {
  display: block; height: 1.5px; background: currentColor;
  transition: transform 0.45s var(--ease);
}
.menu-lines i + i { margin-top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* the menu is another editorial page: dark, spacious, typography-led */
.site-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 9, 8, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(110%);
  backdrop-filter: blur(20px) saturate(110%);
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0s linear 0.55s;
}
.site-menu.is-open {
  opacity: 1; visibility: visible;
  transition: opacity 0.55s var(--ease);
}
.site-menu-nav {
  width: 100%;
  padding-inline: var(--pad);
  display: flex; flex-direction: column;
}
.site-menu-nav a {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding-block: clamp(1.5rem, 4.5vh, 2.4rem);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(2.3rem, 8.5vw, 3.4rem);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), color 0.4s ease;
}
.site-menu-nav a:last-child { border-bottom: 1px solid var(--line); }
.site-menu-nav a.is-active { color: var(--ink); }
.site-menu-nav .menu-num {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.site-menu.is-open .site-menu-nav a { opacity: 1; transform: none; }
.site-menu.is-open .site-menu-nav a:nth-child(1) { transition-delay: 0.1s; }
.site-menu.is-open .site-menu-nav a:nth-child(2) { transition-delay: 0.18s; }
.site-menu.is-open .site-menu-nav a:nth-child(3) { transition-delay: 0.26s; }
body.menu-open {
  overflow: hidden;
  position: fixed;
  left: 0; right: 0;
  width: 100%;
}

/* page turn: chapter links dip to black, the next page fades back in */
.page-turn {
  position: fixed; inset: 0; z-index: 400;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
}
html.is-turning .page-turn { opacity: 1; pointer-events: auto; }
.site-menu { overscroll-behavior: contain; touch-action: none; }
.site-menu a { touch-action: auto; }
@media (min-width: 901px) { .site-menu { display: none; } }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu, .site-menu-nav a, .menu-lines i { transition: none !important; }
}

/* header: sound toggle sits beside the CTA */
.header-actions { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.4rem); }
.sound-toggle--mini {
  gap: 0; padding: 0.35rem;
  border-radius: 999px;
}
.sound-toggle--mini .sound-icon svg { width: 17px; height: 17px; }
.sound-toggle--mini:hover { color: var(--ink-dim); }

/* live stack ticker in one of the quiet gaps */
.stackline {
  max-width: 1400px;
  margin: clamp(1rem, 4vh, 3rem) auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9rem;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  position: relative;
  z-index: 1;
}
.stackline-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.stackline-word {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  min-width: 11ch;
}

/* ---- Mobile: living vertical constellation (not a dull chain) ---- */
@media (max-width: 900px) {
  .system-chain {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding: 0.75rem 0 0;
  }
  .system-chain::before {
    content: "";
    position: absolute;
    left: 50%; top: 0.4rem; bottom: 3.4rem;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, rgba(238, 234, 225, 0.22) 12%, rgba(201, 120, 86, 0.3), rgba(238, 234, 225, 0.22) 88%, transparent);
  }
  .system-chain::after {
    content: "";
    position: absolute;
    left: 50%; top: 0.4rem;
    width: 5px; height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px 2px rgba(201, 120, 86, 0.55);
    animation: chain-flow 5s linear infinite;
  }
  @keyframes chain-flow {
    0% { top: 0.4rem; opacity: 0; }
    10% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: calc(100% - 3.4rem); opacity: 0; }
  }
  .system-chain li {
    position: relative;
    z-index: 1;
    font-family: var(--font-text);
    font-weight: 460;
    color: var(--ink-dim);
    letter-spacing: 0.02em;
    text-align: center;
    padding: 0.35rem 1.1rem;
    background: var(--bg);
  }
  .system-chain li:not(.chain-end)::before {
    content: "";
    position: absolute;
    left: 50%; top: -0.75rem;
    width: 6px; height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 0 0 3px var(--bg), 0 0 7px 1px rgba(238, 234, 225, 0.3);
    animation: node-pulse 6s ease-in-out infinite;
  }
  .system-chain li:nth-child(odd)::before { animation-delay: -3s; }
  .system-chain li:nth-child(3n)::before { animation-duration: 4.6s; }
  @keyframes node-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
  }
  .system-chain li:not(:last-child)::after { content: none; } /* replace old segment lines */
  .system-chain .chain-end {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-weight: 680;
    font-size: 1.4rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid rgba(201, 120, 86, 0.35);
    border-radius: 999px;
    padding: 0.8rem 1.9rem;
    box-shadow: 0 0 22px rgba(201, 120, 86, 0.14);
  }
  .stackline { flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
  .stackline-word { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .system-chain::after, .system-chain li::before { animation: none !important; }
}
