/* ==========================================================================
   TopgenLEAD — design system
   Palette, type and rhythm are locked to BRIEF.md §1. Only the six brand
   colours below are used anywhere in this file.
   ========================================================================== */

:root {
  /* Brand palette — the only colours in the system */
  --lime: #D7FF16;
  --blue: #1515FF;
  --black: #000000;
  --near-black: #0A0A0A;
  --white: #FFFFFF;
  --soft: #F7F7F2;

  --font-head: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec-y: clamp(64px, 9vw, 128px);
  --nav-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Default (light) theme tokens. Section themes below override them, and
     anything outside a themed section — the nav — inherits these. */
  --bg: var(--white);
  --fg: var(--black);
  --muted: #4A4A4A;
  --line: rgba(0,0,0,.13);
  --accent: var(--blue);
  --focus: var(--blue);
  --btn-p-bg: var(--lime);
  --btn-p-fg: var(--black);
  --btn-p-bd: var(--lime);
  --btn-s-fg: var(--black);
  --btn-s-bd: rgba(0,0,0,.26);
  --card-bg: var(--soft);
  --card-line: rgba(0,0,0,.10);
  --logo-disc: var(--blue);
  --logo-peak: var(--white);
}

/* --------------------------------------------------------------------- *
   Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

/* Note: keep overflow off <body>. Setting overflow-x there turns <body> into
   the scroll container, which breaks position: sticky, window.scrollTo and
   IntersectionObserver. Full-bleed elements clip themselves instead. */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--black);
  color: var(--lime);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

.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;
}

/* --------------------------------------------------------------------- *
   Layout & section themes
   --------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec {
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--sec-y);
  position: relative;
}
.sec--tight { padding-block: clamp(44px, 6vw, 80px); }
.sec--flush { padding-block: 0; }

.sec--white {
  --bg: var(--white); --fg: var(--black); --muted: #4A4A4A; --line: rgba(0,0,0,.13);
  --accent: var(--blue); --focus: var(--blue);
  --btn-p-bg: var(--lime); --btn-p-fg: var(--black); --btn-p-bd: var(--lime);
  --btn-s-fg: var(--black); --btn-s-bd: rgba(0,0,0,.26);
  --card-bg: var(--soft); --card-line: rgba(0,0,0,.10);
  --logo-disc: var(--blue); --logo-peak: var(--white);
}
.sec--soft {
  --bg: var(--soft); --fg: var(--black); --muted: #4A4A4A; --line: rgba(0,0,0,.13);
  --accent: var(--blue); --focus: var(--blue);
  --btn-p-bg: var(--lime); --btn-p-fg: var(--black); --btn-p-bd: var(--lime);
  --btn-s-fg: var(--black); --btn-s-bd: rgba(0,0,0,.26);
  --card-bg: var(--white); --card-line: rgba(0,0,0,.10);
  --logo-disc: var(--blue); --logo-peak: var(--soft);
}
.sec--lime {
  --bg: var(--lime); --fg: var(--black); --muted: rgba(0,0,0,.72); --line: rgba(0,0,0,.20);
  --accent: var(--blue); --focus: var(--black);
  --btn-p-bg: var(--black); --btn-p-fg: var(--lime); --btn-p-bd: var(--black);
  --btn-s-fg: var(--black); --btn-s-bd: rgba(0,0,0,.42);
  --card-bg: rgba(255,255,255,.55); --card-line: rgba(0,0,0,.18);
  --logo-disc: var(--blue); --logo-peak: var(--lime);
}
.sec--black {
  --bg: var(--near-black); --fg: var(--white); --muted: rgba(255,255,255,.72); --line: rgba(255,255,255,.18);
  --accent: var(--lime); --focus: var(--lime);
  --btn-p-bg: var(--lime); --btn-p-fg: var(--black); --btn-p-bd: var(--lime);
  --btn-s-fg: var(--white); --btn-s-bd: rgba(255,255,255,.38);
  --card-bg: rgba(255,255,255,.05); --card-line: rgba(255,255,255,.16);
  --logo-disc: var(--blue); --logo-peak: var(--lime);
}
.sec--pure-black { --bg: var(--black); }
.sec--blue {
  --bg: var(--blue); --fg: var(--white); --muted: rgba(255,255,255,.82); --line: rgba(255,255,255,.26);
  --accent: var(--lime); --focus: var(--lime);
  --btn-p-bg: var(--lime); --btn-p-fg: var(--black); --btn-p-bd: var(--lime);
  --btn-s-fg: var(--white); --btn-s-bd: rgba(255,255,255,.5);
  --card-bg: rgba(255,255,255,.08); --card-line: rgba(255,255,255,.26);
  --logo-disc: var(--lime); --logo-peak: var(--blue);
}

/* --------------------------------------------------------------------- *
   Type scale
   --------------------------------------------------------------------- */
