/* ================================================
   NOLM.AGENCY — Production Stylesheet v5
   Fraunces (display) + Instrument Sans (body/UI)
   Post-production: swap Fraunces for FF Tisa Pro
   via Adobe Fonts Creative Cloud kit.
   ================================================ */

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

:root {
  --amber:      #C8993C;
  --amber-lt:   #DFB04E;
  --amber-dim:  rgba(200, 153, 60, 0.3);
  --warm:       #F0E8D5;
  --warm-mid:   rgba(240, 232, 213, 0.52);
  --warm-low:   rgba(240, 232, 213, 0.32);
  --ink:        #0A0910;
  /* FF Tisa Pro for display — editorial authority with warmth */
  /* Acumin Pro for body/UI — precise, quiet, legible on dark */
  --ff-d:       'ff-tisa', 'FF Tisa Pro', serif;
  --ff-b:       'acumin-pro', 'Acumin Pro', sans-serif;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast:  cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
  width: 100%;
  height: 100%;
}

/* Global link reset — override Adobe Fonts user-agent stylesheet */
a, a:visited, a:link {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: var(--ff-b);
  background: var(--ink);
  color: var(--warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
  overscroll-behavior: none;
  touch-action: pan-y;
}

/* ── NOISE TEXTURE — raised to 6% for material depth ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ── CANVAS ── */
#cvs {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ── CURSOR ── */
#cur {
  position: fixed; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width 0.28s, height 0.28s;
}
#cur-r {
  position: fixed; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(200, 153, 60, 0.28); pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width 0.32s, height 0.32s, border-color 0.32s;
}
body.ch-hover #cur  { width: 16px; height: 16px; }
body.ch-hover #cur-r { width: 48px; height: 48px; border-color: rgba(200, 153, 60, 0.6); }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1.2rem, 2.5vh, 1.8rem) clamp(1.5rem, 5vw, 4rem);
  opacity: 0; transition: opacity 1.2s; pointer-events: none;
}
#nav.vis { opacity: 1; pointer-events: auto; }

.n-logo {
  font-family: var(--ff-d); font-weight: 800;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem); letter-spacing: -0.04em;
  color: var(--warm); text-decoration: none; cursor: none;
}
.n-logo span { color: var(--amber); }

.n-links { display: flex; gap: 2rem; list-style: none; }
.n-links a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(240, 232, 213, 0.35);
  text-decoration: none; transition: color 0.2s; cursor: none;
}
.n-links a:hover { color: rgba(240, 232, 213, 0.85); }

/* Hamburger */
.n-ham {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: none;
}
.n-ham span {
  display: block; width: 22px; height: 1px; background: var(--warm);
  transition: transform 0.28s var(--ease-out), opacity 0.2s;
}
.n-ham.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.n-ham.open span:nth-child(2) { opacity: 0; }
.n-ham.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mob-menu {
  position: fixed; inset: 0; z-index: 190; background: #0C0B11;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem;
  transform: translateX(100%); transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-menu.open { transform: translateX(0); }
.mob-menu a {
  font-family: var(--ff-d);
  font-size: clamp(1.8rem, 8vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em;
  color: var(--warm); text-decoration: none; cursor: none; transition: color 0.18s;
}
.mob-menu a:hover { color: var(--amber); }
.mob-close {
  position: absolute; top: clamp(1.2rem, 3vh, 1.8rem); right: clamp(1.5rem, 5vw, 4rem);
  background: none; border: none; width: 32px; height: 32px; cursor: none;
  display: flex; align-items: center; justify-content: center;
}
.mob-close span {
  display: block; width: 22px; height: 1px; background: var(--warm); position: absolute;
}
.mob-close span:nth-child(1) { transform: rotate(45deg); }
.mob-close span:nth-child(2) { transform: rotate(-45deg); }

/* ── PERSISTENT EMAIL ── */
#persist {
  position: fixed; bottom: clamp(1.8rem, 5vh, 3rem); left: clamp(1.5rem, 5vw, 4rem);
  z-index: 50; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(200, 153, 60, 0.3); text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity 1s 1.4s, color 0.3s; cursor: none;
}
#persist.vis { opacity: 1; pointer-events: auto; }
#persist:hover { color: rgba(200, 153, 60, 0.75); }

/* ── SOUND ── */
#sound-btn {
  position: fixed; bottom: clamp(1.8rem, 5vh, 3rem); right: clamp(1.5rem, 5vw, 4rem);
  z-index: 50; background: none; border: 1px solid rgba(200, 153, 60, 0.18);
  color: rgba(200, 153, 60, 0.45); font-family: var(--ff-b);
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.55rem 1rem; border-radius: 999px; cursor: none;
  transition: border-color 0.3s, color 0.3s;
}
#sound-btn:hover { border-color: rgba(200, 153, 60, 0.45); color: rgba(200, 153, 60, 0.85); }
#sound-btn.on { border-color: rgba(200, 153, 60, 0.4); color: rgba(200, 153, 60, 0.8); }

