/* ============================================================
   Integris Accounting, design system v2 · "The Ledger"
   Financial editorial luxury: Fraunces display with italic
   accents, hairline ledger rules, gold interpunct numerals,
   ink-navy chapters with film grain, asymmetric composition.
   ============================================================ */

:root {
  /* brand */
  --navy-950: #071029;
  --navy-900: #0b1a43;
  --navy-800: #122a68;
  --navy-700: #1a3a8c;
  --royal: #1e3fa8;
  --royal-bright: #2a52c7;
  --gold: #f2b60f;
  --gold-deep: #c98500;
  --gold-ink: #96690a;

  /* neutrals (warm, navy-tinted) */
  --paper: #f8f6f1;
  --surface: #fffefb;
  --ink: #101b3c;
  --ink-2: #444e6e;
  --ink-3: #6f7591;
  --line: #e4e0d3;
  --line-strong: #d3cebc;

  /* on navy */
  --cream: #f6f2e6;
  --cream-2: #aeb8d8;

  /* charts (validated palette) */
  --series-1: #2a52c7;
  --series-2: #c98500;
  --series-3: #1baf7a;
  --grid: #e9e7df;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(16,27,60,.04), 0 10px 30px -12px rgba(16,27,60,.18);
  --shadow-float: 0 2px 6px rgba(16,27,60,.06), 0 24px 60px -18px rgba(16,27,60,.28);
  --ease: cubic-bezier(.22,1,.36,1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;

  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --container: 1200px;
  --header-h: 94px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.ita { font-style: italic; font-weight: 480; }
.dot { color: var(--gold); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container-narrow { max-width: 880px; }
.section { padding-block: var(--space-section); }
.section-tight { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-ivory { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- editorial section labels (0·1, Name,) ---------- */
.sec-label {
  display: flex; align-items: center; gap: 1.1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 1.4rem;
}
.sec-label .n { font-family: var(--font-display); font-weight: 560; font-size: 1.05rem; letter-spacing: .02em; color: var(--ink); }
.sec-label .n b { color: var(--gold); font-weight: 560; }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.section-ink .sec-label { color: var(--gold); }
.section-ink .sec-label .n { color: var(--cream); }
.section-ink .sec-label::after { background: rgba(255,255,255,.16); }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 1.1rem;
}
.eyebrow::before { content: "·"; color: var(--gold); font-size: 1.7em; line-height: 0; vertical-align: -.12em; margin-right: .45rem; }
.section-sub { font-size: 1.18rem; color: var(--ink-2); max-width: 620px; margin-bottom: 2.5rem; }
.section-head { max-width: 780px; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.ico { width: 22px; height: 22px; flex: none; }
.ico-xs { width: 15px; height: 15px; }
.ico-lg { width: 30px; height: 30px; }

/* film grain for ink surfaces */
.grain { position: relative; }
.grain::before {
  content: ""; position: absolute; inset: 0; background: var(--grain);
  opacity: .05; pointer-events: none; mix-blend-mode: overlay; z-index: 1;
}
.grain > * { position: relative; z-index: 2; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1rem 1.7rem; border-radius: 12px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s, background .22s, color .22s, border-color .22s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 8px 24px -6px rgba(242,182,15,.5); }
.btn-gold:hover { background: #ffc61f; box-shadow: 0 14px 32px -8px rgba(242,182,15,.6); }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .5s var(--ease);
}
.btn-gold:hover::after { left: 125%; }
.btn-navy { background: var(--royal); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,255,255,.05); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--royal); color: var(--royal); }
.btn-lg { padding: 1.15rem 2.1rem; font-size: 1.05rem; }
.text-link { font-weight: 700; color: var(--royal); display: inline-flex; align-items: center; gap: .45rem; }
.text-link .ico { transition: transform .25s var(--ease); }
.text-link:hover { text-decoration: none; }
.text-link:hover .ico { transform: translateX(5px); }

/* ---------- skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-900); padding: .8rem 1.2rem; z-index: 300; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ---------- header, clean white bar, typographic wordmark ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,254,251,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
/* soft base, the bar dissolves into the page instead of a hard hairline */
.site-header::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 18px;
  background: linear-gradient(to bottom, rgba(9,16,40,.14), transparent);
  pointer-events: none;
}
.site-header.scrolled { box-shadow: 0 10px 34px -14px rgba(16,27,60,.2); }
/* the header row runs wider than the page column so the full logo lockup,
   nav, phone, and CTA all breathe */
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); max-width: 1380px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; }
/* width-driven with height:auto, the logo can only scale, never distort */
.brand-logo { width: 296px; max-width: 100%; height: auto; display: block; }
.brand-assoc {
  font-size: .565rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .75rem; border-radius: 9px;
  color: var(--ink); font-weight: 600; font-size: .98rem;
}
.nav-link:hover { background: var(--paper); text-decoration: none; }
.nav-link[aria-current="true"] { color: var(--royal); }
.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.header-cta .btn { padding: .8rem 1.3rem; }
.header-phone {
  color: var(--ink-2); font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.header-phone .ico { color: var(--gold-deep); }
.header-phone:hover { color: var(--royal); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); padding: .5rem; cursor: pointer; }

