/* =========================================================
   Tax & Accounting Pros, Inc — lead-magnet landing page
   Structure: Advisory reference · Brand: navy / slate / ice
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Martian Mono';
  src: url('fonts/martian-mono-var-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --night: #0A1020;
  --ice: #D8F4FF;
  --sky: #9FDCFA;
  --blue: #0E6E96;
  --white: #FFFFFF;
  --paper: #F4F6F8;
  --line: #DFE4EA;
  --ink: #0F172A;
  --text: #334155;
  --muted: #566173;
  --dim: #5F6A7A;
  --on-dark: #FFFFFF;
  --on-dark-2: #C5CDD8;
  --on-dark-3: #98A3B4;
  --line-dark: rgba(255, 255, 255, 0.12);
  --danger: #B42318;
  --success: #0B6B3A;

  --r-btn: 8px;
  --r-badge: 6px;
  --r-card: 8px;
  --r-panel: 10px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --section-y: clamp(88px, 10.5vw, 148px);

  --font-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ---------- reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #98A3B4 #EEF1F4;
}

html.has-smoothscroll { scroll-behavior: auto !important; }

/* Lenis' own required rules, inlined */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--ice); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero :focus-visible,
.site-header :focus-visible,
.services :focus-visible,
.quotes :focus-visible,
.contact-panel :focus-visible,
.stack-visual-certs :focus-visible,
.site-footer :focus-visible { outline-color: var(--ice); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ice);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 16px; }

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* ---------- type primitives ---------- */
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.36em;
  border-radius: 2px;
  background: var(--blue);
}
.eyebrow-dark { color: var(--ice); }
.eyebrow-dark::before { background: var(--ice); }

.h2 {
  margin: 0 0 18px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { max-width: 600px; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --pl: 6px;
  --ic: 40px;
  --gap: 14px;
  --pr: 22px;
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  min-height: 52px;
  padding: 6px var(--pr) 6px var(--pl);
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--ic);
  height: var(--ic);
  border-radius: var(--r-badge);
  transition: background-color 200ms ease, color 200ms ease;
}
.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms var(--ease-out);
}

.btn-ice { background: var(--ice); color: var(--navy); }
.btn-ice .btn-icon { background: var(--navy); color: var(--ice); }

.btn-ghost {
  background: rgba(15, 23, 42, 0.28);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}
.btn-ghost .btn-icon { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy .btn-icon { background: var(--ice); color: var(--navy); }

.btn-sm { --pl: 4px; --gap: 12px; --pr: 18px; min-height: 48px; padding-block: 4px; }

/* full-width buttons: icon pinned left, label centred on the whole button,
   so stacked buttons line up regardless of label length */
.btn-block,
.btn-submit { width: 100%; justify-content: flex-start; }
.btn-block .btn-label,
.btn-submit .btn-label { flex: 1 0 auto; text-align: center; }
/* a spacer mirroring the icon keeps the label optically centred; it shrinks first when space is tight */
.btn-block::after,
.btn-submit::after {
  content: "";
  flex: 0 1 calc(var(--pl) + var(--ic) + var(--gap) - var(--pr));
  min-width: 0;
  margin-left: calc(-1 * var(--gap));
}

@media (hover: hover) and (pointer: fine) {
  .btn-ice:hover { background: var(--white); }
  .btn-ghost:hover { border-color: var(--white); background: rgba(15, 23, 42, 0.5); }
  .btn-navy:hover { background: var(--navy-2); }
  .btn:hover .btn-icon svg { transform: translateX(2px); }
  .btn-ghost:hover .btn-icon svg { transform: rotate(-8deg); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--white);
  transition: background-color 260ms ease, box-shadow 260ms ease;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px -18px rgba(2, 6, 23, 0.6);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}
.header-inner::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  transition: opacity 260ms ease;
}
.is-scrolled .header-inner::after,
.menu-open .header-inner::after { opacity: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  min-height: 48px;
  color: var(--white);
  text-decoration: none;
}
.brand-seal { width: 54px; height: auto; flex: none; }
.brand-name {
  font-stretch: 112%;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--white);
  text-decoration: none;
}
.header-phone:hover { text-decoration: underline; }

