/* ============================================================
   VELOSYS — v8 · IDENTITY LOCK TOKENS
   Source: clients/velosys/identity-lock.md (2026-05-28)
   ============================================================ */

:root {
  /* Palette — flipped to black-on-white base + colour blasts
     (letude.group hero blast + 2025.unseen.co per-section rotation) */
  --c-bg:         #f8f6f1;   /* paper — base content sections */
  --c-fg:         #14120e;   /* ink — type on paper + on blast */
  --c-accent:     #ee382b;   /* letude red — signature blast + accent */
  --c-surface:    #ffffff;   /* raised cards on paper */
  --c-mute:       #6e685c;   /* muted captions / metadata on light */
  --c-bone:       #f1ebdd;   /* footer brutalist register (light, on dark slab) */
  --c-line:       rgba(20, 18, 14, 0.12);
  --c-line-soft:  rgba(20, 18, 14, 0.06);

  /* Blast hues — per-section floods (the unseen rotation) */
  --blast:        #ee382b;   /* letude red — hero + CTA bookends */
  --violet:       #2b0e6b;   /* deep violet — AIOS flood (unseen secondary) */
  --pop:          #012094;   /* letude deep navy — sparing accent */
  --ink:          #14120e;   /* black type on blast */
  --slab:         #121110;   /* near-black footer slab */
  --paper:        #f8f6f1;   /* light type on dark/violet sections */

  /* Type families (exactly 3 — locked) */
  --type-display: 'Hanken Grotesk', system-ui, sans-serif;
  --type-body:    'Hanken Grotesk', system-ui, sans-serif;
  --type-em:      'Instrument Serif', 'Georgia', serif;
  --type-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Motion (decisive decel, no bounce) */
  --ease-entrance: cubic-bezier(0.2, 0.9, 0.25, 1);
  --ease-hover:    cubic-bezier(0.2, 0.9, 0.25, 1);
  --t-entrance:    600ms;
  --t-hover:       220ms;
  --t-overlay:     1200ms;
  --scrub-scroll:  0.8;

  /* Layout */
  --wrap:    1320px;
  --gutter:  clamp(1.4rem, 4vw, 4.5rem);

  /* Type scale */
  --fs-mono:    13px;
  --fs-body:    17px;
  --fs-lead:    clamp(18px, 1.4vw, 22px);
  --fs-h3:      clamp(24px, 2.2vw, 32px);
  --fs-h2:      clamp(42px, 5.5vw, 84px);
  --fs-h1:      clamp(60px, 9vw, 140px);
  --fs-mega:    clamp(120px, 22vw, 320px);
}

/* ============================================================
   RESET + BASE
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--type-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Editorial italic em — the signature inline emphasis */
.em {
  font-family: var(--type-em);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.005em;
  color: var(--c-accent);
}

/* Monospace inflection (indexes, timestamps, metadata only) */
.mono {
  font-family: var(--type-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-mute);
}

/* Selection */
::selection { background: var(--c-accent); color: var(--c-bg); }

/* ============================================================
   CURSOR — a small solid ink circle that trails the pointer with a
   slight lag (JS lerp). No blend mode, no overlay; over interactive
   targets it tightens to a smaller, focused dot. Desktop fine-pointer
   only (touch keeps the native cursor).
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
  transition: width 240ms var(--ease-hover),
              height 240ms var(--ease-hover),
              opacity 240ms var(--ease-hover);
}
.cursor.is-on { opacity: 1; }
/* over interactive targets — tighten to a smaller, focused dot */
.cursor.cursor--dot { width: 8px; height: 8px; }
@media (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none; }
}

/* ============================================================
   REVEAL — entrance grammar
   Decel decisively. No bounce. JS adds .is-in.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-entrance) var(--ease-entrance),
              transform var(--t-entrance) var(--ease-entrance);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAV — anchored to sileent.com — minimal, frames the kinetic spine
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  background: transparent;
  backdrop-filter: blur(0px);
  transition: background var(--t-hover) var(--ease-hover),
              backdrop-filter var(--t-hover) var(--ease-hover),
              border-color var(--t-hover) var(--ease-hover);
  border-bottom: 1px solid transparent;
}

/* Solid paper bar once scrolled off the hero blast — legible over every section */
.nav.is-scrolled {
  background: rgba(248, 246, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.nav-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--type-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-fg);
}

