/* ==========================================================================
   GDS Frame — Swiss grid specimen
   Tokens and components. See DESIGN.md for the rationale behind each choice.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Field — warm near-black, every neutral tinted toward the gold hue */
  --ink-900: oklch(13% 0.010 85);
  --ink-850: oklch(16% 0.011 85);
  --ink-800: oklch(19% 0.012 85);
  --rule: oklch(30% 0.018 85);
  --rule-soft: oklch(22% 0.014 85);

  /* Text */
  --tx: oklch(93% 0.008 85);
  --tx-mid: oklch(72% 0.012 85);
  /* 55% measured 4.15:1 on --ink-900, below AA for the 11px labels. */
  --tx-low: oklch(65% 0.013 85);

  /* Gold — structure only. Never a fill, never a glow. */
  --gold: oklch(76% 0.105 82);
  --gold-dim: oklch(58% 0.080 82);

  /* Royal blue — action only. If it is blue, it is clickable. */
  --blue: oklch(52% 0.210 266);
  --blue-deep: oklch(45% 0.200 266);
  --blue-hi: oklch(72% 0.160 266);
  --blue-ink: oklch(98% 0.015 266);

  /* Bone — reversal surface */
  --bone: oklch(94% 0.014 85);
  --bone-rule: oklch(80% 0.020 85);

  /* Type scale — extreme jumps, not a flat ramp */
  /* Capped so the hero CTA clears the fold on a 900px laptop viewport. */
  --t-display: clamp(2.75rem, 1rem + 6.6vw, 7rem);
  --t-h1: clamp(2.75rem, 1.2rem + 6.6vw, 7.5rem);
  --t-h2: clamp(2.1rem, 1.15rem + 3.9vw, 4.6rem);
  --t-h3: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem);
  --t-lede: clamp(1.125rem, 0.98rem + 0.66vw, 1.5rem);
  --t-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  --t-sm: 0.875rem;
  --t-label: 0.6875rem;

  /* Rhythm — varied on purpose. Never one value everywhere. */
  --sp-xl: clamp(6rem, 3rem + 11vw, 12rem);
  --sp-lg: clamp(4.5rem, 2.5rem + 7vw, 8.5rem);
  --sp-md: clamp(3rem, 2rem + 4vw, 5.5rem);
  --sp-sm: clamp(1.75rem, 1.2rem + 2vw, 3rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1560px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 420ms;
  --dur-fast: 200ms;

  --radius: 2px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink-900);
  color: var(--tx);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--t-body);
  font-variation-settings: 'wdth' 100, 'wght' 380;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--blue); color: var(--blue-ink); }

:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--blue); color: var(--blue-ink);
  padding: 0.75rem 1.25rem; font-size: var(--t-sm);
  font-variation-settings: 'wdth' 100, 'wght' 600;
  transition: top var(--dur-fast) var(--ease);
}
.skip:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-sm);
}

/* Asymmetric splits. 6/6 is never used. */
.split-7-5 > :first-child { grid-column: span 12; }
.split-7-5 > :last-child { grid-column: span 12; }

@media (min-width: 900px) {
  .split-7-5 > :first-child { grid-column: span 7; }
  .split-7-5 > :last-child { grid-column: 9 / span 4; }
}

.stack > * + * { margin-top: var(--sp-sm); }

/* --------------------------------------------------------------------------
   Type roles
   -------------------------------------------------------------------------- */

/* Line breaks are authored by hand, so no balancing is applied here. */
.display {
  font-size: var(--t-display);
  font-variation-settings: 'wdth' 118, 'wght' 900;
  letter-spacing: -0.045em;
  line-height: 0.86;
}

.h1 {
  font-size: var(--t-h1);
  font-variation-settings: 'wdth' 116, 'wght' 900;
  letter-spacing: -0.042em;
  line-height: 0.88;
  text-wrap: balance;
}

.h2 {
  font-size: var(--t-h2);
  font-variation-settings: 'wdth' 112, 'wght' 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

.h3 {
  font-size: var(--t-h3);
  font-variation-settings: 'wdth' 106, 'wght' 780;
  letter-spacing: -0.024em;
  line-height: 1.08;
}

/* Lede is lighter than body. The inversion is deliberate. */
.lede {
  font-size: var(--t-lede);
  font-variation-settings: 'wdth' 100, 'wght' 300;
  line-height: 1.5;
  color: var(--tx-mid);
  max-width: 46ch;
}

.body { max-width: 68ch; color: var(--tx-mid); }

/* Condensed. Its opposition to .num (extended) is the system signature. */
.label {
  font-size: var(--t-label);
  font-variation-settings: 'wdth' 68, 'wght' 620;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tx-low);
  display: block;
}

