/* ==========================================================================
   GARMA TECHNOLOGY LIMITED - thegarma.com
   Hand-written static stylesheet. No build step, no framework.
   Theme: dark only, declared as a brand commitment. There is no light variant.
   Accent: --volt is the ONLY chromatic value. Four roles only:
     1. primary CTA fill   2. hero rule   3. focus ring   4. statement band
   Shape: --radius is 0px, locked everywhere, no exceptions.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   Contrast ratios below are calculated (WCAG 2.1 relative luminance),
   not estimated by eye.
   -------------------------------------------------------------------------- */
:root {
  /* Ground and surface */
  --ink-900: #0A0B0D;   /* page ground, off-black (never #000) */
  --ink-800: #121417;   /* raised surface / band fill */
  --ink-700: #1E2226;   /* solid hairline */

  /* Type */
  --paper:   #EDEFEE;   /* primary text      17.05:1 on ink-900  AAA */
  --paper-2: #9AA0A6;   /* secondary body     7.46:1 on ink-900  AAA */
  --paper-3: #7C838A;   /* legal micro        5.13:1 on ink-900  AA  */

  /* The single accent */
  --volt:    #D6FF3E;   /* 17.10:1 on ink-900 AAA; ink-900 on volt = 17.10:1 AAA */

  --hairline: rgba(237, 239, 238, 0.10);
  --radius: 0px;

  /* Type families */
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid scale, base 16px.
     --t-hero is set below the art-direction ceiling on purpose. The headline
     is the company's real 34-character slogan, and at 8.4vw it overflows the
     9-column copy well at every width from 360px up. Sizing the type to the
     actual string is the rule; the string is not negotiable. */
  --t-hero:  clamp(2.125rem, 5.4vw, 4.75rem);
  --t-h2:    clamp(2.25rem, 4.4vw, 4rem);
  --t-h3:    clamp(1.375rem, 2vw, 1.875rem);
  --t-lead:  1.125rem;
  --t-body:  1rem;
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* Grid and space */
  --maxw: 1440px;
  --gutter: 24px;
  --pad-x: clamp(20px, 5vw, 72px);
  --section-y: clamp(88px, 12vh, 160px);

  /* 8px spacing steps */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

html {
  color-scheme: dark;   /* theme-locked: dark only, by brand decision */
}

/* Higher-contrast users: lift secondary text to full paper, solidify hairlines */
@media (prefers-contrast: more) {
  :root {
    --paper-2: var(--paper);
    --paper-3: var(--paper);
    --hairline: var(--ink-700);
  }
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  font-variation-settings: "wdth" 100, "wght" 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; border-radius: var(--radius); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   3. FOCUS AND SKIP LINK
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: var(--pad-x);
  top: 0;
  z-index: 100;
  transform: translateY(-120%);
  background: var(--volt);
  color: var(--ink-900);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. TYPE ROLES
   Hierarchy is expressed by WIDTH, not only by size. Archivo carries a real
   wdth axis, so each level sets font-variation-settings explicitly.
   -------------------------------------------------------------------------- */
/* The hero keeps sentence case. It carries a sentence, and setting it in caps
   pushes the same string roughly 20 per cent wider for no gain in weight. */
.t-hero {
  font-size: var(--t-hero);
  font-variation-settings: "wdth" 125, "wght" 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.t-h2 {
  font-size: var(--t-h2);
  font-variation-settings: "wdth" 115, "wght" 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
}

.t-h3 {
  font-size: var(--t-h3);
  font-variation-settings: "wdth" 105, "wght" 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.t-lead {
  font-size: var(--t-lead);
  font-variation-settings: "wdth" 100, "wght" 400;
  line-height: 1.5;
  max-width: 46ch;
  color: var(--paper-2);
}

.t-body { font-size: var(--t-body); line-height: 1.65; max-width: 65ch; color: var(--paper-2); }
.t-small { font-size: var(--t-small); line-height: 1.55; color: var(--paper-2); }

.t-micro {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--paper-3);
}

.mono { font-family: var(--font-mono); font-variation-settings: normal; }

/* Unfinished-fact marker. Deliberately conspicuous: this is a build-time
   placeholder awaiting a real company fact, and it must look unfinished. */
.pending {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink-800);
  border: 1px dashed var(--paper-3);
  border-radius: var(--radius);
  padding: 2px 8px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 8vh, 104px); }

.rule { height: 1px; background: var(--hairline); border: 0; }

/* Spacing utilities. These exist so that no element carries a style attribute,
   which in turn lets the Content-Security-Policy omit 'unsafe-inline'. */
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mb-4 { margin-bottom: var(--s4); }

/* Full-bleed image band used on the About page. */
.band-img {
  width: 100%;
  height: clamp(220px, 34vh, 420px);
  object-fit: cover;
  opacity: 0.72;
}

/* --------------------------------------------------------------------------
   6. HEADER / NAV
   Single line at desktop. Height 72px, condensing to 56px.
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(10, 11, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.wordmark {
  font-variation-settings: "wdth" 125, "wght" 800;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
}
.wordmark span { color: var(--paper-3); font-variation-settings: "wdth" 100, "wght" 500; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }

.nav a {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--paper); border-bottom-color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--paper-3); }

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;          /* CTA labels never wrap */
  padding: 16px 32px;
  border: 1px solid var(--volt);
  border-radius: var(--radius);
  background: var(--volt);
  color: var(--ink-900);        /* 17.10:1 on volt, AAA */
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink-700);
  color: var(--paper);          /* 17.05:1 on ink-900, AAA */
}
.btn--ghost:hover { border-color: var(--paper); }

