/* ============================================================================
   Tokuva design system
   Tokens taken from the brand work: the mark's beam blue and navy ink, the
   Sora wordmark, and the neutral ramp that surrounds them. Nothing here is
   invented; every colour traces back to the logo canvas.
   ========================================================================= */

:root {
  /* -- brand ------------------------------------------------------------- */
  --brand-blue: #1B84FF;
  --brand-navy: #071437;
  --brand-green: #17C653;

  /* -- light palette ------------------------------------------------------ */
  --ground: #FFFFFF;
  --surface: #F7F8FB;
  --surface-2: #EDF1F8;
  --surface-3: #E3E9F4;

  --ink: #071437;
  --ink-2: #4B5675;
  --ink-3: #78829D;
  --ink-4: #99A1B7;

  --line: #E4E8F0;
  --line-soft: #EFF2F7;
  --line-strong: #D3DBE9;

  --accent: #1B84FF;
  --accent-hover: #0B6BDB;
  --accent-ink: #0B58B8;
  --accent-wash: #EAF3FF;
  --accent-border: #B9D9FF;

  --ok: #17A34A;
  --ok-wash: #E7F8EE;
  --warn: #B7791F;
  --warn-wash: #FDF5E3;
  --crit: #DC2743;
  --crit-wash: #FDECEF;

  --on-accent: #FFFFFF;

  /* Signal ochre: the marker colour of an engineering drawing. Used for
     measured values and annotations, never for chrome. */
  --signal: #B26B12;
  --signal-wash: #FBF1E2;
  --signal-border: #EBD3AC;

  /* Ink surfaces stay dark in both themes: they are a deliberate inversion,
     not a theme variant. */
  --ink-ground: #071437;
  --ink-ground-2: #0D1F49;
  --ink-on: #FFFFFF;
  --ink-on-2: #A8B6D4;
  --ink-line: #1B2E5C;

  --shadow-sm: 0 1px 2px rgba(7, 20, 55, .05);
  --shadow-md: 0 2px 4px rgba(7, 20, 55, .04), 0 12px 28px -18px rgba(7, 20, 55, .22);
  --shadow-lg: 0 4px 8px rgba(7, 20, 55, .05), 0 28px 60px -32px rgba(7, 20, 55, .3);

  /* -- type --------------------------------------------------------------- */
  /* The wordmark stays Sora — that is a brand lock from the logo work. Headings
     use Archivo: an industrial grotesque that sets tighter and wider than the
     defaults, so the page reads as engineered rather than templated. */
  --font-wordmark: Sora, "Segoe UI", system-ui, sans-serif;
  --font-display: Archivo, Sora, "Segoe UI", system-ui, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0: clamp(.9375rem, .91rem + .14vw, 1rem);
  --step-1: clamp(1.0625rem, 1.02rem + .22vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.18rem + .35vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.36rem + .7vw, 2rem);
  --step-4: clamp(1.875rem, 1.62rem + 1.28vw, 2.75rem);
  --step-5: clamp(2.25rem, 1.79rem + 2.3vw, 3.75rem);

  /* -- space & shape ------------------------------------------------------ */
  --gap-1: .25rem;
  --gap-2: .5rem;
  --gap-3: .75rem;
  --gap-4: 1rem;
  --gap-5: 1.5rem;
  --gap-6: 2rem;
  --gap-7: 3rem;
  --gap-8: 4.5rem;
  --gap-9: 6.5rem;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --container: 1180px;
  --container-narrow: 760px;

  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B0D12;
    --surface: #12151C;
    --surface-2: #191D26;
    --surface-3: #222735;

    --ink: #F2F5FA;
    --ink-2: #B4BDD1;
    --ink-3: #8A93A9;
    --ink-4: #6E7789;

    --line: #242B3A;
    --line-soft: #1B202B;
    --line-strong: #313A4E;

    --accent: #4C9DFF;
    --accent-hover: #6EB0FF;
    --accent-ink: #9CC8FF;
    --accent-wash: #101F35;
    --accent-border: #24457A;

    --ok: #35D06B;
    --ok-wash: #10251A;
    --warn: #E0A22B;
    --warn-wash: #241D10;
    --crit: #FF6079;
    --crit-wash: #25131A;

    --signal: #E0A22B;
    --signal-wash: #241D10;
    --signal-border: #4A3A18;

    --on-accent: #04101F;

    --ink-ground: #0A1330;
    --ink-ground-2: #0F1D46;
    --ink-on: #FFFFFF;
    --ink-on-2: #9FB0D2;
    --ink-line: #1B2E5C;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 14px 32px -20px rgba(0, 0, 0, .8);
    --shadow-lg: 0 6px 14px rgba(0, 0, 0, .5), 0 30px 70px -34px rgba(0, 0, 0, .9);
  }
}