/* ── SWIPE HINT — mobile only ── */
#swipe-hint {
  position: fixed; bottom: clamp(1.8rem, 5vh, 3rem); left: 50%; transform: translateX(-50%);
  z-index: 50; display: none;
  flex-direction: column; align-items: center; gap: 0.3rem;
  opacity: 0; transition: opacity 0.8s 2s;
  pointer-events: none;
}
#swipe-hint.vis { opacity: 1; }
#swipe-hint svg { color: rgba(200, 153, 60, 0.3); animation: swipebob 2s ease-in-out infinite; }
#swipe-hint span {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(200, 153, 60, 0.25);
}
@keyframes swipebob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── PROGRESS DOTS — 44px touch targets ── */
#prog {
  position: fixed; left: clamp(1rem, 2.5vw, 2rem); top: 50%;
  transform: translateY(-50%); z-index: 50;
  display: flex; flex-direction: column; gap: 4px;
}
/* 44x44 touch target wraps the 4px visual dot */
.pd {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: none; padding: 0;
  position: relative;
}
.pd::after {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(200, 153, 60, 0.18);
  transition: background 0.5s, transform 0.5s;
  display: block;
}
.pd.on::after { background: var(--amber); transform: scale(1.5); }
.pd:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; border-radius: 50%; }

/* ── STAGE ── */
#stage { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

/* ── CHAPTERS ── */
.ch {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  /* Top padding clears fixed nav (~65px) on all chapters */
  padding: clamp(4.5rem, 10vh, 6rem) clamp(1.5rem, 8vw, 7rem) clamp(2.5rem, 6vh, 5rem);
  opacity: 0; pointer-events: none; will-change: opacity;
  /* Prevent content taller than viewport from clipping silently */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.ch::-webkit-scrollbar { display: none; }
.ch.act { pointer-events: auto; }

/* ── EYEBROW — registration square prefix
   Small amber square from the N's corner marks
   brought into the text layer.
   Geometric, specific, continuous with canvas.
   Contact chapter uses N character instead.
── */
.ey {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
  transform: translateY(10px); opacity: 0;
  transition: transform 0.55s var(--ease-fast), opacity 0.55s;
}
/* Registration square — same mark as canvas corner marks */
.ey::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: var(--amber);
  flex-shrink: 0;
  transform: rotate(12deg); /* wabi-sabi: slightly off-axis */
  opacity: 0.85;
}
/* Contact chapter: N character instead of square */
#ch-cta .ey::before {
  content: 'N';
  width: auto;
  height: auto;
  background: none;
  font-family: var(--ff-d);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
  color: var(--amber);
  transform: none;
  opacity: 1;
}
.ch.in .ey { transform: translateY(0); opacity: 1; }