.nav-mark-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-accent);
  display: inline-block;
  transform: translateY(-1px);
  transition: transform var(--t-hover) var(--ease-hover);
}
.nav-mark:hover .nav-mark-dot { transform: translateY(-1px) scale(1.4); }

.nav-set {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--type-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--c-fg);
  opacity: 0.78;
  position: relative;
  padding: 6px 0;
  transition: opacity var(--t-hover) var(--ease-hover);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--c-accent);
  transition: right var(--t-hover) var(--ease-hover);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { right: 0; }

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--type-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform var(--t-hover) var(--ease-hover), background var(--t-hover) var(--ease-hover);
}
.nav-cta:hover { transform: translateY(-1px); background: #000; }

/* ============================================================
   HERO — anchored to fromanother.love — editorial pacing, held-dark, cinematic restraint
   ============================================================ */

.hero {
  /* BLAST — letude red flood, giant black bold wordmark, ink accents (letude.group) */
  --c-bg: var(--blast);
  --c-fg: var(--ink);
  --c-accent: var(--ink);
  --c-mute: rgba(20, 18, 14, 0.6);
  --c-line: rgba(20, 18, 14, 0.22);
  background: var(--blast);
  color: var(--ink);
  position: relative;
  min-height: 100vh;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* wordmark hugs the very top; padding-bottom reserves the band for the reel +
     the fixed nav that parks below it */
  padding-top: clamp(6px, 1.2vh, 16px);
  padding-bottom: clamp(94px, 13vh, 140px);
}
/* Atmosphere — film grain (craft texture) + whisper vignette (depth) so the
   flat blast reads as a canvas, not a fill. Both sit behind the content. */
.hero::before,
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.hero::after {
  background: radial-gradient(125% 95% at 50% 42%, transparent 58%, rgba(20, 18, 14, 0.09) 100%);
}
/* Interactive textured field — a pixelated ordered-dither grain that drifts
   on its own and ripples/distorts under the cursor (2025.unseen.co). Canvas
   painted in JS, scaled up nearest-neighbour for the rugged pixel look. */
.hero-tex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-stage { position: relative; z-index: 2; }

/* Wordmark hugs the very top; it does not grow, so the free space below it
   becomes the reel band. */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(4px, 0.6vw, 10px);
  width: 100%;
  flex: 0 0 auto;
}

.hero-mark {
  overflow: visible;
  /* full-bleed to the viewport edges so the wordmark fills the top of the
     hero (letude.group scale) */
  width: calc(100% + 2 * var(--gutter));
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  /* fixed mask for the ghost's bottom→top slide-in (itsjay.us hero). Horizontal
     generous so the cursive swash + serif write-on are never side-clipped. */
  clip-path: inset(-35% -2% -1% -2%);
}
.hero-wordmark-svg {
  display: block;
  width: 100%;
  height: auto;
  /* large wordmark at the top; cap raised so width is the binder on desktop
     (the mark goes full-bleed edge-to-edge) while the nav still clears the fold */
  max-height: 72vh;
  overflow: visible;
}

/* SIGNATURE REVEAL (desktop single wordmark only) — anchored to
   codepen.io/ghepting/pen/vYLqgr (a mark signing itself). The Anton ghost
   "develops" in (machine layer, arrives as a block); the serif soul + cursive
   M "write on" left→right via a clip sweep (human/ink layer). The thesis in
   one gesture. Final state is the locked wordmark — only the arrival changes.
   Scoped to .hero-wordmark-svg so the mobile .hwm-row-svg stack is untouched. */
/* The Anton ghost slides up from below, clipped by .hero-mark's fixed mask
   (itsjay.us "rise-into-mask" reveal) — the machine layer arrives as a block. */
.hero-wordmark-svg .hwm-back {
  translate: 0 112%;
  transition: translate 1300ms var(--ease-entrance) 200ms;
}
.is-hero-ready .hero-wordmark-svg .hwm-back { translate: 0 0; }
/* The serif soul + cursive M write on left→right — a longer held-slow start,
   then a quick decisive pickup (cubic-bezier x1 high / x2 low). */
