/* ==========================================================================
   Vestivra public site — design system
   Brand tokens match the Vestivra application (navy / gold / ivory,
   Libre Baskerville + Public Sans, self-hosted under SIL OFL).
   ========================================================================== */

@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Brand */
  --navy: #1F2A44;
  --navy-deep: #151E33;
  --navy-2: #2A3857;
  --navy-3: #3A4A6E;
  --gold: #B08D57;
  --gold-deep: #866638;   /* ≥4.5:1 on white, ivory and mist */
  --gold-light: #C29F69;
  --gold-soft: #F4EDE1;
  --gold-line: rgba(176, 141, 87, .45);

  /* Neutrals */
  --ink: #1F2A44;
  --text: #3A4560;
  --muted: #5E6573;
  --muted-2: #8A909C;
  --white: #FFFFFF;
  --ivory: #FBFBF8;
  --mist: #F3F5F8;      /* very light blue-gray section fill */
  --mist-2: #E8ECF2;
  --border: #E3E7EE;
  --border-warm: #E3DDD0;

  /* Status (used sparingly, in product illustrations) */
  --ok: #3F6B57;
  --ok-soft: #E7F0EB;
  --warn: #8C6B3A;
  --warn-soft: #F6EEDF;
  --flag: #8A3B3B;
  --flag-soft: #F5E6E4;

  /* Type */
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-h3: 1.2rem;
  --fs-h2: clamp(1.7rem, 1.2rem + 1.6vw, 2.45rem);
  --fs-h1: clamp(2.2rem, 1.4rem + 3.3vw, 3.75rem);

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(21, 30, 51, .06);
  --shadow: 0 1px 2px rgba(21, 30, 51, .05), 0 12px 32px -12px rgba(21, 30, 51, .18);
  --shadow-lg: 0 2px 4px rgba(21, 30, 51, .08), 0 30px 60px -20px rgba(10, 16, 30, .45);
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }   /* no smooth scrolling: anchor links must land instantly */
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.demo-card :focus-visible { outline-color: var(--gold-deep); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; letter-spacing: -.01em; margin: 0; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.35; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold-light); }   /* ≥4.5:1 on every navy tone in the gradients */
.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); }
.section-head { max-width: 720px; display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.gold-rule { width: 44px; height: 2px; background: var(--gold); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: var(--radius);
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #C29F69; color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { font-weight: 600; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--gold-line); padding-bottom: 2px; }
.text-link:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px;
  background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
}
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; letter-spacing: .18em; }
.wordmark .accent { color: var(--gold); }
.brand-light { color: #fff; }
.brand-light .brand-mark { background: rgba(255,255,255,.08); border: 1px solid rgba(176,141,87,.5); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav ul a {
  display: block; padding: 8px 12px; font-size: .95rem; font-weight: 500; color: var(--text);
  text-decoration: none; border-radius: var(--radius); position: relative;
}
.site-nav ul a:hover { color: var(--navy); background: var(--mist); }
.site-nav ul a[aria-current="page"] { color: var(--navy); }
.site-nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-signin { font-size: .95rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.nav-signin:hover { color: var(--gold-deep); }
.nav-actions .btn { min-height: 42px; padding: 9px 18px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; place-items: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 1.6px; background: var(--navy); position: relative; transition: transform .2s ease, background-color .2s ease; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .site-nav ul a:hover { background: transparent; }
  .site-nav ul a[aria-current="page"]::after { left: 4px; right: auto; width: 24px; bottom: -1px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .nav-signin { padding: 6px 4px; }
  .nav-actions .btn { width: 100%; min-height: 48px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy); color: #C9CFDB; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lede { color: #B9C0CE; }
.hairline { border-top: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #C9CFDB;
  background:
    radial-gradient(110% 80% at 88% 110%, var(--navy-3) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 0%, #243152 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
  padding-block: clamp(72px, 10vw, 140px) clamp(80px, 11vw, 150px);
}
.hero-copy { display: grid; gap: 28px; }
.hero h1 { color: #fff; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero .lede { color: #B9C0CE; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero-visual svg { width: 100%; height: auto; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 72px); max-width: 1040px; margin: 0 auto; }
.benefit { display: grid; gap: 14px; justify-items: center; text-align: center; }
.benefit-num { font-family: var(--serif); font-size: .95rem; color: var(--gold-deep); letter-spacing: .08em; padding-bottom: 14px; position: relative; }
.benefit-num::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 24px; height: 1px; background: var(--gold); transform: translateX(-50%); }
.benefit h3 { font-size: 1.35rem; }
.benefit p { color: var(--muted); max-width: 300px; }

/* ---------- Who we serve ---------- */
.serves { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.serves .section-head { margin-bottom: 0; }
.serves-list { list-style: none; border-top: 1px solid var(--border-warm); }
.serves-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--border-warm); }
.serves-list h3 { font-size: 1.25rem; }
.serves-list p { color: var(--muted); }

/* ---------- Trust ---------- */
.section-navy h2 em { font-style: italic; font-weight: 400; color: var(--gold); white-space: nowrap; }
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); max-width: 1100px; margin: 0 auto; }
.trust li { display: grid; gap: 10px; align-content: start; padding: 36px 28px 8px; border-left: 1px solid rgba(255,255,255,.12); }
.trust li:first-child { border-left: 0; }
.trust svg { color: var(--gold); margin-bottom: 6px; }
.trust h3 { font-size: 1.1rem; }
.trust p { color: #B9C0CE; font-size: .95rem; }
.trust-more { display: flex; justify-content: center; margin-top: 56px; }
.text-link.light { color: #fff; border-bottom-color: rgba(176,141,87,.6); }
.text-link.light:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(176,141,87,.28); background: var(--navy-deep); color: #9FA7B7; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-tag { color: #C9CFDB; max-width: 300px; line-height: 1.5; }
.footer-parent { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer-col h2 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #B9C0CE; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: #7F889B; }
.footer-disclaimer { max-width: 560px; text-align: right; }

/* ---------- Interior page shell (stubs) ---------- */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--border); padding: clamp(56px, 7vw, 96px) 0; }
.page-hero .section-head { margin-bottom: 0; }
.stub-note { padding: 18px 20px; border: 1px dashed var(--border-warm); background: var(--ivory); border-radius: var(--radius); color: var(--muted); font-size: var(--fs-sm); max-width: 720px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .trust li { padding-bottom: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 420px; }
  .serves { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 640px) {
  :root { --fs-base: 1rem; --fs-lg: 1.08rem; }
  .header-inner { height: 68px; }
  .site-nav { top: 68px; }
  .wordmark { font-size: 1.05rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 1rem; }
  .hero .eyebrow::before { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { max-width: 340px; }
  .serves-list li { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .trust { grid-template-columns: 1fr; }
  .trust li, .trust li:nth-child(3) { border-left: 0; padding: 28px 0; }
  .trust li + li { border-top: 1px solid rgba(255,255,255,.12); }
  .section-navy h2 em { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-base { flex-direction: column; }
  .footer-disclaimer { text-align: left; }
}

/* ---------- Interior pages ---------- */
.hero-page-inner { position: relative; display: grid; gap: 26px; max-width: 760px; padding-block: clamp(80px, 10vw, 136px); }
.hero-page h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
.hero-page h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero-page .lede { max-width: 620px; }

.capabilities { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-warm); }
.capabilities li { display: grid; gap: 10px; align-content: start; padding: 40px 32px 44px; border-bottom: 1px solid var(--border-warm); border-left: 1px solid var(--border-warm); }
.capabilities li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.capabilities svg { color: var(--gold-deep); margin-bottom: 8px; }
.capabilities h3 { font-size: 1.2rem; }
.capabilities p { color: var(--muted); }

.prose-block { display: grid; gap: 20px; max-width: 620px; }
.prose-block p:not(.lede) { color: var(--muted); font-size: var(--fs-sm); padding-top: 20px; border-top: 1px solid var(--border-warm); }

@media (max-width: 900px) {
  .capabilities { grid-template-columns: 1fr 1fr; }
  .capabilities li, .capabilities li:nth-child(3n+1) { border-left: 0; padding: 32px 24px 32px 0; }
  .capabilities li:nth-child(even) { border-left: 1px solid var(--border-warm); padding-left: 24px; }
}
@media (max-width: 640px) {
  .capabilities { grid-template-columns: 1fr; }
  .capabilities li, .capabilities li:nth-child(even) { border-left: 0; padding: 28px 0; }
}

/* ---------- Request a Demo ---------- */
.demo-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(40px, 7vw, 112px); align-items: center; padding-block: clamp(72px, 9vw, 128px); }
.demo-copy { display: grid; gap: 24px; align-content: center; }
.demo-copy h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
.demo-copy h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.demo-copy .lede { max-width: 480px; }
.demo-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(28px, 3.5vw, 40px); position: relative; overflow: hidden; }
.demo-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), #D2B98E 60%, var(--gold)); }
.demo-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--muted-2); border-radius: var(--radius); padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.demo-form .btn { width: 100%; min-height: 50px; margin-top: 6px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235E6573' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.demo-note { font-size: var(--fs-sm); color: #9FA7B7; max-width: 440px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.collection-notice { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.collection-notice p { font-size: .76rem; line-height: 1.55; color: var(--muted); }
.collection-notice strong { color: var(--ink); font-weight: 600; }
.collection-notice a { color: var(--navy); font-weight: 600; text-decoration-color: var(--gold-line); }
.legal h2[id] { scroll-margin-top: 96px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile's widget is at least 300px wide; scale it to fit the narrowest phones. */
.cf-turnstile { min-height: 65px; min-width: 0; max-width: 100%; }
@media (max-width: 359px) {
  .cf-turnstile { width: 231px; height: 50px; min-height: 0; }
  .cf-turnstile > * { transform: scale(0.77); transform-origin: left top; }
}
.form-status { font-size: .88rem; color: var(--muted); text-align: center; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); font-weight: 600; }
.form-status.is-error { color: var(--flag); }
.demo-form .btn:disabled { opacity: .7; cursor: progress; }
@media (max-width: 900px) {
  .demo-inner { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */
.hero-legal .hero-page-inner { gap: 18px; padding-block: clamp(64px, 8vw, 104px); }
.legal-meta { font-size: var(--fs-sm); color: #9FA7B7; }
.legal { max-width: 720px; }
.legal > * + * { margin-top: 16px; }
.legal h2 { font-size: 1.3rem; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-warm); }
.legal h3 { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-top: 32px; }
.legal h2 + h3 { margin-top: 20px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2em; display: grid; gap: 10px; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--ink); font-weight: 600; }

/* ---------- About: tighter vertical rhythm ---------- */
/* hero −28%, Our Purpose −38%, How We Build −30%, Company −28% (desktop: 136→98, 128→80, 128→90, 128→92) */
.page-about .hero-page-inner { padding-block: clamp(58px, 7.2vw, 98px); }
.page-about section[aria-labelledby="purpose-title"] { padding-block: clamp(45px, 5.6vw, 80px); }
.page-about section[aria-labelledby="principles-title"] { padding-block: clamp(50px, 6.3vw, 90px); }
.page-about section[aria-labelledby="company-title"] { padding-block: clamp(52px, 6.4vw, 92px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
