/* ============================================================
   bygovind.com
   Two faces: Redaction (grain/craft) + Archivo (system, sans).
   Monochrome canvas. One live gradient carries all colour.
   ============================================================ */

/* ---- Fonts --------------------------------------------------- */

@font-face {
  font-family: "Redaction";           /* grade 0 — small display */
  src: url("../fonts/Redaction_0-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Redaction 35";        /* record numbers, mid display */
  src: url("../fonts/Redaction_35-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Redaction 50";        /* hero, principle names, manifesto */
  src: url("../fonts/Redaction_50-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------- */

:root {
  --canvas:      #0a0a0a;
  --canvas-2:    #0c0c0d;

  --ink:         #f4f3f0;   /* near-white type            */
  --grey:        #8a8a86;   /* secondary type             */
  --muted:       #5c5c58;   /* labels, brackets           */
  --dim:         #3a3a37;   /* basis line, hairlines      */
  --line:        #1c1c1a;   /* structural rules           */

  /* the gradient's colours, exposed for CSS fallbacks + text */
  --grad-a:      #ff6b1a;   /* sodium orange              */
  --grad-b:      #ff8a3d;   /* orange highlight           */
  --grad-c:      #3a1e6d;   /* cold violet                */
  --grad-d:      #1a0f3a;   /* deep violet                */

  --display:     "Redaction 50", Georgia, serif;
  --display-mid: "Redaction 35", Georgia, serif;
  --display-sm:  "Redaction", Georgia, serif;
  --sans:        "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter:      clamp(1.25rem, 5vw, 5rem);
  --maxw:        1400px;

  --cut:         180ms;     /* the site's motion is fast + decisive */
  --ease-cut:    cubic-bezier(0.2, 0.9, 0.1, 1);
}

/* ---- Reset-ish ----------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Hide native cursor only where our custom one runs (JS adds .has-cursor) */
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor .interactive { cursor: none; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--grad-a); color: #0a0a0a; }

/* ---- Type primitives ---------------------------------------- */

.tag {                              /* [ bracketed section labels ] */
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--muted);
  font-weight: 500;
}
.tag::before { content: "[ "; }
.tag::after  { content: " ]"; }

.mono-small {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--grey);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

/* ---- The gradient field ------------------------------------- */
/* One colour system. A rich layered blend of sodium orange +
   cold violet, drifting slowly. Used large (hero) and sliced
   small (accents, cursor). Cheap, GPU-friendly, works on mobile. */

:root {
  --grad-image:
    radial-gradient(60% 90% at 18% 22%, rgba(255,107,26,0.95), transparent 60%),
    radial-gradient(70% 80% at 82% 30%, rgba(58,30,109,0.95), transparent 62%),
    radial-gradient(90% 90% at 65% 85%, rgba(255,138,61,0.75), transparent 58%),
    radial-gradient(80% 80% at 30% 80%, rgba(26,15,58,0.95), transparent 60%),
    linear-gradient(120deg, #2a1550, #ff6b1a 55%, #1a0f3a);
}

/* accent paint — a live slice of the field. Slow drift (tens of s) */
.grad-paint {
  background-image: var(--grad-image);
  background-size: 240% 240%;
  background-position: 0% 50%;
  animation: gradDrift 38s ease-in-out infinite;
}
@keyframes gradDrift {
  0%   { background-position: 0% 42%; }
  50%  { background-position: 100% 58%; }
  100% { background-position: 0% 42%; }
}

/* text-clip accents wear the same paint */
.signal__row .v.tier1,
.callout.accent .n {
  background-image: var(--grad-image);
  background-size: 240% 240%;
  animation: gradDrift 38s ease-in-out infinite;
}

/* full-bleed CSS field — hero fallback + per-principle re-weighting */
.grad-field {
  background-color: #140a26;
  background-image: var(--grad-image);
  background-size: 200% 200%;
  animation: gradDrift 46s ease-in-out infinite;
}
.principle__bg { background-size: 220% 220%; animation-duration: 52s; }

/* grain / dither overlay — kills the plastic look, ties to film */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.11;
  mix-blend-mode: overlay;
}

/* ---- Layout scaffold ---------------------------------------- */

.section {
  position: relative;
  padding: clamp(5rem, 14vh, 10rem) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section--full {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
}

/* ============================================================
   BOOT LOADER
   ============================================================ */
#boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--canvas);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--gutter);
}
#boot.done { display: none; }
#boot .count {
  font-family: var(--display-mid);
  font-size: clamp(4rem, 22vw, 18rem);
  line-height: 0.8;
  color: var(--ink);
}

/* ============================================================
   CUSTOM CURSOR — a chain of dots, each a live slice of the field.
   Physics + build live in main.js. Dots are created by JS.
   ============================================================ */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 900;
}
.cur__dot {
  position: fixed;
  top: 0; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  pointer-events: none;
  /* each dot is a window onto the field; difference keeps it visible
     over both the bright hero and the black canvas */
  background-image: var(--grad-image);
  background-size: 100vw 100vh;
  mix-blend-mode: difference;
  will-change: transform;
}
.cur__label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 120ms var(--ease-cut);
  will-change: transform;
}
#cursor.is-ring .cur__label { opacity: 1; }
body.no-cursor #cursor { display: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem var(--gutter);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);   /* legible over the field */
}
.nav__brand { font-weight: 600; letter-spacing: 0.02em; }
.nav__spine { display: flex; gap: clamp(1rem, 3vw, 2.6rem); }
.nav__spine a {
  position: relative;
  text-transform: lowercase;
  color: #fff;
  opacity: 0.55;
  transition: opacity var(--cut) var(--ease-cut);
}
.nav__spine a:hover { opacity: 1; }
/* active nav item: legible white label + a live gradient underline
   (the gradient accent, but readable over any background) */
