/* =========================================================
   Ada — Climate Adaptation Intelligence System
   "Swiss Editorial" — hairline grid, mono index labels,
   oversized numerals, square geometry, monochrome + one ink-blue.
   ========================================================= */

:root {
  --paper:   #ffffff;
  --ink:     #15161b;
  --ink-2:   #494a51;
  --muted:   #6b6c73;
  --faint:   #a0a1a7;
  --line:    #e6e6e9;
  --line-2:  #f1f1f3;
  --wash:    #fafafb;
  --blue:    #1f3df0;
  --blue-deep: #1730c8;
  --ghost:   #f2f2f4;

  --maxw: 1320px;
  --gutter: clamp(22px, 5vw, 64px);

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.bt { border-top: 1px solid var(--line); }

.mono { font-family: var(--ff-mono); }
.label { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Editorial section header: index no. + category, then headline */
.shead { display: flex; align-items: baseline; gap: 16px; padding-top: 22px; margin-bottom: clamp(34px, 4.5vw, 56px); }
.shead__no { font-family: var(--ff-mono); font-size: 13px; color: var(--blue); letter-spacing: 0.04em; }
.shead__cat { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.shead__line { flex: 1; height: 1px; background: var(--line); align-self: center; }

.h2 { font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.045em; line-height: 0.98; max-width: 18ch; }
.h2 .em { color: var(--blue); }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); line-height: 1.5; max-width: 52ch; }
.dimlink { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.dimlink svg { width: 15px; height: 15px; }

/* ---------- Buttons (square, architectural) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px; font-family: var(--ff-sans);
  font-size: 16px; font-weight: 600; padding: 15px 28px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap; letter-spacing: -0.01em;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav:not(.is-stuck) { background: var(--blue); }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 14px; height: 14px; background: var(--blue); flex: none; }
.brand__name { font-family: var(--ff-display); font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.brand__name sup { font-family: var(--ff-mono); font-size: 9px; font-weight: 400; color: var(--muted); letter-spacing: 0.06em; vertical-align: super; margin-left: 5px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); transition: color .15s; white-space: nowrap; }
.nav__links a:hover { color: var(--blue); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; font-family: var(--ff-mono); font-size: 11.5px; border: 1px solid var(--line); }
.lang button { background: transparent; border: 0; cursor: pointer; padding: 8px 11px; color: var(--muted); font-family: inherit; font-size: inherit; transition: background .15s, color .15s; }
.lang button.is-active { background: var(--ink); color: #fff; }
.nav__cta { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); border-bottom: 1.5px solid var(--blue); padding-bottom: 3px; }
.nav__cta:hover { color: var(--blue); }
.nav__burger { display: none; }

/* Nav while over the blue hero (before it sticks) */
.nav:not(.is-stuck) .brand__mark { background: #fff; }
.nav:not(.is-stuck) .brand__name { color: #fff; }
.nav:not(.is-stuck) .brand__name sup { color: rgba(255,255,255,0.72); }
.nav:not(.is-stuck) .nav__links a { color: rgba(255,255,255,0.82); }
.nav:not(.is-stuck) .nav__links a:hover { color: #fff; }
.nav:not(.is-stuck) .nav__cta { color: #fff; border-bottom-color: #fff; }
.nav:not(.is-stuck) .lang { border-color: rgba(255,255,255,0.42); }
.nav:not(.is-stuck) .lang button { color: rgba(255,255,255,0.78); }
.nav:not(.is-stuck) .lang button.is-active { background: #fff; color: var(--blue); }
.nav:not(.is-stuck) .nav__burger { border-color: rgba(255,255,255,0.42); background: transparent; color: #fff; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); min-height: calc(100vh - 78px); min-height: calc(100dvh - 78px); display: flex; flex-direction: column; justify-content: center; }
.hero > .wrap { width: 100%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.6fr 1fr; } }
.hero__l { min-width: 0; padding: clamp(48px, 6vw, 86px) clamp(0px, 3vw, 56px) clamp(48px, 6vw, 78px) 0; }
@media (min-width: 1000px) { .hero__l { border-right: 1px solid var(--line); } }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); padding: 7px 13px; margin-bottom: clamp(22px, 3vw, 30px); white-space: nowrap; }
.hero__badge .dot { width: 7px; height: 7px; background: var(--blue); flex: none; }
.hero__kick { min-width: 0; font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: clamp(28px, 4vw, 44px); display: flex; gap: 12px; align-items: center; }
.hero__kick::before { content: ""; width: 28px; height: 1.5px; background: var(--blue); }
h1.hero__title { font-size: clamp(44px, 7vw, 88px); line-height: 0.94; letter-spacing: -0.05em; margin-bottom: 30px; font-weight: 600; }
.hero__sub { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-2); max-width: 36ch; line-height: 1.45; }
.hero__cta { display: flex; gap: 14px; align-items: center; margin-top: clamp(36px, 4.5vw, 52px); flex-wrap: wrap; }
.hero__note { margin-top: clamp(22px, 3vw, 30px); font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.hero__note strong { color: var(--ink); font-weight: 600; }
.hero__partners { margin-top: clamp(16px, 2.4vw, 26px); display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); flex-wrap: wrap; max-width: 46ch; }
.hero__partners > span { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.hero__logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__logo-link { display: inline-flex; align-items: center; color: inherit; }
.hero__logos img { display: block; width: auto; object-fit: contain; opacity: 0.9; }
.hero__logo-link--kit img { height: 30px; }
.hero__logo-link--uig img { height: 34px; }
.hero__r { min-width: 0; display: flex; flex-direction: column; padding: clamp(48px, 6vw, 86px) 0 clamp(40px, 5vw, 52px) clamp(0px, 3vw, 48px); }
@media (min-width: 1000px) {
  .hero__r { padding-bottom: clamp(48px, 6vw, 78px); }
  .hero__partners { margin-top: auto; }
}
.hero__rt { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.hrow { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.hrow b { font-family: var(--ff-display); font-weight: 500; font-size: 18px; letter-spacing: -0.025em; }
.hrow span { font-family: var(--ff-mono); font-size: 11.5px; color: var(--faint); }
.hero__idx { font-family: var(--ff-mono); font-size: clamp(48px, 5vw, 72px); color: var(--ghost); line-height: 1; margin-top: auto; letter-spacing: -0.05em; padding-top: 32px; }
@media (max-width: 420px) {
  .hero__l { padding-right: 0; }
  .hero__r { padding-left: 0; }
  .hero__kick { display: block; font-size: 11.5px; line-height: 1.45; letter-spacing: 0.12em; }
  .hero__kick::before { display: block; margin-bottom: 13px; }
  .hero__rt { font-size: 10.5px; line-height: 1.45; letter-spacing: 0.12em; }
  .hrow { display: grid; gap: 4px; justify-content: stretch; }
}
@media (max-width: 380px) { h1.hero__title { font-size: 40px; } }
@media (max-width: 340px) { h1.hero__title { font-size: 38px; } }

/* ---------- Product showcase ---------- */
.show { border-bottom: 1px solid var(--line); padding-top: clamp(64px, 8vw, 112px); }
.show__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 22px 0 30px; flex-wrap: wrap; }
.show__head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.035em; max-width: 20ch; }
.mock { border: 1px solid var(--line); border-top: 1px solid var(--ink); background: var(--paper); }
.mock__bar { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--wash); }
.mock__dots { display: flex; gap: 7px; }
.mock__dots i { width: 9px; height: 9px; border: 1px solid var(--line); }
.mock__url { min-width: 0; font-family: var(--ff-mono); font-size: 11px; color: var(--faint); }
.mock__tabs { margin-left: auto; display: flex; gap: 22px; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.mock__tabs span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mock__tabicon { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mock__body { display: grid; grid-template-columns: 232px 1fr 296px; min-height: 460px; }
@media (max-width: 1100px) { .mock__body { grid-template-columns: 200px 1fr 240px; } }
@media (max-width: 720px) { .mock__body { grid-template-columns: 1fr; } .mock__rail, .mock__chat { display: none; } }
@media (max-width: 520px) { .mock__tabs { display: none; } }

.mock__rail { border-right: 1px solid var(--line); padding: 24px 20px; }
.mock__railhead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 9px; }
.mock__railtitle { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0; }
.mock__railpct { font-family: var(--ff-mono); font-size: 10px; color: var(--blue); }
.mock__railbar { height: 4px; background: var(--line-2); position: relative; margin: 0 0 22px; }
.mock__railbar i { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--blue); }
.mstep { display: flex; gap: 13px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.mstep__no { font-family: var(--ff-mono); font-size: 11px; color: var(--faint); width: 18px; flex: none; }
.mstep__t { font-size: 13.5px; color: var(--muted); }
.mstep.is-done .mstep__no { color: var(--ink); }
.mstep.is-done .mstep__t { color: var(--ink-2); }
.mstep.is-active .mstep__no { color: var(--blue); }
.mstep.is-active .mstep__t { color: var(--ink); font-weight: 600; }
.mstep.is-active { box-shadow: inset 2px 0 0 var(--blue); padding-left: 12px; margin-left: -12px; }

.mock__main { padding: 28px 30px; min-width: 0; display: flex; flex-direction: column; }
.mock__mainhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock__chip { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--line); padding: 4px 9px; white-space: nowrap; }
.mock__crumb { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--blue); text-transform: uppercase; }
.mock__h { font-family: var(--ff-display); font-size: 24px; letter-spacing: -0.03em; margin: 12px 0 4px; }
.mock__desc { font-size: 13px; color: var(--muted); margin-bottom: 24px; max-width: 42ch; }
.mtbl { border-top: 1px solid var(--ink); }
.mthead { display: grid; grid-template-columns: 1fr 84px 52px; gap: 18px; padding: 11px 0 11px; border-bottom: 1px solid var(--line); font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.mthead span:last-child { text-align: right; }
.mtr { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mtr__t { font-size: 14px; font-weight: 600; }
.mtr__t small { display: block; font-family: var(--ff-mono); font-size: 10.5px; font-weight: 400; color: var(--muted); margin-top: 2px; letter-spacing: 0.02em; }
.mtr__bar { width: 84px; height: 6px; background: var(--line-2); position: relative; }
.mtr__bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.mtr__tag { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); width: 52px; text-align: right; }
.mtr.hi .mtr__bar i { background: var(--blue); }
.mtr.hi .mtr__tag { color: var(--blue); }
.mock__foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mock__saved { font-family: var(--ff-mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.03em; display: flex; align-items: center; gap: 8px; }
.mock__saved::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.mock__next { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-sans); font-size: 13px; font-weight: 600; padding: 10px 17px; background: var(--ink); color: #fff; border: 0; cursor: pointer; transition: background .18s; }
.mock__next:hover { background: var(--blue); }
.mock__next svg { width: 14px; height: 14px; transition: transform .2s; }
.mock__next:hover svg { transform: translateX(3px); }

.mock__chat { border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--wash); }
.chat__head { display: flex; align-items: center; gap: 11px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.chat__av { width: 26px; height: 26px; background: var(--blue); display: grid; place-items: center; flex: none; }
.chat__av i { width: 9px; height: 9px; background: #fff; }
.chat__name { font-family: var(--ff-display); font-size: 13.5px; font-weight: 600; }
.chat__status { font-family: var(--ff-mono); font-size: 9.5px; color: var(--blue); display: flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 0.06em; }
.chat__status::before { content: ""; width: 6px; height: 6px; background: var(--blue); }
.chat__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.chat__role { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.bubble { font-size: 12.5px; line-height: 1.5; }
.bubble--ada { color: var(--ink-2); }
.bubble--user { color: var(--ink); padding-left: 14px; border-left: 1.5px solid var(--ink); }
.bubble strong { color: var(--ink); font-weight: 700; }
.chat__cite { font-family: var(--ff-mono); font-size: 9px; color: var(--faint); margin-top: 9px; letter-spacing: 0.04em; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 14px; }
.chat__chip { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.03em; color: var(--ink-2); border: 1px solid var(--line); padding: 6px 10px; background: var(--paper); white-space: nowrap; cursor: default; transition: border-color .15s, color .15s; }
.chat__chip:hover { border-color: var(--blue); color: var(--blue); }
.chat__input { margin: 0 18px 18px; border: 1px solid var(--line); padding: 10px 10px 10px 14px; display: flex; align-items: center; gap: 10px; background: var(--paper); }
.chat__input span { font-family: var(--ff-mono); font-size: 11px; color: var(--faint); flex: 1; }
.chat__send { width: 28px; height: 28px; background: var(--ink); display: grid; place-items: center; flex: none; }
.chat__send svg { width: 13px; height: 13px; color: #fff; }

/* ---------- Editorial index list (problem / participation) ---------- */
.xlist { border-top: 1px solid var(--ink); }
.xrow { display: grid; grid-template-columns: 72px 1.1fr 1.6fr; gap: clamp(18px, 4vw, 56px); align-items: start; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); transition: background .2s; }
@media (max-width: 760px) { .xrow { grid-template-columns: 48px 1fr; } .xrow__d { grid-column: 2; } }
.xrow:hover { background: var(--wash); }
.xrow__no { font-family: var(--ff-mono); font-size: 14px; color: var(--blue); padding-top: 6px; }
.xrow__t { font-family: var(--ff-display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; line-height: 1.05; }
.xrow__d { font-size: 16px; color: var(--muted); line-height: 1.6; padding-top: 4px; }
.xrow__meta { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Process table (with ISO + progress) ---------- */
.ptbl { border-top: 1px solid var(--ink); }
.ptr { display: grid; grid-template-columns: 64px 1.2fr 1.7fr 120px; gap: clamp(16px, 3vw, 44px); align-items: baseline; padding: clamp(24px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line); transition: background .2s; }
@media (max-width: 860px) { .ptr { grid-template-columns: 48px 1fr; } .ptr__d, .ptr__iso { grid-column: 2; } .ptr__iso { justify-self: start; } }
.ptr:hover { background: var(--wash); }
.ptr__no { font-family: var(--ff-mono); font-size: 22px; color: var(--ghost); letter-spacing: -0.03em; transition: color .2s; }
.ptr:hover .ptr__no { color: var(--blue); }
.ptr__t { font-family: var(--ff-display); font-size: clamp(20px, 2.3vw, 27px); letter-spacing: -0.03em; }
.ptr__d { font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.ptr__iso { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); border: 1px solid var(--line); padding: 6px 10px; justify-self: end; align-self: center; white-space: nowrap; }

/* ---------- Feature split (companion) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } .split.rev .split__b { order: -1; } }
.flist { list-style: none; padding: 0; margin: 30px 0 0; }
.flist li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.flist li:last-child { border-bottom: 1px solid var(--line); }
.flist .n { font-family: var(--ff-mono); font-size: 12px; color: var(--blue); padding-top: 3px; }
.engage__intro { display: grid; gap: clamp(28px, 4vw, 64px); margin-top: 22px; align-items: start; }
.engage__intro .lead { margin: 0; }
.engage__intro .flist { margin: 0; max-width: none; }
@media (min-width: 960px) {
  .engage__intro { grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr); }
}

.framed { border: 1px solid var(--line); border-top: 1px solid var(--ink); background: var(--paper); }
.companion-shot { margin: 0; padding: 0; display: flex; justify-content: center; }
.companion-shot img { width: auto; max-width: 100%; max-height: 640px; display: block; border-radius: 18px; box-shadow: 0 24px 60px rgba(20, 22, 40, 0.14); }

/* ---------- Atlas catalog ---------- */
.cat { border-top: 1px solid var(--ink); }
.cat__hr { display: grid; grid-template-columns: 150px 1.1fr 2fr 150px; gap: 28px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.crow { display: grid; grid-template-columns: 150px 1.1fr 2fr 150px; gap: 28px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s; }
@media (max-width: 860px) { .cat__hr { display: none; } .crow { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; } }
.crow:hover { background: var(--wash); }
.crow:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.crow__loc { font-family: var(--ff-mono); font-size: 12px; color: var(--blue); letter-spacing: 0.04em; }
.crow__t { font-family: var(--ff-display); font-size: 20px; letter-spacing: -0.03em; }
.crow__d { font-size: 15px; color: var(--muted); line-height: 1.55; }
.crow__tags { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- ISO norms ---------- */
.iso { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 780px) { .iso { grid-template-columns: 1fr 1fr; } }
.isocard { position: relative; padding: 38px 0 38px; border-bottom: 1px solid var(--line); }
@media (min-width: 780px) {
  .isocard { padding: 46px clamp(28px, 4vw, 56px) 44px; }
  .isocard:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .isocard:nth-child(even) { padding-right: 0; }
  .isocard:nth-last-child(-n+2) { border-bottom: 0; }
}
.isocard__cat { display: inline-block; white-space: nowrap; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 9px; margin-bottom: 20px; }
.isocard__no { display: block; font-family: var(--ff-mono); font-size: 13px; color: var(--blue); letter-spacing: 0.04em; }
.isocard h3 { font-size: clamp(23px, 2.5vw, 31px); margin: 12px 0 14px; letter-spacing: -0.035em; }
.isocard p { font-size: 15.5px; color: var(--muted); line-height: 1.6; max-width: 42ch; }
.isocard__big { font-family: var(--ff-mono); font-size: clamp(54px, 6.2vw, 88px); color: var(--ghost); letter-spacing: -0.05em; line-height: 1; margin-top: 30px; display: block; }

/* ---------- Engagement & publications ---------- */
.flist strong { color: var(--ink); font-weight: 700; }
.pubs { border-top: 1px solid var(--ink); margin-top: clamp(44px, 5vw, 64px); }
.pubs__h { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding: 16px 0; border-bottom: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 188px 1fr 132px; gap: 28px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); color: inherit; transition: background .2s; }
.pub:hover { background: var(--wash); }
.pub--static:hover { background: transparent; }
.pub__venue { font-family: var(--ff-mono); font-size: 12px; color: var(--blue); letter-spacing: 0.04em; }
.pub__t { display: block; font-family: var(--ff-display); font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.025em; line-height: 1.18; }
.pub__meta { display: block; font-family: var(--ff-mono); font-size: 11px; color: var(--muted); margin-top: 9px; letter-spacing: 0.02em; }
.pub__link { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; align-self: center; }
.pub:hover .pub__link { color: var(--blue); }
.pub--static:hover .pub__link { color: var(--ink); }
.pub__link svg { width: 14px; height: 14px; transition: transform .2s; }
.pub:hover .pub__link svg { transform: translate(2px, -2px); }
@media (max-width: 820px) {
  .pub { grid-template-columns: 1fr; gap: 7px; padding: 24px 0; }
  .pub__link { justify-self: start; align-self: start; margin-top: 4px; }
}

/* ---------- KIT statement ---------- */
.kit { border-top: 1px solid var(--ink); }
.kit__grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .kit__grid { grid-template-columns: 1.3fr 1fr; } }
.kit__statement { font-family: var(--ff-display); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.035em; }
.kit__statement .em { color: var(--blue); }
.kit__body { font-size: 16.5px; color: var(--muted); line-height: 1.65; margin-top: 26px; max-width: 46ch; }
.kit__stats { border-top: 1px solid var(--line); }
.kit__stat { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.kit__stat b { font-family: var(--ff-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.kit__stat span { font-size: 14px; color: var(--muted); text-align: right; }
@media (max-width: 420px) {
  .kit__stat { display: grid; gap: 6px; }
  .kit__stat span { text-align: left; }
}

/* ---------- Form ---------- */
.signup__grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 72px); }
@media (min-width: 920px) { .signup__grid { grid-template-columns: 0.85fr 1.15fr; } }
.signup__aside .lead { margin-top: 20px; }
.signup__points { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.signup__points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-2); padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.signup__points .n { font-family: var(--ff-mono); font-size: 12px; color: var(--blue); }

.form { border: 1px solid var(--line); border-top: 1px solid var(--ink); padding: clamp(28px, 3.5vw, 44px); }
.form__row { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.form__row.two .field:first-child { padding-right: 24px; border-right: 1px solid var(--line); }
.form__row.two .field:last-child { padding-left: 24px; }
@media (max-width: 559px) { .form__row.two .field:first-child { padding-right: 0; border-right: 0; } .form__row.two .field:last-child { padding-left: 0; } }
.field label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field label .opt { color: var(--faint); }
.field input, .field textarea { font-family: var(--ff-sans); font-size: 16px; color: var(--ink); background: transparent; border: 0; padding: 4px 0; width: 100%; }
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus { outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field.focus { box-shadow: inset 2px 0 0 var(--blue); padding-left: 12px; }
.field.is-invalid { box-shadow: inset 2px 0 0 #d23a2a; padding-left: 12px; }

.interest { padding: 24px 0 8px; }
.interest.is-invalid { box-shadow: inset 2px 0 0 #d23a2a; padding-left: 12px; }
.interest__label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.checks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.check { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 15px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .15s; }
.check:hover { box-shadow: inset 2px 0 0 var(--line); padding-left: 12px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check__box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .12s; }
.check input:checked ~ .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked ~ .check__box svg { opacity: 1; }
.check:has(input:checked) { box-shadow: inset 2px 0 0 var(--blue); padding-left: 12px; }
.check__t { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.check__d { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); margin-left: auto; letter-spacing: 0.02em; }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.form__note { font-size: 12px; color: var(--muted); max-width: 36ch; line-height: 1.5; }
.form__note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.form__status { width: 100%; margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form__status.is-error { color: #d23a2a; }
.form__status.is-pending { color: var(--blue); }
.form__success { display: none; padding: 16px 0; }
.form__success.show { display: block; }
.form__success .label { color: var(--blue); }
.form__success h3 { font-size: 28px; margin: 16px 0 12px; letter-spacing: -0.035em; }
.form__success p { color: var(--muted); font-size: 16px; max-width: 40ch; }
.form.is-sent .form__inner { display: none; }
.form .btn:disabled { cursor: wait; opacity: 0.72; }

/* ---------- Legal pages ---------- */
.legal-hero { min-height: auto; padding-block: clamp(76px, 10vw, 128px); border-bottom: 0; }
.legal-hero .hero__title { max-width: 11ch; }
.legal-hero .hero__sub { max-width: 52ch; }
.legal { padding-block: clamp(56px, 7vw, 96px); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); }
@media (min-width: 920px) { .legal__grid { grid-template-columns: 260px 1fr; align-items: start; } }
.legal__toc { border-top: 1px solid var(--ink); position: sticky; top: 110px; }
.legal__toc a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legal__toc a:hover { color: var(--blue); }
.legal__body { min-width: 0; border-top: 1px solid var(--ink); }
.legal__section { padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.legal__section h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 18px; }
.legal__section h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; margin: 26px 0 10px; }
.legal__section p, .legal__section li { color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 78ch; }
.legal__section p + p { margin-top: 12px; }
.legal__section ul { margin: 14px 0 0; padding-left: 20px; }
.legal__meta { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); margin-top: 20px; }
.legal__source { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal__address { font-style: normal; color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 919px) {
  .legal__toc { position: static; top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .legal__toc a { padding: 12px 0; line-height: 1.35; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .legal-hero { padding-block: 64px; }
  .legal { padding-block: 44px; }
  .legal__grid { gap: 30px; }
  .legal__section h2 { font-size: 23px; }
  .legal__section p, .legal__section li { font-size: 15.5px; line-height: 1.65; }
}

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--ff-display); font-size: clamp(18px, 2vw, 23px); font-weight: 500; color: var(--ink); padding: 30px 56px 30px 0; position: relative; letter-spacing: -0.025em; display: flex; gap: 22px; align-items: baseline; }
.faq__q .qn { font-family: var(--ff-mono); font-size: 13px; color: var(--blue); flex: none; }
.faq__icn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); transition: transform .28s, color .2s; }
.faq__item.open .faq__icn { transform: translateY(-50%) rotate(45deg); color: var(--blue); }
.faq__a { overflow: hidden; height: 0; transition: height .3s ease; }
.faq__a-inner { padding: 0 56px 32px 56px; font-size: 16px; color: var(--muted); line-height: 1.65; max-width: 70ch; }

/* ---------- Final CTA ---------- */
.finalcta { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.finalcta__grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: end; }
@media (min-width: 820px) { .finalcta__grid { grid-template-columns: 1.5fr 1fr; } }
.finalcta h2 { font-size: clamp(38px, 6vw, 84px); letter-spacing: -0.05em; line-height: 0.94; }
.finalcta .em { color: var(--blue); }
.finalcta__r { display: flex; flex-direction: column; gap: 22px; }
.finalcta__r .lead { margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9cace; padding-block: clamp(56px, 7vw, 88px) 36px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer .brand__mark { background: var(--blue); }
.footer .brand__name { color: #fff; }
.footer__about { font-size: 14.5px; color: #8d8f96; line-height: 1.65; margin-top: 20px; max-width: 38ch; }
.footer__col h4 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #76787f; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; font-size: 14.5px; color: #c9cace; margin-bottom: 12px; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: clamp(44px, 5vw, 64px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; color: #76787f; }
.footer__bar .ff-mono { font-family: var(--ff-mono); }
.footer__big { font-family: var(--ff-display); font-size: clamp(70px, 16vw, 230px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; color: rgba(255,255,255,0.05); margin-top: 56px; user-select: none; }

/* ---------- Reveal ---------- */
.reveal.armed { opacity: 0; transform: translateY(16px); }
.reveal.armed.in { opacity: 1; transform: none; transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.armed.d1.in { transition-delay: .07s; }
.reveal.armed.d2.in { transition-delay: .14s; }
.reveal.armed.d3.in { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .reveal.armed { opacity: 1; transform: none; } .reveal.armed.in { transition: none; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
  .nav__burger svg { width: 19px; height: 19px; }
  .mobile-menu { position: fixed; inset: 78px 0 auto 0; z-index: 49; background: var(--paper); border-bottom: 1px solid var(--ink); padding: 16px var(--gutter) 26px; display: none; flex-direction: column; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-family: var(--ff-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 15px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 18px; justify-content: center; }
}
@media (min-width: 1041px) { .mobile-menu { display: none !important; } }

/* =========================================================
   Alternating blue sections — full brand-blue background with
   inverted text/accents/borders for legibility.
   ========================================================= */
.section--blue { background: var(--blue); color: #fff; border-top: 0 !important; }

/* section header + headline + lead */
.section--blue .shead__no { color: #fff; }
.section--blue .shead__cat { color: rgba(255,255,255,0.72); }
.section--blue .shead__line { background: rgba(255,255,255,0.28); }
.section--blue .h2 { color: #fff; }
.section--blue .h2 .em { color: #fff; }
.section--blue .lead { color: rgba(255,255,255,0.82); }

/* editorial index list (problem / participation) */
.section--blue .xlist { border-top-color: rgba(255,255,255,0.45); }
.section--blue .xrow { border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .xrow:hover { background: rgba(255,255,255,0.07); }
.section--blue .xrow__no { color: #fff; }
.section--blue .xrow__t { color: #fff; }
.section--blue .xrow__d { color: rgba(255,255,255,0.80); }
.section--blue .xrow__meta { color: rgba(255,255,255,0.62); }

/* process table */
.section--blue .ptbl { border-top-color: rgba(255,255,255,0.45); }
.section--blue .ptr { border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .ptr:hover { background: rgba(255,255,255,0.07); }
.section--blue .ptr__no { color: rgba(255,255,255,0.38); }
.section--blue .ptr:hover .ptr__no { color: #fff; }
.section--blue .ptr__t { color: #fff; }
.section--blue .ptr__d { color: rgba(255,255,255,0.80); }
.section--blue .ptr__iso { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.32); }

/* feature split / flist */
.section--blue .flist li { color: rgba(255,255,255,0.82); border-top-color: rgba(255,255,255,0.18); }
.section--blue .flist li:last-child { border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .flist .n { color: #fff; }
.section--blue .flist strong { color: #fff; }

/* atlas catalog */
.section--blue .cat { border-top-color: rgba(255,255,255,0.45); }
.section--blue .cat__hr { color: rgba(255,255,255,0.62); border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .crow { border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .crow:hover { background: rgba(255,255,255,0.07); }
.section--blue .crow__loc { color: #fff; }
.section--blue .crow__t { color: #fff; }
.section--blue .crow__d { color: rgba(255,255,255,0.80); }
.section--blue .crow__tags { color: rgba(255,255,255,0.72); }

/* publications */
.section--blue .pubs { border-top-color: rgba(255,255,255,0.45); }
.section--blue .pubs__h { color: rgba(255,255,255,0.62); border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .pub { border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .pub:hover { background: rgba(255,255,255,0.07); }
.section--blue .pub--static:hover { background: transparent; }
.section--blue .pub__venue { color: #fff; }
.section--blue .pub__t { color: #fff; }
.section--blue .pub__meta { color: rgba(255,255,255,0.72); }
.section--blue .pub__link, .section--blue .pub:hover .pub__link { color: #fff; }
.section--blue .pub--static:hover .pub__link { color: #fff; }

/* iso cards (robustness if reassigned) */
.section--blue .iso { border-top-color: rgba(255,255,255,0.45); }
.section--blue .isocard { border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .isocard__cat { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); }
.section--blue .isocard__no { color: #fff; }
.section--blue .isocard h3 { color: #fff; }
.section--blue .isocard p { color: rgba(255,255,255,0.8); }
.section--blue .isocard__big { color: rgba(255,255,255,0.14); }
@media (min-width: 780px) {
  .section--blue .isocard:nth-child(odd) { border-right-color: rgba(255,255,255,0.18); }
}

/* kit statement (robustness if reassigned) */
.section--blue .kit__statement, .section--blue .kit__statement .em { color: #fff; }
.section--blue .kit__body { color: rgba(255,255,255,0.8); }
.section--blue .kit__stats { border-top-color: rgba(255,255,255,0.3); }
.section--blue .kit__stat { border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .kit__stat span { color: rgba(255,255,255,0.7); }

/* buttons on blue */
.section--blue .btn { background: #fff; color: var(--blue); border-color: #fff; }
.section--blue .btn:hover { background: transparent; color: #fff; border-color: #fff; }
.section--blue .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.section--blue .btn--ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* ---- Hero on blue (flat, fully inverted) ---- */
.hero.section--blue { border-bottom: 0; }
.section--blue .hero__l { border-right-color: rgba(255,255,255,0.18); }
.section--blue .hero__kick { color: #fff; }
.section--blue .hero__kick::before { background: #fff; }
.section--blue .hero__sub { color: rgba(255,255,255,0.86); }
.section--blue .hero__note { color: rgba(255,255,255,0.80); }
.section--blue .hero__note strong { color: #fff; }
.section--blue .hero__partners > span { color: rgba(255,255,255,0.72); }
.section--blue .hero__rt { color: rgba(255,255,255,0.62); }
.section--blue .hrow { border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .hrow span { color: rgba(255,255,255,0.62); }

/* ---- Signup on blue (white form card sits on the blue) ---- */
.section--blue .signup__points { border-top-color: rgba(255,255,255,0.45); }
.section--blue .signup__points li { color: rgba(255,255,255,0.86); border-bottom-color: rgba(255,255,255,0.18); }
.section--blue .signup__points .n { color: #fff; }
.section--blue .form { background: #fff; border-color: #fff; box-shadow: 0 30px 70px rgba(11, 18, 60, 0.22); color: var(--ink); }
/* keep the form's internals on their normal (dark-on-white) treatment */
.section--blue .form .btn { background: var(--blue); color: #fff; border-color: var(--blue); }
.section--blue .form .btn:hover { background: var(--ink); border-color: var(--ink); }