/* mega menu */
.nav-item.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 40px 70px -30px rgba(7,16,41,.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s ease, transform .28s var(--ease), visibility .22s;
  padding: 2.25rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { max-width: var(--container); margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem 2rem; }
.mega-col { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .4s var(--ease); }
.nav-item:hover .mega-col, .nav-item:focus-within .mega-col { opacity: 1; transform: none; }
.mega-col:nth-child(2) { transition-delay: .05s; } .mega-col:nth-child(3) { transition-delay: .1s; }
.mega-col:nth-child(4) { transition-delay: .15s; } .mega-col:nth-child(5) { transition-delay: .2s; }
.mega-title { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col a { display: block; padding: .32rem 0; color: var(--ink-2); font-size: .93rem; }
.mega-col a:hover { color: var(--royal); text-decoration: none; transform: translateX(3px); transition: transform .2s var(--ease); }
.mega-all { display: inline-flex; align-items: center; gap: .4rem; margin: 1.4rem auto 0; max-width: var(--container); font-weight: 700; color: var(--royal); }

/* mobile nav */
.mobile-nav { display: none; background: var(--surface); border-top: 1px solid var(--line); padding: 1rem clamp(1.25rem,4vw,2.5rem) 2rem; }
.mobile-nav[data-open] { display: flex; flex-direction: column; gap: .25rem; max-height: calc(100vh - var(--header-h)); overflow: auto; }
.mobile-nav > a, .mobile-nav summary { padding: .85rem .25rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; float: right; color: var(--gold-ink); }
.mobile-nav details[open] summary::after { content: "–"; }
.mob-links { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; padding: .5rem 0 1rem; }
.mob-links a { padding: .35rem 0; color: var(--ink-2); font-size: .95rem; }
.mob-all { font-weight: 700; grid-column: 1 / -1; }
.mobile-nav .btn { margin-top: 1.25rem; }

/* ---------- breadcrumbs, float over the hero, below the fixed header ---------- */
.crumbs { position: absolute; top: var(--header-h); left: 0; right: 0; z-index: 5; font-size: .85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: .9rem 0 0; }
.crumbs li { color: var(--cream-2); }
.crumbs li + li::before { content: "·"; color: var(--gold); font-weight: 700; margin-right: .35rem; }
.crumbs a { color: var(--cream-2); }
.crumbs a:hover { color: #fff; }
.crumbs li[aria-current] { color: var(--cream); }

/* ---------- heroes ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 88% -20%, rgba(42,82,199,.5), transparent 60%),
    linear-gradient(158deg, var(--navy-950) 0%, var(--navy-900) 48%, var(--navy-800) 100%);
  color: var(--cream); padding: clamp(4.5rem, 8vw, 6rem) 0 clamp(4.5rem, 9vw, 7rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; background: var(--grain);
  opacity: .05; mix-blend-mode: overlay; pointer-events: none; z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }

/* seeded per-page line art, thin gold contours, unique to every page */
.hero-lines {
  position: absolute; top: 0; right: 0; z-index: 1;
  width: min(64%, 920px); height: 100%;
  color: var(--gold); opacity: .13; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-lines path {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: lineDraw 1.6s var(--ease) forwards;
  }
  .hero-lines path:nth-of-type(2) { animation-delay: .1s; }
  .hero-lines path:nth-of-type(3) { animation-delay: .2s; }
  .hero-lines path:nth-of-type(4) { animation-delay: .3s; }
  .hero-lines path:nth-of-type(5) { animation-delay: .4s; }
  .hero-lines path:nth-of-type(6) { animation-delay: .5s; }
  .hero-lines path:nth-of-type(7) { animation-delay: .6s; }
  @keyframes lineDraw { to { stroke-dashoffset: 0; } }
  .hero-lines circle { opacity: 0; animation: dotIn .7s ease 1.15s forwards; }
  @keyframes dotIn { to { opacity: .85; } }
}
.page-hero h1 { color: #fff; max-width: 21ch; }
.page-hero .eyebrow { color: var(--gold); }
.hero-tagline { font-size: clamp(1.12rem, 2vw, 1.35rem); color: var(--cream-2); max-width: 58ch; line-height: 1.6; }
/* realistic photographic backdrop, dark navy grade, text-safe left side */
.hero-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-repeat: no-repeat;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(7,16,41,.97) 0%, rgba(7,16,41,.84) 34%, rgba(9,22,57,.52) 62%, rgba(11,26,67,.2) 100%),
    linear-gradient(to top, rgba(7,16,41,.74) 0%, rgba(7,16,41,.16) 32%, rgba(7,16,41,.3) 100%);
}
/* cinematic reveal: dark & text-safe on the left, the blue-hour skyline and
   its bay reflection read clearly on the right, a warm dawn bloom ties the
   gold accents to the photograph, and a bottom vignette grounds the section */
.home-hero .hero-photo::after {
  background:
    radial-gradient(80% 70% at 87% 30%, rgba(242,182,15,.14), transparent 46%),
    linear-gradient(99deg, rgba(5,11,30,.97) 0%, rgba(5,11,30,.9) 27%, rgba(6,15,40,.6) 53%, rgba(8,19,52,.28) 78%, rgba(9,22,60,.14) 100%),
    linear-gradient(to top, rgba(4,10,26,.95) 0%, rgba(4,10,26,.42) 14%, rgba(4,10,26,0) 42%);
}
.home-hero .hero-photo { background-position: 60% 48% !important; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: kenburns 38s ease-in-out infinite alternate; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.065); } }
}

/* home hero */
.home-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 620px at 82% -10%, rgba(52,96,214,.5), transparent 60%),
    radial-gradient(820px 500px at -12% 116%, rgba(20,44,110,.55), transparent 60%),
    linear-gradient(158deg, #050d24 0%, #081436 50%, #0c2050 100%);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 4.75rem) 0 clamp(2.5rem, 4.5vw, 3.5rem);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; background: var(--grain);
  opacity: .05; mix-blend-mode: overlay; pointer-events: none; z-index: 1;
}
/* editorial stage, copy on the dark left, the founder's plate over the
   skyline right, credentials ruled directly beneath the CTAs */