.hero-wordmark-svg .hwm-front {
  clip-path: inset(-40% 102% -60% -12%);
  transition: clip-path 1500ms cubic-bezier(0.85, 0, 0.2, 1) 440ms;
}
.is-hero-ready .hero-wordmark-svg .hwm-front {
  clip-path: inset(-40% -12% -60% -12%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark-svg .hwm-back { transition: none; translate: 0 0; }
  .hero-wordmark-svg .hwm-front { transition: none; clip-path: none; }
}

/* Mobile-only stacked wordmark — MOMENTUS split MO·ME·NT·US, 4 uniform rows */
.hero-mark-stack { display: none; }
/* JANUARY-format wordmark: tall-sans ghost behind, serif soul in front */
.hwm-back {
  font-family: 'Anton', var(--type-display);
  font-weight: 400;
  letter-spacing: 0;
  fill: rgba(20, 18, 14, 0.17);
}
.hwm-front {
  font-family: var(--type-em);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  fill: var(--ink);
}
.hwm-initial {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  font-size: 1.32em;
}

/* ------------------------------------------------------------
   SITE NAV — two states. EXPANDED: links spread across the hero's
   bottom (bigger type). COLLAPSED: the cluster crossfades into a single
   capsule at the bottom-centre that persists for the rest of the site;
   clicking it opens the fullscreen numbered menu. The two states are
   grid-stacked so they crossfade in place (no travel).
   ------------------------------------------------------------ */
.sitenav {
  position: fixed;
  left: 0; right: 0;
  bottom: clamp(22px, 3.4vh, 40px);
  z-index: 80;
  display: grid;
  justify-items: center;
  align-items: end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--ease-entrance) 820ms;
}
.is-hero-ready .sitenav { opacity: 1; }

/* both states share one grid cell → crossfade in place */
.sitenav-full,
.sitenav-capsule { grid-area: 1 / 1; }

.sitenav-full {
  display: flex;
  align-items: baseline;
  gap: clamp(28px, 3.4vw, 60px);
  pointer-events: auto;
  transition: opacity 460ms var(--ease-entrance),
              transform 520ms var(--ease-entrance),
              filter 460ms var(--ease-entrance);
}
.sitenav.is-collapsed .sitenav-full {
  opacity: 0;
  transform: scale(0.86) translateY(6px);
  filter: blur(2px);
  pointer-events: none;
}

.sitenav-link {
  font-family: var(--type-display);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  position: relative;
  opacity: 0.82;
  transition: opacity var(--t-hover) var(--ease-hover);
}
.sitenav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  transition: right var(--t-hover) var(--ease-hover);
}
.sitenav-link:hover { opacity: 1; }
.sitenav-link:hover::after { right: 0; }

/* Primary CTA — hero serif (Instrument italic), larger, persistent underline */
.sitenav-cta {
  font-family: var(--type-em);
  font-style: italic;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1;
  color: var(--ink);
  position: relative;
  padding: 0 4px;
  white-space: nowrap;
  transition: transform var(--t-hover) var(--ease-hover);
}
.sitenav-cta::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0.86);
  transform-origin: center;
  transition: transform var(--t-hover) var(--ease-hover);
}
.sitenav-cta:hover { transform: translateY(-1px); }
.sitenav-cta:hover::after { transform: scaleX(1); }

/* COLLAPSED capsule — a frosted dark pill; the red dot keeps it legible on
   every section flood. Hidden until the nav collapses on scroll. */