/* Extended. */
.num {
  font-variation-settings: 'wdth' 125, 'wght' 300;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}

.gold { color: var(--gold); }
.dim { color: var(--tx-low); }

/* --------------------------------------------------------------------------
   Section head — the grid made visible
   -------------------------------------------------------------------------- */

/* Adjacent sections each contribute padding, so these are half of the intended
   gap between two sections, not the gap itself. */
.sec { padding-block: clamp(2.75rem, 1.75rem + 3vw, 4.5rem); }
.sec--xl { padding-block: clamp(3.5rem, 2rem + 4vw, 5.75rem); }
.sec--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }

.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  margin-bottom: var(--sp-md);
}

.sec-head__idx {
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1.125rem);
  padding-top: 0.15em;
}

.sec-head__label { margin-bottom: clamp(1.25rem, 3vw, 2.5rem); }

.sec-head__body { grid-column: 2; }

@media (max-width: 640px) {
  .sec-head { grid-template-columns: 1fr; gap: 0.75rem; }
  .sec-head__body { grid-column: 1; }
}

/* --------------------------------------------------------------------------
   Nav — solid, sticky, hairline. No blur, no float, no glass.
   -------------------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink-900);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: clamp(58px, 6vw, 74px);
}

.mark {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.2rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.mark__a { font-variation-settings: 'wdth' 125, 'wght' 900; }
.mark__b { font-variation-settings: 'wdth' 68, 'wght' 250; color: var(--tx-mid); }

/* Sub-brand marker for product pages under the studio wordmark. */
.mark__tag {
  font-size: var(--t-label);
  font-variation-settings: 'wdth' 68, 'wght' 620;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid color-mix(in oklch, var(--gold) 45%, transparent);
  padding: 0.2em 0.5em;
  margin-left: 0.35em;
  white-space: nowrap;
}

.nav__links { display: none; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

.nav__link {
  font-size: var(--t-label);
  font-variation-settings: 'wdth' 68, 'wght' 620;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx-low);
  padding-block: 0.5rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--tx); }
.nav__link[aria-current='page'] {
  color: var(--tx);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav__burger {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: none; border: 1px solid var(--rule);
  padding: 0.5rem 0.85rem; cursor: pointer;
  font-size: var(--t-label);
  font-variation-settings: 'wdth' 68, 'wght' 620;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--tx-mid);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav__burger:hover { color: var(--tx); border-color: var(--gold-dim); }

/* Declared after the base rule so it actually wins at desktop width. */
@media (min-width: 880px) {
  .nav__burger { display: none; }
}

.nav__panel {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--ink-900);
}
.nav__panel[data-open='true'] { display: block; }

@media (min-width: 880px) {
  .nav__panel[data-open='true'] { display: none; }
}

.nav__panel-list { padding-block: 0.5rem 1.5rem; }

.nav__panel-link {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1.25rem;
  font-variation-settings: 'wdth' 108, 'wght' 700;
  letter-spacing: -0.02em;
}
.nav__panel-link .num { font-size: 0.7rem; }

/* --------------------------------------------------------------------------
   Buttons — blue owns action
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--t-sm);
  font-variation-settings: 'wdth' 100, 'wght' 640;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.btn--primary { background: var(--blue); color: var(--blue-ink); }
.btn--primary:hover { background: var(--blue-deep); }

.btn--ghost { border-color: var(--rule); color: var(--tx); }
.btn--ghost:hover { border-color: var(--tx-mid); background: var(--ink-850); }

/* On bone reversal panels */
.rev .btn--primary { background: var(--blue); color: var(--blue-ink); }
.rev .btn--ghost { border-color: var(--bone-rule); color: var(--ink-900); }
.rev .btn--ghost:hover { background: oklch(88% 0.016 85); border-color: var(--ink-900); }

.btn__ico { width: 14px; height: 14px; flex: none; }

/* Text link */
.tlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--blue-hi);
  font-size: var(--t-sm);
  font-variation-settings: 'wdth' 100, 'wght' 620;
  padding-bottom: 2px;
  box-shadow: inset 0 -1px 0 color-mix(in oklch, var(--blue-hi) 40%, transparent);
  transition: box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tlink:hover { box-shadow: inset 0 -1px 0 var(--blue-hi); }
.tlink .btn__ico { width: 12px; height: 12px; }

.rev .tlink { color: var(--blue); }