:root[data-theme="dark"] {
  --ground: #0B0D12;
  --surface: #12151C;
  --surface-2: #191D26;
  --surface-3: #222735;

  --ink: #F2F5FA;
  --ink-2: #B4BDD1;
  --ink-3: #8A93A9;
  --ink-4: #6E7789;

  --line: #242B3A;
  --line-soft: #1B202B;
  --line-strong: #313A4E;

  --accent: #4C9DFF;
  --accent-hover: #6EB0FF;
  --accent-ink: #9CC8FF;
  --accent-wash: #101F35;
  --accent-border: #24457A;

  --ok: #35D06B;
  --ok-wash: #10251A;
  --warn: #E0A22B;
  --warn-wash: #241D10;
  --crit: #FF6079;
  --crit-wash: #25131A;

  --signal: #E0A22B;
  --signal-wash: #241D10;
  --signal-border: #4A3A18;

  --on-accent: #04101F;

  --ink-ground: #0A1330;
  --ink-ground-2: #0F1D46;
  --ink-on: #FFFFFF;
  --ink-on-2: #9FB0D2;
  --ink-line: #1B2E5C;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 14px 32px -20px rgba(0, 0, 0, .8);
  --shadow-lg: 0 6px 14px rgba(0, 0, 0, .5), 0 30px 70px -34px rgba(0, 0, 0, .9);
}

/* ============================================================ reset & base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}

h1 { font-size: var(--step-5); font-weight: 700; letter-spacing: -.032em; }
h2 { font-size: var(--step-4); letter-spacing: -.028em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-ink);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap-6) 0; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-2);
  color: var(--accent-ink);
  padding: .1em .38em;
  border-radius: 5px;
}

::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================= layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3rem, 7vw, var(--gap-8)); }
.section-tight { padding-block: clamp(2rem, 4vw, var(--gap-7)); }

.section--tinted { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section--ink {
  background: linear-gradient(160deg, var(--ink-ground) 0%, var(--ink-ground-2) 100%);
  color: var(--ink-on);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--ink-on); }
.section--ink p, .section--ink li { color: var(--ink-on-2); }
.section--ink a { color: #9CC8FF; }

.stack { display: flex; flex-direction: column; }
.stack-2 { gap: var(--gap-2); }
.stack-3 { gap: var(--gap-3); }
.stack-4 { gap: var(--gap-4); }
.stack-5 { gap: var(--gap-5); }
.stack-6 { gap: var(--gap-6); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--gap-3); align-items: center; }

.grid { display: grid; gap: var(--gap-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.measure { max-width: 68ch; }
.measure-tight { max-width: 56ch; }

/* ================================================================ type bits */

.eyebrow {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section--ink .eyebrow { color: #7FB6FF; }
.section--ink .eyebrow::before { background: #7FB6FF; }
.hero--centered .eyebrow { justify-content: center; }

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-2);
}
.section--ink .lede { color: var(--ink-on-2); }

.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  margin-bottom: var(--gap-6);
  max-width: 62ch;
  padding-top: var(--gap-4);
  border-top: 1px solid var(--line);
}
.section--ink .section-head { border-top-color: var(--ink-line); }

