/* ============================================================
   Scala Auxilio — shared design system
   ============================================================ */

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

:root {
  --ink: #0F1E3C;
  --ink-soft: #15294D;
  --forest: #1F3A2E;
  --forest-deep: #16291F;
  --cream: #F2EBDC;
  --cream-soft: #F8F3E7;
  --cream-muted: rgba(242, 235, 220, 0.68);
  --ink-muted: rgba(15, 30, 60, 0.62);
  --gold: #C9A24C;
  --gold-soft: #E5D29A;
  --line: rgba(15, 30, 60, 0.12);
  --line-dark: rgba(242, 235, 220, 0.16);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1480px;
  --padding-x: clamp(24px, 5vw, 80px);
  --section-y: clamp(120px, 14vw, 200px);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
  opacity: 0.10;
  mix-blend-mode: multiply;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--padding-x); position: relative; }
.visually-hidden { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── Display utilities ─── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.eyebrow.on-dark { color: var(--cream-muted); }
.eyebrow.with-rule { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow.with-rule::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
.h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.08; }
.h2 { font-size: clamp(34px, 4.8vw, 68px); line-height: 1.12; }
.h3 { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.18; }

.gold { color: var(--gold); font-style: italic; font-family: var(--font-display); font-weight: 500; }

.body-lg { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; max-width: 64ch; color: var(--ink); }
.body-lg.on-dark { color: var(--cream-muted); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.body-sm.on-dark { color: var(--cream-muted); }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; font-size: 15px; font-weight: 500;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn-cream-on-dark { background: var(--cream); color: var(--ink); }
.btn-cream-on-dark:hover { background: var(--gold-soft); }
.btn-ink-on-cream { background: var(--ink); color: var(--cream); }
.btn-ink-on-cream:hover { background: var(--ink-soft); }
.btn-ghost-gold { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn-ghost-gold.on-dark { color: var(--cream); }
.btn-ghost-gold:hover { background: var(--gold); color: var(--ink); }

.link-gold { position: relative; text-decoration: none; color: inherit; font-weight: 500; padding-bottom: 4px; display: inline-block; }
.link-gold::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.link-gold:hover::after { transform: scaleX(1); }
.link-gold.active::after { transform: scaleX(1); }
.link-gold-static { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color 0.2s ease, border-color 0.2s ease; }
.link-gold-static:hover { color: var(--gold); }

.rule { height: 1px; background: var(--line); border: none; width: 100%; }
.rule.on-dark { background: var(--line-dark); }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 235, 220, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: border-bottom-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 18px var(--padding-x); display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark-name { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.015em; line-height: 1; display: inline-flex; align-items: baseline; gap: 0; white-space: nowrap; }
.wordmark-o { display: inline-block; width: 0.7em; height: 0.7em; vertical-align: baseline; position: relative; top: 0.04em; flex-shrink: 0; }
.wordmark-o svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wordmark-o svg circle, .wordmark-o svg path { vector-effect: non-scaling-stroke; }
.footer-brand .wordmark-name { font-size: 36px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a.btn-ghost-gold { padding: 9px 20px; font-size: 14px; }

.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 0 40px; background: var(--cream-soft);
    transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
    box-shadow: -20px 0 60px rgba(15,30,60,0.12); z-index: 60;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 20px; font-family: var(--font-display); }
  .nav-links a.btn-ghost-gold { font-size: 15px; font-family: var(--font-body); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(15,30,60,0.3); z-index: 55; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
}

/* ─── SECTION SHARED ─── */
section { padding: var(--section-y) 0; position: relative; }
.section-cream { background: var(--cream); color: var(--ink); }
.section-cream-soft { background: var(--cream-soft); color: var(--ink); }
.section-navy { background: var(--ink); color: var(--cream); }
.section-forest { background: var(--forest); color: var(--cream); }

.section-head { max-width: 64ch; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { margin-bottom: 28px; display: inline-flex; align-items: center; gap: 14px; }
.section-head .eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); display: block; }
.section-head h2 { margin-bottom: 24px; max-width: 16ch; }
.section-head p { max-width: 52ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center h2, .section-head.center p { margin-left: auto; margin-right: auto; }

/* ─── HOME HERO ─── */
.hero { background: var(--ink); color: var(--cream); display: flex; align-items: center; padding: clamp(64px, 8vw, 112px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: center; width: 100%; }
.hero-text { max-width: 600px; }
.hero h1 { color: var(--cream); max-width: 15ch; }
.hero-sub { margin-top: 26px; max-width: 42ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--cream-muted); }
.hero-phone-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--cream); text-decoration: none; }
.hero-phone-cta:hover { color: var(--gold-soft); }
.hero-phone-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; flex-shrink: 0; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; margin-left: auto; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-text { max-width: 640px; }
  .hero-visual { order: -1; max-width: 320px; margin: 0; }
}