.sitenav-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 18px;
  border-radius: 999px;
  background: rgba(20, 18, 14, 0.82);
  border: 1px solid rgba(248, 246, 241, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--paper);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 420ms var(--ease-entrance),
              transform 520ms var(--ease-entrance);
}
.sitenav.is-collapsed .sitenav-capsule {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.capsule-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blast);
  flex: 0 0 auto;
  transition: transform var(--t-hover) var(--ease-hover);
}
.sitenav-capsule:hover .capsule-dot { transform: scale(1.5); }
.capsule-text {
  font-family: var(--type-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   MENU OVERLAY — fullscreen editorial index. Huge placeholder numbers,
   minimal link text. Items rise in on open (the hero ghost grammar).
   Opened by the capsule; closed by ✕ / backdrop / Esc.
   ------------------------------------------------------------ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 500ms var(--ease-entrance),
              visibility 0s linear 500ms;
}
.menu[data-open="true"] {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 500ms var(--ease-entrance);
}
.menu-bg { position: absolute; inset: 0; background: #100f0d; }
.menu-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}
.menu-close {
  position: absolute;
  top: 32px; right: var(--gutter);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(248, 246, 241, 0.2);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform var(--t-hover) var(--ease-hover), border-color var(--t-hover) var(--ease-hover);
}
.menu-close:hover { transform: rotate(90deg); border-color: var(--blast); }
.menu-close-x { position: relative; width: 18px; height: 18px; }
.menu-close-x::before,
.menu-close-x::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px; background: var(--paper);
}
.menu-close-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close-x::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.menu-list {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(4px, 1.4vh, 22px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  z-index: 1;
}
.menu-item {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 2.4vw, 48px);
  color: var(--paper);
  width: -moz-max-content;
  width: max-content;
  max-width: 100%;
  transform: translateY(0.5em);
  opacity: 0;
}
.menu[data-open="true"] .menu-item {
  transform: translateY(0);
  opacity: 1;
  transition: transform 760ms var(--ease-entrance), opacity 620ms var(--ease-entrance);
}
.menu[data-open="true"] .menu-item:nth-child(1) { transition-delay: 120ms; }
.menu[data-open="true"] .menu-item:nth-child(2) { transition-delay: 190ms; }
.menu[data-open="true"] .menu-item:nth-child(3) { transition-delay: 260ms; }
.menu[data-open="true"] .menu-item:nth-child(4) { transition-delay: 330ms; }
.menu[data-open="true"] .menu-item:nth-child(5) { transition-delay: 400ms; }
.menu-num {
  font-family: var(--type-mono);
  font-size: clamp(56px, 11vw, 152px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: rgba(248, 246, 241, 0.22);
  flex: 0 0 auto;
  transition: color 340ms var(--ease-hover);
}
.menu-label {
  font-family: var(--type-display);
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.7;
  transition: opacity 340ms var(--ease-hover), transform 340ms var(--ease-hover);
}
.menu-item:hover .menu-num { color: var(--blast); }
.menu-item:hover .menu-label { opacity: 1; transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) {
  .menu-item { transform: none; opacity: 1; transition: none; }
}

/* ============================================================
   HORIZONTAL SCROLL — red hero (panel 1) slides to the white
   statement (panel 2). JS (GSAP) pins .hscroll and drives the track
   on desktop; on touch/small screens the panels stack vertically.
   ============================================================ */
.hscroll { position: relative; overflow: hidden; }
.hscroll-track {
  display: flex;
  flex-wrap: nowrap;
  width: -moz-max-content;
  width: max-content;
  height: 100vh;
  will-change: transform;
}
.hpanel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  position: relative;
}

/* white statement panel — editorial, anchored to studiodado.com */
.about-h {
  background: var(--c-surface);
  color: var(--c-fg);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  position: relative;
  overflow: hidden;
}
/* inversion seam — rides the red→white boundary; JS fades it in only during
   the transition (sin curve), invisible at rest on either panel */
.about-seam {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 2px;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
}
.about-h-inner { max-width: 1100px; margin: 0 auto; }
.about-h-inner .sec-index {
  display: block;
  margin-bottom: clamp(28px, 4vw, 52px);
  color: rgba(20, 18, 14, 0.5); /* neutral — no accent in this section */
}
.about-h-statement {
  font-family: var(--type-display);
  font-size: clamp(26px, 3.1vw, 50px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--c-fg);
}
/* serif emphasis stays, but tonal (ink) — white/black only in this section */
.about-h-statement .em { color: var(--c-fg); font-size: 1.08em; }

/* STRONG ENTRANCE — the index rises, then the statement reveals LINE BY LINE:
   each visual line is masked and its text rises up from below (the same
   ghost-rise grammar as the hero wordmark). JS splits the paragraph into
   masked lines and staggers them. IO adds .is-in. */
.about-h .sec-index {
  opacity: 0;
  transform: translateY(0.7em);
  transition: opacity 640ms var(--ease-entrance),
              transform 640ms var(--ease-entrance);
}
.about-h.is-in .sec-index { opacity: 1; transform: none; }
.about-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.about-line-in {
  display: block;
  translate: 0 110%;
  transition: translate 1050ms var(--ease-entrance);
}
.about-h.is-in .about-line-in { translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .about-h .sec-index { opacity: 1; transform: none; transition: none; }
  .about-line-in { translate: 0 0; transition: none; }
}