/* =================================================================== buttons */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  padding: .8125rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover { --btn-bg: var(--accent-hover); color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-border: var(--line-strong); --btn-fg: var(--ink); }

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--accent-ink);
  --btn-border: transparent;
  padding-inline: .35rem;
}
.btn--quiet:hover { --btn-bg: var(--accent-wash); }

.btn--onink {
  --btn-bg: #FFFFFF;
  --btn-fg: var(--brand-navy);
}
.btn--onink:hover { --btn-bg: #E8F1FF; --btn-fg: var(--brand-navy); }

.btn--onink-ghost {
  --btn-bg: transparent;
  --btn-fg: #FFFFFF;
  --btn-border: rgba(255, 255, 255, .28);
}
.btn--onink-ghost:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #FFFFFF; }

.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--sm { padding: .55rem .9rem; font-size: .8125rem; }
.btn--block { width: 100%; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.arrow-link svg { transition: transform .16s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ==================================================================== pills */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .22rem .55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill--accent { background: var(--accent-wash); color: var(--accent-ink); border-color: var(--accent-border); }
.pill--ok { background: var(--ok-wash); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pill--warn { background: var(--warn-wash); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.pill--crit { background: var(--crit-wash); color: var(--crit); border-color: color-mix(in srgb, var(--crit) 40%, transparent); }
.pill--mono { font-family: var(--font-mono); font-weight: 500; }

/* ==================================================================== cards */

.card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--gap-5);
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
}
.card--link { text-decoration: none; color: inherit; }

/* A card that jumps on hover is the tell of a template. The border doing the
   work is quieter and reads as a control surface rather than a toy. */
.card--link:hover {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-border);
  color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .16s ease, box-shadow .16s ease; }
}
.card--flat { background: var(--surface); border-color: var(--line-soft); }

.card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.25;
  color: var(--ink);
}
.card__text { color: var(--ink-2); font-size: .9375rem; line-height: 1.6; margin: 0; }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem .75rem; font-size: .75rem; color: var(--ink-3); }

.icon-tile {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent-ink);
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
}
.icon-tile svg { width: 21px; height: 21px; }
.icon-tile--green { background: var(--ok-wash); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }

/* ==================================================================== header
   Two bands. The top one is a dark rule carrying the thing every visitor asks
   first — who is behind this product — plus the ways to reach a human. The
   main bar below it holds navigation only.

   The mega panel is anchored to the header's bottom edge and spans the full
   width. That is a design choice and a correctness fix: a floating card offset
   below its trigger leaves a dead gap that swallows the pointer, which is why
   the previous menu could be seen but never clicked.
   ========================================================================= */