.nav__spine a.active { opacity: 1; color: #fff; }
.nav__spine a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background-image: var(--grad-image);
  background-size: 240% 240%;
  animation: gradDrift 38s ease-in-out infinite;
}
@media (max-width: 640px) {
  .nav__spine { gap: 0.9rem; font-size: 0.66rem; }
  .nav { padding: 1rem var(--gutter); }
}
@media (max-width: 380px) {
  .nav__spine { gap: 0.7rem; font-size: 0.6rem; letter-spacing: 0.02em; }
}

/* doubled-text hover primitive ------------------------------- */
/* .a sits in flow (defines height); .b is parked one line below at
   top:100%. On hover both translate up exactly one line — mechanical
   swap, height-robust at any font size. */
.dbl {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.dbl .a, .dbl .b {
  display: block;
  transition: transform var(--cut) var(--ease-cut);
}
.dbl .b {
  position: absolute;
  top: 100%;
  left: 0;
}
.dbl:hover .a, .dbl:hover .b { transform: translateY(-100%); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
/* gradient canvas + optional video composite live behind */
#hero-gradient, #hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
#hero-video { object-fit: cover; opacity: 0.28; z-index: 0; }
#hero-gradient { z-index: 1; }
/* bottom scrim keeps type legible over the field's bright areas */
#hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  z-index: 1;
  background: linear-gradient(to top, rgba(10,10,10,0.72), rgba(10,10,10,0) 100%);
  pointer-events: none;
}
#hero .hero__inner { position: relative; z-index: 2; max-width: 1100px; }

.hero__name {
  font-family: var(--display);
  font-size: clamp(3.4rem, 15vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  mix-blend-mode: difference;
}
.hero__claim {
  font-family: var(--display-sm);
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  line-height: 1.02;
  margin: clamp(1rem, 3vh, 2rem) 0 0;
  max-width: 18ch;
  color: var(--ink);
}
.hero__sub {
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  letter-spacing: 0.04em;
  color: var(--grey);
  margin-top: 1.4rem;
}
.hero__scroll {
  position: absolute;
  bottom: clamp(1.4rem, 3vh, 2.4rem);
  right: var(--gutter);
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__scroll .rule {
  display: inline-block;
  width: 46px; height: 1px;
  background: var(--grey);
  transform-origin: left;
  animation: scan 2.4s var(--ease-cut) infinite;
}
@keyframes scan {
  0%,100% { transform: scaleX(0.2); opacity: 0.4; }
  50%     { transform: scaleX(1);   opacity: 1;   }
}

/* ============================================================
   THE RECORD
   ============================================================ */
#record { border-top: 1px solid var(--line); }
.record__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.record__cell .num {
  font-family: var(--display-mid);
  /* sized to fill four columns without wrapping or overflow */
  font-size: clamp(1.7rem, 4.6vw, 4rem);
  line-height: 0.9;
  color: var(--ink);
  white-space: nowrap;
}
.record__cell .lbl {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.6rem;
}
.record__cell .lbl::before { content: "[ "; }
.record__cell .lbl::after  { content: " ]"; }
.record__basis {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
@media (max-width: 820px) {
  .record__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .record__cell .num { font-size: clamp(2rem, 9vw, 3.4rem); }
}

/* ============================================================
   LIVE SIGNAL
   ============================================================ */
#signal { border-top: 1px solid var(--line); }
.signal__wrap { max-width: 560px; }
.signal__panel {
  font-family: var(--sans);
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  padding: clamp(1.1rem, 3vw, 1.8rem);
}
.signal__row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
}
.signal__row:last-child { border-bottom: 0; }
.signal__row .k { color: var(--muted); letter-spacing: 0.06em; }
.signal__row .v { color: var(--ink); }
.signal__row .v.tier1 {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 100vw 100vh;
  background-position: center;
  font-weight: 600;
}
.signal__note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--grey);
  margin-top: 1.4rem;
  max-width: 46ch;
}
.signal__fine {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--dim);
  margin-top: 0.7rem;
}
@media (max-width: 480px) {
  .signal__row { grid-template-columns: 7.5rem 1fr; gap: 0.6rem; }
}

