/* ==========================================================================
   ZAMBA — styles.css
   Direction: "The Coordinator's Field Guide"
   Editorial · restrained · photography-forward
   Signature device: THE FIELD RULE — a 28px harvest hairline + cut-corner mark
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..600&family=Inter:wght@400..600&display=swap');

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ink */
  --ink-900: #101A24;
  --ink-700: #26333F;
  --ink-500: #4A5568;
  --ink-300: #C9D2DC;

  /* Cream */
  --cream-100: #F7F3EA;
  --cream-50:  #FFFDF8;

  /* Hairlines */
  --hairline-light: #E6DFD2;
  --hairline-dark:  #22303E;

  /* Harvest accent */
  --harvest-700: #9E5522;
  --harvest-500: #C2762B;
  --harvest-300: #E8A85C;
  --harvest-050: #F6E9D8;

  /* Functional */
  --focus: var(--harvest-700);
  --success: #2E8B57;
  --error: #D64545;

  /* Semantic surfaces */
  --bg: var(--cream-100);
  --surface: var(--cream-50);
  --border: var(--hairline-light);
  --text: var(--ink-900);
  --text-body: var(--ink-500);
  --text-muted: #6B7280;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing — 8pt scale */
  --s-1: 0.5rem;   /*  8 */
  --s-2: 1rem;     /* 16 */
  --s-3: 1.5rem;   /* 24 */
  --s-4: 2rem;     /* 32 */
  --s-5: 2.5rem;   /* 40 */
  --s-6: 3rem;     /* 48 */
  --s-7: 4rem;     /* 64 */
  --s-8: 5rem;     /* 80 */
  --s-9: 7rem;     /* 112 */

  /* Layout */
  --container: 1240px;
  --gutter: 1rem;               /* mobile 16 */
  --measure: 66ch;
  --measure-tight: 52ch;
  --radius-s: 2px;
  --radius-m: 4px;

  /* Elevation system — hairlines first, shadows barely there */
  --elev-0: none;
  --elev-1: 0 1px 0 rgba(16, 26, 36, .04), 0 1px 2px rgba(16, 26, 36, .04);
  --elev-2: 0 2px 6px rgba(16, 26, 36, .05), 0 12px 28px -18px rgba(16, 26, 36, .35);
  --elev-3: 0 4px 10px rgba(16, 26, 36, .06), 0 30px 60px -30px rgba(16, 26, 36, .45);
  --elev-4: 0 8px 18px rgba(16, 26, 36, .08), 0 60px 90px -50px rgba(16, 26, 36, .55);

  /* Signature device — THE FIELD RULE */
  --sig-rule-w: 28px;
  --sig-rule-h: 1px;
  --sig-notch: 14px;
  --sig-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/></filter><rect width='220' height='220' filter='url(%23g)' opacity='0.55'/></svg>");

  /* Motion */
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --ease-in-out: cubic-bezier(.5, 0, .2, 1);
  --dur-1: .18s;
  --dur-2: .32s;
  --dur-3: .6s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  font-weight: 400;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Grain — printed, not digital */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: var(--sig-grain);
  background-size: 220px 220px;
}

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

a {
  color: var(--harvest-700);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color var(--dur-1) var(--ease-out);
}
a:hover { color: var(--ink-900); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-900);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 72;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--harvest-300);
  color: var(--ink-900);
}

/* Focus — one consistent ring everywhere */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-2);
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink-900);
  color: var(--cream-50);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: var(--radius-s);
  box-shadow: var(--elev-3);
  transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus {
  top: var(--s-2);
  color: var(--cream-50);
}

/* --------------------------------------------------------------------------
   4. OVERLINE — the small-caps device with its harvest rule
   -------------------------------------------------------------------------- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--s-3);
  font-family: var(--font-sans);
  font-size: 0.75rem;          /* 12px */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--harvest-700);
}

.overline::before {
  content: "";
  flex: 0 0 auto;
  width: var(--sig-rule-w);
  height: var(--sig-rule-h);
  background: var(--harvest-700);
}