.utility-strip {
  /* Above the scrim so the dim layer covers the page, never the chrome. */
  position: relative;
  z-index: 91;
  background: var(--ink-ground);
  color: var(--ink-on-2);
  border-bottom: 1px solid var(--ink-line);
}
.utility-strip__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-4);
  flex-wrap: wrap;
}
.utility-strip__by {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.utility-strip__by a {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  color: var(--ink-on);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  padding-bottom: 1px;
}
.utility-strip__by a:hover { border-bottom-color: var(--brand-blue); color: #fff; }
.utility-strip__by a svg { width: 11px; height: 11px; }

.utility-strip__tools {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.utility-strip__phone,
.utility-strip__portal {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-on-2);
  text-decoration: none;
  padding: .28rem .5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.utility-strip__phone { font-variant-numeric: tabular-nums; }
.utility-strip__phone svg,
.utility-strip__portal svg { width: 12px; height: 12px; }
.utility-strip__phone:hover,
.utility-strip__portal:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.utility-strip__portal { border: 1px solid var(--ink-line); }

.utility-strip__btn {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-on-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.utility-strip__btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.utility-strip__btn svg { width: 14px; height: 14px; }

@media (max-width: 767px) {
  .utility-strip__by { font-size: .6875rem; }
  .utility-strip__phone { display: none; }
}

/* -- main bar -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--gap-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark { width: 30px; height: 30px; }
.brand__word {
  font-family: var(--font-wordmark);
  font-size: 1.45rem;
  letter-spacing: -.028em;
  line-height: 1;
  color: var(--ink);
}
.brand__word .thin { font-weight: 400; }
.brand__word .bold { font-weight: 700; }

.nav { display: flex; align-items: center; gap: .1rem; margin-inline-start: auto; }
@media (max-width: 1023px) { .nav { display: none; } }

.nav__item { position: static; }

/* The indicator is a rule under the label, not a filled pill — it keeps the bar
   quiet and lets the open panel read as an extension of the same line. */
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0 .72rem;
  /* Full header height: a shorter trigger leaves a seam between it and the panel
     that the pointer can fall through. */
  height: var(--header-h);
  border: 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: .72rem;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); background: var(--line-strong); }
.nav__link[aria-current="true"] { color: var(--ink); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link[aria-expanded="true"] { color: var(--ink); }
.nav__link[aria-expanded="true"]::after { transform: scaleX(1); background: var(--accent); }
.nav__link svg { width: 11px; height: 11px; opacity: .5; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); opacity: 1; }

/* -- mega panel ------------------------------------------------------------ */

.nav__panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 95;
}
.nav__panel[hidden] { display: none; }

.nav__panel-inner {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: var(--gap-7);
  padding-block: var(--gap-6);
  align-items: start;
}

.nav__panel-aside {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding-inline-end: var(--gap-5);
  border-inline-end: 1px solid var(--line-soft);
  align-self: stretch;
}
.nav__panel-blurb {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.nav__panel-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-5) var(--gap-6);
}
.nav__panel--wide .nav__panel-body {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-5);
}

.nav__panel-group-title {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-bottom: .45rem;
  margin-bottom: .35rem;
  border-bottom: 1px solid var(--line-soft);
}
.nav__panel-group ul { list-style: none; margin: 0; padding: 0; }

.nav__panel-link {
  display: block;
  padding: .38rem .5rem;
  margin-inline: -.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
}
.nav__panel-link:hover { background: var(--surface-2); }
.nav__panel-link-row {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  justify-content: space-between;
}
.nav__panel-link strong { font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.nav__panel-link-hint {
  display: block;
  font-size: .6875rem;
  color: var(--ink-4);
  line-height: 1.45;
  margin-top: .1rem;
}
.nav__panel--wide .nav__panel-link-hint { display: none; }

.code-tag {
  font-family: var(--font-mono);
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-4);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: .04rem .26rem;
  flex-shrink: 0;
}
.nav__panel-link:hover .code-tag { color: var(--accent-ink); border-color: var(--accent-border); }

