/* SMB Uplevel — v2 site styles. Layer 1: base + systems. Sections append below the marker at EOF. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-settings);
  font-weight: var(--fw-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--navy);
}
h2.display, .h2 {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-settings);
  font-weight: var(--fw-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  color: var(--navy);
}
h3, .h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; color: var(--navy); }
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--orange-deep);
}
.lede { font-size: var(--fs-body-lg); color: var(--fg-muted); max-width: 56ch; }
.muted { color: var(--fg-muted); }

/* ---------- links (underline transition, the only text hover) ---------- */
.link {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-hover) var(--ease-out), text-underline-offset var(--t-hover) var(--ease-out);
}
.link:hover { text-decoration-color: var(--accent); text-underline-offset: 5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: var(--fs-body-sm); font-weight: 600;
  padding: 13px 24px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { background: var(--orange-press); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost.on-dark { color: var(--fg-on-dark); border-color: var(--line-on-dark); }
.btn-ghost.on-dark:hover { border-color: var(--fg-on-dark-muted); }

/* ---------- scroll-reveal (DEFAULT VISIBLE; .js gates the hidden state) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
.js .reveal.in[data-delay="1"] { transition-delay: 60ms; }
.js .reveal.in[data-delay="2"] { transition-delay: 120ms; }
.js .reveal.in[data-delay="3"] { transition-delay: 180ms; }

/* ---------- hero waveform (the one motion moment) ---------- */
.wave { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.wave span { width: 3px; height: 6px; border-radius: 2px; background: var(--accent); }
.js .wave span { animation: wave-idle 2.4s var(--ease-out) infinite; }
.js .wave.live span { animation: wave-live 0.9s ease-in-out infinite; }
.wave span:nth-child(2n) { animation-delay: 0.2s; }
.wave span:nth-child(3n) { animation-delay: 0.4s; }
.wave span:nth-child(5n) { animation-delay: 0.6s; }
.wave span:nth-child(7n) { animation-delay: 0.8s; }
@keyframes wave-idle { 0%, 84%, 100% { transform: scaleY(1); } 92% { transform: scaleY(2); } }
@keyframes wave-live { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(4.3); } }

/* ---------- hero settle-in (one-time, JS-gated) ---------- */
.js .settle { opacity: 0; transform: translateY(16px); }
.js .settle.in { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }

/* ---------- reduced motion kills everything ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .settle { opacity: 1; transform: none; transition: none; }
  .js .wave span, .js .wave.live span { animation: none; height: 12px; }
  .btn, .link { transition: none; }
}

/* ===== sections append below (Tasks 4–9) ===== */

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-scrolled { background: rgba(251,250,247,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-link { font-size: var(--fs-body-sm); font-weight: 500; color: var(--fg-muted); text-decoration: none; transition: color var(--t-hover) var(--ease-out); }
.nav-link:hover { color: var(--navy); }
.nav-toggle { display: none; }
@media (max-width: 780px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--navy); }
  .nav-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 20px var(--gutter); }
}

/* ---------- hero: the dark stage ---------- */
.hero { background: var(--bg-dark); padding-block: clamp(80px, 10vw, 140px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow.on-dark { color: var(--orange-lift); }
.display.on-dark { color: var(--fg-on-dark); }
.lede.on-dark { color: var(--fg-on-dark-muted); }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy .display { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 32px; }

/* light demo card popping off the navy */
.demo-card {
  background: var(--ivory-raised); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-card);
}
.demo-label { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--fg-faint); margin-bottom: 12px; }
.demo-title { font-family: var(--font-display); font-variation-settings: var(--fraunces-settings); font-weight: 480; font-size: 26px; color: var(--navy); margin-bottom: 6px; }
.demo-sub { font-size: var(--fs-body-sm); color: var(--fg-muted); margin-bottom: 18px; }
.demo-card .wave { margin-bottom: 20px; }
.demo-btn { width: 100%; justify-content: center; }
.demo-status { margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-caption); font-weight: 500; color: var(--fg-muted); }
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green); }
.demo-hint { font-size: var(--fs-caption); color: var(--fg-faint); margin-top: 10px; }
.demo-phone { color: var(--navy); font-weight: 600; }