.hero-stage {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.12fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
  min-height: clamp(520px, 70vh, 760px);
}
.hero-copy { max-width: 640px; min-width: 0; position: relative; z-index: 2; }
.home-hero .eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--gold); font-size: .74rem;
  border: 1px solid rgba(242,182,15,.32); background: rgba(242,182,15,.07);
  border-radius: 999px; padding: .5rem 1.05rem; margin-bottom: 1.5rem;
}
.home-hero .eyebrow::before {
  content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--gold); margin: 0; line-height: normal; vertical-align: baseline;
}
.home-hero h1 { color: #fff; font-size: clamp(2.8rem, 5.6vw, 4.6rem); max-width: 14ch; margin-bottom: .5em; }
.home-hero h1 .ita { color: var(--gold); }
.hero-sub { font-size: clamp(1.1rem, 1.9vw, 1.28rem); color: var(--cream-2); max-width: 52ch; margin-bottom: 2.25rem; line-height: 1.65; }
.hero-sub strong { color: var(--cream); font-weight: 600; }
/* CTAs stay side by side at every width, labels wrap before buttons stack */
.hero-ctas { display: flex; flex-wrap: nowrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-ctas .btn { flex: 0 1 auto; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; }
.hero-ctas .btn-lg { padding-inline: 1.7rem; }
/* the team stands directly in the scene as a transparent cutout, floated on the
   navy hero with a soft shadow; the rotating I·A seal drifts off its upper-left */
.hero-team { position: relative; margin: 0; justify-self: center; align-self: end; width: min(660px, 100%); }
.hero-team img {
  display: block; width: 100%; height: auto;
  filter:
    saturate(.97) brightness(.99)
    drop-shadow(0 16px 26px rgba(3,8,26,.5))
    drop-shadow(0 40px 60px rgba(3,8,26,.4));
  -webkit-mask-image: linear-gradient(to bottom, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 93%, transparent 100%);
}

/* ruled credential strip beneath the CTAs */
.hero-facts {
  list-style: none; margin: 2.4rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,.16);
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between;
  gap: 1.2rem 1.8rem; max-width: 600px;
}
.hero-facts li { display: grid; gap: .35rem; }
.hf-label {
  font-size: .63rem; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: rgba(244,240,230,.55);
}
.hf-value {
  font-family: var(--font-display); font-weight: 560; font-size: 1.05rem;
  color: var(--cream); letter-spacing: .01em; white-space: nowrap;
}

/* rotating headline word, every word occupies the same grid cell, so the
   slot is always as wide as the longest word and the layout never reflows
   between swaps or breakpoints. Without JS the first word stays visible. */
.rw { display: grid; justify-items: start; }
.rw .rw-w { grid-area: 1 / 1; white-space: nowrap; font-style: inherit; opacity: 0; visibility: hidden; }
.rw .rw-w.is-on { opacity: 1; visibility: visible; }
.rw .dot { font-weight: inherit; }

/* Miami-sunset glow behind the skyline */
.hero-horizon {
  position: absolute; bottom: -120px; right: 2%; z-index: 0;
  width: clamp(480px, 60vw, 900px); height: clamp(220px, 28vw, 420px);
  background: radial-gradient(closest-side, rgba(242,182,15,.16), rgba(242,182,15,.05) 55%, transparent 75%);
  filter: blur(8px);
  pointer-events: none;
}

.split > div, .cta-inner > div { min-width: 0; }
.calc-chart { width: 100%; height: auto; display: block; }

/* rotating credential seal, floating off the team's upper corner,
   its gold rings reading crisply against the dark sky */
.hero-seal {
  position: absolute; top: -26px; left: -22px; right: auto; z-index: 3;
  width: 92px; height: 92px; color: var(--gold);
  filter: drop-shadow(0 14px 28px rgba(3,8,26,.66));
}

/* desktop: the cutout stands taller and drifts toward the viewport edge, anchored to the baseline */
@media (min-width: 1081px) {
  .hero-stage { align-items: end; }
  .hero-team { justify-self: end; width: calc(100% + clamp(2rem, 12vw, 15rem)); margin-right: calc(-1 * clamp(2rem, 12vw, 15rem)); }
}
.hero-seal .seal-ring { width: 100%; height: 100%; display: block; }
.hero-seal .seal-core {
  position: absolute; inset: 29%; display: grid; place-items: center;
  background: var(--navy-900); border: 1px solid rgba(242,182,15,.55); border-radius: 50%;
  font-family: var(--font-display); font-weight: 560; font-size: 1.3rem; color: var(--gold);
}

/* hero motion */
@media (prefers-reduced-motion: no-preference) {
  .home-hero .eyebrow, .home-hero h1, .home-hero .hero-sub, .home-hero .hero-ctas, .home-hero .hero-facts {
    opacity: 0; transform: translateY(26px);
    animation: rise .9s var(--ease) forwards;
  }
  .home-hero h1 { animation-delay: .08s; }
  .home-hero .hero-sub { animation-delay: .18s; }
  .home-hero .hero-ctas { animation-delay: .28s; }
  .home-hero .hero-facts { animation-delay: .55s; }
  @keyframes rise { to { opacity: 1; transform: none; } }

  .hero-team { opacity: 0; transform: translateY(30px) scale(.99); animation: rise 1s var(--ease) .3s forwards; }

  .rw .rw-w.is-on { animation: rwIn .55s var(--ease) both; }
  .rw .rw-w.is-out { visibility: visible; animation: rwOut .45s var(--ease) forwards; }
  @keyframes rwIn {
    from { opacity: 0; transform: translateY(.5em); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes rwOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-.45em); }
  }

  .home-hero .eyebrow::before { animation: eyebrowPulse 2.6s var(--ease) infinite; }
  @keyframes eyebrowPulse {
    0% { box-shadow: 0 0 0 0 rgba(242,182,15,.45); }
    70% { box-shadow: 0 0 0 9px rgba(242,182,15,0); }
    100% { box-shadow: 0 0 0 0 rgba(242,182,15,0); }
  }

  @keyframes sunSpin { to { transform: rotate(1turn); } }
  .hero-seal .seal-ring { animation: sunSpin 32s linear infinite; }

  .hero-horizon { animation: horizonGlow 9s ease-in-out infinite alternate; }
  @keyframes horizonGlow { from { opacity: .75; transform: scale(1); } to { opacity: 1; transform: scale(1.07); } }

  /* periodic shine sweep pulls the eye to the primary CTA */
  .btn-shine::after { animation: ctaShine 6s var(--ease) 2.4s infinite; }
  @keyframes ctaShine {
    0% { left: -70%; } 18% { left: 125%; } 100% { left: 125%; }
  }
}

/* ---------- trust marquee ---------- */
.trust-row { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.3rem 0; overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 3.5rem; width: max-content; padding-inline: 1.75rem; }
.marquee-track > span { font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: .65rem; }
.marquee-track > span::after { content: "·"; color: var(--gold); font-size: 1.9em; font-weight: 700; margin-left: 2.85rem; }
.marquee-track img { height: 26px; width: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 36s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [data-clone] { display: none; }
}