.menu-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--r-btn);
  background: rgba(15, 23, 42, 0.2);
  color: var(--white);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .menu-toggle:hover { border-color: var(--white); }
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease-out), opacity 160ms ease;
}
.menu-lines { position: relative; background: transparent; }
.menu-lines::before,
.menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -3.5px; }
.menu-lines::after { top: 3.5px; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-3.5px) rotate(-45deg); }

.site-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: var(--gutter);
  width: min(380px, calc(100vw - var(--gutter) * 2));
  padding: 10px;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-panel);
  box-shadow: 0 28px 60px -24px rgba(2, 6, 23, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
}
.site-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: var(--r-badge);
  font-stretch: 112%;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--white);
  text-decoration: none;
  transition: background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .menu-list a:hover { background: rgba(255, 255, 255, 0.06); }
}
.menu-foot {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 16px 14px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ice);
  text-decoration: none;
}
.menu-note { margin: 0 0 6px; font-size: 15px; color: var(--on-dark-2); }
.menu-cta { width: 100%; justify-content: flex-start; }
.menu-cta .btn-label { flex: 1 0 auto; text-align: center; }
.menu-cta::after { content: ""; flex: 0 1 calc(var(--pl) + var(--ic) + var(--gap) - var(--pr)); min-width: 0; margin-left: calc(-1 * var(--gap)); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture,
.hero-media img { width: 100%; height: 100%; }
.hero-media img {
  object-fit: cover;
  object-position: var(--hero-x, 62%) 32%;
  transform: scale(1.06);
  animation: hero-settle 2.4s var(--ease-out) 0.05s forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0) 26%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.35) 22%, rgba(15, 23, 42, 0) 40%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.76) 32%, rgba(15, 23, 42, 0.3) 58%, rgba(15, 23, 42, 0.14) 100%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-top: calc(var(--header-h) + clamp(44px, 9vh, 112px));
  padding-bottom: 26px;
}

.hero-copy { max-width: 780px; }

.hero-title {
  margin: 0 0 26px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--white);
}
.hero-line { display: block; white-space: nowrap; }
.hero-title .accent { color: var(--sky); }

.hero-sub {
  max-width: 580px;
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.scroll-cue svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .scroll-cue:hover svg { transform: translateY(3px); }
}

.hero-creds {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.hero-creds li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hero-creds li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--ice);
}

/* hero entrance (JS adds .hero-animate; content is visible without it) */
.hero-animate .hero-eyebrow,
.hero-animate .hero-sub,
.hero-animate .hero-actions,
.hero-animate .hero-foot {
  animation: fade-up 900ms var(--ease-out) both;
}
.hero-animate .hero-eyebrow { animation-delay: 80ms; }
.hero-animate .hero-sub { animation-delay: 620ms; }
.hero-animate .hero-actions { animation-delay: 760ms; }
.hero-animate .hero-foot { animation-delay: 940ms; }
.hero-title .w {
  display: inline-block;
  animation: word-in 950ms var(--ease-out) both;
  animation-delay: calc(140ms + var(--i) * 60ms);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes word-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(12px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* ---------- about / statement ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 64px);
  align-items: start;
}
.about-eyebrow { margin-top: 10px; }
.statement {
  max-width: 960px;
  margin: 0;
  font-stretch: 100%;
  font-weight: 500;
  font-size: clamp(26px, 2.75vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.statement.is-filling .fw { color: #7D8898; transition: color 360ms ease; }
.statement.is-filling .fw.on { color: var(--ink); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(48px, 6vw, 84px) 0 0 calc(284px + clamp(24px, 4vw, 64px));
  padding: 0;
  list-style: none;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--r-panel);
  background: var(--paper);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 64px;
  border-radius: var(--r-badge);
  background: var(--white);
  color: var(--navy);
}
.stat-icon svg,
.pill-icon svg,
.contact-icon svg,
.cert-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(46px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.stat-text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }

/* ---------- services ---------- */
.services { position: relative; background: var(--navy); color: var(--white); }
.services .h2 { color: var(--white); }
.services .lead { color: var(--on-dark-2); }

.services-pin { padding-block: var(--section-y); }
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.services-intro { max-width: 620px; }
.services-intro .lead { margin-bottom: 32px; }
.services-progress { display: none; }

.services-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-panel);
  background: var(--navy-2);
}
.svc-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
  background: #26344A;
}
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 14px 10px; }
.svc-situation {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
  white-space: nowrap;
}
.svc-title {
  margin: 0 0 10px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}