.rule-label {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.nav__scrim {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 55, .28);
  z-index: 80;
}
.nav__scrim[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .nav__link::after { transition: transform .16s ease, background-color .16s ease; }
  .nav__link svg { transition: transform .16s ease; }
  .nav__panel { animation: panel-in .16s ease; }
  .nav__scrim { animation: scrim-in .16s ease; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }

/* -- right-hand tools ------------------------------------------------------ */

.header-tools { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switch a {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .24rem .44rem;
  color: var(--ink-on-2);
  text-decoration: none;
  background: transparent;
}
.lang-switch a[aria-current="true"] { background: var(--accent); color: #fff; }
.lang-switch a:not([aria-current="true"]):hover { background: rgba(255, 255, 255, .09); color: #fff; }

.menu-toggle { display: none; }
@media (max-width: 1023px) {
  .menu-toggle { display: grid; }
  .header-tools .nav-cta { display: none; }
}

/* -- mobile ---------------------------------------------------------------- */

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--ground);
  padding: var(--gap-4) 0 var(--gap-5);
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav__group { padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
.mobile-nav__group:last-child { border-bottom: 0; }
.mobile-nav__top {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: .4rem 0;
}
.mobile-nav__children {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .1rem .8rem;
  padding-block: .3rem .2rem;
}
.mobile-nav__children a {
  font-size: .8125rem;
  color: var(--ink-2);
  text-decoration: none;
  padding: .3rem 0;
}
.mobile-nav__children a:hover { color: var(--accent-ink); }
.mobile-nav__more { color: var(--accent-ink) !important; font-weight: 500; }
/* ===================================================================== hero */

.hero { padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__title { max-width: 15ch; }
.hero__lede { max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .5rem; }

.hero__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9375rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.hero__bullets svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: .18rem; color: var(--accent); }

.hero__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  position: relative;
}
/* Corner ticks: a drawing frame's registration marks. Decorative, but drawn from
   the same vocabulary as the rest of the page rather than bolted on. */
.hero__panel::before,
.hero__panel::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  opacity: .5;
}
.hero__panel::before { top: -1px; inset-inline-start: -1px; border-width: 1px 0 0 1px; }
.hero__panel::after { bottom: -1px; inset-inline-end: -1px; border-width: 0 1px 1px 0; }

.hero--centered { text-align: center; }
.hero--centered .hero__title,
.hero--centered .hero__lede { margin-inline: auto; }
.hero--centered .hero__actions { justify-content: center; }

/* ================================================================ stat strip */

.stat-strip { font-variant-numeric: tabular-nums; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat {
  background: var(--ground);
  padding: var(--gap-5) var(--gap-4);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.stat__note { font-size: .75rem; color: var(--ink-3); line-height: 1.45; }

/* ================================================================== modules */

.module-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: var(--gap-5);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.module-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.module-card__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.module-card__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.25;
}
.module-card__tag { font-size: .8125rem; color: var(--ink-3); line-height: 1.5; }

/* ================================================================ flow chart */

.flow { display: flex; flex-direction: column; gap: var(--gap-5); }
.flow__row { display: flex; flex-direction: column; gap: .7rem; }
.flow__name {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}
.flow__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.flow__step {
  display: inline-flex;
  align-items: center;
  font-size: .8125rem;
  font-weight: 500;
  padding: .42rem .7rem;
  border-radius: var(--radius-sm);
  background: var(--ground);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.flow__step:last-child { border-color: var(--accent-border); background: var(--accent-wash); color: var(--accent-ink); }
.flow__arrow { color: var(--ink-4); flex-shrink: 0; }
.flow__arrow svg { width: 13px; height: 13px; }

/* ============================================================ split section */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.split__media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ======================================================================= faq */

.faq { display: flex; flex-direction: column; gap: .6rem; max-width: 76ch; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--accent-border); }
.faq__q {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .18s ease;
  flex-shrink: 0;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a { padding: 0 1.15rem 1.15rem; color: var(--ink-2); font-size: .9375rem; line-height: 1.65; }

/* ==================================================================== prose */

.prose { color: var(--ink-2); font-size: var(--step-1); line-height: 1.75; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: var(--step-3);
  margin-top: 2.2em;
  margin-bottom: .1em;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.prose h3 {
  font-size: var(--step-2);
  margin-top: 1.8em;
  margin-bottom: .1em;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.prose h4 { font-size: var(--step-1); margin-top: 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.35em; margin-block: 1.1em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--ink-4); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-inline-start: 3px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
  color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose table th {
  text-align: start;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: .65rem .85rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.prose table td { padding: .7rem .85rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll table { min-width: 520px; }
.prose .table-scroll { margin-block: 1.4em; }

/* ============================================================= answer block */

.answer {
  border-inline-start: 3px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.answer__label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.answer__text { font-size: 1rem; line-height: 1.65; color: var(--ink); margin: 0; }

/* ==================================================================== notes */

.note {
  border-inline-start: 3px solid var(--accent);
  background: var(--surface);
  padding: .95rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.note--warn { border-inline-start-color: var(--warn); }
.note--crit { border-inline-start-color: var(--crit); }
.note strong { color: var(--ink); }

/* ==================================================================== forms */

.field { display: flex; flex-direction: column; gap: .35rem; }
.field__label { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.field__label .req { color: var(--crit); margin-inline-start: .15rem; }
.field__hint { font-size: .75rem; color: var(--ink-3); line-height: 1.5; }
.field__error { font-size: .75rem; color: var(--crit); font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .68rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--crit); }
.textarea { min-height: 130px; resize: vertical; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2378829D' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-inline-end: 2.2rem;
}
[dir="rtl"] .select { background-position: left .9rem center; }

.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
}
.check input { margin-top: .2rem; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }

.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-4); }
.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
@media (max-width: 640px) { .col-6, .col-4 { grid-column: span 12; } }

.form-card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  line-height: 1.6;
  border: 1px solid;
}
.alert--ok { background: var(--ok-wash); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.alert--err { background: var(--crit-wash); border-color: color-mix(in srgb, var(--crit) 35%, transparent); color: var(--crit); }
.alert--info { background: var(--accent-wash); border-color: var(--accent-border); color: var(--accent-ink); }

/* ================================================================ breadcrumb */

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .75rem; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ================================================================= article */

.article-head { display: flex; flex-direction: column; gap: var(--gap-4); max-width: 68ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8125rem; color: var(--ink-3); align-items: center; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }

.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 1000px) { .toc { display: none; } }
.toc__title {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .7rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.toc a {
  display: block;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--ink-2);
  text-decoration: none;
  padding: .4rem .6rem;
  border-inline-start: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.toc a:hover { background: var(--surface); color: var(--ink); border-inline-start-color: var(--accent); }
.toc a.is-current { color: var(--accent-ink); border-inline-start-color: var(--accent); background: var(--surface); }
.toc li[data-level="3"] a { padding-inline-start: 1.3rem; font-size: .78rem; }

.author-box {
  display: flex;
  gap: var(--gap-4);
  align-items: flex-start;
  padding: var(--gap-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.author-box__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--accent-border);
}

/* ================================================================== gallery */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap-4); }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ================================================================= pagination */

.pagination { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: center; }
.pagination a, .pagination span {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding-inline: .6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--accent-border); background: var(--accent-wash); color: var(--accent-ink); }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ==================================================================== footer */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: var(--gap-7) var(--gap-5);
  margin-top: var(--gap-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap-6);
  padding-bottom: var(--gap-6);
  border-bottom: 1px solid var(--line);
}
.footer-col__title {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); }

.footer-bottom {
  padding-top: var(--gap-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-3) var(--gap-5);
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--ink-3);
}
.footer-social { display: flex; gap: .3rem; }

.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form .input { flex: 1 1 200px; }

/* ============================================================= cookie banner */

.cookie-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 120;
  background: var(--ground);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px -18px rgba(7, 20, 55, .4);
  padding: var(--gap-4) 0;
}
.cookie-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-4);
  align-items: center;
  justify-content: space-between;
}
.cookie-bar__text { font-size: .875rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.cookie-bar__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ================================================================= comparison */

.compare-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.compare-table th {
  text-align: start;
  padding: .8rem 1rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.compare-table th.is-ours { color: var(--accent-ink); background: var(--accent-wash); }
.compare-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.55; }
.compare-table td.is-ours { background: color-mix(in srgb, var(--accent-wash) 55%, transparent); }
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* ================================================================= calculator */

.calc {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, .8fr);
  gap: var(--gap-5);
  align-items: start;
}
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