/* --------------------------------------------------------------------------
   8. S1 HERO - family A, asymmetric type poster
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 96px 88px;    /* top padding at the 6rem cap */
  overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__copy { grid-column: 1 / span 9; }

.hero h1 { margin-bottom: var(--s5); }

.hero__line {
  display: block;
  overflow: hidden;             /* mask for the line reveal */
  --i: 0;                       /* stagger index, read by the reveal delay */
}
.hero__line + .hero__line { --i: 1; }
.hero__line > span { display: block; }

.hero__rule {
  width: clamp(120px, 18vw, 260px);
  height: 2px;
  background: var(--volt);
  margin-bottom: var(--s4);
  transform-origin: left center;
}

.hero__sub { margin-bottom: var(--s5); }

.hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 42vw;
  z-index: 1;
  pointer-events: none;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  mix-blend-mode: luminosity;   /* keeps the asset strictly monochrome */
  /* Dissolve the left edge into the ground so headline pixels never sit on
     image pixels: at the headline's right edge the mask alpha is under 0.05. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(0,0,0,.6) 74%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(0,0,0,.6) 74%, #000 100%);
}

/* --------------------------------------------------------------------------
   9. S2 COMPANY RECORD - family B, full-width hairline data band
   Three mono columns separated by 1px vertical rules. No cards.
   -------------------------------------------------------------------------- */
.record {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--ink-800);
}

.record__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record__cell {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 48px);
  border-left: 1px solid var(--hairline);
}
.record__cell:first-child { border-left: 0; }

.record__key { margin-bottom: var(--s3); }

.record__val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.0625rem, 1.7vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.record__note { margin-top: var(--s2); font-size: var(--t-small); color: var(--paper-3); }

/* --------------------------------------------------------------------------
   10. S3 WHAT WE DO - family C, single-column editorial stack
   -------------------------------------------------------------------------- */
.editorial__body { grid-column: 1 / span 12; max-width: 65ch; }
.editorial h2 { margin-bottom: var(--s5); max-width: 18ch; }
.editorial p + p { margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   11. S4 DISCIPLINES - family D, horizontal scroll-snap row
   -------------------------------------------------------------------------- */
.disciplines h2 { margin-bottom: var(--s6); max-width: 20ch; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 25%);
  gap: 1px;                       /* hairline gaps read as rules, not gutters */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-700) transparent;
  padding-bottom: var(--s2);
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--ink-700); }