/* ── DISPLAY HEADLINE — pushed scale, tighter tracking ── */
.dh {
  font-family: var(--ff-d); font-weight: 800;
  /* Pushed from 8.5vw to 10vw — larger, more commanding */
  font-size: clamp(3.2rem, 10vw, 10rem);
  line-height: 0.92; letter-spacing: -0.05em;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.dh em {
  font-style: italic; font-weight: 400; color: var(--amber);
  font-size: 0.9em; letter-spacing: -0.03em;
}

/* Word mask — faster reveal for contrast with slower body */
.wm { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1; }
.wi {
  display: inline-block; transform: translateY(105%);
  /* Faster: 0.55s vs body's 0.75s — motion contrast */
  transition: transform 0.55s var(--ease-fast);
}
.ch.in .wi { transform: translateY(0); }
.wm:nth-child(2)  .wi { transition-delay: 0.04s; }
.wm:nth-child(3)  .wi { transition-delay: 0.08s; }
.wm:nth-child(4)  .wi { transition-delay: 0.12s; }
.wm:nth-child(5)  .wi { transition-delay: 0.16s; }
.wm:nth-child(6)  .wi { transition-delay: 0.20s; }
.wm:nth-child(7)  .wi { transition-delay: 0.24s; }
.wm:nth-child(8)  .wi { transition-delay: 0.28s; }
.wm:nth-child(9)  .wi { transition-delay: 0.32s; }
.wm:nth-child(10) .wi { transition-delay: 0.36s; }
.wm:nth-child(11) .wi { transition-delay: 0.40s; }

/* ── BODY COPY — minimum 16px enforced ── */
.bd {
  /* clamp minimum is 1rem = 16px. Never below. */
  font-size: clamp(1rem, 1.15vw, 1.05rem);
  color: var(--warm-mid); font-weight: 300; line-height: 1.95; max-width: 50ch;
  transform: translateY(14px); opacity: 0;
  /* Slower than headline — motion contrast */
  transition: transform 0.75s 0.22s var(--ease-out), opacity 0.75s 0.22s;
}
.bd strong { color: rgba(240, 232, 213, 0.88); font-weight: 500; }
.ch.in .bd { transform: translateY(0); opacity: 1; }

/* Bridge paragraph — appears after bcols, delayed further */
.ch-bridge {
  transition-delay: 0.35s;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  max-width: 52ch;
  /* Ensure it clears the bcols grid cleanly */
  display: block;
  clear: both;
}

/* ── CTA BUTTON ── */
.ct {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--ff-b); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--amber);
  padding: 0.9rem 2rem; border-radius: 999px; text-decoration: none;
  width: fit-content; cursor: none;
  transform: translateY(12px); opacity: 0;
  transition: transform 0.6s 0.34s var(--ease-out), opacity 0.6s 0.34s, background 0.2s;
  pointer-events: auto; min-height: 48px; flex-shrink: 0;
}
.ct:hover { background: var(--amber-lt); }
.ct:active { transform: scale(0.97); }
.ch.in .ct { transform: translateY(0); opacity: 1; }

/* Text link — inline navigation between chapters/pages */
a.ch-text-link,
.ch-text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(200, 153, 60, 0.42) !important;
  text-decoration: none !important;
  cursor: none;
  margin-top: clamp(1rem, 2vh, 1.5rem);
  transform: translateY(10px); opacity: 0;
  transition: transform 0.6s 0.42s var(--ease-out), opacity 0.6s 0.42s, color 0.2s;
  pointer-events: auto;
}
a.ch-text-link:hover,
.ch-text-link:hover { color: rgba(200, 153, 60, 0.82) !important; }
.ch-text-link svg { transition: transform 0.2s var(--ease-out); }
.ch-text-link:hover svg { transform: translateX(3px); }
.ch.in .ch-text-link { transform: translateY(0); opacity: 1; }

/* Pricing signal */
.price-signal {
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  color: rgba(200, 153, 60, 0.45); font-weight: 300; letter-spacing: 0.03em;
  margin-top: 0.9rem; transform: translateY(12px); opacity: 0;
  transition: transform 0.6s 0.28s var(--ease-out), opacity 0.6s 0.28s;
}
.price-signal strong { color: rgba(200, 153, 60, 0.78); font-weight: 600; }
.ch.in .price-signal { transform: translateY(0); opacity: 1; }

/* Micro-commitment */
.micro-commit {
  margin-top: clamp(1rem, 2vh, 1.5rem);
  transform: translateY(10px); opacity: 0;
  transition: transform 0.6s 0.32s var(--ease-out), opacity 0.6s 0.32s;
  pointer-events: auto;
}
.ch.in .micro-commit { transform: translateY(0); opacity: 1; }
.micro-q {
  font-size: 0.72rem; color: rgba(240, 232, 213, 0.28); font-weight: 300;
  margin-bottom: 0.4rem; letter-spacing: 0.02em;
}
.micro-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(200, 153, 60, 0.38); text-decoration: none; cursor: none;
  transition: color 0.2s; pointer-events: auto; min-height: 44px;
}
.micro-link:hover { color: rgba(200, 153, 60, 0.72); }

/* CTA group */
.cta-group {
  display: flex; align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: clamp(1.5rem, 3vh, 2.2rem);
  flex-wrap: wrap; transform: translateY(12px); opacity: 0;
  transition: transform 0.6s 0.42s var(--ease-out), opacity 0.6s 0.42s;
}
.ch.in .cta-group { transform: translateY(0); opacity: 1; }

/* WhatsApp secondary */
.wa-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(200, 153, 60, 0.42); text-decoration: none; cursor: none;
  transition: color 0.25s; pointer-events: auto;
  padding-left: clamp(1.2rem, 2.5vw, 2rem);
  border-left: 1px solid rgba(200, 153, 60, 0.15);
  min-height: 48px;
}
.wa-link:hover { color: rgba(200, 153, 60, 0.82); }
.wa-link svg { flex-shrink: 0; }

