/* ============================================================
   D1 GLASS v2 — Vela Studio (fictional demo brand)
   Implements masters/glass-v2/DESIGN-SYSTEM.md exactly.
   Depth = lightness steps, not blur. Glass budget: nav pill +
   max ONE designated chrome element per page. Solid is emphasis.
   ============================================================ */

/* ---------- Fonts (self-hosted, §1) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (§3, §5) ---------- */
:root {
  --bg0: #0b0b0c;
  --surface-1: #141416;
  --surface-2: #1c1c1f;
  --line: rgb(255 255 255 / 0.08);
  --line-hi: rgb(255 255 255 / 0.22);
  --text: #f4f2ef;
  --text-2: rgb(244 242 239 / 0.64);
  --hue: #ff6b3d;
  --hue-ink: #1c0a04;
  /* --hue-deep #33110A / --hue-core #FFD3BE live in the artwork only (§5) */

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 9rem;
  --s9: 14rem;

  --r-card: 10px;
  --r-media: 14px;
  --r-pill: 999px;

  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --glass-tint: rgb(11 11 12 / 0.6); /* ≥ .55 floor, §6/§8 */
  --glass-shadow: 0 16px 48px -24px rgb(0 0 0 / 0.7);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}

/* ---------- Focus (§11 / 13.3) — declared once, no outline:none anywhere ---------- */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.btn-inverse:focus-visible,
.tier-featured .btn:focus-visible {
  outline-color: var(--hue); /* ring flips on --text-filled chrome */
}

/* ---------- Skip link (13.4) — solid --surface-2 chip ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s3);
  z-index: 100;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--s3);
}

/* ---------- Type scale (§2) ---------- */
.display-1 {
  font-size: clamp(3.5rem, 8.5vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-stretch: 112%;
  font-weight: 480;
}
.display-2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-stretch: 112%;
  font-weight: 480;
}
.title {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-stretch: 106%;
  font-weight: 520;
}
.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 32em;
}
.small {
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
}
.hud {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.label {
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 560;
}
@media (max-width: 48rem) {
  .display-1 { letter-spacing: -0.02em; }
  .display-2 { letter-spacing: -0.02em; }
}
p { max-width: 38em; }
.kw { color: var(--hue); font-style: normal; } /* the ONE keyword per page (§5) */
.t2 { color: var(--text-2); }
.nb { white-space: nowrap; } /* keep a HUD phrase unit intact — break only at separators (§14.2) */

/* ---------- Layout (§4) ---------- */
.wrap {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s4);
}
.section {
  padding-block: var(--s8);
}
.band {
  background: var(--surface-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 64rem) {
  .section { padding-block: var(--s7); }
  .grid > * { grid-column: 1 / -1 !important; } /* collapses inline col spans */
}
@media (max-width: 48rem) {
  .wrap { padding-inline: 1rem; }
  .section { padding-block: var(--s6); }
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s3);
  margin-bottom: var(--s6);
}
.section-head .hud { color: var(--text-2); }

/* ---------- Glass (§6 — THE recipe; whitelist only) ---------- */
.glass {
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--line-hi), var(--glass-shadow);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass {
    background: rgb(20 20 22 / 0.92); /* solid fallback, §11 */
    box-shadow: inset 0 1px 0 var(--line-hi);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--surface-1);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: inset 0 1px 0 var(--line-hi);
  }
}

/* ---------- Buttons (§9, §11) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-pill);
  border: 0;
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  font-weight: 560;
  cursor: pointer;
  transition: filter 200ms ease;
}
.btn-primary {
  background: var(--hue);
  color: var(--hue-ink);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-lg {
  min-height: 52px;
  padding: 0.85rem 2rem;
  font-size: 1.0625rem;
}
.btn-inverse {
  background: var(--text);
  color: var(--bg0);
}
.btn-inverse:hover { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-hi);
}
.btn-ghost:hover { border-color: rgb(255 255 255 / 0.4); }
/* glass secondary chip — whitelist elements only (§6).
   Inline chrome, not the floating layer: keep the 1px top edge-highlight (physics cue,
   anti-slop rule 5) but drop the heavy 48px cast shadow reserved for floating glass (§4) —
   on bright artwork it read as a dark smudge (finding 4). */