/* ─── SUB-PAGE HERO ─── */
.page-hero { background: var(--ink); color: var(--cream); padding: clamp(120px, 16vw, 200px) 0 clamp(72px, 9vw, 120px); position: relative; overflow: hidden; }
.page-hero .eyebrow { color: var(--cream-muted); display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.page-hero .eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.page-hero h1 { color: var(--cream); max-width: 18ch; }
.page-hero p { color: var(--cream-muted); max-width: 50ch; margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.page-hero-blob { position: absolute; inset: -20% -10% auto auto; width: 60%; max-width: 640px; opacity: 0.5; pointer-events: none; z-index: 0; }
.page-hero::after {
  content: ''; position: absolute; top: -80px; right: -60px;
  width: min(46vw, 520px); aspect-ratio: 1; z-index: 0; pointer-events: none;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><g fill='none' stroke='%23F2EBDC' stroke-opacity='0.10'><circle cx='250' cy='150' r='160'/><circle cx='250' cy='150' r='114'/><circle cx='250' cy='150' r='68'/></g><circle cx='250' cy='150' r='7' fill='%23C9A24C'/><path d='M150 300 C 210 220 250 160 350 36' stroke='%23C9A24C' stroke-opacity='0.55' stroke-width='3' fill='none' stroke-linecap='round'/><circle cx='350' cy='36' r='7' fill='%23C9A24C'/></svg>");
}
@media (max-width: 700px) { .page-hero::after { opacity: 0.6; } }
.page-hero .container { position: relative; z-index: 1; }

/* ─── BUTTON ROW + microcopy + footer seal ─── */
.cta-row { margin-top: 44px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.cta-microcopy { margin-top: 16px; font-size: 13px; letter-spacing: 0.01em; color: var(--ink-muted); }
.cta-microcopy.on-dark { color: var(--cream-muted); }

.footer-seal { padding-bottom: clamp(40px, 6vw, 64px); margin-bottom: clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line-dark); }
.footer-seal .footer-seal-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-muted); display: block; margin-bottom: 16px; }
.footer-seal p { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(26px, 4vw, 46px); line-height: 1.12; color: var(--cream); max-width: 22ch; }
.footer-seal p .gold { color: var(--gold); }

/* ─── PILLARS GRID ─── */
.pillars-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar { background: var(--cream); padding: 44px 28px 40px; display: flex; flex-direction: column; gap: 18px; transition: background 0.3s ease; position: relative; }
.pillar:hover { background: var(--cream-soft); }
.pillar-visual { position: relative; aspect-ratio: 4 / 3; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 2px; }
.pillar-numeral { font-family: var(--font-display); font-weight: 500; font-size: clamp(52px, 5vw, 78px); line-height: 1; color: var(--gold); letter-spacing: -0.01em; transition: transform 0.4s ease; }
.pillar:hover .pillar-numeral { transform: translateY(-2px); }
.pillar-num { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.pillar-name { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.015em; line-height: 1.15; }
.pillar-desc { font-size: 15px; line-height: 1.55; color: var(--ink-muted); flex-grow: 1; }
.pillar-status { align-self: flex-start; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.pillar-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pillar-status.live { color: #437A22; background: rgba(67,122,34,0.10); }
.pillar-status.build { color: var(--gold); background: rgba(201,162,76,0.14); }
.pillar-status.scoping { color: var(--ink-muted); background: rgba(15,30,60,0.07); }
.pillars-link-row { margin-top: 40px; }
.pillar.is-wedge { background: var(--cream-soft); }
.pillar.is-wedge::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); }

/* ─── PROBLEM STATS ─── */
.problem-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 80px); }
@media (max-width: 800px) { .problem-stats { grid-template-columns: 1fr; gap: 48px; } }
.problem-stat { padding-top: 24px; border-top: 1px solid var(--line-dark); }
.problem-stat-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(72px, 12vw, 140px); line-height: 0.95; letter-spacing: -0.04em; color: var(--cream); display: block; margin-bottom: 24px; }
.problem-stat-num small { font-size: 0.36em; font-weight: 400; margin-left: 2px; color: inherit; opacity: 0.55; }
.problem-stat-label { font-size: 16px; line-height: 1.45; color: var(--cream-muted); max-width: 22ch; }

