/* =========================================================================
   Routen Media — Mobile DOOH Advertising
   Design system: monochrome, precision-minimal, technology-forward.
   Display: Manrope · Body: Inter · Utility/data: IBM Plex Mono
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --white: #ffffff;
  --ink: #0a0a0a;          /* primary text / near-black */
  --black: #000000;        /* key surfaces */
  --gray-900: #18181b;
  --gray-700: #3f3f46;
  --gray-600: #6e6e73;     /* secondary text */
  --gray-400: #9a9aa0;
  --surface: #f5f5f7;      /* light gray section */
  --surface-2: #fafafa;
  --border: #e6e6e9;       /* hairline */
  --border-strong: #d6d6da;
  --glow: rgba(120, 170, 255, 0.45); /* restrained screen glow, mockups only */

  /* Type */
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;

  /* Scale (fluid) */
  --fs-display: clamp(2.85rem, 6.4vw, 5.25rem);
  --fs-h1: clamp(2.25rem, 4.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Space */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Radius / motion */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 2px 8px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 12px 40px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 30px 80px rgba(10, 10, 10, 0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--ink); color: var(--white); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--black); color: var(--white); }
.section--surface { background: var(--surface); }
main { display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: inherit; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { color: var(--gray-600); }
.section--dark p { color: rgba(255, 255, 255, 0.66); }
strong { color: inherit; font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--border-strong);
}
.section--dark .eyebrow { color: rgba(255, 255, 255, 0.6); }
.section--dark .eyebrow::before { background: rgba(255, 255, 255, 0.3); }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--gray-700); max-width: 56ch; }
.section--dark .lead { color: rgba(255, 255, 255, 0.72); }

.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; font-size: var(--fs-lead); max-width: 58ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.55em;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: var(--r-pill);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--border-strong); }
.btn--ghost:hover { --bd: var(--ink); box-shadow: none; }
.btn--lg { padding: 1.05em 1.9em; font-size: 1rem; }
.btn--block { width: 100%; }
.section--dark .btn { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.section--dark .btn--ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,0.32); }
.section--dark .btn--ghost:hover { --bd: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.textlink:hover { border-color: var(--ink); gap: 0.75em; }
.section--dark .textlink { color: var(--white); }
.section--dark .textlink:hover { border-color: var(--white); }

/* ---------- Header: utility topbar ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,0.7); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 38px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.topbar__tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__contact { display: inline-flex; align-items: center; gap: 0.85rem; white-space: nowrap; }
.topbar__contact a { color: rgba(255,255,255,0.78); transition: color 0.2s var(--ease); }
.topbar__contact a:hover { color: #fff; }
.topbar__sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.32); }
@media (max-width: 720px) { .topbar { display: none; } }

/* ---------- Header: main bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(10,10,10,0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.5rem; }

/* Wordmark lockup */
.brand { display: inline-flex; align-items: center; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: inline-flex; align-items: baseline; gap: 0.5rem; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.04em; color: var(--ink); }
.brand__suffix {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gray-600);
  padding-left: 0.6rem; border-left: 1px solid var(--border-strong);
  position: relative; top: -1px;
}

.nav__links { display: flex; align-items: center; gap: 0.2rem; }
.nav__link {
  position: relative;
  font-size: var(--fs-sm); font-weight: 500; color: var(--gray-600);
  padding: 0.55rem 0.95rem;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.15rem; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: center;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 0.7rem; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav__toggle span { position: relative; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    box-shadow: var(--shadow-md);
  }
  body.nav-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 0.95rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__actions .btn--ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(4rem, 9vw, 8rem); }