.btn-chip {
  border-radius: var(--r-pill);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--line-hi);
}
.btn-chip:hover { filter: brightness(1.15); }

/* ---------- Nav (§9) ---------- */
.site-nav {
  position: fixed;
  top: var(--s3);
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  max-width: 62rem;
  margin-inline: auto;
  border-radius: var(--r-pill);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
}
.wordmark {
  font-stretch: 112%;
  font-weight: 560;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: var(--s4);
}
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text-2);
  padding: 0.4rem 0.1rem;
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--text); }
/* active = solid --hue dot, never a glass highlight (§9) */
.nav-links a[aria-current="page"] {
  color: var(--text);
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: var(--r-pill);
  background: var(--hue);
}
.menu-btn {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}
@media (max-width: 56rem) {
  .site-nav { padding-inline: var(--s3); }
  .nav-links, .site-nav .btn-inverse { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-pill { padding: 0.4rem 0.4rem 0.4rem 1.25rem; }
}

/* mobile menu — SOLID --bg0 overlay at 100% (§6: no glass over nothing) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg0);
  display: none;
  flex-direction: column;
  padding: var(--s5) var(--s4);
}
.mobile-menu.open { display: flex; }
.mobile-menu .close-btn {
  align-self: flex-end;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
}
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  text-decoration: none;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-stretch: 112%;
  font-weight: 480;
  padding: var(--s2) 0;
}
.mobile-menu a .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--hue);
}
.mobile-menu a[aria-current="page"] { color: var(--text); }
.mobile-menu .mm-foot {
  margin-top: auto;
  color: var(--text-2);
}

/* ---------- Hero (§7, §9) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg0);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  animation: drift 30s ease-in-out infinite alternate; /* §10.1 */
  will-change: transform;
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-inner {
  width: 100%;
  padding-block: var(--s8) var(--s7);
}
.hero .eyebrow {
  display: block;
  color: var(--text-2);
  margin-bottom: var(--s4);
}
.hero h1 { max-width: 6.5em; } /* box hugs the glyphs — keeps the §8 sample zone honest */
.hero h1 .hl {
  display: block;
  animation: rise 300ms ease-out backwards; /* base solid; hidden lives in keyframe (§10) */
}
.hero h1 .hl:nth-child(2) { animation-delay: 70ms; }
.hero h1 .hl:nth-child(3) { animation-delay: 140ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
}
.hero .lede { margin-top: var(--s4); }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
}
/* trust strip — hud facts over the artwork base, 1px line above (§9) */
.trust-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line);
}
.trust-strip ul {
  list-style: none;
  padding: var(--s3) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  color: var(--text-2);
}
@media (max-width: 48rem) {
  .hero { min-height: 92svh; align-items: flex-start; } /* top-anchored: centering re-opened the band — amendment §14.5 */
  .hero-art img { object-position: 80% 50%; }
  .hero-inner { padding-block: var(--s7) var(--s7); } /* kills the empty band under the nav — amendment §14.5 */
  .hero .eyebrow { margin-bottom: var(--s3); }
  .trust-strip ul { gap: var(--s2) var(--s4); }
}

