/* =============================================================================
   Netsyn — private cyber-intelligence
   Design system. Hand-written, dependency-free.

   Register: a private intelligence house / boutique merchant bank.
   Expense through restraint — type, space, hairlines. No ornament.

   Sections:
     1. Fonts (self-hosted)
     2. Tokens (custom properties)
     3. Reset & base
     4. Typography
     5. Layout primitives
     6. Header / navigation
     7. Footer
     8. Links & buttons
     9. Dossier motifs (markers, readout, rules)
    10. Hero
    11. Editorial sections & statements
    12. Intelligence index
    13. Inquiry form
    14. Confirmation / 404
    15. Motion (reveal) & reduced-motion
    16. Responsive
   ========================================================================== */

/* 1. FONTS ------------------------------------------------------------------ */

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/spectral-300.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/spectral-400.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/spectral-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/spectral-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
}

/* 2. TOKENS ----------------------------------------------------------------- */

:root {
  /* Ground — deep green-black, the brand anchor */
  --ink:        #0d1311;
  --ink-2:      #090d0c;  /* deeper: footer, recessed wells */
  --ink-raised: #131b18;  /* raised panel on dark */

  /* Light ground — warm bone / paper */
  --bone:       #ece6da;
  --bone-2:     #e3dccc;

  /* Accent — a single dim brass, used sparingly */
  --gold:       #b7995c;
  --gold-soft:  #9a8350;

  /* Text on ink */
  --fg:        #d9dcd5;  /* primary */
  --fg-soft:   #9ba49b;  /* secondary */
  --fg-faint:  #707a72;  /* tertiary, mono labels */

  /* Text on bone */
  --bone-fg:      #181d1a;
  --bone-fg-soft: #4c544d;
  --bone-faint:   #6d756d;

  /* Hairlines */
  --line:        rgba(217, 220, 213, 0.13);
  --line-strong: rgba(217, 220, 213, 0.22);
  --bone-line:   rgba(24, 29, 26, 0.16);

  /* Type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Measure & rhythm */
  --measure: 38rem;        /* comfortable reading column */
  --measure-wide: 52rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --container: 75rem;      /* 1200px */
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Focus */
  --focus: var(--gold);
}

/* 3. RESET & BASE ----------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(183, 153, 92, 0.28); color: #fff; }

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

/* Skip link */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink-2);
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* 4. TYPOGRAPHY ------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 {
  font-weight: 300;
  font-size: clamp(2.3rem, 1.45rem + 3.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.014em;
}

h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.7rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.45rem);
  line-height: 1.2;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--fg); }
em { font-style: italic; }

.lead {
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.32rem);
  line-height: 1.55;
  color: var(--fg);
  font-weight: 400;
}

/* Serif body used for set-piece statements */
.serif { font-family: var(--serif); }
.prose { max-width: var(--measure); }
.prose p { color: var(--fg-soft); }
.prose p.lead { color: var(--fg); }

/* 5. LAYOUT PRIMITIVES ------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { display: block; }

section { position: relative; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Hairline above a section */
.section--ruled { border-top: 1px solid var(--line); }

/* Editorial two-column: a mono marker rail + the content column.
   Collapses to a single column on narrow viewports. */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
}
.editorial > .rail { position: relative; }

@media (max-width: 48rem) {
  .editorial { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* Bone (light) ground */
.on-bone {
  background: var(--bone);
  color: var(--bone-fg);
}
.on-bone .prose p { color: var(--bone-fg-soft); }
.on-bone .prose p.lead { color: var(--bone-fg); }
.on-bone .marker { color: var(--bone-faint); }
.on-bone .marker .mk { color: var(--gold-soft); }
.on-bone h1, .on-bone h2, .on-bone h3 { color: var(--bone-fg); }
.on-bone .rule { background: var(--bone-line); }
.on-bone a.link { color: var(--bone-fg); border-color: var(--bone-line); }
.on-bone a.link:hover { border-color: var(--gold-soft); }

/* 6. HEADER / NAVIGATION ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--ink); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

/* Wordmark + descriptor lockup */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  text-decoration: none;
  color: var(--fg);
  line-height: 1;
}
.wordmark__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* optical balance for tracking */
  text-transform: uppercase;
  color: var(--fg);
}
.wordmark__desc {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.wordmark:hover .wordmark__name { color: #fff; }

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__link {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
  padding-block: 0.35rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--fg); }
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 1px;
  background: var(--gold);
}