/* ─── APPROACH ─── */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; gap: 64px; } }
.approach-visual { position: relative; aspect-ratio: 4/5; max-width: 480px; width: 100%; }
.approach-list { list-style: none; display: flex; flex-direction: column; gap: 36px; }
.approach-item { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.approach-num { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--gold); line-height: 1; }
.approach-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.015em; margin-bottom: 6px; color: var(--ink); }
.approach-item p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.approach-item.on-dark { border-top-color: var(--line-dark); }
.approach-item.on-dark h3 { color: var(--cream); }
.approach-item.on-dark p { color: var(--cream-muted); }
.art-panel { position: absolute; inset: 0; border-radius: 360px 360px 12px 12px; background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 55%, var(--forest) 100%); overflow: hidden; box-shadow: 0 40px 80px rgba(15,30,60,0.22); }
.art-panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-panel--soft { border-radius: 12px; }
.approach-arc { position: absolute; inset: -18px -18px auto auto; width: 30%; aspect-ratio: 1; pointer-events: none; z-index: 2; }

/* ─── TIMELINE ─── */
.timeline-wrap { position: relative; padding-top: 24px; }
.timeline-line { position: absolute; top: 60px; left: 0; right: 0; height: 1px; background: var(--gold); opacity: 0.5; }
.timeline-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
@media (max-width: 900px) { .timeline-line { display: none; } .timeline-grid { grid-template-columns: 1fr; gap: 32px; } }
.timeline-step { display: flex; flex-direction: column; gap: 14px; position: relative; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); position: relative; z-index: 1; margin-bottom: 32px; }
@media (max-width: 900px) { .timeline-dot { margin-bottom: 8px; } }
.timeline-week { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.timeline-step h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--cream); letter-spacing: -0.015em; }
.timeline-step p { font-size: 14px; color: var(--cream-muted); line-height: 1.55; }

/* ─── PROOF ─── */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-card { padding: clamp(40px, 4vw, 56px); border: 1px solid var(--line); border-radius: 8px; background: var(--cream-soft); display: flex; flex-direction: column; gap: 24px; }
.proof-card .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.pulsing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 76, 0.5); } 70% { box-shadow: 0 0 0 12px rgba(201, 162, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 76, 0); } }
.proof-card h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.015em; line-height: 1.15; }
.proof-card p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); max-width: 36ch; }
.demo-phone { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.demo-phone-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.01em; }
.demo-copy-btn { background: transparent; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-family: inherit; font-size: 12px; cursor: pointer; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s ease; }
.demo-copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.pilots-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pilot { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pilot:last-child { border-bottom: none; padding-bottom: 0; }
.pilot-logo { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--cream); letter-spacing: -0.02em; overflow: hidden; flex-shrink: 0; }
.pilot-logo.alt { background: var(--forest); }
.pilot-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pilot-name { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.pilot-meta { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; }
.pilot-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.5; margin-top: 6px; }