.tile {
  position: relative;
  isolation: isolate;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: var(--s4);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
.tile:hover, .tile:focus-within {
  border-color: var(--volt);
  transform: translateY(-2px);
}

.tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
/* Scrim. The top third is left almost clear so the texture actually reads.
   By the time the gradient reaches the text band its alpha is 0.94 or higher,
   so even against a pure white source pixel the composite sits near #171717:
   paper measures 15.5:1 there and paper-2 measures 6.8:1, both AA or better. */
.tile--img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10,11,13,0)   0%,
    rgba(10,11,13,.20) 18%,
    rgba(10,11,13,.90) 38%,
    rgba(10,11,13,.97) 50%,
    var(--ink-900)     62%
  );
}

.tile h3 { margin-bottom: var(--s2); }
.tile p { font-size: var(--t-small); line-height: 1.55; color: var(--paper-2); }

/* --------------------------------------------------------------------------
   12. S5 DATA - family E, sticky-left headline, scrolling right column
   -------------------------------------------------------------------------- */
.data__aside {
  grid-column: 1 / span 5;
  position: sticky;
  top: 128px;
  align-self: start;
}
.data__aside .t-micro { margin-bottom: var(--s3); }
.data__aside h2 { margin-bottom: var(--s4); }

.data__list { grid-column: 7 / span 6; }

.data__item { padding-block: var(--s6); border-top: 1px solid var(--hairline); }
.data__item:first-child { border-top: 0; padding-top: 0; }
.data__item h3 { margin-bottom: var(--s2); }
.data__item p { font-size: var(--t-body); color: var(--paper-2); max-width: 55ch; }

.link-underline {
  color: var(--paper);
  border-bottom: 1px solid var(--paper-3);
  padding-bottom: 2px;
  transition: border-color 180ms var(--ease);
}
.link-underline:hover { border-bottom-color: var(--volt); }

/* --------------------------------------------------------------------------
   13. S6 STATEMENT BAND - family F, full-bleed inverted band
   The one inverted moment. Volt ground, ink type. No CTA inside it.
   -------------------------------------------------------------------------- */
.statement {
  background: var(--volt);
  color: var(--ink-900);
  padding-block: clamp(72px, 10vh, 128px);
}
.statement p {
  font-size: var(--t-h2);
  font-variation-settings: "wdth" 115, "wght" 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
  max-width: 16ch;
}

/* --------------------------------------------------------------------------
   14. S7 FOOTER - family G, four-column hairline grid
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(56px, 8vh, 96px) var(--s6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: var(--gutter);
}

.footer__col h2 { margin-bottom: var(--s3); }
.footer__id { font-size: var(--t-small); color: var(--paper-2); line-height: 1.75; }
.footer__id strong {
  display: block;
  color: var(--paper);
  font-variation-settings: "wdth" 112, "wght" 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--s1);
}
.footer__id dt { color: var(--paper-3); }
.footer__id dd { margin: 0 0 var(--s2) 0; font-family: var(--font-mono); color: var(--paper-2); }

.footer__links li { margin-bottom: var(--s2); }
.footer__links a {
  font-size: var(--t-small);
  color: var(--paper-2);
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.footer__links a:hover { color: var(--paper); border-bottom-color: var(--paper); }

.footer__base {
  margin-top: var(--s10);
  padding-top: var(--s4);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  justify-content: space-between;
  align-items: baseline;
}

/* --------------------------------------------------------------------------
   15. LEGAL PAGES (privacy, terms) and interior pages
   -------------------------------------------------------------------------- */
.page-head { padding-block: 168px clamp(48px, 7vh, 88px); border-bottom: 1px solid var(--hairline); }
.page-head h1 { max-width: 16ch; margin-bottom: var(--s4); }
.page-head .t-micro { margin-bottom: var(--s3); }
.page-head .t-lead { max-width: 56ch; }

.legal { padding-block: clamp(56px, 8vh, 96px) var(--section-y); }
.legal__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }

.toc { position: sticky; top: 112px; align-self: start; max-height: calc(100dvh - 160px); overflow-y: auto; }
.toc h2 { margin-bottom: var(--s3); }
.toc ol { counter-reset: toc; }
.toc li { margin-bottom: 10px; }
.toc a {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--paper-2);
  display: block;
  padding: 2px 0 2px 10px;
  border-left: 1px solid var(--ink-700);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.toc a:hover { color: var(--paper); border-left-color: var(--volt); }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-transform: uppercase;
  margin-top: var(--s10);
  margin-bottom: var(--s3);
  scroll-margin-top: 104px;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.125rem;
  font-variation-settings: "wdth" 104, "wght" 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: var(--s5);
  margin-bottom: var(--s2);
  color: var(--paper);
}
.prose p { color: var(--paper-2); margin-bottom: var(--s3); max-width: 72ch; }
.prose strong { color: var(--paper); font-variation-settings: "wdth" 100, "wght" 700; }
.prose a { color: var(--paper); border-bottom: 1px solid var(--paper-3); }
.prose a:hover { border-bottom-color: var(--volt); }

ul.bullets { margin: 0 0 var(--s3) 0; }
ul.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--paper-2);
  max-width: 70ch;
}
ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 10px; height: 1px;
  background: var(--paper-3);
}

ol.numbered { counter-reset: n; margin: 0 0 var(--s3) 0; }
ol.numbered li {
  counter-increment: n;
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  color: var(--paper-2);
  max-width: 70ch;
  line-height: 1.65;
}
ol.numbered li strong {
  color: var(--paper);
  font-variation-settings: "wdth" 100, "wght" 700;
}
ol.numbered li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.15em;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  color: var(--paper-3);
}

.callout {
  border: 1px solid var(--ink-700);
  border-left: 2px solid var(--paper-3);
  border-radius: var(--radius);
  background: var(--ink-800);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s4);
}
.callout p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin-bottom: var(--s4); border: 1px solid var(--ink-700); }
table.data-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--t-small); }
table.data-table caption {
  text-align: left;
  padding: var(--s3) var(--s3) var(--s2);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
}
table.data-table th, table.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px var(--s3);
  border-top: 1px solid var(--hairline);
}
table.data-table thead th {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink-800);
}
table.data-table tbody th { color: var(--paper); font-variation-settings: "wdth" 100, "wght" 700; }
table.data-table td { color: var(--paper-2); }

/* About page: stacked record rows */
.facts { border-top: 1px solid var(--hairline); }
.facts__row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--gutter);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--hairline);
}
.facts__row dt { color: var(--paper-3); font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase; padding-top: 5px; }
.facts__row dd { margin: 0; color: var(--paper); font-size: var(--t-lead); line-height: 1.45; }
.facts__row dd .t-small { display: block; margin-top: var(--s1); color: var(--paper-3); }

/* --------------------------------------------------------------------------
   16. MOTION
   Six items, all CSS, all gated behind prefers-reduced-motion: no-preference,
   all with the final state as the fallback. Nothing here loops forever.
   No scroll event listeners anywhere in this project.
   -------------------------------------------------------------------------- */