/* ── SCROLL HINT ── */
#sh {
  position: absolute; bottom: clamp(3rem, 8vh, 6rem); right: clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem;
  opacity: 0; transition: opacity 0.8s 1.8s; pointer-events: none;
}
#sh.vis { opacity: 1; }
#sh span {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(200, 153, 60, 0.32); writing-mode: vertical-rl;
}
.sh-t {
  width: 1px; height: 42px; background: rgba(200, 153, 60, 0.1);
  position: relative; overflow: hidden;
}
.sh-t::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--amber); animation: shp 2.6s ease-in-out infinite;
}
@keyframes shp { 0% { top: -100%; } 50% { top: 0; } 100% { top: 100%; } }

/* ── BELIEF COLUMNS ── */
/* Belief and incumbent: content can be tall — flex-start + scrollable */
#ch-1, #ch-inc {
  justify-content: flex-start;
  padding-top: clamp(5rem, 11vh, 7rem);
}

.bcols {
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 0;
  transform: translateY(16px); opacity: 0;
  transition: transform 0.72s 0.16s var(--ease-out), opacity 0.72s 0.16s;
}
.ch.in .bcols { transform: translateY(0); opacity: 1; }
.bcol-tag {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(200, 153, 60, 0.38); display: block; margin-bottom: 0.8rem;
}
.bcol-q {
  font-family: var(--ff-d);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem); font-weight: 600; letter-spacing: -0.01em;
  color: rgba(240, 232, 213, 0.82); line-height: 1.35; margin-bottom: 0.7rem;
}
.bcol-a {
  font-size: clamp(0.85rem, 1vw, 0.9rem); color: rgba(240, 232, 213, 0.32);
  font-weight: 300; line-height: 1.85;
}
.bdiv { background: rgba(255, 255, 255, 0.05); }

/* ── SERVICES ── */
#ch-srv { justify-content: center; }
#ch-srv .dh { font-size: clamp(2.8rem, 7vw, 7rem); margin-bottom: clamp(2rem, 5vh, 4rem); }
.sitems { width: 100%; }
.sitem {
  display: grid; grid-template-columns: 52px 1fr 1fr;
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem); align-items: center;
  padding: clamp(1.2rem, 2.5vh, 1.8rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateX(-18px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s, border-color 0.3s;
  cursor: none;
}
.sitem:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sitem:hover { border-color: rgba(200, 153, 60, 0.1); }
.ch.in .sitem:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
.ch.in .sitem:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.16s; }
.ch.in .sitem:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.24s; }
.sn { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; color: rgba(200, 153, 60, 0.22); }
.sname {
  font-family: var(--ff-d); font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: -0.025em;
  color: rgba(240, 232, 213, 0.72); transition: color 0.3s;
}
.sitem:hover .sname { color: var(--amber); }
/* sdesc minimum 16px */
.sdesc { font-size: clamp(1rem, 1.1vw, 1rem); color: rgba(240, 232, 213, 0.28); font-weight: 300; line-height: 1.75; }

/* ── PROCESS ── */
#ch-prc { justify-content: center; }
#ch-prc .dh { font-size: clamp(2.5rem, 6vw, 6rem); margin-bottom: clamp(2rem, 5vh, 4rem); }

.psteps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem); width: 100%;
  transform: translateY(18px); opacity: 0;
  transition: transform 0.72s 0.2s var(--ease-out), opacity 0.72s 0.2s;
}
.ch.in .psteps { transform: translateY(0); opacity: 1; }
.ps-n {
  font-family: var(--ff-d); font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3.2rem); letter-spacing: -0.05em;
  color: rgba(200, 153, 60, 0.12); display: block; margin-bottom: 0.8rem; line-height: 1;
}
.ps-name {
  font-family: var(--ff-d); font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.1rem); letter-spacing: -0.01em;
  color: rgba(240, 232, 213, 0.68); margin-bottom: 0.5rem;
}
/* ps-desc minimum 16px */
.ps-desc { font-size: clamp(1rem, 1.05vw, 1rem); color: rgba(240, 232, 213, 0.3); font-weight: 300; line-height: 1.8; }

/* ── TESTIMONIAL — negative space layout ── */
/* Sits in lower-left third. Upper two-thirds is pure ambient canvas. */
.ch-tst-layout {
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: clamp(4rem, 10vh, 8rem);
}

.twrap {
  max-width: min(600px, 80vw);
  transform: translateY(22px); opacity: 0;
  /* Slower reveal — 0.9s — this chapter breathes */
  transition: transform 0.9s 0.1s var(--ease-out), opacity 0.9s 0.1s;
}
.ch.in .twrap { transform: translateY(0); opacity: 1; }