/* ============================================================
   SECTION HEADS — shared rhythm across sections
   ============================================================ */

.sec-head {
  padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(40px, 6vw, 80px);
  max-width: var(--wrap);
  margin: 0 auto;
}
.sec-index {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--c-accent);
}
.sec-title {
  font-family: var(--type-em);
  font-size: var(--fs-h2);
  font-weight: 400;
  font-style: normal;
  line-height: 1.0;
  letter-spacing: -0.01em;
  max-width: 1100px;
  color: var(--c-fg);
}
.sec-lead {
  margin-top: clamp(20px, 2.5vw, 32px);
  font-family: var(--type-body);
  font-size: var(--fs-lead);
  max-width: 640px;
  opacity: 0.78;
}

/* ------------------------------------------------------------
   LAYER-HEAD — the JANUARY-format heading: serif soul in front,
   ghosted heavy-sans echo behind (set per-heading via data-ghost)
   ------------------------------------------------------------ */
.layer-head { position: relative; isolation: isolate; }
.layer-head::before {
  content: attr(data-ghost);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: var(--type-display);
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: inherit;
  color: var(--c-fg);
  opacity: 0.08;
  transform: translate(-0.02em, 0.07em);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   WORK — anchored to aino.agency — asymmetric studio work-grid
   ============================================================ */

.work {
  padding-bottom: clamp(80px, 12vw, 160px);
}

.work-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 40px) clamp(16px, 2vw, 32px);
}

.proj {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.proj-lg { grid-column: span 12; }
.proj-md { grid-column: span 7; }
.proj-sm { grid-column: span 5; }

.proj-lg + .proj-sm { margin-top: 0; }
.proj:nth-child(2) { grid-column: span 5; }
.proj:nth-child(3) { grid-column: span 7; }
.proj:nth-child(4) { grid-column: span 5; }
.proj:nth-child(5) { grid-column: span 7; }
.proj:nth-child(6) { grid-column: span 5; }

.proj-media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--c-surface);
  aspect-ratio: 16 / 10;
}
.proj-lg .proj-media { aspect-ratio: 21 / 9; }

.proj-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 800ms var(--ease-hover), filter var(--t-hover) var(--ease-hover);
  filter: saturate(0.92);
}
.proj:hover .proj-media img { transform: scale(1.06); filter: saturate(1.05); }

.proj-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--c-line);
  padding-top: 14px;
}

.proj-name {
  font-family: var(--type-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--c-fg);
  position: relative;
}
.proj-name::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--c-accent);
  transition: right var(--t-hover) var(--ease-hover);
}
.proj:hover .proj-name::after { right: 0; }

.proj-cat { color: var(--c-mute); }

.proj-note {
  font-family: var(--type-body);
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.7;
  max-width: 560px;
  margin-top: 4px;
}

/* ============================================================
   SERVICES — anchored to wearemotto.com — two paths as rival arguments
   ============================================================ */

.services {
  padding-bottom: clamp(100px, 14vw, 180px);
}

.services-pair {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.srv {
  background: var(--c-surface);
  padding: clamp(36px, 4vw, 60px);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-hover) var(--ease-hover);
}
.srv:hover { transform: translateY(-4px); }

.srv-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srv-label { color: var(--c-accent); }

.srv-title {
  font-family: var(--type-display);
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--c-fg);
}

.srv-cap {
  font-family: var(--type-body);
  font-size: var(--fs-lead);
  opacity: 0.72;
}

.srv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line);
}
.srv-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--type-display);
  font-size: 17px;
  letter-spacing: -0.005em;
}

.srv-arg {
  font-family: var(--type-body);
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.78;
  flex: 1;
}

.srv-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--type-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--c-accent);
  padding: 6px 0;
  border-bottom: 1px solid var(--c-accent);
  align-self: flex-start;
  transition: gap var(--t-hover) var(--ease-hover);
}
.srv-cta:hover { gap: 18px; }
.srv-cta .arr { font-family: var(--type-display); }