.overline--center {
  justify-content: center;
  margin-inline: auto;
  text-align: center;
}
.overline--center::after {
  content: "";
  flex: 0 0 auto;
  width: var(--sig-rule-w);
  height: var(--sig-rule-h);
  background: var(--harvest-700);
}

.overline--light { color: var(--harvest-300); }
.overline--light::before,
.overline--light::after { background: var(--harvest-300); }

/* --------------------------------------------------------------------------
   5. TYPE SCALE
   -------------------------------------------------------------------------- */
.display-xl {
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.display-xl em {
  font-style: italic;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72;
}

.display-l {
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.display-m {
  margin: 0 0 var(--s-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.lead {
  max-width: var(--measure);
  margin: 0 0 var(--s-3);
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-500);
}

.caption {
  margin: var(--s-2) 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 46ch;
}
.caption--light { color: var(--ink-300); }

/* --------------------------------------------------------------------------
   6. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream-100) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out);
}

/* Hairline draws itself in as soon as the page scrolls */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--hairline-light);
    transform-origin: left center;
    opacity: 0;
    animation: header-rule linear both;
    animation-timeline: scroll();
    animation-range: 0 140px;
  }
  @keyframes header-rule {
    from { opacity: 0; transform: scaleX(.2); }
    to   { opacity: 1; transform: scaleX(1); }
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 72px;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink-900);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.brand img {
  height: 30px;
  width: auto;
}
.brand:hover { color: var(--ink-900); }

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hairline-light);
  background: var(--cream-50);
  color: var(--harvest-700);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

/* Hamburger — visible below 1024 */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0 10px;
  border-radius: var(--radius-s);
  flex: 0 0 auto;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-900);
  transform-origin: center;
  transition: transform var(--dur-2) var(--ease-out),
              opacity var(--dur-1) var(--ease-out),
              width var(--dur-2) var(--ease-out);
}
.nav-toggle:hover .nav-toggle-bar { width: 26px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(.2);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav {
  display: none;
}

/* Open states — support multiple JS conventions */
.nav-toggle[aria-expanded="true"] ~ .nav,
.site-header[data-nav-open="true"] .nav,
.site-header.is-open .nav,
body.nav-open .nav {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: var(--s-3) var(--gutter) var(--s-4);
  background: var(--cream-50);
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  box-shadow: var(--elev-3);
  animation: nav-drop var(--dur-2) var(--ease-out) both;
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.nav-list a {
  display: block;
  padding: 0.75rem 0;
  color: var(--ink-900);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-light);
  transition: color var(--dur-1) var(--ease-out),
              padding-left var(--dur-2) var(--ease-out);
}
.nav-list li:last-child a { border-bottom: 0; }
.nav-list a:hover {
  color: var(--harvest-700);
  padding-left: 0.375rem;
}

/* --------------------------------------------------------------------------
   7. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}

.btn-primary {
  background: var(--ink-900);
  color: var(--cream-50);
  box-shadow: var(--elev-1);
}
.btn-primary::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: 0.6875rem;
  width: 0;
  height: 1px;
  background: var(--harvest-300);
  transition: width var(--dur-2) var(--ease-out);
}
.btn-primary:hover {
  background: var(--ink-700);
  color: var(--cream-50);
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
}
.btn-primary:hover::after { width: calc(100% - 3rem); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: color-mix(in srgb, var(--ink-900) 22%, transparent);
}
.btn-ghost:hover {
  color: var(--harvest-700);
  border-color: var(--harvest-700);
  background: var(--harvest-050);
  transform: translateY(-2px);
}

.nav-cta {
  display: none;
  padding: 0.6875rem 1.125rem;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   8. SECTION RHYTHM
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--s-7);        /* 64 mobile */
}
.section--cream {
  background: var(--cream-100);
}
.section--split { padding-block: var(--s-7); }

.section-lead {
  max-width: 58ch;
  margin: 0 0 var(--s-5);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   9. HERO — asymmetric 7/5, floating browser frame, cut-corner chip
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-7) var(--s-7);
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(194, 118, 43, .10) 0%, rgba(194, 118, 43, 0) 58%),
    linear-gradient(180deg, #FBF7EF 0%, var(--cream-100) 62%);
}

