/* ==========================================================================
   TradeForma — shared design system ("Private Trading House")
   Ivory pages, warm ink, champagne-gold foil details; black reserved for
   hero, bands, and footer. Teal survives only as a functional affordance
   (focus rings, form states, text selection is gold).
   Fraunces (display) + Archivo (text). Loaded by every page before
   its page-specific stylesheet.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/home/fraunces-var.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/home/archivo-var.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ink: #141210;
  --ink-deep: #0a0908;
  --ink-raise: #1d1a16;
  --paper: #fbfaf7;
  --paper-dim: #f2f0ea;
  --paper-line: #e7e2d6;
  --gold: #c6a15b;
  --gold-deep: #93763c;
  --gold-soft: rgba(198, 161, 91, 0.32);
  --gold-faint: rgba(198, 161, 91, 0.14);
  --teal: #00c2a8;
  --teal-bright: #0bd9be;
  --teal-deep: #00796a;
  --mist: rgba(251, 250, 247, 0.8);
  --mist-2: rgba(251, 250, 247, 0.62);
  --smoke: #57534b;
  --smoke-soft: #8a8478;
  --rule: #e7e2d6;
  --rule-l: #e7e2d6;
  --rule-d: rgba(251, 250, 247, 0.16);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 76px);
  --max: 1400px;
  --sec: clamp(96px, 12vw, 188px);
  --ease-luxe: cubic-bezier(0.22, 0.61, 0.21, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold); color: var(--ink-deep); }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  background: var(--gold);
  color: var(--ink-deep);
  padding: 0.8em 1.4em;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type helpers */
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-variation-settings: "WONK" 0;
}
.statement,
.flow-title {
  text-wrap: balance;
}
.fine {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
/* Ledger numerals — tabular figures for coordinates, counts, numerals */
.tnum { font-feature-settings: "tnum" 1, "lnum" 1; }

/* Champagne diamond — the house mark */
.mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* Kicker — fine line with gold dash (interior pages) */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--mist);
  margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

/* ==========================================================================
   Page sections
   ========================================================================== */
.section { padding-block: var(--sec); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-ink { background: var(--ink-deep); color: var(--paper); }

/* Editorial statement — large serif with hanging gold rule.
   Mid-size Fraunces: capped optical axis keeps hairlines sturdy
   (auto optical sizing at 30-55px renders too thin on Windows/ClearType). */
.statement,
.mobile-panel a.mp-link {
  font-variation-settings: "opsz" 32, "WONK" 0;
}
.statement {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 470;
  font-size: clamp(1.9rem, 3.4vw + 0.6rem, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 21ch;
  padding-left: clamp(1.4rem, 3vw, 2.6rem);
  position: relative;
}
.statement::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  bottom: 0.28em;
  width: 2px;
  background: var(--gold);
}
.statement-sub {
  max-width: 54ch;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  margin-left: clamp(1.4rem, 3vw, 2.6rem);
  color: var(--smoke);
  font-size: 1.05rem;
}

/* ---------- Interior page hero (black band) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--paper);
  padding-top: clamp(9rem, 20vh, 13rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
  z-index: 2;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .display {
  font-size: clamp(2.6rem, 5vw + 0.6rem, 4.8rem);
  max-width: 22ch;
}
.page-hero .page-lede {
  color: var(--mist);
  max-width: 52ch;
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
}
.hero-chart {
  position: absolute;
  z-index: 1;
  right: -6%;
  top: 4%;
  width: min(62vw, 880px);
  height: auto;
  opacity: 0.55;
  pointer-events: none;
}
.hero-chart.chart-sm {
  width: min(52vw, 620px);
  right: -4%;
  top: -6%;
  opacity: 0.4;
}

/* ---------- Chart SVG (shared motif, champagne edition) ---------- */
.chart text {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: var(--mist-2);
}
.chart .ring { fill: none; stroke: rgba(251, 250, 247, 0.13); stroke-width: 1; }
.chart .arc { fill: none; stroke: rgba(251, 250, 247, 0.26); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .arc-main {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.chart .node { fill: var(--gold); }
.chart .node-ring { fill: none; stroke: var(--gold); opacity: 0.55; }
.chart .cross { stroke: rgba(251, 250, 247, 0.38); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- How-it-works flow map ---------- */
.flowmap { margin-top: clamp(4.5rem, 8vw, 8rem); }
.flow-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw + 0.6rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(2.4rem, 4vw, 3.6rem);
}
.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.flow-track::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}
.flow-track .flow-line {
  position: absolute;
  top: 7px;
  left: 0;
  width: 77.3%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s var(--ease-luxe) 0.15s;
}
.flowmap.in-view .flow-line { transform: scaleX(1); }
.flow-step { position: relative; padding-top: 26px; }
.flow-step .dm {
  position: absolute;
  top: 2px;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--gold);
  transform: rotate(45deg) scale(0);
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.flow-step .step-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  margin-bottom: 0.55rem;
}
.flow-step h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-variation-settings: "opsz" 32, "WONK" 0;
  font-size: 1.3rem;
  line-height: 1.25;
}
.flow-step p { margin: 0; color: var(--smoke); font-size: 0.92rem; max-width: 30ch; }
.flow-step h3, .flow-step p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flowmap.in-view .flow-step .dm {
  transform: rotate(45deg) scale(1);
  transition-delay: calc(var(--i) * 0.32s + 0.1s);
}
.flowmap.in-view .flow-step h3,
.flowmap.in-view .flow-step p {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 0.32s + 0.25s);
}