/* --------------------------------------------------------------------------
   Hero — the grid is literally drawn
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  /* Tuned so the actions clear a 1000px fold at desktop width. */
  padding-block: clamp(2.5rem, 1.5rem + 4.5vw, 6rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

/* Drawn with a repeating gradient so the column rules cost zero DOM nodes. */
.hero__grid {
  position: absolute; inset: 0;
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  pointer-events: none; z-index: 0;
}
.hero__grid::before {
  content: ''; position: absolute; inset: 0;
  margin-inline: var(--gutter);
  background-image: repeating-linear-gradient(
    to right,
    color-mix(in oklch, var(--gold) 9%, transparent) 0 1px,
    transparent 1px 25%
  );
}

@media (min-width: 640px) {
  .hero__grid::before {
    background-image: repeating-linear-gradient(
      to right,
      color-mix(in oklch, var(--gold) 9%, transparent) 0 1px,
      transparent 1px 16.6667%
    );
  }
}

@media (min-width: 900px) {
  .hero__grid::before {
    background-image: repeating-linear-gradient(
      to right,
      color-mix(in oklch, var(--gold) 8%, transparent) 0 1px,
      transparent 1px 8.3333%
    );
  }
}

.hero__inner { position: relative; z-index: 1; }

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

/* Single lede. Used where the hero carries one argument instead of two columns,
   so the commercial offer is not demoted to the smaller, dimmer track. */
.hero__lede {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 56ch;
}

/* Offer bar — puts the three paid services in the hero at readable size,
   instead of burying them in secondary body copy. */
.offer {
  list-style: none; padding: 0;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  display: grid;
  border-top: 1px solid var(--rule);
}

.offer li {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.375rem);
  font-variation-settings: 'wdth' 104, 'wght' 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
}
.offer .num { font-size: 0.75rem; flex: none; }

@media (min-width: 760px) {
  /* Column flow so the track count follows the item count. A fixed repeat(3)
     orphans the fourth item onto its own row on pages that list four channels. */
  .offer {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    border-bottom: 1px solid var(--rule);
  }
  .offer li { border-bottom: 0; border-right: 1px solid var(--rule-soft); padding-right: 1.5rem; }
  .offer li:last-child { border-right: 0; }
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

/* Stat strip — data, not a hero-metric template */
.strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
@media (min-width: 760px) { .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.strip__cell {
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(0.85rem, 2vw, 1.75rem) clamp(1.25rem, 3vw, 2rem) 0;
  border-right: 1px solid var(--rule-soft);
}
.strip__cell:last-child { border-right: 0; }
.strip__val {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  font-variation-settings: 'wdth' 125, 'wght' 300;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  line-height: 1; margin-bottom: 0.6rem;
}
.strip__key { font-size: var(--t-sm); color: var(--tx-mid); line-height: 1.35; }

/* --------------------------------------------------------------------------
   Specimen rows — replaces the product card grid entirely
   -------------------------------------------------------------------------- */

.spec-list { border-top: 1px solid var(--rule); }

.spec {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              padding-inline var(--dur) var(--ease);
}

@media (min-width: 900px) {
  .spec {
    grid-template-columns: 5.5rem minmax(0, 5fr) minmax(0, 7fr) 11rem 2.5rem;
    align-items: baseline;
    gap: 2rem;
  }
}

.spec__num { font-size: 0.8125rem; padding-top: 0.5em; }

.spec__name {
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 3.1rem);
  font-variation-settings: 'wdth' 108, 'wght' 820;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.spec__desc { color: var(--tx-mid); font-size: var(--t-sm); line-height: 1.55; max-width: 54ch; }

.spec__state { display: flex; flex-direction: column; gap: 0.3rem; }
.spec__url {
  font-size: var(--t-label);
  font-variation-settings: 'wdth' 68, 'wght' 500;
  letter-spacing: 0.08em;
  color: var(--tx-low);
  word-break: break-all;
}

.spec__mark { color: var(--gold); width: 18px; height: 18px; opacity: 0.55; transition: opacity var(--dur-fast) var(--ease); }

/* Whole row inverts. No lift, no shadow, no border-color trick. */
a.spec:hover, a.spec:focus-visible {
  background: var(--bone);
  color: var(--ink-900);
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}
a.spec:hover .spec__desc,
a.spec:focus-visible .spec__desc { color: oklch(35% 0.014 85); }
a.spec:hover .spec__num,
a.spec:hover .spec__mark,
a.spec:focus-visible .spec__num,
a.spec:focus-visible .spec__mark { color: var(--blue); opacity: 1; }
a.spec:hover .spec__url,
a.spec:focus-visible .spec__url { color: oklch(45% 0.014 85); }
a.spec:hover .tag,
a.spec:focus-visible .tag { border-color: var(--bone-rule); color: oklch(35% 0.014 85); }

@media (max-width: 899px) {
  .spec__mark { display: none; }
  .spec__state { flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; }
  /* Everything but the numeral stacks inside the content column. Without this
     the description falls into the 4.5rem numeral track and sets one word per line. */
  .spec > *:not(.spec__num) { grid-column: 2; }
  .spec > * + *:not(.spec__num) { margin-top: 0.85rem; }
}

/* Status marker — a rule and a word, not a pill */
.state {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--t-label);
  font-variation-settings: 'wdth' 68, 'wght' 620;
  letter-spacing: 0.2em; text-transform: uppercase;
  white-space: nowrap;
}
.state::before { content: ''; width: 1.4rem; height: 2px; background: currentColor; flex: none; }
.state--live { color: var(--gold); }
.state--soon { color: var(--tx-low); }

/* Tag — a bordered rectangle, not a pill chip */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag {
  font-size: var(--t-label);
  font-variation-settings: 'wdth' 78, 'wght' 520;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tx-low);
  border: 1px solid var(--rule);
  padding: 0.25rem 0.55rem;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

/* --------------------------------------------------------------------------
   Column set — replaces the service card grid
   -------------------------------------------------------------------------- */

.cols {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .col { border-right: 1px solid var(--rule-soft); padding-right: clamp(1.5rem, 3vw, 3rem); }
  .col:last-child { border-right: 0; padding-right: 0; }
}

.col {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--rule-soft);
  display: flex; flex-direction: column;
}
@media (min-width: 900px) { .col { border-bottom: 0; } }