/* ---------- proof strip ---------- */
.proof { border-bottom: 1px solid var(--line); }
.stat-row { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 48px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-row strong { display: block; font-family: var(--font-display); font-variation-settings: var(--fraunces-settings); font-weight: 480; font-size: 28px; color: var(--navy); margin-bottom: 4px; }
.stat-row span { font-size: var(--fs-caption); color: var(--fg-muted); }

/* ---------- services bento ---------- */
#services .eyebrow { margin-bottom: 14px; }
#services .h2 { margin-bottom: var(--space-block); }
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 780px) { .bento { grid-template-columns: 1fr; } }
.tile {
  display: block; background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-decoration: none;
  transition: transform var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.tile:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tile h3 { margin-bottom: 8px; }
.tile p { font-size: var(--fs-body-sm); color: var(--fg-muted); margin-bottom: 16px; }
.tile-ui {
  display: block; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;
  color: var(--charcoal-muted); background: var(--ivory); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 12px;
}

.pill.on .dot { background: var(--accent); }
.pill.err .dot { background: #C23E3E; }

/* ---------- product still-life ---------- */
.product { background: var(--bg-raised); border-block: 1px solid var(--line); }
.product .h2 { margin: 14px 0 var(--space-block); }
.figure-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-figure); border: 1px solid var(--line-strong); background: var(--navy); }
.figure-frame img { width: 100%; height: auto; }
.figure-frame figcaption { font-size: var(--fs-caption); color: var(--fg-muted); background: var(--ivory-raised); padding: 14px 20px; border-top: 1px solid var(--line); }

/* ---------- steps ---------- */
.how .h2 { margin: 14px 0 var(--space-block); }
.steps { list-style: none; display: grid; gap: 36px; }
.steps li { display: flex; gap: 24px; align-items: flex-start; }
.step-n { font-family: var(--font-display); font-variation-settings: var(--fraunces-settings); font-weight: 420; font-size: 44px; line-height: 1; color: var(--orange-deep); min-width: 44px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--fg-muted); font-size: var(--fs-body-sm); }

/* ---------- pricing anchor ---------- */
.pricing-anchor { text-align: center; }
.pricing-anchor .h2 { margin-bottom: 18px; }
.pricing-anchor .lede { margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq .h2 { margin: 14px 0 var(--space-block); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-family: var(--font-display); font-variation-settings: var(--fraunces-settings);
  font-weight: 480; font-size: 19px; color: var(--navy);
  padding: 20px 32px 20px 0; cursor: pointer; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--orange-deep); font-family: var(--font-body); font-weight: 400; font-size: 22px; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 0 22px; color: var(--fg-muted); font-size: var(--fs-body-sm); max-width: 62ch; }

/* ---------- footer (navy ink — dark #2 of 2) ---------- */
.footer { background: var(--bg-ink); color: var(--fg-on-dark-muted); }
.footer-cta { text-align: center; padding-block: var(--space-section) var(--space-block); }
.h2.on-ink { color: var(--fg-on-dark); }
.lede.on-ink { color: var(--fg-on-dark-muted); margin: 16px auto 32px; }
.footer-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer-base { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-block: 32px; border-top: 1px solid var(--line-on-dark); font-size: var(--fs-caption); }
.footer-base a { color: var(--fg-on-dark-muted); text-decoration: none; }
.footer-base a:hover { color: var(--fg-on-dark); }
.footer-logo img { height: 22px; width: auto; display: block; }
.footer-nav, .footer-contact { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- final review fixes (Task 10, append-only) ---------- */
.js .reveal.in[data-delay="4"] { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } .nav-link { transition: none; } }
.wave span { transform-origin: bottom; }

/* ---------- Task 11: restored SEO body copy (append-only) ---------- */

/* the 60-second proof — narrow prose under the hero */
.proof-detail .eyebrow { margin-bottom: 14px; }
.proof-detail .h2 { margin-bottom: var(--space-block); }
.proof-detail p { margin-bottom: 16px; }
.proof-detail p:last-child { margin-bottom: 0; }