/* Signature move: a single harvest rule spanning the top of the hero */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, var(--harvest-700) 0 72px, var(--hairline-light) 72px 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
}

.hero-copy { max-width: 40rem; }

.hero-sub {
  max-width: var(--measure-tight);
  margin: 0 0 var(--s-4);
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--ink-500);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--s-4);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline-light);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}
.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-notes li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--harvest-500);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.hero-visual {
  position: relative;
  margin-top: var(--s-2);
}

/* Browser frame — hairline, tiny radius, deep soft elevation */
.browser-frame {
  position: relative;
  background: var(--cream-50);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--elev-4);
}
.browser-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 26, 36, .05) 0%, rgba(16, 26, 36, 0) 22%);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  background: #F2EDE2;
  border-bottom: 1px solid var(--hairline-light);
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D8CFC0;
  flex: 0 0 auto;
}
.browser-dot:nth-child(2) { background: #E4D2B6; }
.browser-dot:nth-child(3) { background: #DCC3A4; }

.browser-url {
  margin-left: 0.625rem;
  padding: 0.1875rem 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--cream-50);
  border: 1px solid var(--hairline-light);
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22ch;
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top left;
  background: var(--cream-100);
}

/* Cut-corner floating chip — the signature mark at work */
.hero-chip {
  position: absolute;
  left: 0.75rem;
  bottom: -1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.125rem 0.75rem 0.875rem;
  background: var(--cream-50);
  border: 1px solid var(--hairline-light);
  box-shadow: var(--elev-3);
  clip-path: polygon(0 0, calc(100% - var(--sig-notch)) 0, 100% var(--sig-notch), 100% 100%, 0 100%);
}

.hero-chip-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--harvest-050);
  color: var(--harvest-700);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  flex: 0 0 auto;
}

.hero-chip-text {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-700);
  max-width: 20ch;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   10. BRIDGE — quiet opportunity statement
   -------------------------------------------------------------------------- */
.bridge {
  padding-block: var(--s-7);
  background: var(--cream-100);
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  text-align: center;
}

.bridge-statement {
  max-width: 32ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.bridge-statement em {
  font-style: italic;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72;
  color: var(--harvest-700);
}

/* --------------------------------------------------------------------------
   11. PROOF BAND
   -------------------------------------------------------------------------- */
.proof-band {
  padding-block: var(--s-5);
  background: var(--cream-50);
  border-bottom: 1px solid var(--hairline-light);
}

.proof-inner {
  display: grid;
  gap: var(--s-4);
  align-items: center;
}

.proof-lockups { min-width: 0; }

.lockups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  opacity: .68;
  filter: grayscale(1);
  transition: opacity var(--dur-2) var(--ease-out),
              filter var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out);
}
.lockup img {
  height: 22px;
  width: auto;
}
.lockup:hover {
  opacity: 1;
  filter: grayscale(0);
  color: var(--ink-900);
}

.proof-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) 0;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-right: var(--s-3);
  margin-right: var(--s-3);
  border-right: 1px solid var(--hairline-light);
}
.metric:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. SPLIT SECTIONS
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}

.split-copy { max-width: 36rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-2);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--harvest-700);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--harvest-700) 35%, transparent);
  padding-bottom: 0.1875rem;
  transition: color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.link-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform var(--dur-2) var(--ease-out);
}
.link-arrow:hover {
  color: var(--ink-900);
  border-color: var(--ink-900);
}
.link-arrow:hover::after { transform: translateX(5px); }

.split-media {
  position: relative;
  overflow: hidden;
  background: var(--cream-50);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-m);
  box-shadow: var(--elev-2);
}
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 26, 36, 0) 52%, rgba(16, 26, 36, .22) 100%);
}

.media-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out);
}
.split-media:hover .media-img { transform: scale(1.025); }

/* --------------------------------------------------------------------------
   13. EDITORIAL ROWS — numbered, not carded
   -------------------------------------------------------------------------- */