/* Final state is the default. Motion only subtracts from it. */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {

  /* 1. Hero line reveal. Establishes the reading order of the two headline
        lines at first paint. */
  .hero__line > span {
    animation: line-rise 700ms var(--ease) both;
    animation-delay: calc(var(--i, 0) * 80ms);
  }
  @keyframes line-rise {
    from { transform: translateY(0.14em); opacity: 0; }
    to   { transform: translateY(0);      opacity: 1; }
  }

  /* 2. Accent rule draw. Signals the hero has finished loading and anchors
        the CTA row beneath it. */
  .hero__rule {
    animation: rule-draw 600ms var(--ease) 480ms both;
  }
  @keyframes rule-draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }

  /* 3. Section scroll reveal. Sequences the page so a reviewer reads one
        verifiable claim at a time. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }
  }
  /* IntersectionObserver fallback. main.js adds .io to <html> only when the
     scroll-timeline feature is missing, so no-JS users always see the end
     state rather than an invisible page. */
  .io .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  }
  .io .reveal.is-in { opacity: 1; transform: none; }

  /* 4. Nav condense. A state transition that returns viewport height once the
        user has left the hero. */
  @supports (animation-timeline: scroll(root)) {
    .site-header {
      animation: header-condense linear both;
      animation-timeline: scroll(root);
      animation-range: 0 120px;
    }
    @keyframes header-condense {
      from { height: 72px; border-bottom-color: transparent; }
      to   { height: 56px; border-bottom-color: var(--hairline); }
    }
  }

  /* 5. CTA directional fill. Tactile feedback on the single conversion action
        on the page. --ox is written by main.js from the pointer entry edge. */
  .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ink-900);
    transform: scaleX(0);
    transform-origin: var(--ox, left) center;
    transition: transform 220ms var(--ease);
  }
  .btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
  .btn:hover, .btn:focus-visible { color: var(--volt); }

  .btn--ghost::before { background: var(--paper); }
  .btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink-900); }
}

/* Reduced motion: every animated element is pinned to its end state. */
@media (prefers-reduced-motion: reduce) {
  .hero__line > span { opacity: 1; transform: none; }
  .hero__rule { transform: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header { border-bottom-color: var(--hairline); }
  .btn:hover { background: var(--ink-900); color: var(--volt); }
  .btn--ghost:hover { background: var(--paper); color: var(--ink-900); }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   Every asymmetric grid collapses to a single column below 768px.
   Verified against 360, 768 and 1440 with no horizontal overflow.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .data__aside { grid-column: 1 / span 12; position: static; margin-bottom: var(--s6); }
  .data__list  { grid-column: 1 / span 12; }
  .hero__copy  { grid-column: 1 / span 11; }
  .hero__media { width: 46vw; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s6) var(--gutter); }
  .legal__layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding-bottom: var(--s4); border-bottom: 1px solid var(--hairline); }
  .toc ol { columns: 2; column-gap: var(--s6); }
}

@media (max-width: 767px) {
  :root { --pad-x: 20px; --section-y: 72px; --gutter: 16px; }

  .grid12 { grid-template-columns: 1fr; }
  .hero__copy { grid-column: 1; }

  .hero {
    min-height: 0;
    padding-block: 120px 72px;
    display: block;
  }
  .hero__media {
    position: static;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: var(--s6);
  }
  .hero__media img {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0.62;
  }

  .record__grid { grid-template-columns: 1fr; }
  .record__cell { border-left: 0; border-top: 1px solid var(--hairline); }
  .record__cell:first-child { border-top: 0; }

  .rail { grid-auto-columns: 86%; }
  .tile { min-height: 300px; }

  .data__aside, .data__list { grid-column: 1; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer__base { flex-direction: column; align-items: flex-start; }

  .facts__row { grid-template-columns: 1fr; gap: var(--s1); }
  .toc ol { columns: 1; }
  .page-head { padding-block: 128px 56px; }
  .btn { width: 100%; }
}

/* Below 480px the header still has to hold a wordmark plus four nav items on
   one line. The width axis and the tracking give that back. */
@media (max-width: 480px) {
  .t-hero { font-variation-settings: "wdth" 110, "wght" 800; }
  .wordmark span { display: none; }
  .nav { gap: 12px; }
  .nav a { font-size: 0.6875rem; letter-spacing: 0.06em; }
  .site-header__inner { gap: var(--s2); }
}

@media (max-width: 380px) {
  .btn { padding-inline: 20px; }
  .rail { grid-auto-columns: 92%; }
  .nav { gap: 10px; }
  .nav a { font-size: 0.625rem; letter-spacing: 0.04em; }
}

/* Print: legal pages are the ones people print. */
@media print {
  .site-header, .skip-link, .hero__media, .toc, .statement { display: none; }
  body { background: #fff; color: #000; }
  .prose p, .prose li { color: #000; }
}