/* ---------- Interior page-head (§7: cropped dimmer band, ≤45vh) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  max-height: 45vh;
  min-height: 34vh;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.page-head .hero-art img { animation: none; object-position: 78% 45%; }
.page-head .wrap {
  width: 100%;
  padding-block: var(--s8) var(--s5);
}
.page-head .eyebrow {
  display: block;
  color: var(--text-2);
  margin-bottom: var(--s3);
}
.page-head h1 { max-width: 14em; }

/* ---------- Service cards (§9) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}
/* 3+2 asymmetric on the services index */
.card-grid.asym { grid-template-columns: repeat(6, 1fr); }
.card-grid.asym .card { grid-column: span 2; }
.card-grid.asym .card:nth-child(4),
.card-grid.asym .card:nth-child(5) { grid-column: span 3; }
@media (max-width: 48rem) {
  .card-grid,
  .card-grid.asym { grid-template-columns: 1fr; }
  .card-grid.asym .card,
  .card-grid.asym .card:nth-child(4),
  .card-grid.asym .card:nth-child(5) { grid-column: auto; }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s5) var(--s4) var(--s4);
  text-decoration: none;
  min-height: 15rem;
  transition: background 200ms ease, border-color 200ms ease;
}
.card .hud { color: var(--text-2); }
.card p { color: var(--text-2); }
.card .card-arrow {
  margin-top: auto;
  align-self: flex-end;
  font-size: 1.25rem;
  color: var(--text-2);
  transition: color 200ms ease, transform 200ms ease;
}
/* hover: light enters — top edge brightens + surface steps (§9, no glow/lift/blur) */
.card:hover {
  background: var(--surface-2);
  border-top-color: var(--line-hi);
}
.card:hover .card-arrow {
  color: var(--text);
  transform: translateX(3px);
}

/* ---------- Price table (§9) ---------- */
.price-panel {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s4);
}
.price-panel .price-note {
  color: var(--text-2);
  padding: var(--s3) var(--s2) 0;
}
.price-rows {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s4);
}
.price-row .p-name { font-stretch: 106%; font-weight: 520; font-size: 1.25rem; letter-spacing: -0.01em; }
.price-row .p-desc { color: var(--text-2); margin-top: var(--s1); }
.price-row .p-price {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--text);
}
/* featured tier — the ONE solid emphasis (Apple selected-pill logic) */
.price-row.featured {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg0);
}
.price-row.featured .p-desc { color: rgb(11 11 12 / 0.68); }
.price-row.featured .p-price { color: var(--bg0); }
@media (max-width: 48rem) {
  .price-row { flex-direction: column; gap: var(--s2); }
}

/* ---------- Blog cards (§9) ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
@media (max-width: 64rem) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 48rem) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease;
}
.post-card:hover {
  background: var(--surface-2);
  border-top-color: var(--line-hi);
}
.post-card img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: var(--r-media) var(--r-media) 0 0;
}
.post-card .post-meta { padding: var(--s3) var(--s4) 0; color: var(--text-2); }
.post-card h3 {
  padding: 0 var(--s4);
  font-stretch: 106%;
  font-weight: 520;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.post-card p {
  padding: 0 var(--s4);
  margin-bottom: var(--s4);
  color: var(--text-2);
}

/* ---------- Article (blog post) ---------- */
.article {
  padding-block: var(--s7) var(--s8);
}
.article-body { max-width: 38em; margin-inline: auto; } /* centered measure — amendment §14.3 */
.article-body > * + * { margin-top: var(--s4); }
.article-body h2 {
  font-stretch: 106%;
  font-weight: 520;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: var(--s6);
}
.article-body ul { padding-left: 1.2em; }
.article-body li + li { margin-top: var(--s2); }
.article-body .pull {
  border-left: 2px solid var(--hue);
  padding-left: var(--s4);
  color: var(--text-2);
  font-size: 1.1875rem;
  line-height: 1.55;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  color: var(--text-2);
  margin-bottom: var(--s5);
  max-width: 38em;
  margin-inline: auto; /* rides the same centered measure as the body */
}
/* 390: stack the byline cleanly instead of a ragged two-column split (§14.2 / finding 3) */
@media (max-width: 48rem) {
  .article-meta { flex-direction: column; gap: var(--s1); }
}