.editorial-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: center;
  padding-block: var(--s-6);
  border-top: 1px solid var(--hairline-light);
}
.editorial-row:first-of-type { border-top: 0; padding-top: 0; }
.editorial-row:last-of-type { padding-bottom: 0; }

.row-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-m);
  background: var(--cream-50);
  box-shadow: var(--elev-2);
}

.row-copy { max-width: 40rem; }

.row-index {
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1px var(--harvest-500);
  transition: color var(--dur-3) var(--ease-out);
}
.row-copy:hover .row-index {
  color: var(--harvest-050);
  -webkit-text-stroke-color: var(--harvest-700);
}

.media-img--wide {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-img--tall {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 768px) {
  .editorial-row {
    grid-template-columns: 6fr 6fr;
    gap: var(--s-6);
  }
  .editorial-row--reverse .row-media { order: 2; }
  .editorial-row--reverse .row-copy { order: 1; }
}

/* --------------------------------------------------------------------------
   14. FEATURE LIST + FEATURE GRID (hairline grid, never cards)
   -------------------------------------------------------------------------- */
.feature-list {
  display: grid;
  gap: 0;
  margin-top: var(--s-4);
}

.feature-item {
  position: relative;
  padding: 1.125rem 0 1.125rem 1.75rem;
  border-top: 1px solid var(--hairline-light);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-500);
}
.feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.65rem;
  width: 10px;
  height: 1px;
  background: var(--harvest-500);
  transition: width var(--dur-2) var(--ease-out);
}
.feature-item:hover::before { width: 18px; }
.feature-item:last-child { border-bottom: 1px solid var(--hairline-light); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline-dark);
}

.feature-cell {
  position: relative;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline-dark);
}

.feature-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--cream-50);
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}
.feature-title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1px;
  background: var(--harvest-300);
  flex: 0 0 auto;
  transform: translateY(-4px);
  transition: width var(--dur-2) var(--ease-out);
}
.feature-cell:hover .feature-title::before { width: 22px; }

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-6);
  }
  .feature-cell:nth-child(odd) { padding-right: var(--s-5); }
  .feature-cell:nth-child(even) {
    padding-left: var(--s-5);
    border-left: 1px solid var(--hairline-dark);
  }
}

/* --------------------------------------------------------------------------
   15. DARK SECTIONS
   -------------------------------------------------------------------------- */
.section--dark {
  position: relative;
  background: var(--ink-900);
  color: var(--cream-50);
  overflow: hidden;
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: screen;
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(232, 168, 92, .14) 0%, rgba(232, 168, 92, 0) 55%),
    radial-gradient(70% 60% at 100% 100%, rgba(74, 85, 104, .5) 0%, rgba(74, 85, 104, 0) 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}

.section--dark .display-l,
.section--dark .display-m { color: var(--cream-50); }
.section--dark .lead,
.section--dark .section-lead,
.section--dark p { color: var(--ink-300); }

.split--dark { align-items: center; }

.split-media--dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-700) 0%, var(--ink-900) 100%);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-m);
  box-shadow: var(--elev-4);
}
.split-media--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(158, 85, 34, .55) 0%, rgba(16, 26, 36, .32) 60%);
  mix-blend-mode: overlay;
}
.split-media--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 26, 36, 0) 55%, rgba(16, 26, 36, .5) 100%);
}

.media-img--duotone {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.92);
  mix-blend-mode: luminosity;
  transition: transform var(--dur-3) var(--ease-out);
}
.split-media--dark:hover .media-img--duotone { transform: scale(1.03); }

/* --------------------------------------------------------------------------
   16. IMPACT
   -------------------------------------------------------------------------- */
.section--impact {
  background: var(--cream-50);
  border-top: 1px solid var(--hairline-light);
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: var(--s-6);
  border-top: 1px solid var(--hairline-light);
}

.stat {
  position: relative;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline-light);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}
.stat-num sup {
  font-size: .42em;
  top: -0.9em;
  color: var(--harvest-700);
}