.col__num {
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.75rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
  display: block;
}

.col__title { margin-bottom: 0.85rem; }

/* Reserve two lines so one-line and two-line column titles share a baseline
   and the body copy starts on the same line across the row. */
@media (min-width: 900px) {
  .col__title { min-height: 2.16em; }
}
.col__body { color: var(--tx-mid); font-size: var(--t-sm); line-height: 1.6; }

.col__list { margin-top: 1.5rem; display: grid; gap: 0.7rem; list-style: none; padding: 0; }
.col__list li {
  display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem;
  font-size: var(--t-sm); color: var(--tx-mid); line-height: 1.45;
}
.col__list li::before { content: '\2014'; color: var(--gold-dim); }

.col__foot { margin-top: auto; padding-top: clamp(1.5rem, 3vw, 2.25rem); }

/* --------------------------------------------------------------------------
   Reversal panel — the only container in the system
   -------------------------------------------------------------------------- */

.rev {
  background: var(--bone);
  color: var(--ink-900);
}
.rev .label { color: oklch(48% 0.020 85); }
.rev .body, .rev .lede { color: oklch(34% 0.014 85); }
.rev .num, .rev .gold { color: oklch(52% 0.105 70); }
.rev .col { border-color: var(--bone-rule); }
.rev .cols { border-color: var(--ink-900); }
.rev .sec-head { border-color: var(--ink-900); }
.rev .col__list li::before { color: oklch(58% 0.090 75); }

.rev__inner {
  display: grid; gap: var(--sp-sm);
  padding-block: var(--sp-lg);
}
@media (min-width: 900px) {
  .rev__inner { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
}

/* --------------------------------------------------------------------------
   Ledger — the principles / process list
   -------------------------------------------------------------------------- */

.ledger { border-top: 1px solid var(--rule); }
.rev .ledger { border-color: var(--ink-900); }

.ledger__row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.4rem 1.25rem;
  padding-block: clamp(1.25rem, 2.5vw, 1.9rem);
  border-bottom: 1px solid var(--rule-soft);
}
.rev .ledger__row { border-color: var(--bone-rule); }

@media (min-width: 760px) {
  .ledger__row { grid-template-columns: 4.5rem minmax(0, 4fr) minmax(0, 7fr); gap: 2rem; align-items: baseline; }
}

/* Same stacking fix as .spec: keep prose out of the numeral track. */
@media (max-width: 759px) {
  .ledger__row > *:not(.ledger__num) { grid-column: 2; }
  .ledger__row > * + *:not(.ledger__num) { margin-top: 0.5rem; }
}

.ledger__num { font-size: 0.8125rem; }
.ledger__key {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.375rem);
  font-variation-settings: 'wdth' 104, 'wght' 740;
  letter-spacing: -0.02em; line-height: 1.15;
}
.ledger__val { color: var(--tx-mid); font-size: var(--t-sm); line-height: 1.55; }
.rev .ledger__val { color: oklch(38% 0.014 85); }

/* --------------------------------------------------------------------------
   Contact — channels and form
   -------------------------------------------------------------------------- */