/* ============================================================
   PROCESS — anchored to 2025.unseen.co — the kinetic spine
   ScrollTrigger-pinned timeline; one playhead; mono timestamps
   ============================================================ */

.process {
  /* BLAST — deep-violet flood, paper type, persimmon accents (unseen rotation) */
  --c-bg: var(--violet);
  --c-fg: var(--paper);
  --c-accent: var(--blast);
  --c-mute: rgba(248, 246, 241, 0.6);
  --c-line: rgba(248, 246, 241, 0.16);
  background: var(--violet);
  color: var(--paper);
  position: relative;
  padding-top: clamp(80px, 10vw, 140px);
}

.process-pin {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.process-head {
  max-width: 1000px;
  margin-bottom: clamp(60px, 7vw, 100px);
}
.process-head .sec-index { color: var(--c-accent); margin-bottom: 24px; display: inline-block; }
.process-title {
  font-family: var(--type-em);
  font-size: var(--fs-h2);
  font-weight: 400;
  font-style: normal;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--c-fg);
}
.process-lead {
  margin-top: 24px;
  font-family: var(--type-body);
  font-size: var(--fs-lead);
  opacity: 0.78;
}

.process-stage {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

.process-track {
  position: sticky;
  top: 30vh;
  height: 40vh;
  width: 100%;
  display: flex;
  justify-content: center;
}

.process-rail {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--c-line);
  transform: translateX(-50%);
}
.process-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  background: var(--c-accent);
  transform: translateX(-50%);
  height: 0%;
  transition: height 100ms linear;
}
.process-playhead {
  position: absolute;
  top: 0;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(255, 74, 28, 0.22);
}

.process-stages {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: 40vh;
}

.stage {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
  opacity: 0.28;
  transition: opacity 600ms var(--ease-entrance);
}
.stage.is-active { opacity: 1; }

.stage-no {
  color: var(--c-accent);
  font-size: 14px;
}

.stage-name {
  font-family: var(--type-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--c-fg);
}

.stage-body {
  grid-column: 2;
  margin-top: 14px;
  font-family: var(--type-body);
  font-size: var(--fs-lead);
  line-height: 1.5;
  opacity: 0.78;
  max-width: 560px;
}

.stage-time {
  grid-column: 2;
  margin-top: 12px;
  display: block;
  color: var(--c-mute);
}

.process-out {
  margin: clamp(60px, 8vw, 100px) 0 clamp(80px, 12vw, 160px);
  font-family: var(--type-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--c-fg);
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}
.process-arrow {
  color: var(--c-accent);
  font-family: var(--type-em);
  font-style: italic;
  font-size: 1.4em;
}

/* ============================================================
   CTA — anchored to aanstekelijk.nl — fullscreen overlay stage
   ============================================================ */

.cta {
  /* BLAST — letude red flood (bookends the hero), black bold type, ink accents */
  --c-bg: var(--blast);
  --c-fg: var(--ink);
  --c-accent: var(--ink);
  --c-mute: rgba(20, 18, 14, 0.6);
  background: var(--blast);
  color: var(--ink);
  padding: clamp(120px, 16vw, 200px) var(--gutter);
}

.cta-stage {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.cta-eyebrow { color: var(--c-accent); }

.cta-display {
  font-family: var(--type-em);
  font-size: var(--fs-h1);
  font-weight: 400;
  font-style: normal;
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--c-fg);
}
.cta-line {
  display: block;
  overflow: visible;
}
.cta-line[data-line="1"] { padding-left: clamp(40px, 8vw, 140px); }
.cta-line[data-line="2"] { padding-left: clamp(80px, 16vw, 280px); }

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 22px 36px;
  border-radius: 999px;
  font-family: var(--type-display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.01em;
  transition: transform var(--t-hover) var(--ease-hover), gap var(--t-hover) var(--ease-hover);
  margin-top: 24px;
}
.cta-button:hover { transform: translateY(-2px); gap: 28px; }

.cta-anchor { color: var(--c-mute); margin-top: 8px; }