/* ---------- stats band, four headline figures, one row ---------- */
.stats-band { background: var(--surface); border-block: 1px solid var(--line); }
.stats-band > .container { padding-block: clamp(2.75rem, 5.5vw, 4.25rem); }
.stats-eyebrow {
  text-align: center; margin: 0 0 clamp(1.9rem, 3.5vw, 2.75rem);
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
}
.stats-eyebrow span { color: var(--ink-3); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-row .stat { position: relative; text-align: center; padding: .2rem clamp(1rem, 2.5vw, 2.25rem); }
.stats-row .stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: var(--line-strong);
}
.stat-value {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(2.9rem, 5.2vw, 4.4rem); line-height: 1; letter-spacing: -.025em;
  margin: 0; color: var(--ink); font-variant-numeric: tabular-nums;
  padding-bottom: .28rem;
}
.stat-value::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
  border-radius: 3px;
}
.stat-label { margin: .85rem 0 0; color: var(--ink-2); font-size: 1rem; font-weight: 500; }

/* ---------- editorial index list (kills the card-grid slop) ---------- */
.idx { border-top: 1px solid var(--line-strong); }
.idx-row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.5rem .75rem; border-bottom: 1px solid var(--line-strong);
  color: inherit; text-decoration: none !important;
}
.idx-row::before {
  content: ""; position: absolute; inset: 0; background: var(--navy-900);
  transform: scaleY(0); transform-origin: bottom; transition: transform .38s var(--ease);
}
.idx-row:hover::before { transform: scaleY(1); transform-origin: top; }
.idx-row > * { position: relative; z-index: 1; transition: color .3s; }
.idx-num { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-3); }
.idx-num b { color: var(--gold-deep); font-weight: 560; }
.idx-body { min-width: 0; }
.idx-name { display: block; font-family: var(--font-display); font-weight: 560; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.15; letter-spacing: -.01em; }
.idx-desc { display: block; color: var(--ink-2); font-size: .95rem; margin-top: .3rem; max-width: 62ch; }
.idx-arrow { color: var(--ink-3); display: inline-flex; transition: transform .35s var(--ease), color .3s; }
.idx-arrow .ico { width: 26px; height: 26px; }
.idx-row:hover .idx-name, .idx-row:hover .idx-num, .idx-row:hover .idx-num b { color: var(--cream); }
.idx-row:hover .idx-desc { color: var(--cream-2); }
.idx-row:hover .idx-arrow { color: var(--gold); transform: translateX(8px); }
.idx-compact .idx-row { grid-template-columns: 1fr auto; padding: 1.1rem .75rem; }
.idx-compact .idx-name { font-size: 1.15rem; }
.idx-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 3.5rem); }
.idx-tools .idx-row { grid-template-columns: auto 1fr auto; }
.idx-ico { display: inline-flex; color: var(--gold-deep); }
.idx-row:hover .idx-ico { color: var(--gold); }

/* ---------- industries carousel (image-forward, replaces the long list) ---------- */
.ind-carousel { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }

/* the changing image */
.ind-stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--navy-900); box-shadow: var(--shadow-float);
}
.ind-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease); }
.ind-slide.is-active { opacity: 1; visibility: visible; }
.ind-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .ind-slide.is-active img { animation: indZoom 7s var(--ease) forwards; }
  @keyframes indZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
}
.ind-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1.25rem, 3vw, 2.1rem);
  background: linear-gradient(to top, rgba(4,10,26,.97) 0%, rgba(4,10,26,.9) 20%, rgba(4,10,26,.5) 46%, rgba(4,10,26,.12) 74%, transparent 100%);
  color: #fff;
}
.ind-count { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 10px rgba(4,10,26,.7); }
.ind-count b { color: rgba(255,255,255,.55); font-weight: 600; margin: 0 .25em; }
.ind-cap-name { display: block; font-family: var(--font-display); font-weight: 560; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.08; letter-spacing: -.01em; margin-top: .35rem; }
.ind-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255,255,255,.32); background: rgba(4,10,26,.4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.ind-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.ind-arrow:active { transform: translateY(-50%) scale(.94); }
.ind-prev { left: 1rem; } .ind-prev .ico { transform: rotate(180deg); }
.ind-next { right: 1rem; }

/* the switcher + chips */
.ind-panel { display: flex; flex-direction: column; }
.ind-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.ind-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left; cursor: pointer;
  padding: 1.05rem .25rem 1.05rem 0; border: 0; border-bottom: 1px solid var(--line-strong);
  background: none; font: inherit; color: var(--ink-3);
  transition: color .25s var(--ease), padding .3s var(--ease);
}
.ind-tab-name { font-family: var(--font-display); font-weight: 560; font-size: clamp(1.15rem, 1.9vw, 1.45rem); letter-spacing: -.01em; position: relative; }
.ind-tab-count { font-size: .78rem; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 999px; padding: .1rem .6rem; transition: color .25s, border-color .25s, background .25s; }
.ind-tab:hover { color: var(--ink); }
.ind-tab.is-active { color: var(--ink); padding-left: 1.1rem; }
.ind-tab.is-active .ind-tab-name::before {
  content: ""; position: absolute; left: -1.1rem; top: 50%; transform: translateY(-50%);
  width: 5px; height: 1.35em; border-radius: 3px; background: var(--gold);
}
.ind-tab.is-active .ind-tab-count { color: var(--navy-900); background: var(--gold); border-color: var(--gold); }
.ind-details { position: relative; margin-top: 1.5rem; flex: 1; }
.ind-detail[hidden] { display: none; }
.ind-blurb { color: var(--ink-2); font-size: 1rem; margin: 0 0 1.15rem; max-width: 42ch; }
.ind-chip-row { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.ind-chip-row a {
  display: inline-block; font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .48rem 1rem; transition: color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s, background .2s;
}
.ind-chip-row a:hover { color: var(--royal); border-color: var(--royal); background: #fff; box-shadow: var(--shadow-card); text-decoration: none; transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) {
  .ind-detail.is-active { animation: indFade .45s var(--ease); }
  @keyframes indFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.ind-all { margin-top: 1.75rem; align-self: flex-start; }
.industries-showcase .section-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }

/* ---------- bento (home services) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.bento-item {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; display: flex; flex-direction: column; color: inherit;
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
  text-decoration: none !important;
}
.bento-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }
.bento-feature { grid-column: span 6; grid-row: span 2; background: linear-gradient(165deg, var(--navy-950), var(--navy-900) 65%, #0f2358); border: none; color: var(--cream-2); }
.bento-feature h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 16ch; }
.bento-feature .bento-kicker { color: var(--gold); }
.bento-feature p { color: var(--cream-2); }
.bento-feature .bento-more { color: var(--gold); }
.bento-half { grid-column: span 3; }
.bento-wide { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-between; gap: 1.75rem; }
.bento-wide > div { min-width: 0; max-width: 72ch; }
.bento-wide .bento-more { flex: none; }
.bento-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .65rem; }
.bento-item h3 { margin-bottom: .4rem; }
.bento-item p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.bento-more { margin-top: auto; padding-top: 1.25rem; font-weight: 700; font-size: .92rem; color: var(--royal); display: inline-flex; gap: .4rem; align-items: center; }
.bento-more .ico { transition: transform .25s var(--ease); }
.bento-item:hover .bento-more .ico { transform: translateX(5px); }
.bento-ledger { list-style: none; margin: auto 0 0; padding: 1.4rem 0 0; }
.bento-ledger li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.bento-ledger li:last-child { border: none; }
.bento-ledger .ok { color: var(--gold); font-weight: 700; }

/* ---------- services, sticky scroll showcase ---------- */
.services-scroll .section-sub { max-width: 640px; }
.svc-scroller { position: relative; margin-top: clamp(1.5rem, 3.5vw, 2.75rem); }
.svc-sticky { position: sticky; top: calc(var(--header-h) + 2.5vh); }
.svc-steps { position: relative; pointer-events: none; }
.svc-step { height: 46vh; }
.svc-step:last-child { height: 26vh; }

.svc-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: grid; grid-template-columns: 1.04fr .96fr;
  min-height: clamp(430px, 58vh, 580px);
  background: linear-gradient(165deg, var(--navy-950), var(--navy-900) 62%, #0f2358);
  color: var(--cream-2); box-shadow: var(--shadow-float);
}
.svc-card.grain::before { z-index: 3; }

/* media (left), the cinematic service image, cross-fades on scroll */
.svc-card-media { position: relative; overflow: hidden; }
.svc-media-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity .8s var(--ease);
}
.svc-media-img.is-active { opacity: 1; transform: scale(1); transition: opacity .8s var(--ease), transform 8s var(--ease); }
.svc-card-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, transparent 42%, rgba(7,16,41,.5) 76%, rgba(11,26,67,.92) 100%),
    linear-gradient(to top, rgba(7,16,41,.5), transparent 42%);
}
.svc-media-count {
  position: absolute; left: 1.35rem; top: 1.25rem; z-index: 2;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .05em; color: var(--cream);
  background: rgba(7,16,41,.42); border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: .32rem .85rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.svc-media-count b { color: var(--gold); font-weight: 560; }

/* body (right) */
.svc-card-body { position: relative; z-index: 4; display: flex; flex-direction: column; padding: clamp(1.85rem, 3.2vw, 3.1rem); }
.svc-details { position: relative; flex: 1; min-height: clamp(19rem, 34vh, 23rem); }
.svc-detail {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.svc-detail.is-active { opacity: 1; visibility: visible; transform: none; }
.svc-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .85rem; }
.svc-detail h3 { color: #fff; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.1; margin: 0 0 .65rem; }
.svc-excerpt { color: var(--cream-2); font-size: 1.02rem; line-height: 1.6; margin: 0 0 1.4rem; max-width: 46ch; }
.svc-feats { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-direction: column; gap: .62rem; }
.svc-feats li { display: flex; align-items: flex-start; gap: .6rem; color: var(--cream); font-size: .95rem; line-height: 1.4; }
.svc-feats .ico { color: var(--gold); margin-top: .12rem; flex: none; }
.svc-explore { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; border-bottom: 2px solid var(--gold); padding-bottom: .2rem; }
.svc-explore .ico { transition: transform .25s var(--ease); }
.svc-explore:hover { color: var(--gold); text-decoration: none; }
.svc-explore:hover .ico { transform: translateX(5px); }

/* segmented progress track, also clickable tabs */
.svc-track { display: flex; gap: .5rem; margin-top: 1.85rem; }
.svc-seg { flex: 1; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.svc-seg span { display: block; height: 4px; border-radius: 999px; background: rgba(255,255,255,.16); transition: background .3s var(--ease); }
.svc-seg:hover span { background: rgba(255,255,255,.34); }
.svc-seg.is-active span { background: var(--gold); }
.svc-seg:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.svc-browse { margin-top: clamp(1.85rem, 3.2vw, 2.75rem); }

@media (prefers-reduced-motion: reduce) {
  .svc-media-img, .svc-media-img.is-active { transition: opacity .3s linear; transform: none; }
  .svc-detail { transition: opacity .3s linear; transform: none; }
}

/* ---------- cards (kept for detail/info panels, refined) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
a.card { color: inherit; display: flex; flex-direction: column; text-decoration: none !important; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }
.card .ico-wrap { color: var(--royal); margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.card .card-more { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--royal); font-size: .92rem; display: inline-flex; gap: .35rem; align-items: center; }
.card .card-more .ico { transition: transform .2s; }
a.card:hover .card-more .ico { transform: translateX(4px); }

.svc-group { margin-bottom: 2.25rem; }
.svc-group h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- ledger lists (numbered, ruled, replaces feature card grids) ---------- */
.ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4.5rem); counter-reset: ledger; }
.ledger-item { counter-increment: ledger; padding: 1.6rem 0 1.5rem; border-top: 1px solid var(--line-strong); position: relative; }
.ledger-item::before {
  content: "0·" counter(ledger);
  font-family: var(--font-display); font-size: .95rem; color: var(--gold-deep);
  display: block; margin-bottom: .55rem;
}
.ledger-item h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; margin-bottom: .35rem; }
.ledger-item p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.section-ink .ledger-item { border-top-color: rgba(255,255,255,.15); }
.section-ink .ledger-item::before { color: var(--gold); }
.section-ink .ledger-item h3 { color: #fff; }
.section-ink .ledger-item p { color: var(--cream-2); }
.ledger-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- process timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: tl; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.tl-step { counter-increment: tl; position: relative; padding-top: 2.1rem; }
.tl-step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px;
  border-radius: 50%; background: var(--gold); border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold-deep);
}
.tl-step::after {
  content: "0" counter(tl);
  position: absolute; top: -.35em; right: .35rem;
  font-family: var(--font-display); font-weight: 560; font-size: clamp(2.8rem, 4.5vw, 3.8rem);
  line-height: 1; color: var(--ink); opacity: .07; pointer-events: none;
}
.tl-kicker { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); margin: 0 0 .35rem; }
.tl-step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.tl-step p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* ---------- ink sections ---------- */
.section-ink {
  background:
    radial-gradient(1000px 500px at 90% -20%, rgba(42,82,199,.4), transparent 60%),
    linear-gradient(163deg, var(--navy-950), var(--navy-900) 60%, #0f2358);
  color: var(--cream-2); position: relative; overflow: hidden;
}
.section-ink::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .05; mix-blend-mode: overlay; pointer-events: none; }
.section-ink > .container { position: relative; z-index: 2; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .eyebrow { color: var(--gold); }
.section-ink .section-sub { color: var(--cream-2); }
.ink-card { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.75rem; }
.ink-card h3 { font-size: 1.1rem; }
.ink-card p { color: var(--cream-2); font-size: .95rem; }
.ink-card .ico-wrap { color: var(--gold); margin-bottom: .9rem; }

/* ---------- sidebar images ---------- */
.sidebar-image {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.sidebar-image:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-float);
}