/* CTA in header */
.nav__cta {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--gold);
  text-decoration: none;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--gold);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav__cta:hover { background: transparent; color: var(--gold); }

/* 7. FOOTER ----------------------------------------------------------------- */

.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  color: var(--fg-soft);
  font-size: 0.92rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  justify-content: flex-end;
}
.site-footer__nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
}
.site-footer__nav a:hover { color: var(--fg); }
.site-footer__note {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer__note p { margin: 0; color: var(--fg-faint); font-size: 0.82rem; }
.site-footer .wordmark__name { font-size: 0.98rem; }
.footer-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  max-width: 28rem;
  margin-top: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 40rem) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__nav { justify-content: flex-start; }
}

/* 8. LINKS & BUTTONS -------------------------------------------------------- */

a { color: var(--gold); text-underline-offset: 3px; }

/* Quiet inline link with hairline underline */
a.link {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
a.link:hover { color: #fff; border-color: var(--gold); }

/* The single CTA, set with weight */
.cta {
  --cta-fg: var(--ink-2);
  --cta-bg: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cta-fg);
  background: var(--cta-bg);
  border: 1px solid var(--gold);
  padding: 0.95rem 1.5rem;
  transition: background 0.22s ease, color 0.22s ease;
  cursor: pointer;
}
.cta:hover { background: transparent; color: var(--gold); }
.cta__arrow { font-family: var(--mono); transition: transform 0.22s ease; }
.cta:hover .cta__arrow { transform: translateX(3px); }

/* Ghost CTA on bone */
.on-bone .cta { --cta-fg: var(--bone); --cta-bg: var(--bone-fg); border-color: var(--bone-fg); }
.on-bone .cta:hover { background: transparent; color: var(--bone-fg); }

/* Text link styled as a calm "continue" */
.more {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.more::after { content: "\2192"; color: var(--gold); }
.more:hover { color: var(--fg); gap: 0.75rem; }
.on-bone .more { color: var(--bone-fg-soft); }
.on-bone .more:hover { color: var(--bone-fg); }

/* 9. DOSSIER MOTIFS --------------------------------------------------------- */

/* Mono classification-style marker, e.g. "§ method" or "— 01 / early warning" */
.marker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0;
}
.marker .mk { color: var(--gold); }
.marker--block { display: block; margin-bottom: 1.5rem; }

/* Sticky marker inside an editorial rail (sits in the left margin) */
.rail .marker { position: sticky; top: 6rem; }
@media (max-width: 48rem) {
  .rail .marker { position: static; }
}

/* Hairline rule */
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* The standing "monitored continuously" readout — calm, generic, true */
.readout {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
}
.readout__label {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-right: 0.5rem;
}
.readout__items { color: var(--fg-soft); }
.readout__items .ro { white-space: nowrap; }
.readout__sep { color: var(--gold-soft); padding-inline: 0.2rem; }

/* 10. HERO ------------------------------------------------------------------ */

.hero {
  padding-block: clamp(4.5rem, 11vw, 9.5rem) var(--section-y);
  position: relative;
}
.hero__inner { max-width: 56rem; }
.hero h1 { margin-top: 1.4rem; }
.hero .lead {
  margin-top: 1.7rem;
  max-width: 40rem;
  color: var(--fg);
}
.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}
.hero .readout { margin-top: clamp(3rem, 7vw, 5rem); }

/* Interior page header */
.page-header {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.page-header h1 { margin-top: 1.2rem; max-width: 18ch; }
.page-header .lead { margin-top: 1.6rem; max-width: 42rem; color: var(--fg); }
.page-header.is-tight h1 { max-width: 26ch; }

@media (prefers-reduced-motion: no-preference) {
  .page-header > .container > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-header h1 { animation-delay: 0.06s; }
  .page-header .lead { animation-delay: 0.16s; }
}

/* 11. EDITORIAL SECTIONS & STATEMENTS --------------------------------------- */

.section__title { margin-top: 0.4rem; margin-bottom: 1.4rem; }

/* Large set-piece statement (the zero-access signature, etc.) */
.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.45rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 40rem;
  color: var(--fg);
}
.statement strong { font-weight: 600; }
.statement .accent { color: var(--gold); font-weight: 400; }

/* A bone band for one high-contrast moment */
.band--bone { background: var(--bone); color: var(--bone-fg); }
.band--bone .statement { color: var(--bone-fg); }