.stat-label {
  display: block;
  margin-top: 0.75rem;
  max-width: 22ch;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .stat {
    padding: var(--s-5) var(--s-4);
    border-bottom: 0;
    border-right: 1px solid var(--hairline-light);
  }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; padding-right: 0; }
}

/* --------------------------------------------------------------------------
   17. SCROLL REVEAL — progressive enhancement only
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-copy,
    .bridge-statement,
    .split-copy,
    .split-media,
    .editorial-row,
    .feature-cell,
    .stat,
    .hero-visual {
      animation: reveal-up .9s var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 4% cover 30%;
    }
    .split-media,
    .stat:nth-child(2) { animation-range: entry 4% cover 34%; }
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero entrance on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: reveal-up .8s var(--ease-out) both;
  }
  .hero-copy > *:nth-child(1) { animation-delay: .04s; }
  .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .hero-copy > *:nth-child(3) { animation-delay: .20s; }
  .hero-copy > *:nth-child(4) { animation-delay: .28s; }
  .hero-copy > *:nth-child(5) { animation-delay: .36s; }

  .hero-visual { animation: reveal-up 1s var(--ease-out) .22s both; }
  .hero-chip {
    animation: chip-float 7s var(--ease-in-out) infinite;
  }
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   18. BREAKPOINTS
   -------------------------------------------------------------------------- */

/* ---- 640px : small tablet ---- */
@media (min-width: 640px) {
  :root { --gutter: 1.25rem; }

  .hero-notes { gap: 0.5rem 1.5rem; }
  .proof-metrics { gap: var(--s-3); }
  .metric-num { font-size: 1.75rem; }
}

/* ---- 768px : tablet ---- */
@media (min-width: 768px) {
  :root { --gutter: 1.5rem; }

  .section { padding-block: var(--s-8); }
  .section--split { padding-block: var(--s-8); }
  .hero { padding-block: var(--s-8); }
  .bridge { padding-block: var(--s-8); }

  .proof-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-5);
  }
  .proof-metrics {
    justify-content: flex-end;
  }

  .split {
    grid-template-columns: 6fr 6fr;
    gap: var(--s-6);
  }

  .hero-chip {
    left: -1rem;
    bottom: -1.75rem;
    padding: 0.875rem 1.25rem 0.875rem 1rem;
  }

  .editorial-row { padding-block: var(--s-7); }
}

/* ---- 1024px : desktop nav switch ---- */
@media (min-width: 1024px) {
  :root {
    --gutter: 1.5rem;
  }

  html { scroll-padding-top: 96px; }

  .nav-toggle { display: none; }

  .nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-list a {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    border-bottom: 0;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0.875rem;
    right: 0.875rem;
    bottom: 0.25rem;
    height: 1px;
    background: var(--harvest-700);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-2) var(--ease-out);
  }
  .nav-list a:hover { padding-left: 0.875rem; color: var(--ink-900); }
  .nav-list a:hover::after { transform: scaleX(1); }

  .nav-cta {
    display: inline-flex;
    margin-left: 0.625rem;
  }

  .header-inner { min-height: 84px; }

  .section { padding-block: var(--s-9); }
  .section--split { padding-block: var(--s-9); }
  .bridge { padding-block: var(--s-9); }

  .hero {
    padding-block: var(--s-9) var(--s-9);
  }
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--s-6);
    align-items: center;
  }
  .hero-copy { padding-right: var(--s-3); }
  .hero-visual {
    margin-top: 0;
    transform: translateY(var(--s-4));
  }

  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 1280px : wide ---- */
@media (min-width: 1280px) {
  :root { --gutter: 2rem; }

  .hero-grid { gap: var(--s-7); }
  .split { gap: var(--s-7); }
  .editorial-row { gap: var(--s-7); }

  .hero-chip {
    left: -2rem;
    bottom: -2rem;
  }
}

/* --------------------------------------------------------------------------
   19. MOTION & PRINT SAFETY
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-visual { transform: none; }
}

@media print {
  body::after,
  .site-header,
  .hero-chip { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark { background: #fff; color: #000; }
}