.tmark {
  font-family: var(--ff-d);
  font-size: clamp(4rem, 8vw, 7rem); line-height: 0.65;
  color: var(--amber); opacity: 0.18; display: block; margin-bottom: 1rem; font-weight: 800;
}
.tq {
  font-family: var(--ff-d);
  /* Testimonial minimum 16px */
  font-size: clamp(1rem, 2vw, 1.8rem);
  font-weight: 400; font-style: italic;
  color: rgba(240, 232, 213, 0.78); line-height: 1.6; margin-bottom: 2rem;
}
.tau { display: flex; align-items: center; gap: 1rem; }
.tav {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(200, 153, 60, 0.07); border: 1px solid rgba(200, 153, 60, 0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 600; color: var(--amber); flex-shrink: 0; letter-spacing: 0.05em;
}
.tname { font-size: 0.85rem; font-weight: 600; color: rgba(240, 232, 213, 0.68); display: block; }
.trole { font-size: 0.75rem; color: rgba(200, 153, 60, 0.32); font-weight: 300; display: block; margin-top: 0.1rem; }

/* ══════════════════════════════════════════
   DESIGN PRINCIPLES — v8 additions

   Golden ratio · Fibonacci · Gestalt proximity
   Paul Rand tension · Arnheim intimacy
   Zeigarnik incompleteness · Amber kairos
   Match cut continuity · Wabi-sabi (in canvas.js)
   ══════════════════════════════════════════ */

/* ── GOLDEN RATIO CHAPTER LAYOUT
   Type begins at the 61.8% point from top.
   Upper 38.2% is ambient canvas space.
   Creates the compositional inevitability
   of the golden rectangle.
── */
.ch-golden {
  justify-content: flex-end;
  padding-bottom: 0;
}
.ch-golden-body {
  /* 61.8% from top = 38.2% from bottom */
  padding-bottom: clamp(4rem, 8vh, 7rem);
}

/* ── GESTALT PROXIMITY
   Eyebrow binds to headline — tighter than
   the gap between headline and body.
   Makes eye read eyebrow+headline as one unit.
── */
.ey-tight {
  margin-bottom: clamp(0.5rem, 1vh, 0.8rem);
}

/* ── PAUL RAND TENSION
   Final line of hero headline set smaller.
   "Not our template" diminishes deliberately —
   not for emphasis, for productive unease.
   The mismatch creates tension that keeps
   the eye moving.
── */
.dh-diminish {
  font-size: 0.52em;
  letter-spacing: -0.02em;
  color: rgba(240, 232, 213, 0.55);
}

/* ── DIAGONAL ACCENT LINE
   Placed on the N's compositional axis —
   Gestalt continuity: the eye follows the line
   from canvas geometry into the text space.
── */
.ch-diag-accent {
  position: absolute;
  /* N diagonal angle: roughly 52deg from horizontal */
  width: 1px;
  height: 35vh;
  background: linear-gradient(to bottom,
    rgba(200, 153, 60, 0) 0%,
    rgba(200, 153, 60, 0.18) 40%,
    rgba(200, 153, 60, 0.08) 100%
  );
  /* Position on the diagonal axis — right side of type column */
  right: clamp(6rem, 15vw, 18rem);
  top: 15%;
  transform: rotate(-38deg);
  transform-origin: top center;
  pointer-events: none;
  z-index: 1;
}

/* ── ZEIGARNIK INCOMPLETENESS
   A sentence that opens a thought without
   closing it. Sits below body copy as a
   whisper — not a statement, a thread.
   Brain holds it open across the transition.
── */
.ch-zeigarnik {
  font-size: 0.75rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(200, 153, 60, 0.22);
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-top: clamp(2rem, 4vh, 3.5rem);
  max-width: 44ch;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.7s 0.55s var(--ease-out), opacity 0.7s 0.55s;
  display: block;
}
.ch.in .ch-zeigarnik { transform: translateY(0); opacity: 1; }

/* ── AMBER KAIROS — restraint
   Amber removed from eyebrow line in most
   chapters. Reserved for service numbers
   and the R35,000 price point only.
   When amber appears it now signals:
   this is the thing that matters.
── */
.sn-amber {
  color: var(--amber) !important;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* ── ARNHEIM INTIMATE SCALE
   Process chapter headline set smaller
   than all other chapters.
   Arnheim: size reduction = intimacy.
   Process needs to feel precise and
   trustworthy, not declarative.
   Fibonacci: 55px vs 89-144px of other chapters.
── */
.dh-intimate {
  font-size: clamp(1.8rem, 3.5vw, 3.4rem) !important;
  color: rgba(240, 232, 213, 0.82);
  letter-spacing: -0.03em;
}

/* ── PROCESS CHAPTER — intimate layout ── */
.ch-prc-layout {
  justify-content: center;
  padding-top: clamp(4rem, 8vh, 6rem);
}
.ch-prc-layout .dh { margin-bottom: clamp(2rem, 5vh, 3.5rem); }

/* Fibonacci scale for process steps:
   ps-n: ~34px, ps-name: ~21px, ps-desc: 16px */
.ps-n {
  font-size: clamp(1.8rem, 2.1vw, 2.125rem) !important;
  color: rgba(200, 153, 60, 0.1);
}
.ps-name { font-size: clamp(1rem, 1.05vw, 1.0625rem) !important; }

/* ── TESTIMONIAL EYEBROW — special position
   "Her name is Sibongile" sits above the
   empty field, introducing the quote from
   above rather than beside it.
── */
.ch-tst-layout { position: relative; }
.tst-ey {
  position: absolute;
  top: clamp(4rem, 8vh, 6rem);
  left: clamp(1.5rem, 8vw, 7rem);
  margin-bottom: 0;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.6s 0.1s var(--ease-out), opacity 0.6s 0.1s;
}
.ch.in .tst-ey { transform: translateY(0); opacity: 1; }

/* ── CONTACT ── */
#ch-cta {
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 7vh, 5rem);
  overflow-y: auto;
}
#ch-cta .dh {
  font-size: clamp(2.8rem, 7vw, 8rem);
  margin-bottom: 0.6rem;
}
#ch-cta .price-signal { margin-bottom: clamp(1rem, 2vh, 1.5rem); }