.svc-text { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--on-dark-2); }
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ice);
  text-decoration: none;
}
.svc-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .svc-link:hover { text-decoration: underline; }
  .svc-link:hover svg { transform: translateX(3px); }
}

/* pinned horizontal mode (JS adds .is-pinned on wide, motion-ok screens) */
.services.is-pinned .services-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-block: calc(var(--header-h) + 8px) 24px;
  overflow: hidden;
}
.services.is-pinned .services-layout {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.services.is-pinned .services-progress {
  display: block;
  height: 2px;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.14);
}
.services-progress-bar {
  display: block;
  height: 100%;
  background: var(--ice);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.services.is-pinned .services-window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px);
  mask-image: linear-gradient(90deg, transparent 0, #000 56px);
  margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2));
  border-radius: var(--r-panel) 0 0 var(--r-panel);
}
.services.is-pinned .services-track {
  display: flex;
  width: max-content;
  padding-right: max(var(--gutter), (100vw - var(--container)) / 2);
  will-change: transform;
}
.services.is-pinned .svc-card { flex: none; width: clamp(320px, 29vw, 410px); }

/* ---------- process ---------- */
.process { background: var(--paper); }
.process-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.process-photo { position: relative; margin: 0; }
.process-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-badge);
  background: rgba(15, 23, 42, 0.86);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.process-photo figcaption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--ice);
}
.process-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-panel);
}
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-rows: auto auto 1fr;
  gap: 6px clamp(20px, 3vw, 40px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.step-title {
  grid-column: 1;
  margin: 0;
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.step-text { grid-column: 2; grid-row: 1 / span 3; margin: 0; font-size: 16.5px; color: var(--text); }
.steps.is-focusing .step-title,
.steps.is-focusing .step-text,
.steps.is-focusing .step-num { transition: color 420ms ease; }
.steps.is-focusing .step:not(.is-active) .step-title,
.steps.is-focusing .step:not(.is-active) .step-text,
.steps.is-focusing .step:not(.is-active) .step-num { color: var(--dim); }
.steps.is-focusing .step.is-active .step-num { color: var(--blue); }

/* ---------- why marc: stacked cards ---------- */
.stack { display: grid; gap: 28px; }
.stack-card {
  position: sticky;
  top: calc(var(--header-h) + 24px + var(--n, 0) * 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  min-height: 500px;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-panel);
  background: var(--paper);
  box-shadow: 0 -18px 40px -30px rgba(15, 23, 42, 0.35);
  transform-origin: 50% 0;
}
.stack-card:nth-child(2) { --n: 1; }
.stack-card:nth-child(3) { --n: 2; }
.stack-copy { display: flex; flex-direction: column; padding: 14px 8px 8px; }
.stack-title {
  margin: 0 0 18px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.stack-text { max-width: 54ch; margin: 0 0 28px; color: var(--text); }
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: auto 0 28px;
  padding: 20px 0;
  border-top: 1px dashed #BFC8D3;
  border-bottom: 1px dashed #BFC8D3;
}
.meta dt {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta dd { margin: 0; font-weight: 500; font-size: 16.5px; color: var(--ink); }
.stack-copy .btn { align-self: flex-start; }

.stack-visual {
  position: relative;
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--navy);
}
.stack-visual > img { width: 100%; height: 100%; object-fit: cover; }
.stack-visual-brand {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 46%, rgba(216, 244, 255, 0.1), rgba(216, 244, 255, 0) 58%), var(--navy);
}
.stack-visual-brand > img { width: min(62%, 300px); height: auto; object-fit: contain; }
.brand-panel-note {
  position: absolute;
  left: 22px;
  bottom: 18px;
  margin: 0;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.stack-visual-certs { display: flex; align-items: center; padding: clamp(18px, 2.4vw, 32px); }
.cert-list { display: grid; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.cert {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card);
  background: var(--navy-2);
}
.cert-mark {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-badge);
  background: var(--ice);
  color: var(--navy);
}
.cert-name { font-stretch: 106%; font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--white); }
.cert-meta {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

/* ---------- recommendations ---------- */
.quotes { background: var(--navy); color: var(--white); }
.quotes .h2 { color: var(--white); }
.quotes .lead { color: var(--on-dark-2); }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  margin: 0;
  padding: clamp(28px, 3.2vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-panel);
  background: var(--navy-2);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  font-stretch: 104%;
  font-weight: 500;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.34;
  letter-spacing: -0.014em;
  color: var(--white);
}
.quote figcaption {
  display: grid;
  gap: 2px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.quote-name { font-weight: 600; font-size: 17px; color: var(--white); }
.quote-role { font-size: 15.5px; color: var(--on-dark-2); }
.quote-source {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
}

/* ---------- who we work with ---------- */
.who { background: var(--paper); overflow: hidden; }
.who .section-head { margin-bottom: clamp(36px, 4.4vw, 56px); }
.pill-cloud {
  display: grid;
  gap: 14px;
}
.pill-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(calc(var(--shift, 0) * 1px));
  will-change: transform;
}
.pill-row-alt { transform: translateX(calc(var(--shift, 0) * -1px)); }
.pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 14px;
  padding: 7px 22px 7px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--white);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
}
.pill-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-badge);
  background: var(--navy);
  color: var(--ice);
}