/* On the persimmon blast the button reads as an ink slab, not blue-on-coral */
.cta .cta-button { background: var(--ink); color: var(--paper); }
.cta .cta-button:hover { background: #000; }

/* ============================================================
   OVERLAY — anchored to aanstekelijk.nl (mechanic) + studiodado.com (editorial form)
   ============================================================ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease-entrance);
}
.overlay[data-open="true"] {
  pointer-events: auto;
  opacity: 1;
}

.overlay-bg {
  position: absolute;
  inset: 0;
  background: var(--c-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-overlay) var(--ease-entrance);
}
.overlay[data-open="true"] .overlay-bg { transform: scaleY(1); }

.overlay-close {
  position: absolute;
  top: 32px;
  right: var(--gutter);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8) rotate(-30deg);
  transition: opacity 400ms var(--ease-entrance) 600ms,
              transform 400ms var(--ease-entrance) 600ms;
}
.overlay[data-open="true"] .overlay-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.overlay-close-x {
  width: 18px;
  height: 18px;
  position: relative;
}
.overlay-close-x::before,
.overlay-close-x::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--c-accent);
}
.overlay-close-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.overlay-close-x::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.overlay-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 80px;
  max-width: 1400px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms var(--ease-entrance) 700ms,
              transform 600ms var(--ease-entrance) 700ms;
  z-index: 1;
}
.overlay[data-open="true"] .overlay-stage {
  opacity: 1;
  transform: translateY(0);
}

.overlay-eyebrow { color: var(--c-bg); margin-bottom: 24px; }

.overlay-title {
  font-family: var(--type-display);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--c-bg);
  max-width: 900px;
  margin-bottom: 48px;
}
.overlay-title .em { color: var(--c-bg); font-family: var(--type-em); }

.overlay-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 980px;
}

.overlay-prose {
  font-family: var(--type-display);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--c-bg);
}

.inline-input,
.inline-select {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--c-bg);
  font-family: var(--type-em);
  font-style: italic;
  font-size: inherit;
  color: var(--c-bg);
  padding: 2px 6px;
  width: 220px;
  outline: none;
  transition: border-color var(--t-hover) var(--ease-hover);
}
.inline-input::placeholder { color: rgba(23, 18, 13, 0.4); font-style: italic; }
.inline-input:focus,
.inline-select:focus { border-color: var(--c-bg); background: rgba(23, 18, 13, 0.06); }
.inline-input-wide { width: 380px; }

.overlay-foot {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.overlay-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--c-bg);
  color: var(--c-accent);
  padding: 20px 32px;
  border-radius: 999px;
  font-family: var(--type-display);
  font-weight: 600;
  font-size: 18px;
  transition: gap var(--t-hover) var(--ease-hover), transform var(--t-hover) var(--ease-hover);
}
.overlay-submit:hover { gap: 22px; transform: translateY(-2px); }

.overlay-meta { color: var(--c-bg); opacity: 0.7; }

/* ============================================================
   FOOTER — anchored to locomotive.ca — brutalist megafooter, declarative slab
   ============================================================ */

.foot {
  /* DARK slab — the heavy close after the light page (unseen rotates to near-black) */
  --c-bg: var(--slab);
  --c-fg: var(--paper);
  --c-accent: var(--blast);
  --c-mute: rgba(248, 246, 241, 0.5);
  --c-line: rgba(248, 246, 241, 0.12);
  background: var(--slab);
  color: var(--paper);
  border-top: 1px solid var(--c-line);
  position: relative;
  overflow: hidden;
}

.foot-mega {
  padding: clamp(60px, 8vw, 120px) var(--gutter) 0;
  display: flex;
  justify-content: center;
}

.foot-megaword {
  font-family: var(--type-display);
  font-size: var(--fs-mega);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--c-bone);
  text-align: center;
  white-space: nowrap;
  display: block;
  background: linear-gradient(180deg, var(--c-bone) 0%, var(--c-bone) 60%, var(--c-bg) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.foot-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--c-line);
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-col-right { align-items: flex-end; text-align: right; }

.foot-label { color: var(--c-accent); margin-bottom: 8px; }

.foot-link {
  font-family: var(--type-display);
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--c-fg);
  opacity: 0.86;
  position: relative;
  padding: 2px 0;
  align-self: flex-start;
  transition: opacity var(--t-hover) var(--ease-hover);
}
.foot-col-right .foot-link { align-self: flex-end; }
.foot-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--c-accent);
  transition: right var(--t-hover) var(--ease-hover);
}
.foot-link:hover { opacity: 1; }
.foot-link:hover::after { right: 0; }