/* ---------- team ---------- */
/* the office scene leads the section, a framed print of the team at work,
   the firm's own mark on the wall behind them */
.team-photo {
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); max-width: 860px;
  text-align: center;
}
.team-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -22px rgba(16,27,60,.3);
}
.team-photo figcaption {
  margin-top: 1rem; font-size: .85rem; color: var(--ink-3);
  font-style: italic; font-family: var(--font-display); font-weight: 480;
}
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.4vw, 2rem); align-items: start; }
.team-card { background: transparent; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); transition: transform .4s var(--ease), box-shadow .4s; }
/* Lily's photo is a portrait; nudge the crop up so her head isn't cut off */
.team-card img[src*="lily-cuadrado"] { object-position: center 14%; }
.team-card:hover img { transform: scale(1.015); box-shadow: var(--shadow-float); }
.team-body { padding: 1.4rem .25rem 0; }
.team-body h3 { margin-bottom: .15rem; font-size: 1.45rem; }
.team-cred { color: var(--gold-ink); font-weight: 700; font-size: .85rem; letter-spacing: .06em; }
.team-role { color: var(--ink-3); font-size: .92rem; margin: .15rem 0 .8rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line-strong); }
.team-body p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.team-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; padding: 0; list-style: none; }
.team-tags li { font-size: .76rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; color: var(--ink-2); }

/* ---------- testimonials: featured pull-quote + supporting ---------- */
.quote-spread { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: stretch; }
.quote-feature {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 85% -10%, rgba(42,82,199,.45), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 62%, #0f2358);
  border-radius: var(--radius); color: var(--cream);
  padding: clamp(2rem, 4vw, 3.25rem); display: flex; flex-direction: column;
}
.quote-feature::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .05; mix-blend-mode: overlay; pointer-events: none; }
.quote-feature > * { position: relative; }
.quote-feature .tquote { color: var(--gold); width: 44px; height: 44px; margin-bottom: 1.25rem; }
.quote-feature blockquote {
  margin: 0 0 1.75rem; font-family: var(--font-display); font-style: italic; font-weight: 480;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.4; color: #fff; flex: 1;
}
.quote-feature figcaption { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.1rem; }
.quote-feature figcaption strong { display: block; font-size: 1rem; color: #fff; }
.quote-feature figcaption span { font-size: .88rem; color: var(--cream-2); }
.quote-side { display: flex; flex-direction: column; gap: 0; }
.quote-side .tcard { border: none; border-top: 1px solid var(--line-strong); border-radius: 0; background: transparent; padding: 1.5rem .25rem; flex: 1; margin: 0; display: flex; flex-direction: column; }
.quote-side .tcard:last-child { border-bottom: 1px solid var(--line-strong); }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; margin: 0; display: flex; flex-direction: column; }
.quote-side .tcard { background: transparent; border: none; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 1.5rem .25rem; }
.tcard blockquote { margin: 0 0 1rem; font-size: .97rem; color: var(--ink-2); flex: 1; }
.tcard blockquote::before { content: "“"; font-family: var(--font-display); color: var(--gold-deep); font-size: 1.5em; line-height: 0; vertical-align: -.3em; margin-right: .1em; }
.tcard figcaption strong { display: block; font-size: .93rem; }
.tcard figcaption span { font-size: .82rem; color: var(--ink-3); }
.tquote { color: var(--gold); width: 28px; height: 28px; margin-bottom: .9rem; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tgrid .tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; margin: 0; display: flex; flex-direction: column; }