/* Pull-quote / epigraph */
.epigraph {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem);
  line-height: 1.32;
  max-width: 36rem;
  color: var(--fg);
}

/* 12. INTELLIGENCE INDEX ---------------------------------------------------- */

.index { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.index__item {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.index__item:last-child { border-bottom: 1px solid var(--line); }
.index__no {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.index__no .label {
  display: block;
  margin-top: 0.5rem;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}
.index__body h3 { margin-bottom: 0.7rem; color: var(--fg); }
.index__body p { color: var(--fg-soft); margin-bottom: 0; max-width: var(--measure); }
.on-bone .index__item { border-color: var(--bone-line); }
.on-bone .index__body p { color: var(--bone-fg-soft); }

@media (max-width: 40rem) {
  .index__item { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* Quiet list of disciplines / boundaries (method "the line we hold") */
.spec {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}
.spec li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.6rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--fg-soft);
}
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec .tick {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.85rem;
  line-height: 1.7;
}
.spec--negative .tick { color: var(--fg-faint); }
.on-bone .spec li { border-color: var(--bone-line); color: var(--bone-fg-soft); }

/* 13. INQUIRY FORM ---------------------------------------------------------- */

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 52rem) {
  .form-shell { grid-template-columns: 1fr; gap: 2.5rem; }
}

.form-aside .marker { margin-bottom: 1.4rem; }
.form-aside p { color: var(--fg-soft); max-width: 24rem; }

.inquiry { max-width: 40rem; }
.field { margin-bottom: 1.6rem; }
.field > label,
.field > .field__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 0.55rem;
}
.field .opt { color: var(--fg-faint); text-transform: none; letter-spacing: 0.04em; }
.field .req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--fg);
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.18s ease, background 0.18s ease;
  appearance: none;
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-faint); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); background: #141d19; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #141d19;
  box-shadow: 0 0 0 1px var(--gold);
}
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #b5685a;
}

/* Custom select chevron (mono caret), self-drawn so no image dependency */
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 2.4rem; cursor: pointer; }
.field select option { background: var(--ink-raised); color: var(--fg); }

.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 34rem) { .field--row { grid-template-columns: 1fr; gap: 0; } }

/* Honeypot — visually hidden, off-screen */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.form-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.8rem;
}
.form-fine {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  line-height: 1.7;
  max-width: 26rem;
}

/* 14. CONFIRMATION / 404 ---------------------------------------------------- */

.notice {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding-block: var(--section-y);
}
.notice .marker { margin-bottom: 1.6rem; }
.notice h1 { max-width: 18ch; }
.notice .lead { margin-top: 1.6rem; max-width: 36rem; color: var(--fg-soft); }
.notice__actions { margin-top: 2.6rem; }

/* 15. MOTION (reveal) ------------------------------------------------------- */

/* Initial intro for the hero (no JS dependency, guarded by reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .marker { animation-delay: 0.02s; }
  .hero h1 { animation-delay: 0.08s; }
  .hero .lead { animation-delay: 0.18s; }
  .hero__actions { animation-delay: 0.28s; }
  .hero .readout { animation-delay: 0.4s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }

  /* Scroll reveal — only active once JS marks the document */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 16. RESPONSIVE ------------------------------------------------------------ */

@media (max-width: 56rem) {
  .nav { display: none; }      /* primary nav hidden, replaced by footer + menu row */
  .site-header__inner { min-height: 3.75rem; }
}

/* Compact menu row shown under header on small screens */
.menu-row { display: none; }
@media (max-width: 56rem) {
  .menu-row {
    display: block;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 3.75rem;
    z-index: 49;
  }
  .menu-row__scroll {
    display: flex;
    gap: 1.4rem;
    overflow-x: auto;
    padding: 0.7rem var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .menu-row__scroll::-webkit-scrollbar { display: none; }
  .menu-row a {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-soft);
    text-decoration: none;
    white-space: nowrap;
    padding-block: 0.15rem;
  }
  .menu-row a[aria-current="page"] { color: var(--gold); }
}

/* Utility */
.u-narrow { max-width: var(--measure); }
.u-wide { max-width: var(--measure-wide); }
.u-mt-l { margin-top: clamp(2.5rem, 5vw, 4rem); }
.u-mt { margin-top: 1.8rem; }
.u-mt-s { margin-top: 1rem; }
.u-center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