/* ─── CLOSE ─── */
.close { background: var(--forest); color: var(--cream); text-align: center; padding: clamp(140px, 18vw, 220px) 0; position: relative; overflow: hidden; }
.close-blob { position: absolute; inset: -10% -10%; pointer-events: none; opacity: 0.08; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: translate(-4%, -2%) rotate(-3deg); } 100% { transform: translate(6%, 4%) rotate(4deg); } }
.close-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.close h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5.2vw, 72px); letter-spacing: -0.015em; line-height: 1.12; color: var(--cream); margin-bottom: 28px; }
.close-sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--cream-muted); max-width: 44ch; margin: 0 auto 48px; }
.close-actions { display: flex; flex-direction: column; gap: 28px; align-items: center; }
.close-actions .link-gold-static { color: var(--cream); font-size: 14px; }
.close-eyebrow { display: inline-block; margin-bottom: 24px; font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.close-scaling { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 16px; color: var(--cream-muted); margin: 0 0 40px; line-height: 1.5; }
.close-phone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 28px; border: 1px solid var(--line-dark); border-radius: 999px; }
.close-phone-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-muted); }
.close-phone-row { display: flex; align-items: center; gap: 14px; }
.close-phone-num { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; color: var(--cream); text-decoration: none; transition: color 0.2s ease; }
.close-phone-num:hover { color: var(--gold); }
.close-copy-btn { color: var(--cream-muted); border-color: var(--line-dark); }
.close-copy-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ─── FEATURE / DETAIL CARDS ─── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; gap: 24px; } }
.feature-card { padding: 40px 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream-soft); display: flex; flex-direction: column; gap: 16px; }
.feature-card .num { font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.feature-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.015em; }
.feature-card p { font-size: 15px; color: var(--ink-muted); line-height: 1.55; }

/* ─── DEEP PILLAR ROWS ─── */
.pillar-row { display: grid; grid-template-columns: 88px 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .pillar-row { grid-template-columns: 1fr; gap: 20px; } }
.pillar-row:last-child { border-bottom: 1px solid var(--line); }
.pillar-row-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px, 6vw, 72px); color: var(--gold); line-height: 0.9; }
.pillar-row h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; margin-bottom: 14px; }
.pillar-row p { color: var(--ink-muted); max-width: 60ch; line-height: 1.6; }
.pillar-row .pillar-status { margin-top: 6px; }

/* ─── DIAGRAM ─── */
.diagram { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 12px; padding: clamp(32px, 5vw, 64px); }
.diagram svg { width: 100%; height: auto; display: block; }