/* reading rail — blog-post's ONE designated glass element (§6) */
.read-rail {
  position: fixed;
  bottom: var(--s3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--s3);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
}
.read-rail .track {
  width: 7rem;
  height: 2px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.read-rail .fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--text);
}
.read-rail .hud { color: var(--text-2); }
.read-rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0 0.5rem;
  white-space: nowrap; /* label never wraps inside the pill — amendment §14.2 */
}
.read-rail a:hover { text-decoration: underline; }
/* Mobile: dock the rail flush to the bottom edge as its own full-width bar so it
   stops floating over body copy; the article reserves clearance below (amendment §14.6). */
@media (max-width: 48rem) {
  .read-rail {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    justify-content: space-between;
    gap: var(--s3);
    border-radius: var(--r-pill) var(--r-pill) 0 0;
    padding: 0.5rem calc(var(--s3) + env(safe-area-inset-right)) calc(0.5rem + env(safe-area-inset-bottom)) calc(var(--s3) + env(safe-area-inset-left));
  }
  .read-rail .track { width: 4rem; flex: 1 1 auto; max-width: 8rem; }
  .read-rail a { font-size: 0.8125rem; padding: 0 0.25rem; }
  /* article's last content scrolls clear of the docked bar */
  .article { padding-bottom: calc(var(--s7) + 3rem); }
}

/* ---------- Forms (§9) ---------- */
.form-panel {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s5);
}
@media (max-width: 48rem) { .form-panel { padding: var(--s4); } }
.field { margin-bottom: var(--s4); }
.field label {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 560;
  margin-bottom: var(--s2);
}
.field .hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-top: var(--s2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  color: var(--text);
  font: inherit;
  padding: 0.7rem 1rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select { appearance: none; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--hue);
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.form-note {
  color: var(--text-2);
  margin-top: var(--s3);
}

/* ---------- Contact specifics ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.contact-info .info-cell {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s4);
}
.contact-info .hud { color: var(--text-2); margin-bottom: var(--s2); display: block; }
.contact-info a { color: var(--text); }

/* call dock — contact's ONE designated glass element (§6) */
.call-dock {
  position: fixed;
  bottom: var(--s3);
  right: var(--s3);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--s3);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
}
.call-dock .hud { color: var(--text-2); }
.call-dock .btn { min-height: 40px; }
/* scroll-aware: never occlude the conversion form/info cells — amendment §14.1 */
.call-dock {
  transition: opacity 200ms ease, visibility 200ms;
}
.call-dock.dock-off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* pages carrying the dock: clear its lane at full scroll so it never sits on the legal line */
body:has(.call-dock) .site-footer { padding-bottom: var(--s7); }

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  padding-block: var(--s8);
}
.cta-band .display-2 { max-width: 14em; }
.cta-band .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}

/* ---------- Footer (§9) ---------- */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--line-hi); /* the page's last light cue */
  padding-block: var(--s7) var(--s4);
}
.site-footer .signoff {
  max-width: 12em;
  margin-bottom: var(--s6);
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s4);
  padding-bottom: var(--s6);
}
@media (max-width: 48rem) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
.footer-cols .hud { color: var(--text-2); margin-bottom: var(--s3); display: block; }
.footer-cols ul { list-style: none; padding: 0; }
.footer-cols li + li { margin-top: var(--s2); }
.footer-cols a { color: var(--text-2); text-decoration: none; }
.footer-cols a:hover { color: var(--text); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  color: var(--text-2);
}

/* ---------- Scroll-in (§10.2) — JS adds .in once; base state is visible ---------- */
.js .io {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.js .io.in {
  opacity: 1;
  transform: none;
}

/* ---------- Utilities ---------- */
.mt-s3 { margin-top: var(--s3); }
.mt-s4 { margin-top: var(--s4); }
.mt-s5 { margin-top: var(--s5); }
.mt-s6 { margin-top: var(--s6); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Reduced motion (§10) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  .hero h1 .hl { animation: none; }
  .js .io {
    transform: none;
    transition: opacity 300ms ease-out;
  }
  .card, .post-card, .btn, .card .card-arrow { transition: none; }
}