/* ---------- testimonials, professional 3-up cards with monograms ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.quote-card {
  position: relative; margin: 0; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.75rem, 2.6vw, 2.35rem);
  box-shadow: var(--shadow-card);
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }
.quote-card::before { /* gold rule that anchors each card to the brand */
  content: ""; position: absolute; left: 0; top: clamp(1.75rem, 2.6vw, 2.35rem); width: 3px; height: 2.1rem;
  background: var(--gold); border-radius: 0 3px 3px 0;
}
.quote-mark {
  font-family: var(--font-display); font-weight: 640; color: var(--gold-deep);
  font-size: 3.4rem; line-height: .5; height: .5em; margin: .1rem 0 1.15rem;
  opacity: .5; pointer-events: none;
}
.quote-card blockquote {
  margin: 0 0 1.6rem; flex: 1;
  font-size: 1.02rem; line-height: 1.62; color: var(--ink);
}
.quote-author { display: flex; align-items: center; gap: .9rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.quote-monogram {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, var(--navy-800), var(--navy-950));
  color: var(--gold); font-family: var(--font-display); font-weight: 560; font-size: 1.05rem; letter-spacing: .02em;
  border: 1px solid rgba(242,182,15,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.quote-id { display: flex; flex-direction: column; min-width: 0; }
.quote-id strong { font-size: .98rem; color: var(--ink); font-weight: 700; }
.quote-id span { font-size: .84rem; color: var(--ink-3); }
.quote-note { margin-top: clamp(1.5rem, 3vw, 2.25rem); font-size: .85rem; color: var(--ink-3); }

/* ---------- engagement stories (editorial rows) ---------- */
.stories { counter-reset: story; border-top: 1px solid var(--line-strong); }
.story-row { counter-increment: story; display: grid; grid-template-columns: minmax(120px, .28fr) 1fr; gap: clamp(1.25rem, 4vw, 3.5rem); padding: clamp(1.75rem, 3.5vw, 2.5rem) 0; border-bottom: 1px solid var(--line-strong); }
.story-side::before {
  content: "0·" counter(story);
  font-family: var(--font-display); font-weight: 560; font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1; color: var(--ink); opacity: .14; display: block; margin-bottom: .6rem;
}
.story-ind { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.story-row h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-bottom: .5rem; }
.story-row > div > p { color: var(--ink-2); font-size: .98rem; max-width: 68ch; }
.story-results { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.story-results li { font-size: .9rem; color: var(--ink-2); position: relative; padding-left: 1.1rem; }
.story-results li::before { content: "·"; color: var(--gold); font-size: 1.9em; line-height: .8; position: absolute; left: 0; top: .02em; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; margin-top: 2rem; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem .25rem; font-weight: 600; cursor: pointer; list-style: none; font-size: 1.02rem;
  transition: color .2s;
}
.faq-item summary:hover { color: var(--royal); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--gold-deep); position: relative; transition: transform .3s var(--ease), background .2s; }
.faq-marker::before, .faq-marker::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--gold-deep); transition: inherit; }
.faq-marker::before { width: 10px; height: 1.5px; }
.faq-marker::after { width: 1.5px; height: 10px; }
.faq-item[open] .faq-marker { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); }
.faq-item[open] .faq-marker::before, .faq-item[open] .faq-marker::after { background: var(--navy-900); }
.faq-a { padding: 0 .25rem 1.4rem; color: var(--ink-2); max-width: 72ch; }
.faq-a p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a { animation: faqOpen .42s var(--ease); }
  @keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}
.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.faq-cats a { font-size: .88rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: var(--cream); background: transparent; transition: border-color .2s, color .2s; }
.faq-cats a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.faq-section .faq-cats a { border-color: var(--line-strong); color: var(--ink-2); }
.faq-section .faq-cats a:hover { border-color: var(--royal); color: var(--royal); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(1100px 520px at 12% 120%, rgba(42,82,199,.45), transparent 62%),
    linear-gradient(150deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color: var(--cream-2); position: relative; overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(5.5rem, 10vw, 8rem);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .05; mix-blend-mode: overlay; pointer-events: none; z-index: 1; }
.cta-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 17ch; }
.cta-band h2 .ita { color: var(--gold); }
.cta-band .cta-rule { width: 64px; height: 2px; background: var(--gold); margin-bottom: 1.5rem; }
.cta-band p { max-width: 46ch; font-size: 1.06rem; }
.cta-actions { display: inline-flex; flex-direction: column; align-items: stretch; gap: 1rem; }
.cta-actions .cta-phone { align-self: center; }
.cta-phone { color: var(--cream); font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: var(--cream-2); font-size: .93rem; }
.f-signoff { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.75rem, 5vw, 4rem); }
.f-signoff p { margin: 0; font-family: var(--font-display); font-weight: 560; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.15; color: var(--ink); max-width: 22ch; letter-spacing: -.01em; }
.f-signoff .ita { color: var(--gold-ink); }
.f-signoff a { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem; color: var(--royal); font-weight: 700; font-size: 1rem; font-family: var(--font-body); }
.f-signoff a:hover { color: var(--gold-ink); text-decoration: none; }
.f-serving { margin: 1.6rem 0 0 !important; font-family: var(--font-body) !important; font-size: .82rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3) !important; max-width: none !important; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2.5rem 2rem; padding-block: clamp(3rem, 6vw, 4rem) 2.5rem; }
.f-brand .brand { margin-bottom: 1.1rem; flex-direction: column; align-items: flex-start; gap: .7rem; }
.f-brand .brand-logo { width: 210px; height: auto; }
.f-brand .brand-assoc { color: var(--cream-2); }
.f-brand p { max-width: 32ch; }
.f-brand address { font-style: normal; line-height: 1.9; }
.site-footer a { color: var(--cream-2); }
.site-footer a:hover { color: #fff; }
.f-title { color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.f-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.f-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; font-weight: 700; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.f-social a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; transform: translateY(-2px); }
.f-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #8593c0; }
.f-badges span { display: inline-flex; align-items: center; gap: .55rem; }
.f-badges img { height: 18px; width: auto; opacity: .95; }
.f-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; font-size: .85rem; }
.f-legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.f-legal p { margin: 0; }
.f-legal ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

/* ---------- interior patterns ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { font-size: 1.05rem; color: var(--ink-2); }
.prose p { margin-bottom: 1.2em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 1.3rem; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.prose > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 560; font-size: 3.4em; line-height: .82;
  float: left; padding: .08em .12em 0 0; color: var(--royal);
}

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); }
.check-list .ico { color: var(--gold-deep); margin-top: .15rem; width: 19px; height: 19px; }

.info-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.info-panel + .info-panel { margin-top: 1.25rem; }
.info-panel h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
.info-panel .ico-wrap { color: var(--royal); margin-bottom: .6rem; }
.info-rows { display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0; list-style: none; font-size: .95rem; color: var(--ink-2); }
.info-rows li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .55rem; }
.info-rows li:last-child { border: none; padding-bottom: 0; }
.info-rows span:last-child { font-weight: 600; color: var(--ink); text-align: right; }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

.link-strip { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: .6rem; margin-top: 1.1rem; }
.link-strip a, .link-strip span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 560; color: var(--ink); letter-spacing: -.01em; }
.link-strip a:hover { color: var(--royal); text-decoration: none; }
.link-strip a:not(.strip-all)::after, .link-strip span:not(:last-child)::after { content: "·"; color: var(--gold); font-weight: 700; margin: 0 .9rem; }
.link-strip .strip-all { font-family: var(--font-body); font-size: .88rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); align-self: center; }
.link-strip .strip-all:hover { color: var(--royal); }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-size: .86rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: .42rem .95rem; color: var(--ink-2); transition: border-color .2s, color .2s, transform .2s var(--ease); }
a.chip:hover { border-color: var(--royal); color: var(--royal); background: #fff; box-shadow: var(--shadow-card); text-decoration: none; transform: translateY(-2px); }

/* article */
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; font-size: .88rem; color: var(--ink-3); margin-bottom: 2.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-strong); }
.article-meta .cat { color: var(--gold-ink); font-weight: 700; }
.article-list { border-top: 1px solid var(--line-strong); }
.article-item { display: grid; grid-template-columns: minmax(110px, .22fr) 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.6rem .5rem; border-bottom: 1px solid var(--line-strong); color: inherit; text-decoration: none !important; transition: background .25s; }
.article-item:hover { background: var(--surface); }
.article-item .a-cat { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.article-item h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0 0 .3rem; transition: color .2s; }
.article-item:hover h3 { color: var(--royal); }
.article-item p { color: var(--ink-2); font-size: .93rem; margin: 0; max-width: 62ch; }
.article-item .a-date { font-size: .84rem; color: var(--ink-3); white-space: nowrap; }