/* what we are — prose + numbered process */
.about-section .eyebrow { margin-bottom: 14px; }
.about-section .h2 { margin-bottom: var(--space-block); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { margin-bottom: 16px; }
.about-grid > div > p:last-child { margin-bottom: 0; }

/* team — three editorial profile cards */
.team-section .eyebrow { margin-bottom: 14px; }
.team-section .h2 { margin-bottom: var(--space-block); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: var(--space-block); }
@media (max-width: 780px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.team-card h3 { font-family: var(--font-display); font-variation-settings: var(--fraunces-settings); font-weight: 480; font-size: 21px; margin-bottom: 10px; }
.team-card p { font-size: var(--fs-body-sm); color: var(--fg-muted); }

/* six systems — narrow prose block */
.systems-block { padding-top: var(--space-block); border-top: 1px solid var(--line); }
.systems-block .eyebrow { margin-bottom: 14px; }
.systems-block .h2 { margin-bottom: var(--space-block); }
.systems-list { display: grid; gap: 28px; }
.systems-item h3 { margin-bottom: 6px; }
.systems-item p { color: var(--fg-muted); font-size: var(--fs-body-sm); }

/* metro-detroit prose + two subsection cards */
.metro-section .eyebrow { margin-bottom: 14px; }
.metro-section .container-narrow .h2 { margin-bottom: var(--space-block); }
.metro-section .container-narrow p { color: var(--fg-muted); font-size: var(--fs-body); line-height: var(--lh-body); margin-bottom: 18px; }
.metro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: var(--space-block); }
@media (max-width: 780px) { .metro-grid { grid-template-columns: 1fr; } }
.metro-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.metro-card h3 { margin-bottom: 8px; }
.metro-card p { color: var(--fg-muted); font-size: var(--fs-body-sm); }

/* how — hour-by-hour list + subsections */
.how-extra { margin-top: var(--space-block); padding-top: var(--space-block); border-top: 1px solid var(--line); }
.how-extra .eyebrow { margin-bottom: 14px; }
.how-extra .h2 { margin-bottom: var(--space-block); }
.hour-by-hour { list-style: none; display: grid; gap: 24px; counter-reset: hbh; margin-bottom: var(--space-block); }
.hour-by-hour li { position: relative; padding-left: 32px; }
.hour-by-hour li::before { counter-increment: hbh; content: counter(hbh); position: absolute; left: 0; top: 2px; font-family: var(--font-display); font-variation-settings: var(--fraunces-settings); font-weight: 480; color: var(--orange-deep); font-size: 15px; }
.hour-by-hour p { color: var(--fg-muted); font-size: var(--fs-body-sm); }
.how-subsections { display: grid; gap: 24px; }
.how-subsection h3 { margin-bottom: 8px; }
.how-subsection p { color: var(--fg-muted); font-size: var(--fs-body-sm); }

/* trades — tuned to your trade */
.trades-section { background: var(--bg-raised); border-block: 1px solid var(--line); }
.trades-section .eyebrow { margin-bottom: 14px; }
.trades-section .h2 { margin-bottom: 12px; }
.trades-section .lede { margin-bottom: var(--space-block); }
.trades-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 780px) { .trades-grid { grid-template-columns: 1fr; } }
.trades-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.trades-card h3 { margin-bottom: 8px; }
.trades-card p { color: var(--fg-muted); font-size: var(--fs-body-sm); }
.trades-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: var(--fs-body-sm); }

/* founding cohort + closing audit CTA — light band */
.founding-section { background: var(--bg-raised); border-block: 1px solid var(--line); }
.founding-section .eyebrow { margin-bottom: 14px; }
.founding-section .h2 { margin-bottom: 12px; }
.founding-section .container p { color: var(--fg-muted); font-size: var(--fs-body); margin-bottom: 12px; max-width: 68ch; }
.founding-cta { text-align: center; padding-top: var(--space-block); margin-top: var(--space-block); border-top: 1px solid var(--line); }
.founding-cta .h2 { margin-bottom: 12px; }
.founding-cta .lede { margin-inline: auto; margin-bottom: 24px; }
.founding-cta p { margin-inline: auto; }