/* ============================================================
   THREE PRINCIPLES
   ============================================================ */
.principle {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.principle__bg {           /* per-principle re-weighted gradient */
  position: absolute; inset: 0; z-index: 0; opacity: 0.9;
}
/* scrim keeps tag + line legible wherever the field drifts bright */
.principle::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(10,10,10,0.66) 0%, rgba(10,10,10,0.28) 34%, rgba(10,10,10,0) 62%);
  pointer-events: none;
}
.principle__inner { position: relative; z-index: 2; }
.principle .tag { color: rgba(255,255,255,0.72); }
.principle__name {
  font-family: var(--display);
  font-size: clamp(3.5rem, 18vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0;
  color: var(--ink);
  mix-blend-mode: difference;
}
.principle__line {
  font-family: var(--display-sm);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  line-height: 1.15;
  max-width: 20ch;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(10,10,10,0.35);
}

/* ============================================================
   MANIFESTO MARQUEE
   ============================================================ */
#manifesto {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 8vh, 6rem) 0;
  overflow: hidden;
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee__seg {
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  padding-right: 3rem;
}
.marquee__seg .dot { color: var(--grad-a); padding: 0 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT
   ============================================================ */
#about { border-top: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-top: 2rem;
}
.about__lead {
  font-family: var(--display-sm);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: 0 0 2rem;
}
.radar__cap {
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--grey);
  margin-top: 1rem;
  max-width: 40ch;
}
#radar { width: 100%; height: auto; display: block; max-width: 520px; overflow: visible; }
.radar-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-spoke { stroke: var(--line); stroke-width: 1; }
.radar-label { font-family: var(--sans); font-size: 10px; letter-spacing: 0.04em; fill: var(--muted); }
.radar-shape { fill: rgba(255,107,26,0.10); stroke: var(--grad-a); stroke-width: 1.5; }
.radar-dot { fill: var(--ink); }
.radar-dot.low { fill: var(--muted); }

/* interactive tech stack */
.stack { font-family: var(--sans); font-size: 0.84rem; }
.stack__group { margin-bottom: 1.6rem; }
.stack__group .tag { display: block; margin-bottom: 0.7rem; }
.stack__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1.5rem;
}
.stack__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.22rem 0;
  color: var(--ink);
  user-select: none;
}
.stack__item .box {
  width: 1.1em; height: 1.1em;
  border: 1px solid var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  color: var(--ink);
  flex: 0 0 auto;
  transition: transform 90ms var(--ease-cut);
}
.stack__item[data-checked="1"] .box::after { content: "x"; }
.stack__item[data-locked="off"] { color: var(--muted); }
.stack__item.shake .box { animation: shake 220ms var(--ease-cut); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.stack__msg {
  color: var(--grey);
  font-size: 0.78rem;
  padding-left: 1.7em;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--cut) var(--ease-cut);
}
.stack__msg.show { height: auto; opacity: 1; padding-top: 0.15rem; padding-bottom: 0.35rem; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CASE STUDIES — homepage index (cards navigate, no inline expand)
   ============================================================ */
#work { border-top: 1px solid var(--line); }
.case {
  display: block;
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2rem;
  color: inherit;
  transition: border-color var(--cut) var(--ease-cut),
              background-color var(--cut) var(--ease-cut);
}
.case:hover { border-color: var(--muted); background-color: var(--canvas-2); }
.case__index {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.case__index::before { content: "[ "; }
.case__index::after  { content: " ]"; }
.case__title {
  font-family: var(--display-sm);
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.02;
  margin: 0.7rem 0 0;
  max-width: 22ch;
}
.case__oneline {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--grey);
  margin: 1rem 0 0;
  max-width: 64ch;
}
.case__hook { display: block; margin: clamp(1.8rem, 4vh, 2.6rem) 0 0.9rem; }
.case__callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin: 0 0 clamp(2rem, 5vh, 3rem);
}
/* capability: outcome — the capability bold, a colon, then the
   business outcome. Never a metric, list size, or send count. */