.calc__result {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: linear-gradient(160deg, var(--ink-ground) 0%, var(--ink-ground-2) 100%);
  color: var(--ink-on);
  border-radius: var(--radius-lg);
  padding: var(--gap-5);
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
}
.calc__headline {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.calc__rows { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.calc__row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.calc__row dt { color: var(--ink-on-2); }
.calc__row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__row--total {
  border-top: 1px solid var(--ink-line);
  padding-top: .6rem;
  margin-top: .2rem;
  font-size: 1rem;
}

/* ==================================================================== misc */

.logo-strip { display: flex; flex-wrap: wrap; gap: var(--gap-5) var(--gap-6); align-items: center; justify-content: center; opacity: .75; }
.logo-strip span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-3); letter-spacing: -.02em; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline__item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--gap-4);
  padding-bottom: var(--gap-5);
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline__item:last-child::before { display: none; }
.timeline__dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-wash);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: .6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}

.empty-state {
  text-align: center;
  padding: var(--gap-8) var(--gap-4);
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  align-items: center;
}

.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list a {
  font-size: .75rem;
  padding: .28rem .6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
}
.tag-list a:hover { border-color: var(--accent-border); background: var(--accent-wash); color: var(--accent-ink); }

.sr-status { font-size: .8125rem; color: var(--ink-3); }