.foot-meta { color: var(--c-mute); font-size: 14px; }

.foot-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--type-display);
  font-size: 17px;
  color: var(--c-fg);
  transition: gap var(--t-hover) var(--ease-hover);
}
.foot-top:hover { gap: 18px; }
.foot-top-arr { color: var(--c-accent); }

.foot-copy {
  margin-top: 24px;
  color: var(--c-mute);
  opacity: 0.7;
  font-size: 11px;
}

/* ============================================================
   RESPONSIVE — tablet + mobile collapses
   ============================================================ */

@media (max-width: 900px) {
  .nav { padding: 16px var(--gutter); }
  .nav-set { gap: 18px; }
  .nav-link { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }

  .hero { padding-top: 18px; padding-bottom: 96px; }

  /* hero centrepiece is the stacked wordmark; stage grows + centres it */
  .hero-stage {
    gap: clamp(16px, 3.5vh, 34px);
    flex: 1 1 auto;
    justify-content: center;
  }
  .hero-mark { display: none; }
  .hero-mark-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.6vh, 8px);
    align-self: stretch;
    margin: 0 calc(-1 * var(--gutter)); /* full-bleed to viewport edges */
  }
  .hwm-row-svg {
    display: block;
    width: 100%;
    height: clamp(62px, 17vh, 160px);
    overflow: visible;
    opacity: 0;
    transform: translateY(36%);
    transition: opacity 700ms var(--ease-entrance), transform 900ms var(--ease-entrance);
  }
  .is-hero-ready .hwm-row-svg { opacity: 1; transform: none; }
  .is-hero-ready .hwm-row-svg:nth-child(1) { transition-delay: 180ms; }
  .is-hero-ready .hwm-row-svg:nth-child(2) { transition-delay: 300ms; }
  .is-hero-ready .hwm-row-svg:nth-child(3) { transition-delay: 420ms; }
  .is-hero-ready .hwm-row-svg:nth-child(4) { transition-delay: 540ms; }

  /* the inversion seam is a desktop-only horizontal-scroll cue */
  .about-seam { display: none; }

  /* nav shows the capsule at all times (it opens the fullscreen menu) */
  .sitenav { bottom: 16px; }
  .sitenav-full { display: none; }
  .sitenav-capsule { opacity: 1; transform: none; pointer-events: auto; }

  /* the fullscreen menu is the primary mobile nav — tighten the type */
  .menu-num { font-size: clamp(48px, 17vw, 96px); }
  .menu-item { gap: clamp(14px, 4vw, 28px); }

  /* horizontal scroll collapses to a vertical stack on small screens */
  .hscroll { overflow: visible; }
  .hscroll-track { display: block; width: 100%; height: auto; transform: none !important; }
  .hpanel { width: 100%; height: auto; min-height: auto; flex: none; }
  .hero.hpanel { min-height: 100vh; }
  .about-h {
    min-height: 72vh;
    padding-top: clamp(72px, 16vw, 120px);
    padding-bottom: clamp(72px, 16vw, 120px);
  }
  .about-h-statement { font-size: clamp(22px, 6vw, 34px); line-height: 1.32; }

  .work-grid { grid-template-columns: 1fr; }
  .work-grid .proj,
  .work-grid .proj-lg,
  .work-grid .proj-md,
  .work-grid .proj-sm,
  .proj:nth-child(2),
  .proj:nth-child(3),
  .proj:nth-child(4),
  .proj:nth-child(5),
  .proj:nth-child(6) { grid-column: span 1; }
  .proj-lg .proj-media { aspect-ratio: 16 / 10; }

  .services-pair { grid-template-columns: 1fr; }

  .process-stage { grid-template-columns: 1fr; }
  .process-track { display: none; }
  .stage { grid-template-columns: 60px 1fr; gap: 16px; opacity: 1; }
  .stage-body, .stage-time { grid-column: 2; }

  .cta-line[data-line="1"] { padding-left: 20px; }
  .cta-line[data-line="2"] { padding-left: 40px; }

  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-col-right { grid-column: span 2; align-items: flex-start; text-align: left; }
  .foot-col-right .foot-link { align-self: flex-start; }

  .inline-input, .inline-select { width: 100%; max-width: 320px; }
  .inline-input-wide { max-width: 100%; }
}
