/* ==========================================================================
   Metrike landing — tokens
   The palette is the four-step ramp of the Metrike mark (forest → citron).
   Light by default; a few blocks (the journey stage, the numbers band,
   the footer, two platform tiles) switch to the deep-forest scheme by
   redefining the semantic tokens below. Lime is the action color; coral
   only marks invalid traffic.
   ========================================================================== */
:root {
  --ink: #04241e;
  --ink-2: #07322a;
  --ink-3: #0b4136;
  --forest: #0d6f5b;
  --green: #279d64;
  --leaf: #8fbe3e;
  --citron: #cad22b;
  --lime: #d6ff60;
  --paper: #eef2e7;
  --paper-2: #e2e9d8;
  --coral: #ff6b57;

  --bg: #f6f8f2;
  --bg-alt: #ebf0e3;
  --surface: #ffffff;

  /* semantic (light scheme) */
  --text: #0a2e26;
  --text-muted: #4a655d;
  --line: rgba(4, 36, 30, 0.12);
  --accent-text: var(--forest);
  --focus: var(--forest);
  --bg-rgb: 246, 248, 242;
  --tile-soft: #dde7cf;
  --garm-empty: rgba(4, 36, 30, 0.08);
  --ghost-border: rgba(4, 36, 30, 0.28);
  --ghost-bg: rgba(255, 255, 255, 0.55);
  --dot-raw: #9cb4a8;
  --dot-ok: var(--forest);
  color-scheme: light;

  --text-ink: #0a2e26;
  --text-ink-muted: #46625a;
  --line-ink: rgba(4, 36, 30, 0.14);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 125%;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(2.125rem, 1.3rem + 3.6vw, 4.25rem);
  --fs-hero: clamp(3.25rem, 0.6rem + 6.6vw, 7rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section-y: clamp(88px, 12vw, 168px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* Site-wide dark theme (toggle in the header, stored per visitor). */
:root[data-theme="dark"] {
  --bg: #04241e;
  --bg-alt: #062c25;
  --surface: #0a3a30;
  --text: #e9f1e6;
  --text-muted: #a5bdb2;
  --line: rgba(233, 241, 230, 0.12);
  --accent-text: var(--lime);
  --focus: var(--lime);
  --bg-rgb: 4, 36, 30;
  --tile-soft: #0d4538;
  --garm-empty: rgba(233, 241, 230, 0.08);
  --ghost-border: rgba(233, 241, 230, 0.35);
  --ghost-bg: rgba(4, 36, 30, 0.35);
  --dot-raw: var(--green);
  --dot-ok: var(--lime);
  --text-ink: #e9f1e6;
  --text-ink-muted: #a5bdb2;
  --line-ink: rgba(233, 241, 230, 0.14);
  color-scheme: dark;
}
:root[data-theme="dark"] .numbers,
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }

/* Mock-ups that are always light paper, whatever the theme. */
.browser, .sheet, .tile-geo {
  --text-ink: #0a2e26;
  --text-ink-muted: #46625a;
  --line-ink: rgba(4, 36, 30, 0.14);
}

/* Dark scheme, scoped to the blocks that use it. */
.journey-stage,
.numbers,
.site-footer,
.tile-adserver,
.tile-white {
  --text: #e9f1e6;
  --text-muted: #a5bdb2;
  --line: rgba(233, 241, 230, 0.12);
  --accent-text: var(--lime);
  --focus: var(--lime);
  color: var(--text);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px;
  border-radius: var(--radius-s); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  font-stretch: var(--wide);
  font-variation-settings: "wdth" 125;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 18ch;
}
.lede {
  font-size: var(--fs-lede);
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.55;
}
.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
@media (min-width: 1000px) {
  .section-head {
    grid-template-columns: 1.35fr 1fr;
    align-items: end;
    gap: 64px;
  }
  .section-head .lede { justify-self: end; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(4, 36, 30, 0.08); }
.btn-lime:hover { background: #e4ff8f; }
.btn-ghost { border-color: var(--ghost-border); color: var(--text); background: var(--ghost-bg); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ink { background: var(--ink); color: var(--lime); }
.btn-ink:hover { background: var(--ink-3); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(var(--bg-rgb), 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.4s var(--ease);
}
.theme-toggle:hover { border-color: var(--text-muted); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity 0.3s, transform 0.5s var(--ease); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; display: block; }
.brand-word { display: block; height: 15px; width: auto; aspect-ratio: 9 / 1; }
.nav { display: none; align-items: center; gap: 32px; margin-left: auto; }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav-cta { min-height: 42px; padding: 8px 20px; font-size: 0.95rem; }

.menu-toggle {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

.menu-mobile {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 28px;
  display: grid;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.375rem;
  font-weight: 300;
  font-variation-settings: "wdth" 115;
}
.menu-mobile a:last-child { border-bottom: 0; color: var(--accent-text); font-weight: 450; }
.site-header.menu-open { background: var(--bg); }

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-actions { margin-left: 0; }
  .menu-toggle, .menu-mobile { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--header-h);
  padding-bottom: clamp(24px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(55% 50% at 72% 42%, rgba(143, 190, 62, 0.22), transparent 70%),
    radial-gradient(40% 40% at 82% 28%, rgba(214, 255, 96, 0.28), transparent 70%),
    var(--bg);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(var(--bg-rgb), 0.85) 24%, rgba(var(--bg-rgb), 0) 58%),
    linear-gradient(to right, rgba(var(--bg-rgb), 0.95) 0%, rgba(var(--bg-rgb), 0.75) 34%, rgba(var(--bg-rgb), 0) 52%);
}
.hero-content { position: relative; }
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 250;
  font-stretch: var(--wide);
  font-variation-settings: "wdth" 125;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-title .line > span { display: inline-block; }
.hero-title .line:last-child > span { color: var(--accent-text); font-weight: 400; }
.hero-lede {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: var(--fs-lede);
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-legend {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  background: linear-gradient(var(--line), var(--line)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.hero-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-raw { background: var(--dot-raw); }
.dot-ok { background: var(--dot-ok); }
.dot-bot { background: var(--coral); }

@media (max-width: 759px) {
  .hero { padding-top: 46svh; }
  .hero-shade {
    background: linear-gradient(to top, var(--bg) 0%, rgba(var(--bg-rgb), 0.94) 48%, rgba(var(--bg-rgb), 0) 70%);
  }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* Load-reveal initial states (removed by JS; no-JS sees content) */
.js [data-reveal-line] { transform: translateY(105%); }
.js [data-reveal-load] { opacity: 0; transform: translateY(18px); }

/* ==========================================================================
   Formats marquee
   ========================================================================== */
.formats {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 22px;
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
/* With JS: a native horizontal scroller that drifts on its own and can be swiped. */
.marquee.is-scroller {
  width: auto;
  animation: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.marquee.is-scroller::-webkit-scrollbar { display: none; }
.marquee-track { display: flex; gap: 56px; padding-right: 56px; }
.marquee-track li {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  font-weight: 300;
  font-variation-settings: "wdth" 120;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 56px;
  color: var(--text-muted);
}
.marquee-track li::after {
  content: "";
  width: 14px; height: 14px;
  background: var(--forest);
  transform: rotate(45deg);
  border-radius: 2px;
}
.marquee-track li:nth-child(4n+2)::after { background: var(--green); }
.marquee-track li:nth-child(4n+3)::after { background: var(--leaf); }
.marquee-track li:nth-child(4n)::after { background: var(--citron); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Journey
   ========================================================================== */
.journey { padding-block: var(--section-y); }
.journey-grid {
  display: grid;
  gap: 0;
}
.journey-stage-wrap {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 2;
  height: min(48svh, 440px);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-bottom: 12px;
  background: linear-gradient(to bottom, var(--bg) 88%, rgba(var(--bg-rgb), 0));
  box-shadow: 0 calc(-1 * var(--header-h) - 8px) 0 0 var(--bg);
}
.journey-stage {
  position: relative;
  height: 100%;
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(39, 157, 100, 0.22), transparent 60%),
    var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(4, 36, 30, 0.45);
  overflow: hidden;
  perspective: 1200px;
}
.stage-progress {
  position: absolute;
  left: 20px; right: 20px; top: 16px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  z-index: 3;
  overflow: hidden;
}
.stage-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--forest), var(--green), var(--leaf), var(--citron), var(--lime));
  transform-origin: left;
  transform: scaleX(0);
}
.journey-steps { position: relative; }
.step {
  min-height: 72svh;
  padding-block: 10svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
  opacity: 0.32;
  transition: opacity 0.5s var(--ease);
}
.step.is-active { opacity: 1; }
@media (max-width: 999px) {
  .step { min-height: 62svh; padding-block: 6svh; justify-content: flex-end; }
  .journey-steps { padding-bottom: 20svh; }
}
.step-n {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.step h3 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 350;
  font-variation-settings: "wdth" 118;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.step p { color: var(--text-muted); max-width: 52ch; }

@media (min-width: 1000px) {
  .journey-grid {
    grid-template-columns: 1fr 1.08fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .journey-steps { grid-column: 1; grid-row: 1; }
  .journey-stage-wrap {
    grid-column: 2;
    grid-row: 1;
    top: calc(50svh - min(30svh, 290px));
    height: min(60svh, 580px);
    margin: 0; padding: 0;
    background: none;
    box-shadow: none;
  }
  .step { min-height: 88svh; }
}

/* Scenes */
.scene {
  position: absolute;
  inset: 0;
  padding: clamp(36px, 5vw, 56px) clamp(16px, 3.4vw, 40px) clamp(16px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: rotateX(-12deg) translateY(30px) scale(0.96);
  transform-origin: 50% 100%;
  transition: opacity 0.55s var(--ease), transform 0.8s var(--ease), visibility 0s linear 0.55s;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s var(--ease) 0.1s, transform 0.9s var(--ease) 0.1s, visibility 0s;
}
.scene.is-leaving { transform: rotateX(10deg) translateY(-30px) scale(0.96); }

/* 1. Tag */
.browser {
  background: #f5f8f1;
  color: var(--text-ink);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: #e1e8da;
  font-size: 0.75rem;
  color: var(--text-ink-muted);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #b9c6b4; }
.browser-bar span {
  margin-left: 10px; background: #f5f8f1; padding: 3px 12px; border-radius: 999px; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { padding: 14px; display: grid; gap: 7px; }
.sk { height: 7px; border-radius: 4px; background: #dbe3d5; }
.sk-title { height: 12px; width: 70%; background: #c5d1c0; }
.sk-short { width: 60%; }
.ad-slot {
  position: relative;
  height: clamp(64px, 11svh, 112px);
  border-radius: 8px;
  border: 1.5px dashed #a9b8a5;
  margin-block: 4px;
  overflow: hidden;
}
.ad-size {
  position: absolute; right: 8px; bottom: 6px;
  font-size: 0.6875rem; color: #7f927c;
  transition: opacity 0.3s;
}
.ad-creative {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 10px 16px;
  background: linear-gradient(120deg, var(--forest), var(--green) 60%, var(--leaf));
  color: #fff;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease) 0.9s;
}
.ad-creative strong { font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.2rem); font-weight: 600; font-variation-settings: "wdth" 112; }
.ad-creative span { font-size: 0.75rem; opacity: 0.85; }
.scene-tag.is-active .ad-creative { clip-path: inset(0 0 0 0); }
.scene-tag.is-active .ad-size { opacity: 0; transition-delay: 1.2s; }

.code {
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.62rem, 0.55rem + 0.3vw, 0.78rem);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-muted);
}
.c-tag { color: var(--leaf); }
.c-attr { color: var(--citron); }
.c-str { color: var(--lime); }
@media (max-width: 999px) {
  .scene-tag { flex-direction: row; align-items: center; }
  .scene-tag .browser { flex: 1.1; }
  .scene-tag .code { flex: 1; align-self: center; }
}
@media (max-width: 520px) {
  .scene-tag .code { display: none; }
}

/* 2. Count */
.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.counter {
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: rgba(233, 241, 230, 0.05);
  border: 1px solid var(--line);
  min-width: 0;
}
.counter-label { display: block; font-size: 0.75rem; color: var(--text-muted); }
.counter strong {
  display: block;
  font-size: clamp(1.1rem, 0.7rem + 1.8vw, 2rem);
  font-weight: 400;
  font-variation-settings: "wdth" 110;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--lime);
  white-space: nowrap;
}
.viewable {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
}
.viewable-slot {
  position: relative;
  width: clamp(76px, 12vw, 120px);
  aspect-ratio: 6 / 5;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
  text-align: center;
  font-size: 0.625rem;
  color: var(--text);
}
.viewable-slot span { position: relative; padding: 4px; }
.viewable-fill {
  position: absolute; inset: 50% 0 0 0;
  background: linear-gradient(var(--green), var(--forest));
}
.viewable-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.viewable-ring circle { fill: none; stroke: var(--line); stroke-width: 5; }
.viewable-ring .ring-run {
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
}
.scene-count.is-active .ring-run { animation: ring 1s linear 0.6s forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.viewable p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.45; }
.viewable p strong { color: var(--text); font-weight: 600; }
.spark { width: 100%; height: clamp(40px, 9svh, 80px); }
.spark path {
  fill: none; stroke: var(--lime); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 600; stroke-dashoffset: 600;
}
.scene-count.is-active .spark path { animation: draw 1.8s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 520px) {
  .viewable { grid-template-columns: auto 1fr; }
  .viewable-ring { display: none; }
  .viewable p { font-size: 0.75rem; }
}

/* 3. IVT */
.ivt-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: clamp(4px, 0.8vw, 8px);
  width: 100%;
  max-width: 420px;
}
.ivt-grid i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  transition: background-color 0.4s, transform 0.6s var(--ease), opacity 0.6s;
}
.scene-ivt.is-active .ivt-grid i { background: var(--lime); transition-delay: calc(var(--d) * 8ms); }
.scene-ivt.is-active .ivt-grid i.bot {
  background: var(--coral);
  transform: translateY(12px) scale(0.7);
  opacity: 0.85;
  transition-delay: calc(400ms + var(--d) * 8ms);
}
.ivt-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.ivt-reasons span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 87, 0.45);
  color: #ffb3a8;
}
.ivt-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ivt-sum div { border-top: 1px solid var(--line); padding-top: 8px; }
.ivt-sum span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.ivt-sum strong {
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  font-weight: 400; font-variation-settings: "wdth" 110;
}
.ivt-sum .ok { color: var(--lime); }
.ivt-sum .bad { color: var(--coral); }

/* 4. Context */
.urls { display: grid; gap: 6px; }
.urls li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(233, 241, 230, 0.05);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.scene-context.is-active .urls li { opacity: 1; transform: none; }
.scene-context.is-active .urls li:nth-child(2) { transition-delay: 0.12s; }
.scene-context.is-active .urls li:nth-child(3) { transition-delay: 0.24s; }
.scene-context.is-active .urls li:nth-child(4) { transition-delay: 0.36s; }
.url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.urls .blocked { border-color: rgba(255, 107, 87, 0.4); }
.urls .blocked .url { text-decoration: line-through; text-decoration-color: var(--coral); }
.chip {
  flex: none;
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.chip-ok { background: rgba(214, 255, 96, 0.14); color: var(--lime); }
.chip-bad { background: rgba(255, 107, 87, 0.16); color: #ffb3a8; }
.cities { display: grid; gap: 6px; }
.city {
  display: grid; grid-template-columns: 8.5em 1fr 3em; align-items: center; gap: 10px;
  font-size: 0.8125rem;
}
.city span { color: var(--text-muted); }
.city i {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--forest), var(--leaf));
  transform-origin: left; transform: scaleX(0);
  transition: transform 1s var(--ease) 0.4s;
  width: calc(var(--v) * 100%);
}
.scene-context.is-active .city i { transform: scaleX(1); }
.city b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .urls li:nth-child(3) { display: none; }
  .city:nth-child(4) { display: none; }
  .chip-bad { font-size: 0; padding: 3px 7px; }
  .chip-bad::after { content: "Bloqueado"; font-size: 0.6875rem; }
}

/* 5. Report */
.sheet {
  position: relative;
  background: #f5f8f1;
  color: var(--text-ink);
  border-radius: var(--radius-m);
  padding: clamp(14px, 2.4vw, 24px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}
.sheet-head { display: grid; margin-bottom: 10px; }
.sheet-head strong { font-weight: 600; font-variation-settings: "wdth" 112; font-size: 1rem; }
.sheet-head span { font-size: 0.75rem; color: var(--text-ink-muted); }
.sheet table { width: 100%; border-collapse: collapse; font-size: clamp(0.66rem, 0.6rem + 0.3vw, 0.8125rem); font-variant-numeric: tabular-nums; }
.sheet th { text-align: right; font-weight: 500; color: var(--text-ink-muted); padding: 6px 4px; border-bottom: 1px solid var(--line-ink); }
.sheet td { text-align: right; padding: 7px 4px; border-bottom: 1px solid var(--line-ink); }
.sheet th:first-child, .sheet td:first-child { text-align: left; }
.sheet tfoot td { font-weight: 600; border-bottom: 0; }
.sheet tbody tr { opacity: 0; transition: opacity 0.4s; }
.scene-report.is-active tbody tr { opacity: 1; }
.scene-report.is-active tbody tr:nth-child(2) { transition-delay: 0.1s; }
.scene-report.is-active tbody tr:nth-child(3) { transition-delay: 0.2s; }
.scene-report.is-active tbody tr:nth-child(4) { transition-delay: 0.3s; }
.stamp {
  position: absolute;
  left: clamp(10px, 3vw, 24px);
  bottom: -26px;
  padding: 10px 16px;
  border: 2px solid var(--forest);
  border-radius: 12px;
  color: var(--forest);
  background: #f5f8f1;
  font-weight: 700;
  font-variation-settings: "wdth" 120;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-8deg) scale(2.4);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.75, 0) 0.7s, opacity 0.2s 0.7s;
}
.stamp small { font-weight: 500; font-size: 0.7rem; }
.scene-report.is-active .stamp { transform: rotate(-8deg) scale(1); opacity: 1; }

/* ==========================================================================
   Platform (light)
   ========================================================================== */
.platform {
  background: var(--bg-alt);
  color: var(--text-ink);
  padding-block: var(--section-y);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  position: relative;
  z-index: 3;
}
.platform .lede { color: var(--text-ink-muted); }
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.tile {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line-ink);
  overflow: hidden;
}
.tile h3 {
  font-size: var(--fs-h3);
  font-weight: 450;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.tile p { color: var(--text-ink-muted); max-width: 42ch; font-size: 1rem; }

.tile-adserver {
  background: var(--ink);
  color: var(--text);
  border: 0;
  display: grid;
  gap: 28px;
  transform-style: preserve-3d;
}
.tile-adserver p { color: var(--text-muted); }
.mini-console {
  display: grid;
  grid-template-columns: 44px 1fr;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transform: translateZ(30px);
}
.mc-side { background: var(--ink-3); display: grid; align-content: start; gap: 12px; padding: 14px 12px; }
.mc-side i { height: 20px; border-radius: 6px; background: rgba(233, 241, 230, 0.1); }
.mc-side i:first-child { background: var(--leaf); }
.mc-main { padding: 14px 16px; display: grid; gap: 12px; }
.mc-top { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--text-muted); }
.mc-top b { color: var(--lime); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.mc-top b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.mc-rows { display: grid; gap: 10px; }
.mc-rows div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; align-items: center; font-size: 0.8125rem; }
.mc-rows i {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  width: calc(var(--v) * 100%);
}

.tile-safety { background: var(--tile-soft); border: 0; }
.garm-head {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-ink-muted);
  margin-bottom: 6px;
}
.tile .garm-note { margin-top: 10px; font-size: 0.8125rem; }
.garm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.garm i {
  height: 14px;
  border-radius: 3px;
  background: var(--garm-empty);
  transition: background-color 0.35s;
}
.garm i.on { background: var(--coral); }
.garm i.on.l2 { background: #ff8f7f; }
.garm i.on.l3 { background: #ffb8ad; }

.tile-target { background: var(--forest); color: #fff; border: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill-list li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.9375rem;
}
.quartiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 22px; }
.quartiles i { height: 6px; border-radius: 3px; background: var(--forest); transform-origin: left; }
.quartiles i:nth-child(2) { background: var(--green); }
.quartiles i:nth-child(3) { background: var(--leaf); }
.quartiles i:nth-child(4) { background: var(--citron); }
.tile-geo { background: var(--citron); color: var(--text-ink); border: 0; }
.tile-geo p { color: var(--text-ink); }
.tile-white { background: var(--ink-3); color: var(--text); border: 0; }
.tile-white p { color: var(--text-muted); }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-adserver { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(200px, auto);
  }
  .tile-adserver {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
  }
  .tile-safety { grid-column: 5 / 7; grid-row: 1 / 3; }
  .tile-target { grid-column: 1 / 3; }
  .tile-video { grid-column: 3 / 5; }
  .tile-geo { grid-column: 5 / 7; }
  .tile-sdk { grid-column: 1 / 3; }
  .tile-access { grid-column: 3 / 5; }
  .tile-white { grid-column: 5 / 7; }
}

/* ==========================================================================
   Audience (light, continues paper)
   ========================================================================== */
.audience {
  background: var(--bg-alt);
  color: var(--text-ink);
  padding-bottom: var(--section-y);
  position: relative;
  z-index: 3;
}
.tab-list {
  position: relative;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line-ink);
  margin-bottom: clamp(32px, 5vw, 64px);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button {
  flex: none;
  background: none;
  border: 0;
  padding: 14px 18px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-ink-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.tab-list button[aria-selected="true"] { color: var(--text-ink); }
.tab-ink {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-text);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}
.tab-panel {
  display: grid;
  gap: 32px;
}
.tab-panel[hidden] { display: none; }
.tab-panel-title { display: none; }
@media (max-width: 759px) {
  /* Phones: no tabs, every profile stacked in the feed. */
  .tab-list { display: none; }
  .tab-panel, .tab-panel[hidden] { display: grid; gap: 18px; animation: none !important; }
  .tab-panel + .tab-panel { margin-top: 48px; }
  .tab-panel-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 1rem; font-weight: 600; color: var(--accent-text);
  }
  .tab-panel-title::before {
    content: ""; width: 10px; height: 10px; border-radius: 2px;
    background: var(--green); transform: rotate(45deg);
  }
  .tab-quote { font-size: clamp(1.6rem, 1rem + 3vw, 2.2rem); }
}
.tab-panel:not([hidden]) { animation: panel-in 0.6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.tab-quote {
  font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  font-weight: 300;
  font-variation-settings: "wdth" 118;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}
.tab-points { display: grid; gap: 0; }
.tab-points li {
  padding: 18px 0 18px 36px;
  border-top: 1px solid var(--line-ink);
  position: relative;
}
.tab-points li::before {
  content: "";
  position: absolute; left: 4px; top: 25px;
  width: 11px; height: 11px;
  background: var(--green);
  transform: rotate(45deg);
  border-radius: 2px;
}
@media (min-width: 1000px) {
  .tab-list { margin-inline: 0; padding-inline: 0; }
  .tab-panel { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 80px; }
}

/* ==========================================================================
   Cycle
   ========================================================================== */
.cycle {
  padding-block: var(--section-y);
  background:
    radial-gradient(70% 60% at 0% 100%, rgba(143, 190, 62, 0.18), transparent 60%),
    var(--bg);
}
.cycle-track { position: relative; }
.cycle-line {
  display: none;
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: visible;
}
.cycle-line path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 4 8;
}
.cycle-list { display: grid; gap: 48px; position: relative; }
.cycle-item h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 350;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.02em;
  margin: 22px 0 12px;
}
.cycle-item p { color: var(--text-muted); max-width: 36ch; }
.cycle-mark {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(4, 36, 30, 0.35);
  perspective: 300px;
}
.cm {
  width: 34px; height: 34px;
  border-radius: 5px;
  transform: rotateX(55deg) rotateZ(45deg);
  box-shadow: 0 0 0 0 transparent;
  animation: spin 9s linear infinite;
}
.cm-1 { background: linear-gradient(135deg, var(--forest), var(--green)); }
.cm-2 { background: linear-gradient(135deg, var(--green), var(--leaf)); animation-delay: -3s; }
.cm-3 { background: linear-gradient(135deg, var(--leaf), var(--citron)); animation-delay: -6s; }
@keyframes spin { to { transform: rotateX(55deg) rotateZ(405deg); } }
@media (min-width: 900px) {
  .cycle-line { display: block; }
  .cycle-list { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* ==========================================================================
   Numbers
   ========================================================================== */
.numbers {
  background: var(--ink);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding-block: clamp(64px, 9vw, 120px) calc(clamp(64px, 9vw, 120px) + var(--radius-l));
}
.numbers + .posts { position: relative; margin-top: calc(-1 * var(--radius-l)); }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
}
.num strong {
  display: block;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem);
  font-weight: 250;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
  white-space: nowrap;
}
.num-lead {
  grid-column: 1 / -1;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.num-lead strong {
  font-size: clamp(4.5rem, 2rem + 11vw, 12rem);
  font-weight: 200;
  letter-spacing: -0.05em;
}
.num.num-lead span { font-size: var(--fs-lede); max-width: 30ch; color: var(--text); }
.num span { display: block; margin-top: 10px; color: var(--text-muted); font-size: 0.9375rem; max-width: 22ch; }
@media (min-width: 900px) {
  .numbers-grid { grid-template-columns: repeat(4, 1fr); }
  .num-lead { display: flex; align-items: flex-end; gap: 48px; }
  .num.num-lead span { margin: 0 0 0.6em; max-width: 22ch; }
}

/* ==========================================================================
   Posts (home section, blog index, related)
   ========================================================================== */
.posts {
  background: var(--bg-alt);
  color: var(--text-ink);
  padding-block: var(--section-y);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
}
.posts .lede { color: var(--text-ink-muted); }
/* Let the contact panel overlap so its rounded corners sit on paper. */
.posts { padding-bottom: calc(var(--section-y) + var(--radius-l)); margin-bottom: calc(-1 * var(--radius-l)); }
.posts + .contact { position: relative; }
.text-link {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
}
.text-link:hover { color: var(--text-ink); }

.post-grid { display: grid; gap: 20px; }
.post-card {
  position: relative;
  display: grid;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line-ink);
  border-radius: var(--radius-m);
  overflow: hidden;
  color: var(--text-ink);
  transition: border-color 0.3s;
}
.post-card:hover { border-color: var(--accent-text); }
.post-card:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.post-cover { aspect-ratio: 5 / 3; overflow: hidden; background: #dde7cf; }
.post-cover svg { width: 100%; height: 100%; transition: transform 0.8s var(--ease); }
.post-card:hover .post-cover svg { transform: scale(1.04); }
.post-body { padding: clamp(18px, 2.2vw, 26px); display: grid; gap: 10px; }
.post-meta { font-size: var(--fs-small); color: var(--text-ink-muted); }
.post-title {
  font-size: var(--fs-h3);
  font-weight: 450;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0;
}
.post-title a { text-decoration: none; }
.post-title a:focus-visible { outline: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; }
.post-excerpt { color: var(--text-ink-muted); font-size: 1rem; max-width: 52ch; }

@media (min-width: 760px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card-feature { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .post-card-feature .post-cover { aspect-ratio: auto; min-height: 280px; }
  .post-card-feature .post-body { align-content: center; padding: clamp(24px, 3.4vw, 48px); }
  .post-card-feature .post-title { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.5rem); font-weight: 350; font-variation-settings: "wdth" 118; }
}
@media (min-width: 1100px) {
  .post-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; }
  .post-card-feature {
    grid-column: 1;
    grid-row: 1 / 3;
    grid-template-columns: 1fr;
    align-content: start;
  }
  .post-card-feature .post-cover { aspect-ratio: 16 / 9; min-height: 0; }
  .post-card-feature .post-body { align-content: start; }
  .post-grid-even { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .post-grid-even .post-card { grid-column: auto; }
}

/* ==========================================================================
   Sub-pages: blog index and article
   ========================================================================== */
.site-header.is-solid { background: var(--bg); border-bottom-color: var(--line); }
.blog-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 112px));
  padding-bottom: clamp(48px, 6vw, 80px);
}
.blog-hero .lede { margin-top: 20px; }
.related {
  background: var(--bg-alt);
  color: var(--text-ink);
  padding-block: clamp(56px, 8vw, 112px);
}
.blog-hero + .related { border-radius: var(--radius-l) var(--radius-l) 0 0; }
.related-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 300;
  font-variation-settings: "wdth" 120;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.article-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px));
  padding-bottom: clamp(40px, 6vw, 80px);
}
.article-hero-grid { display: grid; gap: 32px; align-items: end; }
.crumbs { font-size: var(--fs-small); margin-bottom: 20px; }
.crumbs a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-title {
  font-size: clamp(2.25rem, 1.2rem + 4vw, 4.5rem);
  font-weight: 300;
  font-variation-settings: "wdth" 122;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 16ch;
}
.article-meta { margin-top: 20px; color: var(--text-muted); font-size: 0.9375rem; }
.article-cover { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 5 / 3; border: 1px solid var(--line); }
.article-cover svg { width: 100%; height: 100%; }
@media (min-width: 900px) {
  .article-hero-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}