.h-3xl { font-size: clamp(2.6rem, 7.2vw, 5.25rem); }
.h-2xl { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h-xl  { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.h-lg  { font-size: clamp(1.4rem, 2.5vw, 1.95rem); }
.h-md  { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.02em; }

.lede {
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}
.body-max { max-width: 65ch; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.rule { height: 1px; background: var(--line); border: 0; margin-block: clamp(36px, 5vw, 64px); }

/* --------------------------------------------------------------------- *
   Logo
   --------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.logo__word {
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.logo__mark { width: .92em; height: .92em; margin-inline: .015em -.02em; flex: none; }
.logo__lead { font-weight: 700; letter-spacing: -0.03em; }
.logo__tag {
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .26em;
  color: currentColor;
  opacity: .72;
  padding-left: .12em;
}
.logo--nav .logo__word { font-size: clamp(1.25rem, 2.6vw, 1.55rem); }
.logo--foot .logo__word { font-size: 1.75rem; }
.logo--foot .logo__tag { font-size: .55rem; }

/* Homepage hero rotation — "Topgen" + the mark never move (BRIEF.md §2.2) */
.logoAnim { display: block; line-height: 1; margin-bottom: clamp(20px, 3vw, 30px); }
.logoAnim__static,
.logoAnim__rotator {
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.9rem, 9vw, 6rem);
  letter-spacing: -0.05em;
  color: var(--black);
}
.logoAnim__mark { width: .9em; height: .9em; margin-inline: .015em -.02em; flex: none; }
.logoAnim__rotator { position: relative; display: inline-flex; }
.logoAnim__sizer { visibility: hidden; pointer-events: none; }
.logoAnim__word {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(0.42em);
  white-space: nowrap;
}
.logoAnim__word.is-active { opacity: 1; transform: translateY(0); }
.logoAnim__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(.68rem, 1.1vw, .82rem);
  letter-spacing: .34em;
  color: rgba(0,0,0,.82);
  margin-top: .85rem;
}
/* JS drives the 0.5s vertical slide + fade */
.js .logoAnim__word { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .logoAnim__word.is-out { opacity: 0; transform: translateY(-0.42em); }

/* --------------------------------------------------------------------- *
   Buttons, chips
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .92em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .975rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary { background: var(--btn-p-bg); color: var(--btn-p-fg); border-color: var(--btn-p-bd); }
.btn--secondary { background: transparent; color: var(--btn-s-fg); border-color: var(--btn-s-bd); }
.btn:hover { transform: translateY(-2px); }
.btn--secondary:hover { border-color: currentColor; }
.btn .ico-arrow { width: 1.05em; height: 1.05em; transition: transform .18s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 3vw, 34px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.chip--num { color: var(--muted); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .38em .7em;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.tag--live { background: var(--lime); color: var(--black); border-color: transparent; }
.tag--blue { background: var(--blue); color: var(--white); border-color: transparent; }

/* --------------------------------------------------------------------- *
   Nav
   --------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: var(--nav-h);
}
/* On desktop the wrapper is transparent to layout; on mobile it becomes the
   single drop-down panel so the links and the CTA can never overlap. */
.nav__menu { display: contents; }
.nav__links { margin-left: auto; }
.nav__links ul { display: flex; gap: clamp(18px, 2.4vw, 32px); list-style: none; padding: 0; margin: 0; }
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: .975rem;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__phone {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone:hover { text-decoration: underline; }
.nav__actions .btn { padding: .7em 1.2em; font-size: .9rem; }

.nav__toggle {
  display: none;
  order: 3;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  margin: 3px auto;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 26px;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__menu.is-open { display: block; }
  .nav__links { margin-left: 0; }
  .nav__links ul { flex-direction: column; gap: 0; }
  .nav__links li { border-top: 1px solid var(--line); }
  .nav__links a { display: block; padding: 14px 0; font-size: 1.1rem; }
  .nav__links a::after { display: none; }
  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 20px;
  }
  .nav__actions .btn { justify-content: center; padding: .9em 1.2em; font-size: 1rem; }
  .nav__phone { text-align: center; font-size: .95rem; }
}

/* --------------------------------------------------------------------- *
   Hero
   --------------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 104px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__grid--text { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 62rem; }
.hero h1 { margin-bottom: clamp(16px, 2vw, 22px); }
.hero .lede { margin-bottom: 4px; }
.hero .chips { margin-top: clamp(26px, 3.4vw, 38px); }

.art img { width: 100%; height: auto; }
.art--pad { padding: clamp(4px, 1.5vw, 18px); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid .art { max-width: 460px; margin-inline: auto; }
}

/* --------------------------------------------------------------------- *
   Marquee
   --------------------------------------------------------------------- */
.marquee {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid rgba(255,255,255,.14);
}
.marquee__track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee__list {
  display: flex;
  list-style: none;
  padding: 0 0 0 28px;
  margin: 0;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__list li { display: flex; align-items: center; gap: 28px; }
.marquee__list li::after { content: ''; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------- *
   Generic grids & cards
   --------------------------------------------------------------------- */
.sec__head { max-width: 62rem; margin-bottom: clamp(36px, 5vw, 60px); }
.sec__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  max-width: none;
}
@media (max-width: 780px) { .sec__head--split { grid-template-columns: minmax(0, 1fr); } }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.card--link { text-decoration: none; }
.card--link:hover { transform: translateY(-3px); border-color: var(--accent); }
.card__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
}
.card h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.card p { color: var(--muted); font-size: .975rem; }
.card__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  font-size: .925rem;
  color: var(--accent);
}
.card__foot .ico-arrow { width: 1.05em; height: 1.05em; }

/* Two big buckets (home positioning) */
.buckets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
@media (max-width: 780px) { .buckets { grid-template-columns: minmax(0, 1fr); } }
.bucket { border-top: 3px solid var(--accent); padding-top: 22px; }
.bucket__no { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em; color: var(--accent); }
.bucket h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin-block: 10px 6px; }
.bucket__quote { font-family: var(--font-mono); font-size: .9rem; color: var(--muted); margin-bottom: 12px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat__n {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--accent);
}
.stat__l { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* Check lists */
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; }
.list-check .ico-check { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--accent); }
.list-check--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(20px, 3vw, 44px); }
@media (max-width: 680px) { .list-check--2 { grid-template-columns: minmax(0, 1fr); } }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { border-top: 1px solid var(--line); padding-top: 18px; }
.step__n { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; color: var(--accent); }
.step h3 { font-size: 1.15rem; margin-block: 8px 6px; }
.step p { color: var(--muted); font-size: .925rem; }