/* ---------- faq ---------- */
.acc { display: grid; gap: 12px; max-width: 840px; margin: 0 auto; }
.acc-item { border-radius: var(--r-panel); background: var(--paper); transition: background-color 200ms ease; }
.acc-heading { margin: 0; font: inherit; }
.acc-trigger {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 68px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--r-panel);
  background: none;
  font: inherit;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.acc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-badge);
  background: var(--white);
  color: var(--navy);
  transition: background-color 200ms ease, color 200ms ease;
}
.acc-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.acc-icon svg { transition: transform 260ms var(--ease-out); }
.acc-item.is-open .acc-icon { background: var(--navy); color: var(--ice); }
.acc-item.is-open .acc-icon svg { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .acc-item:not(.is-open):hover { background: #ECEFF3; }
}
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; visibility: hidden; transition: visibility 0s linear 320ms; }
.acc-item.is-open .acc-inner { visibility: visible; transition: visibility 0s; }
.acc-inner p { max-width: 66ch; margin: 0; padding: 0 28px 26px 76px; color: var(--text); }

/* ---------- contact ---------- */
.contact { background: var(--navy); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 20px;
  align-items: stretch;
}
.contact-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.6vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-panel);
  background: rgba(30, 41, 59, 0.55);
}
.contact-panel .h2 { color: var(--white); }
.contact-panel .lead { color: var(--on-dark-2); }
.contact-list { display: grid; margin: auto 0 0; padding: 40px 0 0; list-style: none; }
.contact-list li {
  display: grid;
  grid-template-columns: 44px 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-badge);
  background: rgba(216, 244, 255, 0.1);
  color: var(--ice);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.contact-value { font-weight: 500; font-size: 17px; color: var(--white); overflow-wrap: anywhere; }
a.contact-value { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; text-decoration: underline; text-decoration-color: rgba(216, 244, 255, 0.4); }
a.contact-value:hover { text-decoration-color: var(--ice); }

.form-card {
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: var(--r-panel);
  background: var(--white);
  color: var(--ink);
}
.form-title {
  margin: 0 0 6px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.form-note { margin: 0 0 26px; font-size: 15px; color: var(--muted); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label,
.choice-group legend { font-weight: 500; font-size: 15.5px; color: var(--ink); }
.req { font-weight: 400; font-size: 14px; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #77839A;
  border-radius: var(--r-badge);
  background: #F7F9FB;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  caret-color: var(--blue);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--navy); }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--navy); background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF7F6; }
.field-error { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--danger); }

.choice-group { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.choice-group legend { margin-bottom: 8px; padding: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.choices-inline { display: flex; flex-wrap: wrap; gap: 0 28px; }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy); cursor: pointer; }

.btn-submit { margin-top: 8px; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-weight: 500; font-size: 15.5px; color: var(--success); }

/* ---------- footer ---------- */
.site-footer {
  padding: clamp(64px, 8vw, 104px) 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy);
  color: var(--on-dark-2);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img { width: 92px; height: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 38ch; margin: 0; font-size: 16px; }
.footer-kicker {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.footer-kicker::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.3em;
  border-radius: 2px;
  background: var(--ice);
}
.footer-phone {
  display: inline-block;
  margin-bottom: 6px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.028em;
  color: var(--white);
  text-decoration: none;
}
.footer-phone:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.footer-email { display: flex; align-items: center; width: fit-content; min-height: 44px; color: var(--ice); font-size: 17px; }
.footer-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
  transition: color 160ms ease;
}
.footer-nav a:hover { color: var(--ice); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 26px;
  font-size: 14.5px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--white); }