/* ── CONTACT FORM ── */
.contact-form {
  width: 100%; max-width: 640px;
  transform: translateY(16px); opacity: 0;
  transition: transform 0.7s 0.2s var(--ease-out), opacity 0.7s 0.2s;
  pointer-events: auto;
}
.ch.in .contact-form { transform: translateY(0); opacity: 1; }

.cf-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.cf-field { display: flex; flex-direction: column; gap: 0.4rem; }
.cf-field-full { margin-bottom: 0.75rem; }

.cf-label {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(200, 153, 60, 0.45);
}

.cf-input {
  font-family: var(--ff-b) !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  color: var(--warm) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  padding: 0.75rem 1rem !important;
  outline: none !important;
  transition: border-color 0.2s, background 0.2s;
  width: 100% !important;
  min-height: 48px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  /* Force dark on autofill */
  -webkit-box-shadow: 0 0 0 100px rgba(20, 18, 28, 0.95) inset !important;
  -webkit-text-fill-color: var(--warm) !important;
}
.cf-input::placeholder { color: rgba(240, 232, 213, 0.22) !important; }
.cf-input:focus {
  border-color: rgba(200, 153, 60, 0.45) !important;
  background: rgba(200, 153, 60, 0.05) !important;
  background-color: rgba(200, 153, 60, 0.05) !important;
}
.cf-input:focus::placeholder { color: rgba(240, 232, 213, 0.12) !important; }

.cf-textarea {
  resize: none; min-height: 80px;
  line-height: 1.6;
}