/* Products */
.product { position: relative; }
.product__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.product__cat { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: start; }
@media (max-width: 940px) { .tiers { grid-template-columns: minmax(0, 1fr); max-width: 32rem; margin-inline: auto; } }
.tier { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--radius); padding: clamp(24px, 2.8vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.tier--popular { background: var(--lime); border-color: transparent; color: var(--black); }
.tier--popular .tier__kicker, .tier--popular .list-check li { color: var(--black); }
.tier--popular .list-check .ico-check { color: var(--blue); }
.tier--popular .btn { background: var(--black); color: var(--lime); border-color: var(--black); }
.tier__flag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.tier__price { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.3rem, 4.4vw, 3.1rem); letter-spacing: -0.045em; line-height: 1; }
.tier__unit { font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.tier--popular .tier__unit { color: rgba(0,0,0,.66); }
.tier__kicker { color: var(--muted); font-size: .975rem; }
.tier .btn { justify-content: center; margin-top: auto; }
.note {
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--muted);
}

/* Work / portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .6em 1.05em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.filter:hover { border-color: currentColor; }
.filter[aria-pressed="true"] { background: var(--black); color: var(--lime); border-color: var(--black); }

.sec--flush-top { padding-top: clamp(8px, 1vw, 16px); }
.rows { display: grid; gap: 0; }
.row { border-top: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.row:last-child { border-bottom: 1px solid var(--line); }
/* Alternating dark rows: full-bleed, with their own token set so the meta
   colour and hairlines stay readable. */