.footer-line span { margin-inline: 6px; color: var(--on-dark-3); }

/* ---------- scroll reveal (visible by default; JS opts in) ---------- */
.pre-reveal { opacity: 0; transform: translateY(18px); }
.pre-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms);
}

/* ---------- accessibility statement page ---------- */
.a11y-hero {
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 7vw, 88px);
  background: radial-gradient(120% 140% at 85% 0%, rgba(216, 244, 255, 0.08), rgba(216, 244, 255, 0) 55%), var(--navy);
  color: var(--white);
}
.a11y-title {
  max-width: 14ch;
  margin: 0 0 22px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--white);
}
.a11y-lede { max-width: 640px; margin: 0 0 28px; font-size: 19px; line-height: 1.6; color: var(--on-dark-2); }
.a11y-updated {
  margin: 0;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
  white-space: nowrap;
}
.a11y-body { padding-block: clamp(56px, 7vw, 104px) var(--section-y); }
.a11y-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.toc { position: sticky; top: calc(var(--header-h) + 32px); }
.toc-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ul { display: grid; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 15.5px;
  color: var(--text);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.toc a:hover { color: var(--ink); border-left-color: var(--blue); }
.prose { max-width: 720px; }
.prose section + section { margin-top: clamp(44px, 5vw, 64px); padding-top: clamp(44px, 5vw, 64px); border-top: 1px solid var(--line); }
.prose h2 {
  margin: 0 0 16px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.prose p { margin: 0 0 16px; }
.prose a:not(.btn) { color: var(--blue); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}
.contact-card {
  display: grid;
  gap: 4px;
  margin: 8px 0 16px;
  padding: 22px 24px;
  border-radius: var(--r-panel);
  background: var(--paper);
}
.contact-card p { margin: 0; }
.contact-card-label {
  display: inline-block;
  min-width: 88px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; }
.back-link { margin-top: 12px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .hero-creds li:nth-child(4) { display: none; }
}

@media (max-width: 1080px) {
  .hero-creds { display: none; }
  .header-phone { display: none; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0) 26%),
      linear-gradient(0deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.35) 22%, rgba(15, 23, 42, 0) 40%),
      linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.84) 44%, rgba(15, 23, 42, 0.46) 70%, rgba(15, 23, 42, 0.18) 100%);
  }
}