/* ─── TEAM ─── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { display: flex; flex-direction: column; gap: 6px; }
.team-avatar { aspect-ratio: 1; border-radius: 12px; margin-bottom: 16px; background: linear-gradient(160deg, var(--ink), var(--forest)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 40px; color: var(--gold); }
.team-name { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.team-role { font-size: 13px; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.team-bio { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; margin-top: 10px; }

/* ─── CONTACT / FORM / CALLBACK ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

/* Aria callback widget */
.aria-cb { border: 1px solid var(--gold); border-radius: 14px; background: var(--ink); color: var(--cream); padding: clamp(24px, 3vw, 34px); position: relative; overflow: hidden; }
.aria-cb .eyebrow { color: var(--cream-muted); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.aria-cb .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
.aria-cb h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.015em; color: var(--cream); margin-bottom: 8px; }
.aria-cb p.lede { color: var(--cream-muted); font-size: 14.5px; line-height: 1.5; margin-bottom: 20px; max-width: 42ch; }
.aria-cb .cb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 520px) { .aria-cb .cb-row { grid-template-columns: 1fr; } }
.aria-cb .cb-phone { display: grid; grid-template-columns: 116px 1fr; gap: 12px; margin-bottom: 12px; }
.aria-cb label.fl { display: block; font-size: 12px; color: var(--cream-muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.aria-cb input, .aria-cb select { width: 100%; font-family: inherit; font-size: 15px; color: var(--cream); background: var(--ink-soft); border: 1px solid var(--line-dark); border-radius: 8px; padding: 12px 13px; transition: border-color 0.2s ease; }
.aria-cb input::placeholder { color: rgba(242,235,220,0.4); }
.aria-cb input:focus, .aria-cb select:focus { outline: none; border-color: var(--gold); }
.aria-cb select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A24C' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.aria-cb .cb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--cream-muted); line-height: 1.45; margin: 6px 0 18px; }
.aria-cb .cb-consent input { width: auto; margin-top: 2px; flex-shrink: 0; }
.aria-cb .cb-consent a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
.aria-cb .cb-consent a:hover { border-bottom-color: var(--gold); }
.aria-cb button[type="submit"] { width: 100%; justify-content: center; background: var(--gold); color: var(--ink); border: none; }
.aria-cb button[type="submit"]:hover { background: var(--gold-soft); }
.aria-cb button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }
.aria-cb .cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cb-status { margin-top: 14px; font-size: 14px; line-height: 1.5; display: none; }
.cb-status.show { display: block; }
.cb-status.ok { color: var(--gold-soft); }
.cb-status.err { color: #e3a59a; }
.aria-cb .cb-fineprint { margin-top: 14px; font-size: 11.5px; color: var(--cream-muted); opacity: 0.8; line-height: 1.45; }

/* Request-a-call form */
.call-form { border: 1px solid var(--line); border-radius: 12px; background: var(--cream-soft); padding: clamp(28px, 4vw, 44px); }
.call-form .field { margin-bottom: 20px; }
.call-form label { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 8px; color: var(--ink); }
.call-form label .req { color: var(--gold); }
.call-form input, .call-form textarea, .call-form select { width: 100%; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px; transition: border-color 0.2s ease; }
.call-form input:focus, .call-form textarea:focus, .call-form select:focus { outline: none; border-color: var(--gold); }
.call-form textarea { resize: vertical; min-height: 110px; }
.call-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .call-form .row2 { grid-template-columns: 1fr; } }
.call-form .consent-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-muted); line-height: 1.5; margin: 4px 0 22px; }
.call-form .consent-line input { width: auto; margin-top: 3px; flex-shrink: 0; }
.call-form .consent-line a { color: var(--ink); border-bottom: 1px solid var(--gold); text-decoration: none; }
.call-form button[type="submit"] { width: 100%; justify-content: center; }
.form-status { margin-top: 16px; font-size: 14px; line-height: 1.5; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #437A22; }
.form-status.err { color: #9a3b2e; }

.contact-aside { display: flex; flex-direction: column; gap: 28px; }
.contact-aside .lead { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -0.01em; }
.contact-item { padding-top: 20px; border-top: 1px solid var(--line); }
.contact-item h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.contact-item a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.contact-item a:hover { color: var(--gold); }

/* ─── LEGAL / PROSE ─── */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.015em; margin: 48px 0 16px; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-muted); line-height: 1.7; margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--gold); text-decoration: none; }
.prose strong { color: var(--ink); font-weight: 600; }
.legal-meta { font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; }
.callout { border: 1px solid var(--gold); border-radius: 10px; background: rgba(201,162,76,0.08); padding: 22px 26px; margin: 28px 0; color: var(--ink); }
.callout strong { color: var(--ink); }
.draft-banner { background: var(--gold); color: var(--ink); text-align: center; font-size: 13px; font-weight: 500; padding: 10px 20px; letter-spacing: 0.02em; }

/* ─── FOOTER ─── */
footer { background: var(--forest-deep); color: var(--cream-muted); padding: clamp(56px, 7vw, 80px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand .wordmark { color: var(--cream); }
.footer-brand .wordmark-name { color: var(--cream); }
.footer-tag { font-size: 13px; max-width: 36ch; line-height: 1.55; margin-top: 16px; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--cream); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--cream-muted); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; letter-spacing: 0.04em; }

/* ─── COOKIE / CONSENT BANNER ─── */
.consent { position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 120; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--cream); border: 1px solid var(--line-dark); border-radius: 14px; padding: 22px 24px; box-shadow: 0 24px 60px rgba(15,30,60,0.35); display: none; }
.consent.show { display: block; animation: fadeUp 0.4s ease forwards; }
.consent p { font-size: 13.5px; line-height: 1.55; color: var(--cream-muted); margin-bottom: 16px; }
.consent a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
.consent a:hover { border-bottom-color: var(--gold); }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent .btn { padding: 10px 20px; font-size: 14px; }
.consent .btn-ghost { background: transparent; border-color: var(--line-dark); color: var(--cream); }
.consent .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─── ANIMATION HELPERS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