.cf-select {
  cursor: pointer;
  color: rgba(240, 232, 213, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(200,153,60,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.cf-select option {
  background: #1A1820; color: var(--warm);
}

.cf-actions {
  display: flex; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1rem;
}

/* cf-submit reuses .ct but without the chapter opacity animation */
.cf-submit {
  transform: none; opacity: 1;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.cf-submit:hover { background: var(--amber-lt); transform: translateY(-1px); }
.cf-submit:active { transform: scale(0.97); }

.cf-alt {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
}
.cf-email-link {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  color: rgba(200, 153, 60, 0.38); text-decoration: none; cursor: pointer;
  transition: color 0.2s;
}
.cf-email-link:hover { color: rgba(200, 153, 60, 0.72); }
.cf-or { color: rgba(200, 153, 60, 0.2); font-size: 0.72rem; }
.cf-wa-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(200, 153, 60, 0.38); text-decoration: none; cursor: pointer;
  transition: color 0.2s;
}
.cf-wa-link:hover { color: rgba(200, 153, 60, 0.72); }

.cf-success {
  margin-top: 1rem; padding: 0.9rem 1.2rem;
  border-left: 2px solid var(--amber);
  background: rgba(200, 153, 60, 0.06);
  font-size: 0.88rem; color: rgba(240, 232, 213, 0.65);
  font-weight: 300; line-height: 1.6;
  border-radius: 0 6px 6px 0;
}

/* Mobile form */
@media (max-width: 600px) {
  .cf-row { grid-template-columns: 1fr; }
  .cf-actions { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   VIDEO INFRASTRUCTURE
   Hero preloader, testimonial ambient,
   and page-level video placeholders.
   ══════════════════════════════════════════ */

/* ── HERO VIDEO PRELOADER ──
   Covers full viewport on load.
   Fades out after N illumination sequence
   completes (~3.5s). Canvas and headline
   take over. JS controls timing.
── */
#hero-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 150; /* above everything while playing, JS removes after fade */
  pointer-events: none;
  opacity: 0; /* starts invisible, JS fades in immediately */
  transition: opacity 0.6s ease-out;
}
#hero-video-wrap.active { opacity: 1; }
#hero-video-wrap.fading { opacity: 0; transition: opacity 1.2s ease-in-out; }

#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark overlay on hero video — lets canvas colour bleed through */
#hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 16, 0.25);
}

/* ── TESTIMONIAL AMBIENT VIDEO ──
   Fixed behind ch-tst content.
   Heavy overlay so canvas still governs mood.
   Activates when testimonial chapter is active.
── */
#tst-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 1; /* above canvas, below stage */
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
#tst-video-wrap.active { opacity: 1; }

#tst-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Heavy overlay — video is texture, not subject */
#tst-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 16, 0.72);
}

/* ── PAGE VIDEO — services, work, about heroes ── */
.page-video-wrap {
  position: absolute; /* stays within hero section, scrolls away with it */
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.page-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Default overlay */
.page-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 9, 16, 0.68) 0%,
    rgba(10, 9, 16, 0.52) 40%,
    rgba(10, 9, 16, 0.62) 100%
  );
}

/* Services overlay: slightly cooler tint to counter video-3's orange warmth */
#srv-video-wrap .page-video-overlay {
  background: linear-gradient(
    to bottom,
    rgba(8, 7, 14, 0.72) 0%,
    rgba(8, 7, 14, 0.55) 40%,
    rgba(8, 7, 14, 0.65) 100%
  );
}

/* Work overlay: heavier — obscures the logo mark in video-4 at normal viewing */
#work-video-wrap .page-video-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 9, 16, 0.78) 0%,
    rgba(10, 9, 16, 0.68) 40%,
    rgba(10, 9, 16, 0.75) 100%
  );
}