.text-center { text-align: center; }
.mt-4 { margin-top: var(--gap-4); }
.mt-5 { margin-top: var(--gap-5); }
.mt-6 { margin-top: var(--gap-6); }
.mb-0 { margin-bottom: 0; }

/* ============================================================== footer org */

.footer-org { display: flex; flex-direction: column; gap: .55rem; }
.footer-org__by {
  margin: 0;
  font-size: .8125rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.footer-org__by a {
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--accent-border);
}
.footer-org__by a:hover { border-bottom-color: var(--accent); }
.footer-org__where {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  font-style: normal;
  font-size: .75rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 42ch;
}
.footer-org__where a { color: var(--ink-3); text-decoration: none; }
.footer-org__where a:hover { color: var(--accent-ink); }

/* ================================================================ schematic
   A module's step chain drawn as an instrument rail. The page had no imagery at
   all, which read as unfinished next to competitors carrying screenshots and
   video. This is generated from each module's own flow data, so 24 module pages
   gain a distinct, accurate diagram without a single mocked-up screenshot.
   ========================================================================= */

.schematic {
  margin: 0;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--gap-5) var(--gap-5) var(--gap-4);
  position: relative;
  overflow: hidden;
}
/* Registration marks, same drawing vocabulary as the hero panel. */
.schematic::before,
.schematic::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  opacity: .45;
}
.schematic::before { top: 7px; inset-inline-start: 7px; border-width: 1px 0 0 1px; }
.schematic::after { bottom: 7px; inset-inline-end: 7px; border-width: 0 1px 1px 0; }

.section--ink .schematic {
  background: rgba(255, 255, 255, .04);
  border-color: var(--ink-line);
}

.schematic__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  padding-bottom: .7rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--line-soft);
}
.section--ink .schematic__head { border-bottom-color: var(--ink-line); }

.schematic__label {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section--ink .schematic__label { color: var(--ink-on-2); }

.schematic__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 0;
}

.schematic__step {
  display: grid;
  grid-template-columns: 26px 18px minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  min-height: 34px;
  position: relative;
}

/* The rail itself: a hairline between consecutive nodes. */
.schematic__step:not(:last-of-type)::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(26px + .5rem + 8px);
  top: 50%;
  height: 100%;
  width: 1px;
  background: var(--line-strong);
}
.section--ink .schematic__step:not(:last-of-type)::before { background: var(--ink-line); }

.schematic__index {
  font-family: var(--font-mono);
  font-size: .625rem;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.section--ink .schematic__index { color: var(--ink-on-2); opacity: .7; }

.schematic__node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--ground);
  justify-self: center;
  position: relative;
  z-index: 1;
}
.section--ink .schematic__node { border-color: var(--ink-line); background: var(--ink-ground); }