@media (max-width: 1023px) {
  .a11y-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-eyebrow { margin-top: 0; }
  .stats { margin-left: 0; }
  .process-card { grid-template-columns: minmax(0, 1fr); }
  .process-photo img { aspect-ratio: 16 / 10; max-height: 460px; object-position: 50% 30%; }
  .stack-card {
    position: relative;
    top: auto;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    box-shadow: none;
  }
  .stack-visual { min-height: 300px; }
  .stack-visual:not(.stack-visual-brand) > img { position: absolute; inset: 0; }
  .stack-visual-brand { min-height: 320px; padding: 40px 24px 56px; }
  .stack-visual-brand > img { width: min(58%, 240px); }
  .stack-visual-certs { min-height: 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-nav { grid-column: 1 / -1; }
  .footer-nav ul { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2px 32px; }
}

@media (max-width: 860px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { min-height: 0; }
  .stat-icon { margin-bottom: 20px; }
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .quote { min-height: 0; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }

  .header-actions { display: none; }
  .brand-seal { width: 46px; }
  .brand-name { font-size: 15px; }

  .hero-media img { object-position: 84% 22%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0) 22%),
      linear-gradient(0deg, rgba(15, 23, 42, 0.97) 0%, rgba(15, 23, 42, 0.93) 40%, rgba(15, 23, 42, 0.86) 57%, rgba(15, 23, 42, 0.72) 65%, rgba(15, 23, 42, 0.36) 74%, rgba(15, 23, 42, 0.1) 82%, rgba(15, 23, 42, 0) 88%);
  }
  .hero-inner { justify-content: flex-end; padding-top: calc(var(--header-h) + 24px); padding-bottom: 28px; }
  .hero-title { font-size: clamp(34px, 10.2vw, 46px); line-height: 1.04; margin-bottom: 18px; }
  .hero-line { display: inline; white-space: normal; }
  .hero-sub { font-size: 16.5px; margin-bottom: 26px; }
  .hero-actions { flex-direction: column; }
  .hero-foot { display: none; }

  .btn { width: 100%; justify-content: flex-start; }
  .btn .btn-label { flex: 1 0 auto; text-align: center; }
  .btn::after { content: ""; flex: 0 1 calc(var(--pl) + var(--ic) + var(--gap) - var(--pr)); min-width: 0; margin-left: calc(-1 * var(--gap)); }

  .h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .lead { font-size: 17px; }

  .step { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 24px 0; }
  .step-text { grid-column: 1; grid-row: auto; margin-top: 6px; }

  .meta { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stack-copy { padding: 6px 2px 2px; }

  .pill-cloud {
    gap: 10px;
    padding-inline: var(--gutter);
  }
  .pill-row,
  .pill-row-alt {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    transform: none;
  }
  .pill { width: 100%; font-size: 16px; gap: 14px; padding: 6px 16px 6px 6px; white-space: normal; }
  .pill-icon { width: 40px; height: 40px; flex: none; }

  .acc-trigger { font-size: 17.5px; padding: 14px 18px; gap: 14px; }
  .acc-inner p { padding: 0 20px 22px 66px; }

  .field-row { grid-template-columns: minmax(0, 1fr); }
  .choices { grid-template-columns: minmax(0, 1fr); }

  .contact-list li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 2px; }
  .contact-icon { grid-row: 1 / span 2; }

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-nav ul { grid-template-columns: repeat(2, auto); }
  .footer-bottom { flex-direction: column; }
  .footer-line span { margin-inline: 4px; }
}

@media (min-width: 540px) and (max-width: 760px) {
  .pill-row,
  .pill-row-alt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) and (max-height: 760px) {
  .hero-sub { display: none; }
  .hero-title { font-size: clamp(32px, 9.4vw, 40px); margin-bottom: 24px; }
  .hero-eyebrow { margin-bottom: 14px; }
}

@media (max-width: 400px) {
  .eyebrow { font-size: 10.5px; font-stretch: 75%; }
  .hero-creds { font-size: 10.5px; }
  .svc-situation { font-size: 10.5px; }
  .form-card { padding: 22px 18px; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 12.5px; }
  .brand { gap: 10px; }
  .header-inner { gap: 10px; }
  .cert-meta { font-size: 10px; font-stretch: 75%; }
  .cert { padding: 12px; column-gap: 12px; }
  .brand-seal { width: 40px; }
  .btn { --ic: 34px; --gap: 10px; --pr: 14px; font-size: 11.5px; font-stretch: 75%; }
  .form-card { padding: 20px 16px; }
  .acc-inner p { padding-left: 20px; }
}

/* short desktop viewports: keep the hero inside one screen */
@media (min-width: 761px) and (max-height: 820px) {
  .hero-inner { padding-top: calc(var(--header-h) + clamp(28px, 6vh, 64px)); }
  .hero-title { font-size: clamp(42px, min(5vw, 8.4vh), 72px); margin-bottom: 20px; }
  .hero-sub { margin-bottom: 28px; }
  .hero-foot { margin-top: 28px; }
}
@media (min-width: 761px) and (max-height: 700px) {
  .hero-sub-extra { display: none; }
  .hero-foot { padding-top: 10px; }
  .services.is-pinned .svc-img { aspect-ratio: 16 / 10; }
}

@media (max-aspect-ratio: 11/10) and (min-width: 761px) {
  .hero-inner { justify-content: flex-end; }
  .hero-copy { margin-bottom: 8px; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0) 22%),
      linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 36%, rgba(15, 23, 42, 0.35) 60%, rgba(15, 23, 42, 0.05) 80%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  .hero-animate .hero-eyebrow,
  .hero-animate .hero-sub,
  .hero-animate .hero-actions,
  .hero-animate .hero-foot,
  .hero-title .w { animation: none; }
  .pre-reveal { opacity: 1; transform: none; }
  .acc-panel,
  .site-menu,
  .btn,
  .btn-icon svg { transition: none; }
}