.chan { border-top: 1px solid var(--rule); }
.chan__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding-block: clamp(1.1rem, 2.2vw, 1.6rem);
  border-bottom: 1px solid var(--rule-soft);
  transition: color var(--dur-fast) var(--ease), padding-inline var(--dur) var(--ease);
}
a.chan__row:hover { color: var(--blue-hi); padding-inline: 0.75rem; }
.chan__val {
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem);
  font-variation-settings: 'wdth' 104, 'wght' 680;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.field { display: block; margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.field__label { margin-bottom: 0.55rem; }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink-850);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: var(--t-sm);
  font-variation-settings: 'wdth' 100, 'wght' 420;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--tx-low); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-hi);
  background: var(--ink-800);
}
.field select { cursor: pointer; }
.field select option { background: var(--ink-850); }

.form-row { display: grid; gap: 0 clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }

.note {
  border-left: 0;
  border-top: 2px solid var(--gold);
  padding-top: 0.9rem;
  font-size: var(--t-sm);
  color: var(--tx-mid);
}

.ok {
  display: none;
  margin-top: 1.25rem;
  border-top: 2px solid var(--blue-hi);
  padding-top: 0.9rem;
  color: var(--blue-hi);
  font-size: var(--t-sm);
}
.ok[data-show='true'] { display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot { border-top: 1px solid var(--rule); padding-block: var(--sp-md) var(--sp-sm); }

.foot__top {
  display: grid; gap: var(--sp-sm);
  padding-bottom: var(--sp-sm);
}
@media (min-width: 900px) {
  .foot__top { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: clamp(2rem, 4vw, 4rem); }
}

.foot__col { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.foot__col .label { margin-bottom: 0.5rem; }
.foot__link {
  font-size: var(--t-sm); color: var(--tx-mid);
  transition: color var(--dur-fast) var(--ease);
}
.foot__link:hover { color: var(--gold); }

.foot__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--sp-sm);
  font-size: var(--t-label);
  font-variation-settings: 'wdth' 78, 'wght' 480;
  letter-spacing: 0.08em;
  color: var(--tx-low);
}

/* --------------------------------------------------------------------------
   Reveal — opacity and transform only
   -------------------------------------------------------------------------- */

/* Scoped under .js so the page is fully legible without scripting. The class is
   set by an inline head script, before first paint, so there is no flash. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Wide content never scrolls the page body */
.scroll-x { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Sticky mobile CTA — floating WhatsApp action, small screens only
   -------------------------------------------------------------------------- */

.mcta {
  display: none;
}
@media (max-width: 767px) {
  .mcta {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    position: fixed; left: var(--gutter); right: var(--gutter); bottom: 1rem;
    z-index: 150;
    background: var(--blue); color: var(--blue-ink);
    padding: 0.9rem 1.25rem;
    font-size: var(--t-sm);
    font-variation-settings: 'wdth' 100, 'wght' 600;
    border-radius: var(--radius);
    box-shadow: 0 8px 28px oklch(0% 0 0 / 0.45);
    transition: background var(--dur-fast) var(--ease);
  }
  .mcta:hover { background: var(--blue-deep); }
  .mcta .btn__ico { width: 14px; height: 14px; flex: none; }
  /* keep content from hiding behind the floating bar */
  body { padding-bottom: 4.5rem; }
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  padding-block: 1.25rem;
  font-size: var(--t-label);
  font-variation-settings: 'wdth' 78, 'wght' 480;
  letter-spacing: 0.06em;
  color: var(--tx-low);
}
.crumbs a { color: var(--tx-mid); transition: color var(--dur-fast) var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current='page'] { color: var(--tx); }
.crumbs .sep { color: var(--rule); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding-block: 1.5rem;
  font-size: var(--t-h3);
  font-variation-settings: 'wdth' 100, 'wght' 560;
}
.faq__q:hover { color: var(--gold); }
.faq__ico { flex: none; width: 18px; height: 18px; position: relative; }
.faq__ico::before, .faq__ico::after {
  content: ''; position: absolute; background: currentColor;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq__ico::before { width: 14px; height: 1.5px; }
.faq__ico::after { width: 1.5px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.faq__item[data-open='true'] .faq__ico::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.faq__a p { padding-bottom: 1.5rem; max-width: 62ch; color: var(--tx-mid); }
.faq__item[data-open='true'] .faq__a { max-height: 40em; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.err404 {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding-block: var(--sp-lg);
}
.err404 .code {
  font-size: clamp(4rem, 3rem + 8vw, 9rem);
  font-variation-settings: 'wdth' 100, 'wght' 700;
  color: var(--gold);
  line-height: 1;
}
.err404 .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