/* On mobile: hide all ambient videos, show poster only */
@media (max-width: 900px) {
  #tst-video-wrap { display: none; }
  .page-video-wrap { display: none; }
  /* Hero preloader still shows on mobile but uses poster */
  #hero-video-wrap { position: relative; height: 100svh; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .wi, .ey, .bd, .ct, .wa-link, .bcols, .psteps, .twrap, .sitem,
  .ch-text-link, .price-signal, .micro-commit, .cta-group {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .sh-t::after { animation: none; }
  #swipe-hint svg { animation: none; }
}

/* ══════════════════════════════════════════════════
   MOBILE — complete layout override
   Below 900px the fixed chapter system is replaced
   with a normal vertical scroll page.
   Canvas stays as a fixed background element.
   Visual language (type, colour, spacing) preserved.
   ══════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Body: normal scroll */
  html, body {
    height: auto;
    overflow: auto;
    overscroll-behavior: auto;
  }
  body { cursor: auto; touch-action: auto; }

  /* Canvas: fixed background — still renders, still reactive to chapter colour */
  #cvs { position: fixed; z-index: 0; pointer-events: none; }

  /* Noise overlay stays */

  /* Hide desktop-only chrome */
  #cur, #cur-r { display: none; }
  .n-links { display: none; }
  .n-ham { display: flex; cursor: pointer; }
  #persist { display: none; }
  #prog { display: none; }
  #sound-btn { display: none; }
  #sh { display: none; }
  #swipe-hint { display: none; }

  /* Mobile-friendly nav */
  #nav {
    position: fixed; z-index: 200;
    opacity: 1; pointer-events: auto;
    padding: 1rem 5vw;
    background: rgba(10, 9, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: none;
  }
  .n-logo { cursor: pointer; }
  .mob-menu a, .mob-close { cursor: pointer; }

  /* Stage: no longer fixed — becomes a normal flow container */
  #stage {
    position: relative;
    inset: auto;
    z-index: 2;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
  }

  /* Chapters: stack vertically, fully visible */
  .ch {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 5vw 4rem;
    min-height: auto;
    overflow: visible;
    will-change: auto;
  }

  /* First chapter: account for fixed nav */
  #ch-0 { padding-top: 6rem; }

  /* All in-state classes: always visible on mobile */
  .ch.in .wi,
  .ch .wi { transform: translateY(0); }
  .ch.in .ey,
  .ch .ey { transform: translateY(0); opacity: 1; }
  .ch.in .bd,
  .ch .bd { transform: translateY(0); opacity: 1; }
  .ch.in .ct,
  .ch .ct { transform: translateY(0); opacity: 1; }
  .ch.in .bcols,
  .ch .bcols { transform: translateY(0); opacity: 1; }
  .ch.in .psteps,
  .ch .psteps { transform: translateY(0); opacity: 1; }
  .ch.in .twrap,
  .ch .twrap { transform: translateY(0); opacity: 1; }
  .ch.in .sitem,
  .ch .sitem { transform: translateX(0); opacity: 1; }
  .ch.in .ch-text-link,
  .ch .ch-text-link { transform: translateY(0); opacity: 1; }
  .ch.in .price-signal,
  .ch .price-signal { transform: translateY(0); opacity: 1; }
  .ch.in .micro-commit,
  .ch .micro-commit { transform: translateY(0); opacity: 1; }
  .ch.in .cta-group,
  .ch .cta-group { transform: translateY(0); opacity: 1; }
  .ch.in .contact-form,
  .ch .contact-form { transform: translateY(0); opacity: 1; }

  /* Remove all transition delays on mobile — content just appears */
  .ch * { transition-delay: 0s !important; }

  /* Typography — tighter for mobile */
  .dh {
    font-size: clamp(2.6rem, 9vw, 4.5rem) !important;
    margin-bottom: 1.2rem;
  }

  /* Columns: single on mobile */
  .bcols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.2rem;
  }
  .bdiv { display: none; }

  /* Bridge text */
  .ch-bridge { margin-top: 1.5rem; }

  /* Services: simpler on mobile */
  .sitem {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 1rem 0;
  }
  .sn { display: none; }
  .sdesc { font-size: 0.9rem; color: rgba(240,232,213,0.38); margin-top: 0.2rem; }

  /* Services / process chapter: no special centering on mobile */
  #ch-srv, #ch-prc { justify-content: flex-start; }
  #ch-srv .dh, #ch-prc .dh {
    font-size: clamp(2.4rem, 8vw, 4rem) !important;
    margin-bottom: 1.5rem;
  }

  /* Process steps: 2 columns on medium, 1 on small */
  .psteps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* Testimonial: no special layout on mobile */
  .ch-tst-layout { justify-content: flex-start; }
  .twrap { max-width: 100%; }
  .tq { font-size: clamp(1rem, 4.5vw, 1.4rem); }

  /* Contact chapter */
  #ch-cta { padding-top: 4rem; }
  #ch-cta .dh { font-size: clamp(2.4rem, 8vw, 4rem) !important; }

  /* Contact form */
  .contact-form { max-width: 100%; }
  .cf-row { grid-template-columns: 1fr; }
  .cf-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* Section dividers between chapters */
  .ch + .ch {
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  /* CTA group */
  .cta-group { flex-direction: column; align-items: flex-start; }
  .wa-link {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(200,153,60,0.12);
    padding-top: 0.8rem;
    margin-top: 0.2rem;
  }

  /* Mobile cursor targets */
  .ct, .wa-link, .micro-link, .ch-text-link, .cf-submit,
  .cf-email-link, .cf-wa-link { cursor: pointer; }

  /* New design principle elements on mobile */
  .ch-diag-accent { display: none; }
  .ch-zeigarnik { margin-top: 1rem; font-size: 0.88rem; }
  .dh-diminish { font-size: 0.65em; }
  .dh-intimate { font-size: clamp(1.6rem, 6vw, 2.5rem) !important; }
  .tst-ey { position: static; margin-bottom: 0.8rem; }
  .ch-prc-layout { justify-content: flex-start; }
  .ch-golden { justify-content: flex-start; }
  .ch-golden-body { padding-bottom: 0; }
}

@media (max-width: 560px) {
  .psteps { grid-template-columns: 1fr; }
  .dh { font-size: clamp(2.2rem, 9.5vw, 3.5rem) !important; }
  .ch { padding: 4.5rem 5vw 3rem; }
  #ch-0 { padding-top: 5.5rem; }
}