/* Click-to-inspect: selecting a step reveals the detail panel below the track */
.flow-step { cursor: pointer; }
.flow-step h3::after {
  content: "+";
  margin-left: 0.5em;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-weight: 500;
}
.flow-step[aria-expanded="true"] h3::after { content: "–"; }
.flow-step:hover h3, .flow-step[aria-expanded="true"] h3 { color: var(--gold-deep); }
.flow-step:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 4px; }
.flowmap { scroll-margin-top: 96px; }
.flow-step[aria-expanded="true"] .dm { width: 13px; height: 13px; top: 1px; }
.flow-detail {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  background: var(--paper);
  padding: 20px 24px;
}
.flow-detail[hidden] { display: none; }
.flow-detail h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-variation-settings: "opsz" 32, "WONK" 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.flow-detail p { margin: 0 0 14px; color: var(--smoke); max-width: 62ch; }
.flow-detail .text-link-ink { font-size: 0.88rem; }

/* ---------- Comparison matrix ---------- */
.compare { margin-top: clamp(3rem, 5vw, 4.5rem); border: 1px solid var(--rule); background: var(--paper); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--rule); }
.compare-row > div { padding: 16px 22px; font-size: 0.93rem; color: var(--smoke); }
.compare-row > div + div { border-left: 1px solid var(--rule); }
.compare-row.head > div {
  background: var(--ink-deep);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 12px 22px;
}
.compare-row.head > div:last-child { color: var(--gold); }
.compare-row.with > div:last-child { color: var(--ink); }
.compare-row.with > div:last-child::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-right: 10px;
}
.c-old::before, .c-new::before { display: none; }

/* ==========================================================================
   Scroll reveal — one calm utility, JS-gated so no-JS stays visible
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe);
  transition-delay: var(--rd, 0s);
}
.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
#header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(18px, 2.6vw, 30px) var(--gutter);
}
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}
.wordmark .mark { width: 8px; height: 8px; transform: none; transition: transform 0.35s ease; }
.wordmark:hover .mark { transform: rotate(135deg); }

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  letter-spacing: 0.01em;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left calc(100% - 2px);
  padding-bottom: 4px;
  transition: color 0.25s ease, background-size 0.3s ease;
}
.nav-link:hover { color: var(--paper); background-size: 100% 1px; }
.nav-link.is-current {
  color: var(--paper);
  background-size: 100% 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  padding: 1.05em 1.8em;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
/* Primary action — champagne (class name kept for cross-page contract) */
.btn-teal { background: var(--gold); color: var(--ink-deep); }
.btn-teal:hover { background: var(--paper); color: var(--ink-deep); }
.btn-teal:active { background: var(--gold-deep); color: var(--paper); }
.btn-ghost { border-color: rgba(251, 250, 247, 0.35); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
/* Ink primary for light surfaces */
.btn-ink { background: var(--ink-deep); color: var(--paper); }
.btn-ink:hover { background: var(--gold); color: var(--ink-deep); }

.btn-header { padding: 0.85em 1.5em; }

/* Header over hero = transparent; after scroll = frosted ink */
#header.is-solid {
  position: fixed;
  background: rgba(10, 9, 8, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule-d);
}

/* Mobile toggle (piggybacks the hardened site script, <=640px) */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--paper);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.mobile-nav-open .mobile-nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.mobile-nav-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
body.mobile-nav-open .mobile-nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile panel */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: var(--ink-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.mobile-nav-open .mobile-panel { opacity: 1; visibility: visible; }
body.mobile-nav-open { overflow: hidden; }
.mobile-panel nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-panel a.mp-link {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1.25;
  color: var(--paper);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem 0;
}
.mobile-panel a.mp-link .mark { width: 8px; height: 8px; opacity: 0; transition: opacity 0.25s ease; }
.mobile-panel a.mp-link:hover .mark,
.mobile-panel a.mp-link[aria-current="page"] .mark { opacity: 1; }
.mp-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--mist-2);
}
.mp-foot a { color: var(--mist); text-decoration: none; }

/* ==========================================================================
   Text links
   ========================================================================== */