.schematic__name {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.35;
}
.section--ink .schematic__name { color: var(--ink-on-2); }

/* The last stage is where the record lands — the point of the whole chain. */
.schematic__step.is-terminal .schematic__node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.schematic__step.is-terminal .schematic__name {
  color: var(--accent-ink);
  font-weight: 600;
}
.section--ink .schematic__step.is-terminal .schematic__name { color: #9CC8FF; }

.schematic__caption {
  margin-top: .9rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line-soft);
  font-size: .6875rem;
  line-height: 1.5;
  color: var(--ink-4);
}
.section--ink .schematic__caption { border-top-color: var(--ink-line); color: var(--ink-on-2); }

/* -- travelling pulse ------------------------------------------------------ */

.schematic__pulse {
  position: absolute;
  inset-inline-start: calc(26px + .5rem + 5px);
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .schematic__pulse {
    animation: schematic-travel calc(var(--steps) * .58s) cubic-bezier(.65, 0, .35, 1) infinite;
  }
  @keyframes schematic-travel {
    0%        { top: 12px; opacity: 0; }
    8%        { opacity: .95; }
    82%       { opacity: .95; }
    92%, 100% { top: calc(100% - 20px); opacity: 0; }
  }
}

/* -- compact variant, used inside narrow columns --------------------------- */

.schematic--compact { padding: var(--gap-4); }
.schematic--compact .schematic__step { min-height: 28px; }
.schematic--compact .schematic__name { font-size: .75rem; }

@media (max-width: 900px) {
  .schematic { padding: var(--gap-4); }
}

.schematic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap-5);
  align-items: start;
}
.hero__bullets--after {
  margin-top: var(--gap-4);
  padding-top: var(--gap-4);
  border-top: 1px solid var(--line-soft);
}
.hero__panel > .schematic {
  border: 0;
  padding: 0;
  background: transparent;
}
.hero__panel > .schematic::before,
.hero__panel > .schematic::after { display: none; }

/* ============================================================== form layout
   A sixteen-field quotation form was rendered at the same density as a four-field
   contact form, with fourteen modules crammed into a native multi-select. This
   gives the long form its own rhythm: named sections, room between rows, and
   choices shown rather than scrolled.
   ========================================================================= */

.form-grid {
  gap: 1.35rem 1.25rem;
  /* Cells hug their own content, so a label that wraps to two lines no longer
     stretches its neighbour's row. */
  align-items: start;
}

.field { gap: .45rem; }
.field__label { line-height: 1.35; }
.field__hint { margin-top: .1rem; }

/* -- section headings ------------------------------------------------------ */

.form-section {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .9rem;
}
.form-section:first-child { margin-top: 0; }
.form-section::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.form-section__label {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* -- multiple choice ------------------------------------------------------- */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: .4rem;
}
.choice {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ground);
  font-size: .8125rem;
  line-height: 1.3;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.choice input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin: 0;
}
.choice:hover { border-color: var(--line-strong); background: var(--surface); }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 500;
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .choice { transition: border-color .12s ease, background-color .12s ease; }
}

/* -- the card ------------------------------------------------------------- */

.form-card { padding: clamp(1.4rem, 3vw, 2.4rem); }
.form-card .check { margin-top: .35rem; }

/* -- the page that carries a long form ------------------------------------ */

/* The form column is the work; the explanation beside it is reference. Giving the
   form more width and pinning the reference stops the right-hand column leaving a
   void once the form runs past it. */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .form-layout { grid-template-columns: minmax(0, 1fr); }
}
.form-layout__aside {
  display: flex;
  flex-direction: column;
  gap: var(--gap-4);
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}
@media (max-width: 900px) {
  .form-layout__aside { position: static; }
}