.row--dark {
  --bg: var(--near-black);
  --fg: var(--white);
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.18);
  --accent: var(--lime);
  border-top-color: transparent;
}
.row--dark + .row:not(.row--dark) { border-top-color: transparent; }
.row__inner {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, 1fr) auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: baseline;
  padding-block: clamp(22px, 3vw, 34px);
}
@media (max-width: 780px) { .row__inner { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.row__title { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.row__desc { color: var(--muted); }
.row__meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.row.is-hidden { display: none; }

/* Metric / approach band */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
@media (max-width: 860px) { .metrics { grid-template-columns: minmax(0, 1fr); } }
.metric { border-top: 3px solid var(--fg); padding-top: 18px; }
.metric h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: 8px; }
.metric p { color: var(--muted); font-size: .975rem; }

/* Split feature block */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split--reverse .art { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .art, .split--reverse .art { order: 0; max-width: 460px; margin-inline: auto; }
}

/* CTA band */
.sec--cta .cta { max-width: 52rem; }
.cta__body { margin-top: 14px; }

/* --------------------------------------------------------------------- *
   Contact form
   --------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.contact-list { list-style: none; padding: 0; margin: clamp(24px, 3vw, 34px) 0 0; display: grid; gap: 18px; }
.contact-list dt, .contact-list__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-list a, .contact-list address {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: -0.03em;
  font-style: normal;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

.form {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.14);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field--half { grid-column: span 1; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4A4A4A;
}
.field .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85em 1em;
  border: 1.5px solid rgba(0,0,0,.18);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  transition: border-color .16s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.6em; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--blue); background: #F4F4FF; }
.field .err { font-size: .82rem; color: var(--blue); font-weight: 600; min-height: 0; }
.field .err:empty { display: none; }
.form .btn { justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .95rem;
  font-weight: 600;
  display: none;
}
.form__status.is-ok { display: block; background: var(--lime); color: var(--black); }
.form__status.is-err { display: block; background: var(--blue); color: var(--white); }
.form__note { font-family: var(--font-mono); font-size: .76rem; line-height: 1.7; color: #4A4A4A; }

/* --------------------------------------------------------------------- *
   Footer
   --------------------------------------------------------------------- */
.foot {
  background: var(--black);
  color: var(--white);
  --muted: rgba(255,255,255,.66);
  --line: rgba(255,255,255,.16);
  --accent: var(--lime);
  --focus: var(--lime);
  --logo-disc: var(--blue);
  --logo-peak: var(--lime);
  padding-block: clamp(52px, 7vw, 88px) 28px;
}
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
@media (max-width: 860px) { .foot__top { grid-template-columns: minmax(0, 1fr); } }
.foot__tagline { color: var(--muted); font-size: .95rem; margin-top: 20px; max-width: 42ch; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 620px) { .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot__h {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
  letter-spacing: .18em;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot__col a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.foot__col a:hover { color: var(--white); text-decoration: underline; }
.foot__col address { font-style: normal; font-size: .95rem; color: var(--muted); line-height: 1.6; }
.foot__cta { display: inline-flex; align-items: center; gap: .4em; color: var(--lime) !important; font-weight: 700; }
.foot__cta .ico-arrow { width: 1em; height: 1em; }

/* Trust row: MBE + SBE under CERT, TGB on its own */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(22px, 4vw, 52px);
  padding-block: clamp(26px, 3.5vw, 36px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__group { display: grid; gap: 12px; }
.trust__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .6em;
}
.trust__cert {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--black);
  background: var(--lime);
  padding: .18em .6em;
  border-radius: 6px;
}
.trust__badges { display: flex; align-items: center; gap: 18px; }
.badge { display: inline-flex; align-items: center; gap: 10px; }
.badge__img {
  width: 56px; height: 56px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
}
.badge__code { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.trust__meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
}
@media (max-width: 720px) { .trust__meta { margin-left: 0; text-align: left; width: 100%; } }

.foot__legal { padding-top: 24px; }
.foot__legal p { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }

/* --------------------------------------------------------------------- *
   Scroll reveal — content is visible at rest; JS opts in to the animation
   --------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease) var(--reveal-delay, 0ms), transform .6s var(--ease) var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* --------------------------------------------------------------------- *
   Illustration slot fallback (used only until the generated WebP files are
   in place — see scripts/fetch-illustrations.mjs)
   --------------------------------------------------------------------- */
.art--panel {
  --panel-bg: var(--card-bg);
  --panel-line: var(--card-line);
  --panel-ink: var(--fg);
  --panel-accent: var(--accent);
}
.sec--lime .art--panel { --panel-bg: rgba(255,255,255,.5); }
.art--panel svg { width: 100%; height: auto; border-radius: var(--radius); }

/* Contact page definition list */
.contact-list dd { margin: 0; }

/* Hairline between a dark closing section and the footer so they don't merge. */
.sec--black + .foot,
.sec--blue + .foot { border-top: 1px solid rgba(255,255,255,.14); }