.text-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 250, 247, 0.35);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.text-link-ink { color: var(--ink); border-color: var(--rule-l); }
.text-link-ink:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer[role="contentinfo"] {
  background: var(--ink-deep);
  color: var(--paper);
  border-top: 1px solid rgba(198, 161, 91, 0.4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1.4fr 1.4fr;
  gap: clamp(2.5rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.footer-brand p {
  margin-top: 1.2rem;
  color: var(--mist-2);
  max-width: 30ch;
  font-size: 0.95rem;
}
.footer-h {
  color: var(--mist-2);
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: var(--mist); text-decoration: none; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-style: normal; color: var(--mist); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--rule-d);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.5rem;
  color: var(--mist-2);
}
.footer-bottom .fb-right { margin-left: auto; }
.footer-bottom .fb-top {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-d);
  padding-bottom: 2px;
  transition: color 0.25s ease;
}
.footer-bottom .fb-top:hover { color: var(--gold); }

/* CTA row — shared hero-adjacent action row (404, page heroes) */
.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin-top: clamp(2rem, 3.6vw, 3rem);
}
@media (max-width: 640px) {
  .hero-ctas { gap: 0.9rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Contact band — shared closing band (home + about)
   ========================================================================== */
.contact-band { padding-block: var(--sec) clamp(4rem, 6vw, 6rem); position: relative; overflow: hidden; }
.contact-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
}
.contact-band h2 {
  font-size: clamp(2.4rem, 4.6vw + 0.5rem, 5rem);
  max-width: 17ch;
}
.contact-band .contact-row {
  margin-top: clamp(2.4rem, 4vw, 3.6rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
}
.contact-band .email-link {
  font-size: 1rem;
}

/* ==========================================================================
   Responsive — shared
   ========================================================================== */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-nav .nav-link, .header-nav .btn { display: none; }
  .mobile-nav-toggle { display: flex; }
  .contact-band .contact-row .btn { width: 100%; justify-content: center; }
  .contact-band h2 br { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom .fb-right { margin-left: 0; }
  .mobile-panel a.mp-link { font-size: 2.1rem; }
  .statement { max-width: none; }
  .statement-sub { margin-left: 0; padding-left: clamp(1.4rem, 3vw, 2.6rem); }
  .chart text { display: none; }
  .hero-chart.chart-sm { opacity: 0.3; }
  .flow-track { grid-template-columns: minmax(0, 1fr); }
  .flow-track::before {
    top: 0; bottom: 0; left: 5px; right: auto;
    width: 1px; height: auto;
  }
  .flow-track .flow-line {
    top: 0; left: 5px; width: 1px; height: 100%;
    transform: scaleY(0);
    transform-origin: center top;
  }
  .flowmap.in-view .flow-line { transform: scaleY(1); }
  .flow-step { padding-top: 0; padding-left: 30px; padding-bottom: 1.8rem; }
  .flow-step:last-child { padding-bottom: 0; }
  .flow-step .dm { top: 4px; }
  .compare-row { grid-template-columns: minmax(0, 1fr); }
  .compare-row.head { display: none; }
  .compare-row > div + div { border-left: 0; border-top: 0; }
  .compare-row.head > div:last-child { border-top: 1px solid var(--rule-d); }
  .c-old::before, .c-new::before {
    display: block;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .c-old::before { content: "The old way"; color: var(--smoke); }
  .c-new::before { content: "With TradeForma"; color: var(--gold-deep); }
  .compare-row .c-new {
    background: var(--paper-dim);
    border-left: 2px solid var(--gold);
  }
}

/* ==========================================================================
   Footer clearance under the solid (fixed) header
   --------------------------------------------------------------------------
   Once the page is scrolled to the end, #header is fixed and 80px tall, so the
   footer's top edge lands hard against the top of the viewport. The TRADEFORMA
   wordmark sits only ~56px into the footer -- above 640px, where the footer is
   a single stacked column and so its tallest -- which put it *behind* the
   frosted bar: fully hidden on a 780-812px-tall viewport, sliced roughly in
   half around 836-840px, and clear only from ~844px up.

   Trimming the stacked footer's rhythm shortens it from ~821px to ~700px, which
   moves the wordmark down relative to the end of the document and clears the
   header at every height tested (664-1000px at 390px wide). Every other footer
   element stays on screen.

   Scoped to <=900px on purpose: the desktop 4-column footer is only ~378px tall
   and already clears the header with a wide margin.
   ========================================================================== */
@media (max-width: 900px) {
  .footer-grid { gap: 2rem; padding-block: 2rem; }
  .footer-col ul { gap: 0.35rem; }
  .footer-bottom { padding-block: 0.85rem; gap: 0.4rem 2rem; }
}

/* Reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .flow-track .flow-line { transform: scaleX(1); }
  .flow-step .dm { transform: rotate(45deg) scale(1); }
  .flow-step h3, .flow-step p { opacity: 1; transform: none; }
}