.callout {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}
.callout .cap {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.callout .sub { color: var(--muted); }
.callout .sub::before { content: ": "; }
.callout.accent .cap {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: var(--grad-image);
  background-size: 240% 240%;
  animation: gradDrift 38s ease-in-out infinite;
}
.procmap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--grey);
  margin: 1.5rem 0;
}
.procmap .node {
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
}
.procmap .arrow { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0 0; }
.chip {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--grey);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
}
.case__more {
  display: inline-block;
  overflow: hidden;
  position: relative;
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.case__more .a, .case__more .b {
  display: block;
  transition: transform var(--cut) var(--ease-cut);
}
.case__more .b { position: absolute; top: 100%; left: 0; white-space: nowrap; color: var(--grad-b); }
.case:hover .case__more .a,
.case:hover .case__more .b { transform: translateY(-100%); }
@media (max-width: 640px) {
  .case__callouts { grid-template-columns: 1fr; gap: 1.3rem; }
  .callout .sub { max-width: none; }
}

/* ============================================================
   CASE STUDY PAGE — /work/[slug]
   Inherits the system; gradient only on the cursor + one number.
   ============================================================ */
.cs {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(7rem, 16vh, 11rem) var(--gutter) clamp(5rem, 12vh, 8rem);
}
.cs__index {
  font-family: var(--display-mid);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.9;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: var(--grad-image);
  background-size: 240% 240%;
  animation: gradDrift 38s ease-in-out infinite;
}
.cs__tag { margin-top: 1rem; }
.cs__title {
  font-family: var(--display-sm);
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.02;
  margin: 0.5rem 0 0;
}
.cs__line {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--grey);
  margin: 1.4rem 0 0;
  max-width: 62ch;
}
.cs__chips { margin-top: 1.6rem; }
.cs section { margin-top: clamp(2.6rem, 7vh, 4rem); }
.cs h2 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.cs h2::before { content: "[ "; }
.cs h2::after  { content: " ]"; }
.cs p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--grey);
  margin: 0 0 1.1rem;
}
.cs p:last-child { margin-bottom: 0; }
.cs strong { color: var(--ink); font-weight: 500; }
.cs .stackcol { margin-bottom: 1.2rem; }
.cs .stackcol .lab {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: block;
  margin-bottom: 0.4rem;
}
.cs__map {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--grey);
}
.cs__map .n { color: var(--ink); }
.cs__map .ar { color: var(--grad-b); padding: 0 0.4rem; }
.cs__back {
  display: inline-block;
  margin-top: clamp(3rem, 8vh, 5rem);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--grey);
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  width: 100%;
}
.cs__back:hover { color: var(--ink); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  border-top: 1px solid var(--line);
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact__email {
  /* grade 0 (cleanest Redaction) — this address MUST read at any size */
  font-family: var(--display-sm);
  font-size: clamp(1.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  margin: 1.5rem 0 0;
  color: var(--ink);
}
.contact__email .b { white-space: nowrap; }
@media (max-width: 560px) {
  /* size to fit the address on one clean line; drop the doubled effect */
  .contact__email {
    overflow: visible;
    overflow-wrap: anywhere;
    font-size: clamp(1.1rem, 5.4vw, 2rem);
  }
  .contact__email .b { display: none; }
}
.contact__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 8vh, 6rem);
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.contact__foot a { color: var(--grey); }

/* ============================================================
   SCROLL REVEAL — elements CUT in, not fade
   ============================================================ */
/* only hide-before-reveal when JS is present; no-JS shows everything */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  clip-path: inset(0 0 100% 0);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--cut) steps(3, end),
              opacity 1ms,
              transform var(--cut) var(--ease-cut);
}

/* ============================================================
   REDUCED MOTION — freeze motion, keep colour + layout
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  /* freeze the gradient to a still frame — keep the colour, kill motion.
     A two-hue position so the frozen frame shows orange AND violet. */
  .grad-paint, .grad-field, .principle__bg,
  .nav__spine a.active::after,
  .signal__row .v.tier1, .callout.accent .n {
    animation: none !important;
    background-position: 32% 46% !important;
  }
  .hero__scroll .rule { animation: none; transform: scaleX(1); }
  .reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
  .stack__item.shake .box { animation: none; }
  * { scroll-behavior: auto !important; }
}