/* ---------- calculators ---------- */
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.calc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-bottom: 1.75rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; padding: .72rem .9rem; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 3px rgba(42,82,199,.14); }
.calc-results { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.6rem; }
.calc-results h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.result-rows { list-style: none; margin: 0; padding: 0; }
.result-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line-strong); font-size: .97rem; }
.result-rows li:last-child { border: none; }
.result-rows .r-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.result-hero { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--royal); margin: .25rem 0 .1rem; letter-spacing: -.02em; }
.result-hero-label { font-size: .85rem; color: var(--ink-3); margin: 0 0 1rem; }
.calc-note { font-size: .82rem; color: var(--ink-3); margin-top: 1.25rem; }
.score-meter { height: 12px; border-radius: 999px; background: #e6e9f5; overflow: hidden; margin: .75rem 0 .4rem; }
.score-meter i { display: block; height: 100%; border-radius: 999px; background: var(--royal-bright); transition: width .6s var(--ease); }

/* ---------- reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: calc(var(--ri, 0) * 70ms); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- render containment ----------
   Below-the-fold sections skip layout/paint until they approach the
   viewport, a large first-render win on long pages, esp. mobile.
   The sticky services scroller opts out (sticky needs live layout). */
.section, .site-footer, .cta-band { content-visibility: auto; contain-intrinsic-size: auto 820px; }
.section[data-svc-scroller], .section:has(.svc-sticky) { content-visibility: visible; contain-intrinsic-size: none; }
.hero-team picture { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) { .header-phone { display: none; } }
@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: inline-flex; }
  /* single column: copy first, the founder's plate follows centered */
  .hero-stage { grid-template-columns: 1fr; min-height: 0; gap: 3rem; }
  .hero-copy { max-width: 100%; }
  .hero-team { justify-self: center; width: min(480px, 100%); }
  .bento-feature, .bento-wide { grid-column: span 12; }
  .bento-half { grid-column: span 6; }
  .ledger, .ledger-3 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .quote-spread { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .ind-carousel { grid-template-columns: 1fr; gap: 1.75rem; }
  .card-grid, .card-grid-4, .calc-grid, .tgrid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card:nth-child(even) { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .cta-inner { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 1fr; gap: .75rem; }
  .article-item { grid-template-columns: 1fr; gap: .35rem; }
  .idx-cols { grid-template-columns: 1fr; }
}
/* services showcase: below this width it stops pinning and becomes a
   stacked, tap-through card (segments switch the service) */
@media (max-width: 900px) {
  .svc-sticky { position: static; }
  .svc-steps { display: none; }
  .svc-card { grid-template-columns: 1fr; min-height: 0; }
  .svc-card-media { aspect-ratio: 16 / 10; }
  .svc-details { min-height: 20.5rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: 1rem; }
  .header-cta .btn { display: none; }
  .header-cta { gap: .6rem; }
  .brand { padding: .4rem 0; }
  .brand-logo { width: min(220px, 58vw); }
  .brand-assoc { font-size: .48rem; letter-spacing: .13em; }
  .card-grid, .card-grid-4, .calc-grid, .tgrid, .team-grid, .ledger, .ledger-3, .timeline { grid-template-columns: 1fr; }
  /* stats stay 2-up on phones, halves the scroll, reads like a scoreboard */
  .stats-row { grid-template-columns: 1fr 1fr; row-gap: 2.25rem; column-gap: 1rem; }
  .stats-row .stat { padding-inline: .5rem; }
  .stats-row .stat + .stat::before { display: none; }
  .stats-row .stat:nth-child(even)::before { display: block; top: 8%; bottom: 8%; }
  .stat-value { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .bento-half { grid-column: span 12; }
  .bento-wide { flex-direction: column; align-items: flex-start; }
  .hero-stage { gap: 2.5rem; }
  .hero-copy { padding-top: 1rem; }
  /* single-column: protect the stacked text with a vertical scrim, but let the
     skyline read through at the foot of the hero */
  .home-hero .hero-photo::after {
    background:
      linear-gradient(to bottom, rgba(5,11,30,.96) 0%, rgba(5,11,30,.86) 38%, rgba(6,15,40,.5) 64%, rgba(7,17,46,.74) 100%);
  }
  /* credentials break to a ruled 2×2 on phones */
  .hero-facts { grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 1.2rem 1.4rem; padding-top: 1.4rem; margin-top: 2rem; }
  .hf-value { font-size: 1rem; }
  .hero-team { width: min(380px, 100%); }
  .hero-seal { width: 76px; height: 76px; top: -24px; right: -18px; }
  .hero-seal .seal-core { font-size: 1.05rem; }
  .calc-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* keep the rotating word on a single line on small phones */
  .home-hero h1 { font-size: clamp(2.1rem, 11vw, 2.8rem); }
  /* CTAs stay side by side: two equal tiles, labels wrap */
  .hero-ctas { flex-wrap: nowrap; gap: .7rem; }
  .hero-ctas .btn {
    flex: 1 1 0; min-width: 0; white-space: normal;
    text-align: center; padding: .95rem .75rem; font-size: .93rem; line-height: 1.3;
  }
  .idx-row { grid-template-columns: 1fr auto; }
  .idx-num { display: none; }
  .idx-tools .idx-row { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 480px) {
  .header-phone { display: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .crumbs, .cta-band, .site-footer, .hero-photo, .hero-lines { display: none; }
  .page-hero, .home-hero { padding-top: 2rem; }
  body { background: #fff; }
}