.hero__inner { max-width: 940px; margin-inline: auto; }
.hero .eyebrow { justify-content: center; }
.hero__title { font-size: clamp(3rem, 8.5vw, 6.25rem); letter-spacing: -0.04em; line-height: 0.96; margin-top: 1.4rem; }
.hero__title .reveal-line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hero__title .reveal-line > span { display: block; transform: translateY(110%); animation: lineUp 0.9s var(--ease) forwards; }
.hero__title .reveal-line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .muted { color: var(--gray-400); }
@keyframes lineUp { to { transform: translateY(0); } }
.hero__sub { margin: 1.7rem auto 0; font-size: var(--fs-lead); color: var(--gray-700); max-width: 56ch; opacity: 0; animation: fadeUp 0.8s var(--ease) 0.4s forwards; }
.hero__cta { margin-top: 2.2rem; justify-content: center; opacity: 0; animation: fadeUp 0.8s var(--ease) 0.55s forwards; }
.hero__meta { margin-top: clamp(2.8rem, 6vw, 4rem); display: flex; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.8s var(--ease) 0.7s forwards; }
.hero__meta .stat { padding: 0.2rem clamp(1.25rem, 4vw, 2.75rem); border-left: 1px solid var(--border); }
/* Dark hero overrides */
.hero.section--dark .hero__title .muted { color: var(--white); }
.hero.section--dark .hero__meta .stat { border-color: rgba(255,255,255,0.16); }
.hero.section--dark .hero__meta .stat__num { color: var(--white); }
.hero.section--dark .hero__meta .stat__label { color: rgba(255,255,255,0.55); }
.hero__meta .stat:first-child { border-left: none; }
.hero__meta .stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em; color: var(--ink); }
.hero__meta .stat__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); margin-top: 0.35rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) {
  .hero__meta { flex-direction: column; gap: 1.4rem; }
  .hero__meta .stat { border-left: none; padding: 0; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card__icon { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 1.25rem; color: var(--ink); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.card:hover .card__icon { background: var(--ink); color: var(--white); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: var(--fs-sm); }
.section--surface .card { background: var(--white); }

.card--index { padding-top: clamp(2rem, 3vw, 2.5rem); }
.card__num { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; color: var(--gray-400); position: absolute; top: 1.4rem; right: 1.5rem; }

/* Feature list with hairline rows */
.feature-list { border-top: 1px solid var(--border); }
.feature-row { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.feature-row__k { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--gray-400); letter-spacing: 0.1em; padding-top: 0.3rem; }
.feature-row h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.feature-row p { font-size: var(--fs-sm); }
/* Quiet tick marker (non-sequential lists) */
.feature-list--ticks .feature-row__k { width: 22px; height: 1.5px; background: var(--ink); padding: 0; margin-top: 0.75rem; }

/* ---------- Network metric grid (home "The network") ---------- */
.netgrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.netgrid__cell { padding: clamp(1.75rem, 3vw, 2.4rem) clamp(1.5rem, 2.5vw, 2rem) 0; border-left: 1px solid var(--border); }
.netgrid__cell:first-child { border-left: none; padding-left: 0; }
.netgrid__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 4.2vw, 3.4rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.netgrid__num span { color: var(--gray-400); }
.netgrid__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-600); margin-top: 1.1rem; }
.netgrid__cell p { font-size: var(--fs-sm); margin-top: 0.6rem; max-width: 30ch; }
@media (max-width: 900px) {
  .netgrid { grid-template-columns: 1fr 1fr; }
  .netgrid__cell { padding-top: clamp(1.5rem, 4vw, 2rem); }
  .netgrid__cell:nth-child(odd) { border-left: none; padding-left: 0; }
  .netgrid__cell:nth-child(even) { border-left: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .netgrid { grid-template-columns: 1fr; }
  .netgrid__cell { border-left: none; padding-left: 0; }
  .netgrid__cell + .netgrid__cell { border-top: 1px solid var(--border); }
}

/* ---------- Steps (How it works) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--timeline { position: relative; --cols: 4; }
.steps--timeline::before { content: ""; position: absolute; top: 0; left: 0; width: calc(100% / var(--cols) * (var(--cols) - 1)); height: 1.5px; background: var(--ink); }
.steps--timeline .step { border-top: none; }
.step { position: relative; padding: 2rem 1.5rem 2rem 0; border-top: 1.5px solid var(--ink); }
.step + .step { padding-left: 1.5rem; }
.step__n { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink); font-weight: 500; }
.step h3 { font-size: 1.2rem; margin: 1.4rem 0 0.5rem; }
.step p { font-size: var(--fs-sm); }
.step__tick { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.section--dark .step { border-top-color: var(--white); }
.section--dark .step__tick { background: var(--white); }
.section--dark .step__n { color: var(--white); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } .step, .step + .step { padding: 1.6rem 1rem 1.6rem 0; } .steps--timeline::before { display: none; } .steps--timeline .step { border-top: 1.5px solid var(--ink); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Stat band ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.statband__cell { background: var(--white); padding: clamp(1.6rem, 3vw, 2.4rem); }
.section--dark .statband { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.14); }
.section--dark .statband__cell { background: var(--black); }
.statband__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; color: var(--ink); }
.section--dark .statband__num { color: var(--white); }
.statband__label { font-size: var(--fs-sm); color: var(--gray-600); margin-top: 0.4rem; }
.section--dark .statband__label { color: rgba(255,255,255,0.6); }
@media (max-width: 820px) { .statband { grid-template-columns: 1fr 1fr; } }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); vertical-align: top; }
.compare thead th { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); background: var(--surface); font-weight: 500; }
.compare thead th:last-child { color: var(--ink); background: var(--ink); color: var(--white); }
.compare td:first-child { font-weight: 600; color: var(--ink); width: 30%; }
.compare td:last-child { color: var(--ink); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare .mark { display: inline-flex; width: 18px; height: 18px; margin-right: 0.5rem; vertical-align: -3px; }
.compare-wrap { overflow-x: auto; }
@media (max-width: 620px) { .compare th, .compare td { padding: 0.85rem 0.8rem; } .compare td:first-child { width: 34%; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { margin: 1.2rem auto 2rem; max-width: 48ch; font-size: var(--fs-lead); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; gap: 2.5rem; } }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.field label .req { color: var(--gray-400); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(10,10,10,0.06); }
.form-note { font-size: var(--fs-xs); color: var(--gray-600); margin-top: 1rem; font-family: var(--font-mono); letter-spacing: 0.02em; }
.form-status { margin-top: 1rem; font-size: var(--fs-sm); padding: 0.85rem 1rem; border-radius: var(--r-sm); display: none; }
.form-status.is-ok { display: block; background: #f0f7f0; color: #1f6f3d; border: 1px solid #cfe7d4; }
.form-status.is-err { display: block; background: #fbf0f0; color: #9c2b2b; border: 1px solid #efd3d3; }

.contact-aside .contact-item { padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.contact-aside .contact-item:first-child { padding-top: 0; }
.contact-aside .contact-item .k { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-600); }
.contact-aside .contact-item .v { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-top: 0.4rem; }
.contact-aside .contact-item .v a:hover { border-bottom: 1px solid var(--ink); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: var(--fs-h1); margin-top: 1.1rem; max-width: 18ch; }
.page-hero .lead { margin-top: 1.4rem; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.2rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 0.8rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: 0.5rem; }

/* Two-col narrative */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--text-first { }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Pill list */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--gray-700); background: var(--white); }

/* Check list */
.checklist { display: grid; gap: 0.9rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; font-size: var(--fs-sm); color: var(--gray-700); }
.checklist .ck { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; flex: none; margin-top: 1px; }
.section--dark .checklist li { color: rgba(255,255,255,0.75); }
.section--dark .checklist .ck { background: var(--white); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__suffix { color: rgba(255,255,255,0.55); border-left-color: rgba(255,255,255,0.22); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: var(--fs-sm); margin-top: 1.1rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.72); font-size: var(--fs-sm); padding: 0.35rem 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: 0.04em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---------- Mockup SVG screen glow ---------- */
.screen-glow { filter: drop-shadow(0 0 14px var(--glow)); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--border); border: none; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 0.7rem 1rem; z-index: 200; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible { outline-color: var(--white); }