.article-body {
  background: var(--bg-alt);
  color: var(--text-ink);
  padding-block: clamp(48px, 7vw, 96px);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
}
.prose {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.75;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.75rem);
  font-weight: 450;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 2em;
}
.prose a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
.prose .summary {
  margin-top: 2.2em;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-m);
  background: var(--surface);
  border-left: 4px solid var(--green);
}
.prose .summary h2 { margin-top: 0; font-size: 1.125rem; }
.prose .summary p { margin-top: 0.5em; }
.article-cta {
  max-width: 68ch;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-m);
  background: var(--lime);
  display: grid;
  gap: 20px;
  justify-items: start;
}
.article-cta p { font-size: var(--fs-lede); line-height: 1.4; color: var(--ink); font-weight: 500; max-width: 36ch; }
.article + .related { padding-top: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--lime);
  color: var(--ink);
  padding-block: var(--section-y);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
}
.contact-grid { display: grid; gap: 48px; }
.contact-title { max-width: 14ch; margin-bottom: 24px; }
.contact-copy > p { max-width: 44ch; font-size: var(--fs-lede); color: #1f4a3c; }
.contact-direct { margin-top: 32px; display: grid; gap: 12px; justify-items: start; }
.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 20px 6px 6px;
  transition: background-color 0.25s;
}
.contact-direct a:hover { background: rgba(4, 36, 30, 0.08); }
.contact-direct small { display: block; font-size: 0.8125rem; font-weight: 500; color: #1f4a3c; line-height: 1.2; }
.contact-icon {
  width: 48px; height: 48px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-form {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-content: start;
  background: rgba(255, 255, 255, 0.45);
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-m);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(4, 36, 30, 0.25);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form-status { font-size: 0.9375rem; min-height: 1.4em; }
.form-status.is-error { color: #8a1c14; }
.contact-form .btn { justify-self: start; }
@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field-wide, .form-status, .contact-form .btn { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  padding-top: clamp(56px, 8vw, 96px);
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.footer-grid { display: grid; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.site-footer h3 { font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-base {
  margin-top: 56px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-small);
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .marquee { animation: none; flex-wrap: wrap; }
  .js [data-reveal-line], .js [data-reveal-load] { transform: none; opacity: 1; }
}