/* ---------- Task 12: frosted-glass card surfaces over ambient brand-color fields (append-only) ---------- */

/* ambient color fields — same palette, soft radial blobs behind card surfaces */
#services { position: relative; }
#services::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(560px circle at 12% 18%, rgba(15,33,55,0.06), transparent 65%),
    radial-gradient(640px circle at 88% 82%, rgba(232,119,34,0.07), transparent 65%);
}
#services > .container { position: relative; z-index: 1; }

.team-section { position: relative; }
.team-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at 88% 12%, rgba(232,119,34,0.07), transparent 65%),
    radial-gradient(600px circle at 8% 90%, rgba(15,33,55,0.06), transparent 65%);
}
.team-section > .container { position: relative; z-index: 1; }

#how { position: relative; }
#how::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(620px circle at 50% 35%, rgba(15,33,55,0.06), transparent 65%);
}
#how > .container-narrow { position: relative; z-index: 1; }

.metro-section { position: relative; }
.metro-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at 50% 65%, rgba(232,119,34,0.07), transparent 65%);
}
.metro-section > .container-narrow,
.metro-section > .container { position: relative; z-index: 1; }

/* frosted surfaces — progressive enhancement, solid fallback outside @supports */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .tile {
    background: rgba(253,252,250,0.55);
    border-color: rgba(15,33,55,0.10);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  }
  .demo-card {
    background: rgba(253,252,250,0.88);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.6);
  }
  .team-card,
  .metro-card {
    background: rgba(253,252,250,0.55);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  }
  .figure-frame figcaption {
    background: rgba(253,252,250,0.6);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  }
}

/* ---------- Task 13: paper grain texture + tonal palette retune (append-only) ---------- */

/* page-wide paper grain — kills flat-color banding, imperceptible on text */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: var(--grain);
  opacity: 0.025;
  mix-blend-mode: multiply;
}

/* hero + footer grain — stronger, Mercury-style film texture over the dark stage */
.hero { position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain);
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.hero > .container { position: relative; z-index: 2; }

.footer { position: relative; }
.footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain);
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.footer > .container { position: relative; z-index: 2; }

/* hero navy — subtle warm wash under the grain, same navy family */
.hero { background: linear-gradient(165deg, #13273F 0%, #0F2137 55%, #0D1D30 100%); }

/* section bands: retune raised bg-raised full-width bands to the new paper ladder */
.product { background: var(--paper-deep); }
.trades-section { background: var(--paper-mid); }
.founding-section { background: var(--paper-mid); }

/* eyebrows + serif step numerals → terracotta */
.eyebrow { color: var(--terracotta); }
.step-n { color: var(--terracotta); }
.hour-by-hour li::before { color: var(--terracotta); }

/* display tautness handled via --ls-display token retune (v2-tokens.css) */

/* ---------- Task 14: Attio arrangement pass (append-only) ---------- */

/* Pattern 1 — two-tone display headlines: ink first sentence, soft-gray continuation */
.h2 .dim { color: var(--fg-faint); }

/* Pattern 2 — window-chrome console collage (#product) */
.figure-compose { position: relative; overflow: visible; }
.product { overflow: visible; }
.win-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper-mid); padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.win-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.win-dot.r { background: #C77B72; }
.win-dot.y { background: #D6B36A; }
.win-dot.g { background: #8FAD84; }
.win-title { margin-left: 6px; font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--fg-muted); }

.sat-card {
  max-width: 260px;
  background: var(--ivory-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .sat-card {
    background: rgba(253,252,250,0.9);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.6);
  }
}
.sat-label {
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--fg-faint); margin-bottom: 8px;
}
.sat-bubble {
  font-size: var(--fs-body-sm); line-height: 1.45; color: var(--fg);
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
}
.sat-line { font-size: var(--fs-body-sm); color: var(--fg-muted); margin-top: 4px; }
.sat-line:first-of-type { margin-top: 0; }
.sat-line-strong { color: var(--navy); font-weight: 600; }

@media (min-width: 1000px) {
  .sat-card { position: absolute; z-index: 3; }
  .sat-sms { top: -30px; right: -24px; transform: rotate(2deg); }
  .sat-lead { bottom: 66px; left: -24px; transform: rotate(-1.5deg); }
}
@media (max-width: 999px) {
  .sat-card { margin-top: 16px; }
  .sat-sms { margin-top: 40px; }
}

/* Pattern 3 — hairline pane / left-rail for "Six systems" */
.systems-pane { display: grid; grid-template-columns: 190px 1fr; gap: clamp(32px, 5vw, 56px); }
.rail {
  list-style: none; display: grid; gap: 14px; align-content: start;
  border-left: 1px solid var(--line); padding-left: 22px; margin: 0;
}
.rail li { font-size: var(--fs-caption); color: var(--fg-faint); line-height: 1.4; }
.rail li:first-child {
  color: var(--navy); font-weight: 600; position: relative; padding-left: 12px; margin-left: -13px;
  border-left: 2px solid var(--terracotta);
}
@media (max-width: 780px) {
  .systems-pane { grid-template-columns: 1fr; }
  .rail { display: none; }
}

/* Pattern 4 (retired 2026-07-28): wide pinstripes on the CTA band read as stray grid lines
   against the diagonal weave — operator call. The weave (on .footer itself) is the texture now. */
.footer-cta { position: relative; }
.footer-cta > * { position: relative; z-index: 1; }

/* Stat strip overrides — enlarged and centered blocks */
.stat-row { padding-block: 72px; gap: 40px; }
.stat-row li { text-align: center; }
.stat-row strong { font-size: 40px; margin-bottom: 8px; }
.stat-row span { font-size: var(--fs-body-sm); display: block; max-width: 26ch; margin-inline: auto; }

/* ---------- Task 15: interior page propagation CSS (FROZEN after this point) ---------- */

/* page-title — interior H1 scale (not the 92px homepage hero display) */
.page-title { font-size: clamp(38px, 4.5vw, 64px); }

/* page-hero — light ivory open for every interior page. Dark stays reserved for
   the homepage hero and the footer-cta band; interior pages never open on navy. */
.page-hero { background: var(--bg); padding-block: clamp(64px, 9vw, 120px) var(--space-block); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .page-title { margin-bottom: 20px; }
.page-hero .lede { margin-bottom: 32px; }

/* hero-actions — generic button row (shared by homepage hero-copy and .page-hero) */
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* section-intro — standard eyebrow + h2 (+ optional lede) header block, reusable in any section */
.section-intro { margin-bottom: var(--space-block); }
.section-intro .eyebrow { margin-bottom: 14px; }
.section-intro .h2:last-child { margin-bottom: 0; }
.section-intro .lede { margin-top: 12px; }

/* section-raised — generic raised-paper band for any interior section needing separation */
.section-raised { background: var(--bg-raised); border-block: 1px solid var(--line); }

/* tile-grid — auto-fit card grid for lists of any length (services index, etc.); pairs with .tile */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile-arrow { display: inline-block; margin-top: 4px; font-size: var(--fs-body-sm); font-weight: 600; color: var(--terracotta); }

/* prose — long-form service/page copy: narrow measure, muted paragraphs, serif h2s/h3s */
.prose { max-width: 640px; }
.prose p { color: var(--fg-muted); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--font-display); font-variation-settings: var(--fraunces-settings);
  font-weight: var(--fw-display); font-size: var(--fs-h2); line-height: var(--lh-heading);
  letter-spacing: -0.01em; color: var(--navy); margin: var(--space-block) 0 16px;
}
.prose h3 { margin: 28px 0 8px; }

/* ---------- Task 15b: sticky mobile call bar — interior pages only (append-only) ----------
   Every interior page gets this verbatim, appended just before </body>. The homepage does
   NOT — its hero demo card already covers the "try the AI" job on mobile. */
.sticky-call { display: none; }
@media (max-width: 780px) {
  .sticky-call {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: rgba(253,252,250,0.92);
    border-top: 1px solid var(--line);
  }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .sticky-call {
      backdrop-filter: blur(14px) saturate(1.15);
      -webkit-backdrop-filter: blur(14px) saturate(1.15);
    }
  }
  .sticky-call .btn { flex: 1 1 0; justify-content: center; padding: 10px 16px; min-height: 40px; }
  /* keep footer content clear of the fixed bar on any page that includes it */
  body:has(.sticky-call) { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ---------- Task 18: navy weave + paper fringe background patterns (append-only) ---------- */

/* Pattern A — diagonal micro-weave on solid-navy surfaces (hero, footer). Layered into the
   element's own background stack, BEHIND the existing film-grain ::after (a separate box that
   paints on top), so weave -> grain -> content is the visual order. */
.hero {
  background-image:
    radial-gradient(ellipse 85% 80% at 50% 42%, transparent 22%, rgba(7,14,25,0.38) 62%, rgba(6,12,22,0.78) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 8px),
    linear-gradient(165deg, #13273F 0%, #0F2137 55%, #0D1D30 100%);
}
.footer {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 8px);
  background-color: var(--bg-ink);
}

/* Pattern B — vertical hairline fringe rising from the bottom edge of light sections sitewide.
   ::after is unused on every `main > section` (blob sections use ::before; hero/footer's grain
   ::after is excluded via :not(.hero) / not targeted here since .footer isn't a `main > section`).
   z-index:0 on the SECTION itself is required (not optional): `position: relative` alone does NOT
   establish a new stacking context, so a z-index:-1 child would escape past .product/etc. looking
   for the nearest ancestor that DOES establish one — usually far up the tree — and paint behind the
   entire page instead of just behind its own section's content. Giving the section explicit z-index:0
   makes it a real stacking-context boundary; the fringe's z-index:-1 then resolves locally, painting
   above the section's own background but below its (non-positioned) in-flow content — no need to
   touch every section's content wrapper. */
main > section:not(.hero) { position: relative; z-index: 0; }
/* Fringe scoped to the darker beige bands only (operator 2026-07-28): white/page-ground
   sections stay clean; the comb lives where the paper deepens. */
main > section.product::after,
main > section.trades-section::after,
main > section.founding-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 170px;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  mask-image: linear-gradient(to top, black, transparent);
  pointer-events: none;
}
/* deeper paper bands (paper-deep / paper-mid) sit closer in value to the navy hairline —
   bump alpha so the fringe still reads at the same visual weight as on the page-ground (--bg)
   sections. Selector uses the same `main > section` prefix as the base rule above so specificity
   ties and source order (later wins) decides it correctly — a bare `.product::after` would lose
   to the higher-specificity base rule regardless of order. */
main > section.product::after,
main > section.trades-section::after,
main > section.founding-section::after {
  background: repeating-linear-gradient(90deg, rgba(15,33,55,0.22) 0 1.5px, transparent 1.5px 9px);
}

/* Nav logo scale-up (operator 2026-07-28): brand was barely legible at 150x28 — match
   competitor proportions (~40px tall in a 72px bar). Footer logo gets a matching bump. */
.nav-logo img { width: 324px; height: auto; max-width: 55vw; }
.footer-base img { width: 270px; height: auto; }
/* taller bar so the 1.5x logo breathes; mobile dropdown anchors follow */
.nav-inner { height: 92px; }
.nav-open .nav-links { top: 92px; }

/* Nav phone (operator 2026-07-28): main line between Contact and the CTA */
.nav-phone { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Service-area map (operator 2026-07-28): brand-duotone OSM map above the footer */
.service-area .h2 { margin: 14px 0 var(--space-block); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-figure); }
.map-frame img { width: 100%; height: auto; }
.map-frame figcaption { font-size: var(--fs-caption); color: var(--fg-muted); background: var(--ivory-raised); padding: 14px 20px; border-top: 1px solid var(--line); }

/* GBP map embed replaces static map (operator 2026-07-28) */
.map-frame iframe { display: block; width: 100%; height: 480px; border: 0; }
