/* ===========================================================
   Law Ledgers — Static site styles
   Warm editorial aesthetic. Serif display, clean sans body.
   =========================================================== */

/* --- Tokens ------------------------------------------------ */
:root {
  --bg:            #F6F2EA;
  --bg-alt:        #EFE9DC;
  --surface:       #FFFFFF;
  --ink:           #161517;
  --ink-muted:     #5C5A60;
  --ink-subtle:    #8B888F;
  --line:          #E2DBCA;
  --line-strong:   #C7BFA9;
  --accent:        #A8181D;
  --accent-hover:  #7E1014;
  --accent-soft:   #E9D4D4;

  --f-display: "Fraunces", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap:          1240px;
  --wrap-prose:    68ch;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;

  --shadow-card:   0 1px 2px rgba(20, 18, 15, .04), 0 12px 40px -12px rgba(20, 18, 15, .10);

  --ease:          cubic-bezier(.2, .7, .2, 1);
}

/* --- Reset-ish --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }

/* --- Typography -------------------------------------------- */
.display,
.hero-title,
.page-header h1,
.intro h2,
.card h3,
.triptych h3,
.team-card h3,
.feature-body h3,
.stat-value,
.cta-band h2,
.feature-label,
.triptych .num,
.card .num {
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  font-feature-settings: "kern", "liga", "ss01";
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  font-weight: 500;
}
.lede {
  font-size: clamp(18px, 1.2vw + 14px, 22px);
  line-height: 1.55;
  color: var(--ink-muted);
}

/* --- Layout ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-prose {
  width: 100%;
  max-width: var(--wrap-prose);
  margin: 0 auto;
}
.section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--bg     { background: var(--bg-alt); }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  line-height: 1.1;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-word strong {
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: var(--ink);
}
.brand-word span {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-word strong { color: #fff; }
.footer-brand .brand-word span { color: rgba(246, 242, 234, 0.55); }
.footer-brand .brand-mark { width: 56px; height: 56px; flex-basis: 56px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.nav-links a.active {
  color: var(--ink);
  position: relative;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 12px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-tel {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  margin-right: 8px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-tel:hover { background: var(--bg-alt); border-color: var(--ink); }
.nav-tel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Skip-to-main-content link (a11y) -------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 3px 0;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(0,0,0,0.03); }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, rgba(0,0,0,0.4) 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 68%, rgba(0,0,0,0.4) 88%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.28) 40%,
    rgba(0,0,0,0.60) 70%,
    rgba(0,0,0,0.30) 90%,
    rgba(0,0,0,0) 100%);
  z-index: -1;
}
.hero--home::before   {
  background-image: url('../img/hero-home-20260421.webp');
  background-position: 70% center;
  filter: contrast(1.06) saturate(1.04);
}
.hero--home::after {
  background:
    linear-gradient(180deg,
      rgba(4,6,10,0.20) 0%,
      rgba(4,6,10,0.35) 55%,
      rgba(4,6,10,0.55) 100%);
}
.hero--services::before {
  background-image: url('../img/hero-services-20260421.webp');
  background-position: 68% center;
  filter: contrast(1.06) saturate(1.04);
}
.hero--team::before {
  background-image: url('../img/hero-team-20260421.webp');
  background-position: 64% center;
  filter: contrast(1.06) saturate(1.04);
}
.hero--contact::before {
  background-image: url('../img/hero-contact-20260421.webp');
  background-position: 70% center;
  filter: contrast(1.06) saturate(1.04);
}
.hero--services::after,
.hero--team::after,
.hero--contact::after {
  background:
    linear-gradient(90deg,
      rgba(4,6,10,0.95) 0%,
      rgba(4,6,10,0.90) 30%,
      rgba(4,6,10,0.70) 54%,
      rgba(4,6,10,0.30) 74%,
      rgba(4,6,10,0.12) 100%),
    linear-gradient(180deg,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.34) 42%,
      rgba(0,0,0,0.72) 100%);
}
.hero--app {
  min-height: clamp(540px, 78vh, 760px);
}
.hero--app::before {
  background-image: url('../img/hero-app-20260421.webp');
  background-position: 74% center;
  filter: contrast(1.05) saturate(1.03);
}
.hero--app::after {
  background:
    linear-gradient(90deg,
      rgba(5,8,14,0.96) 0%,
      rgba(5,8,14,0.92) 30%,
      rgba(5,8,14,0.74) 52%,
      rgba(5,8,14,0.40) 72%,
      rgba(5,8,14,0.16) 100%),
    linear-gradient(180deg,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.36) 46%,
      rgba(0,0,0,0.68) 100%);
}
.hero-copy--app {
  max-width: min(42vw, 620px);
}
.hero-copy--app .hero-title {
  max-width: min(41vw, 590px);
}
.hero-copy--app .hero-sub {
  max-width: min(34vw, 500px);
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 10px;
}
.hero-points li {
  padding-left: 22px;
  position: relative;
  color: rgba(255,255,255,0.88);
  font-size: 15.5px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #F2D9B8;
  border-bottom: 1.5px solid #F2D9B8;
  transform: rotate(-45deg);
}
.hero-note {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  max-width: 52ch;
}
.hero-note strong {
  color: #F2D9B8;
  font-weight: 600;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  margin-left: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  margin-right: auto;
  margin-top: clamp(13px, 1.67vw, 24px);
  margin-bottom: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg,
    rgba(8,12,20,0.66) 0%,
    rgba(8,12,20,0.74) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  box-shadow:
    0 24px 60px -28px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-title em,
.hero-title-accent {
  font-style: italic;
  color: #F2D9B8;
}
.hero-sub {
  font-size: clamp(17px, 1.1vw + 12px, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero--home .hero-title,
.hero--services .hero-title,
.hero--team .hero-title,
.hero--contact .hero-title,
.hero--app .hero-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.8vw, 80px);
  line-height: 0.94;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero--home .hero-title { max-width: min(46vw, 700px); }
.hero--services .hero-title { max-width: min(40vw, 600px); }
.hero--team .hero-title { max-width: min(38vw, 520px); }
.hero--contact .hero-title { max-width: min(40vw, 590px); }
.hero--app .hero-title { max-width: min(41vw, 590px); }
.hero--home .hero-title-accent,
.hero--services .hero-title-accent,
.hero--team .hero-title-accent,
.hero--contact .hero-title-accent,
.hero--app .hero-title-accent {
  display: block;
  margin-top: 0.05em;
  font-style: italic;
  font-weight: 400;
  color: #F2D9B8;
}
.hero--home .hero-sub,
.hero--services .hero-sub,
.hero--team .hero-sub,
.hero--contact .hero-sub,
.hero--app .hero-sub {
  font-size: clamp(16px, 0.6vw + 13px, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,0.84);
}
.hero--home .hero-sub { max-width: min(35vw, 500px); }
.hero--services .hero-sub { max-width: min(34vw, 500px); }
.hero--team .hero-sub { max-width: min(35vw, 520px); }
.hero--contact .hero-sub { max-width: min(36vw, 540px); }
.hero--app .hero-sub { max-width: min(34vw, 500px); }
.hero--app .hero-points {
  margin-top: 22px;
  margin-bottom: 30px;
  max-width: min(34vw, 470px);
}
.hero--app .hero-points li {
  font-size: 15px;
  line-height: 1.55;
}
.hero--app .hero-note {
  margin-top: 22px;
  max-width: min(36vw, 520px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .btn--primary { background: var(--bg); color: var(--ink); }
.hero .btn--primary:hover { background: #fff; }
.hero .btn--ghost {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

/* Page header (for interior pages, lighter than home hero) */
.page-header {
  padding: clamp(88px, 10vw, 136px) 0 clamp(56px, 6vw, 80px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-header--visual {
  position: relative;
  overflow: hidden;
  padding: clamp(104px, 11vw, 152px) 0 clamp(68px, 7vw, 104px);
  background: #090b10;
  border-bottom-color: rgba(255,255,255,0.08);
}
.page-header--visual::before,
.page-header--visual::after {
  content: "";
  position: absolute;
  inset: 0;
}
.page-header--visual::before {
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.02);
  filter: contrast(1.04) saturate(1.03);
}
.page-header--visual::after {
  background:
    linear-gradient(90deg,
      rgba(6,8,12,0.92) 0%,
      rgba(6,8,12,0.86) 28%,
      rgba(6,8,12,0.64) 52%,
      rgba(6,8,12,0.32) 76%,
      rgba(6,8,12,0.18) 100%),
    linear-gradient(180deg,
      rgba(6,8,12,0.26) 0%,
      rgba(6,8,12,0.38) 36%,
      rgba(6,8,12,0.66) 100%);
}
.page-header--visual .wrap {
  position: relative;
  z-index: 1;
}
.page-header--bookkeeping::before { background-image: url('../img/hero-bookkeeping-20260421.jpg'); background-position: 78% center; }
.page-header--payroll::before { background-image: url('../img/hero-payroll-20260421.jpg'); background-position: 76% center; }
.page-header--tax::before { background-image: url('../img/hero-tax-20260421.jpg'); background-position: 76% center; }
.page-header--trust::before { background-image: url('../img/hero-trust-accounting-20260421.jpg'); background-position: 74% center; }
.page-header .eyebrow { display: block; margin-bottom: 18px; }
.page-header h1 {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0 0 20px;
  text-wrap: balance;
}
.page-header p {
  font-size: clamp(17px, 1vw + 12px, 20px);
  color: var(--ink-muted);
  max-width: 62ch;
  margin: 0;
}
.page-header--visual .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-bottom: 22px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(7,9,14,0.24);
  color: rgba(246,242,234,0.82);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-header--visual .eyebrow a { color: inherit; }
.page-header--visual h1 {
  color: #fff;
  max-width: 11.5ch;
  margin-bottom: 22px;
}
.page-header--visual p {
  color: rgba(246,242,234,0.82);
  max-width: 58ch;
}

/* --- Intro copy block -------------------------------------- */
.intro {
  text-align: left;
  max-width: var(--wrap-prose);
  margin: 0 auto;
}
.intro h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.intro p { color: var(--ink-muted); }
.intro p + p { margin-top: 1em; }

/* --- 3-col editorial grid (home "who/what/why") ------------ */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 56px;
}
.triptych > article {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}
.triptych .num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0;
  display: block;
  margin-bottom: 12px;
}
.triptych h3 {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 400;
}
.triptych p { color: var(--ink-muted); }
.triptych p + p { margin-top: 1em; }

/* --- Service cards (2x2) ----------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.card .num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 400;
}
.card p { color: var(--ink-muted); margin: 0 0 16px; }
.card .included {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.card .included strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

/* --- Alternating feature blocks ---------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.feature + .feature { margin-top: clamp(56px, 6vw, 96px); }
.feature--flip .feature-body { order: 2; }
.feature-media {
  position: sticky;
  top: 108px;
}
.feature-label {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(80px, 10vw, 160px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.feature-body h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 400;
}
.feature-body p { color: var(--ink-muted); margin: 0 0 1em; }

/* --- Stats ------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--f-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-top: 14px;
}

/* --- CTA band ---------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at center, rgba(168, 24, 29, 0.35), transparent 65%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  margin-bottom: 18px;
  font-weight: 400;
  text-wrap: balance;
}
.cta-band p {
  color: rgba(246, 242, 234, 0.78);
  max-width: 58ch;
  margin: 0 auto 32px;
}
.cta-band .btn--primary { background: var(--bg); color: var(--ink); }
.cta-band .btn--primary:hover { background: #fff; }

/* --- App teaser (home) ------------------------------------- */
.app-teaser {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.app-teaser::before {
  content: "";
  position: absolute;
  top: -30%; right: -20%;
  width: 40%; height: 60%;
  background: radial-gradient(circle, rgba(168, 24, 29, 0.06), transparent 70%);
  pointer-events: none;
}
.app-teaser .badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 20px;
}
.app-teaser h3 {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 16px;
  text-wrap: balance;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
}
.app-teaser p {
  color: var(--ink-muted);
  margin: 0 0 20px;
}
.app-teaser .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 14.5px;
}
.app-teaser .feature-list li {
  padding-left: 22px;
  position: relative;
}
.app-teaser .feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.app-teaser-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.app-teaser-media img {
  width: 100%;
  height: auto;
  display: block;
}
.section--app-proof {
  padding-top: clamp(40px, 5vw, 64px);
}
.app-proof {
  align-items: center;
}
.app-proof-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-subtle);
}
.app-proof-media {
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.22), 0 0 0 1px rgba(22,21,23,0.08);
}
@media (max-width: 980px) {
  .app-teaser { grid-template-columns: 1fr; gap: 32px; }
  .hero--app::before { background-position: 68% center; }
}

/* --- Team cards -------------------------------------------- */
.section--team-profiles {
  position: relative;
  margin-top: clamp(-86px, -6vw, -52px);
  padding-top: 0;
}
.team-intro-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 3.4vw, 42px);
  margin-bottom: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(22,21,23,0.08);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,247,241,0.98) 100%);
  box-shadow:
    0 28px 60px -34px rgba(18,15,12,0.28),
    0 0 0 1px rgba(255,255,255,0.5) inset;
}
.team-intro-copy {
  display: grid;
  gap: 14px;
  max-width: 64ch;
}
.team-intro-kicker {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.team-intro-copy h2 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 14ch;
}
.team-intro-copy p {
  margin: 0;
  max-width: 64ch;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.65;
}
.team-credibility {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.team-credibility-item {
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(22,21,23,0.08);
}
.team-credibility-item strong {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.team-credibility-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.team-carousel {
  display: grid;
  gap: 18px;
}
.team-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.team-carousel-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  font-weight: 500;
}
.team-carousel-nav {
  display: flex;
  gap: 10px;
}
.team-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 0;
  padding-bottom: 4px;
}
.team-viewport::-webkit-scrollbar { display: none; }
.team-carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.team-carousel-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--ink);
  background: var(--bg-alt);
}
.team-carousel-btn:disabled {
  opacity: 0.38;
  cursor: default;
}
.team-carousel-btn:focus-visible,
.team-rail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.team-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  padding-bottom: 8px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 40px;
  display: flex;
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: 320px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex-direction: column;
  min-height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.team-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.team-card-heading {
  min-width: 0;
  flex: 1;
}
.team-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-alt));
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.team-card h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.15vw, 28px);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.team-role {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
  font-weight: 500;
  line-height: 1.45;
}
.team-role-note {
  margin-top: 6px;
  font-size: 13px;
  font-style: italic;
  color: rgba(22, 21, 23, 0.62);
  line-height: 1.5;
}

/* --- Clickable team card → opens profile modal --- */
.team-card[data-team-card-trigger] { cursor: pointer; }
.team-card[data-team-card-trigger]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* --- Team Profile Modal -------------------------- */
.profile-modal {
  border: none;
  padding: 0;
  margin: auto;
  inset: 0;
  width: min(720px, calc(100vw - 32px));
  max-width: min(720px, calc(100vw - 32px));
  max-height: min(900px, calc(100vh - 32px));
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  overflow: hidden;
}
.profile-modal::backdrop {
  background: rgba(8, 12, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.profile-modal__inner {
  display: flex;
  flex-direction: column;
  max-height: min(900px, calc(100vh - 32px));
}
.profile-modal__head {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 14px 0;
  flex-shrink: 0;
}
.profile-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.profile-modal__btn:hover {
  background: var(--bg-alt);
  border-color: var(--ink);
}
.profile-modal__btn--close {
  padding: 8px 10px;
}
.profile-modal__body {
  padding: 18px clamp(28px, 5vw, 48px) clamp(36px, 5vw, 48px);
  overflow-y: auto;
  flex: 1;
}
.profile-modal__body .team-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.profile-modal__body .team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.profile-modal__body .team-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-modal__body h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.05;
  font-weight: 400;
  margin: 0 0 8px;
}
.profile-modal__body .team-role {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.profile-modal__body .team-role-note {
  margin-top: 6px;
  font-size: 13.5px;
  font-style: italic;
  color: rgba(22, 21, 23, 0.62);
}
.profile-modal__body p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 1em;
}
.profile-modal__body p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .profile-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .profile-modal__inner { max-height: 100vh; }
  .profile-modal__body { padding: 12px 24px 36px; }
  .profile-modal__body .team-avatar { width: 80px; height: 80px; }
}

/* --- Print: when modal open, isolate the profile content -- */
@media print {
  body.profile-modal-open > *:not(.profile-modal) { display: none !important; }
  body.profile-modal-open .profile-modal__head { display: none !important; }
  body.profile-modal-open .profile-modal {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 0;
    color: #000;
  }
  body.profile-modal-open .profile-modal::backdrop { display: none; }
  body.profile-modal-open .profile-modal__inner,
  body.profile-modal-open .profile-modal__body {
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  body.profile-modal-open .profile-modal__body * { color: #000; }
  body.profile-modal-open .profile-modal__body p,
  body.profile-modal-open .profile-modal__body .team-card-header { page-break-inside: avoid; }
}
.team-card p {
  color: var(--ink-muted);
  font-size: 15.5px;
  margin: 0 0 1em;
}
.team-card p:last-child { margin-bottom: 0; }

/* --- FAQ --------------------------------------------------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border-top: 1px solid var(--line-strong);
  padding: 24px 0;
  transition: padding .2s var(--ease);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-body);
  font-size: 28px;
  color: var(--ink-subtle);
  line-height: 1;
  flex: 0 0 auto;
  transition: transform .3s var(--ease), color .2s var(--ease);
}
.faq summary:hover { color: var(--accent); }
.faq summary:hover::after { color: var(--accent); }
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq details p {
  margin: 18px 0 0;
  color: var(--ink-muted);
  padding-right: 60px;
  line-height: 1.65;
}

/* --- Contact page two-column ------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-grid .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.contact-method {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.contact-method .label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 8px;
}
.contact-method a {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.contact-method a:hover { border-color: var(--accent); color: var(--accent); }

/* --- Contact form ------------------------------------------ */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  font-weight: 500;
}
.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
  font-family: var(--f-body);
}
.form-field input:hover,
.form-field textarea:hover { border-color: var(--line-strong); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168, 24, 29, 0.12);
}
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.form-field .hint { font-size: 13px; color: var(--ink-subtle); }
.form-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-subtle); }
.form-footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-subtle);
  text-align: center;
}
.form-submit {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  display: none;
}
.form-status.is-success {
  display: block;
  background: #E8F0E5;
  border: 1px solid #A7C79A;
  color: #2E5229;
}
.form-status.is-error {
  display: block;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-hover);
}
.form-success {
  display: none;
  text-align: center;
  padding: 32px 0;
}
.form-success.is-visible { display: block; }
.form-success h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 2.8vw, 36px);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  margin-bottom: 12px;
  font-weight: 400;
}
.form-success p { color: var(--ink-muted); }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: linear-gradient(180deg, #1b181c 0%, #171519 100%);
  color: rgba(246, 242, 234, 0.72);
  padding: clamp(48px, 7vw, 80px) 0 28px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
}
.site-footer h4 {
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.site-footer a {
  color: rgba(246, 242, 234, 0.72);
  transition: color .2s var(--ease);
}
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer ul a {
  display: inline-block;
  padding: 2px 0;
}
.footer-disclaimer {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(246, 242, 234, 0.48);
  max-width: 38ch;
}
.footer-col--contact address {
  font-style: normal;
  line-height: 1.7;
  color: rgba(246, 242, 234, 0.72);
  margin-bottom: 14px;
}
.footer-col--contact .footer-phone,
.footer-col--contact .footer-email {
  display: inline-block;
  padding: 4px 0;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-bottom: 1px solid rgba(246, 242, 234, 0.18);
}
.footer-col--contact .footer-phone:hover,
.footer-col--contact .footer-email:hover {
  color: #fff;
  border-bottom-color: rgba(246, 242, 234, 0.55);
}
.footer-col--contact .footer-phone { margin-bottom: 10px; }
.footer-col--contact p { margin: 0; }
.footer-bar {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(246, 242, 234, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(246, 242, 234, 0.45);
}
.footer-bar p { margin: 0; }

/* --- Reveal on scroll -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }
  .page-header--visual {
    padding-top: clamp(96px, 14vw, 132px);
    padding-bottom: clamp(62px, 8vw, 92px);
  }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 8px; }
  .footer-col--contact { order: 2; }
  .footer-col--services { order: 3; }
  .footer-col--navigate { order: 4; }
  .triptych { grid-template-columns: 1fr !important; gap: 36px !important; }
  .cards { grid-template-columns: 1fr !important; gap: 20px !important; }
  .section--team-profiles {
    margin-top: clamp(-58px, -6vw, -34px);
  }
  .team-intro-panel {
    padding: 28px;
  }
  .team-credibility {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .team-card { flex-basis: calc((100% - 28px) / 2); min-width: 300px; }
  .team-card-header { align-items: flex-start; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 24px; }
  .feature--flip .feature-body { order: 0; }
  .feature-media { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid .pair { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 32px; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-title {
    font-size: clamp(38px, 10vw, 54px);
    letter-spacing: -0.012em;
    max-width: none;
  }
  .hero-sub { font-size: 16.5px; line-height: 1.55; max-width: none; }
  .hero-inner { padding-top: clamp(36px, 7vw, 56px); padding-bottom: clamp(96px, 20vw, 140px); }
  .hero-eyebrow { font-size: 11.5px; letter-spacing: 0.18em; padding: 5px 12px; margin-bottom: 20px; }
  .hero-actions { gap: 10px; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero--app { min-height: clamp(560px, 82svh, 760px); }
  .hero--app::before { background-position: 78% center; }
  .hero--app::after {
    background:
      linear-gradient(180deg,
        rgba(5,8,14,0.32) 0%,
        rgba(5,8,14,0.46) 55%,
        rgba(5,8,14,0.62) 100%);
  }
  .hero-copy--app .hero-title { max-width: 10ch; }
  .hero-points li { font-size: 15px; }
  .hero--app .hero-points {
    max-width: 30ch;
    margin-top: 18px;
    margin-bottom: 24px;
  }
  .hero--app .hero-note {
    max-width: 33ch;
  }
  .hero--home { min-height: 100svh; }
  .hero--home::before { background-position: 76% center; }
  .hero--home::after {
    background:
      linear-gradient(180deg,
        rgba(4,6,10,0.30) 0%,
        rgba(4,6,10,0.45) 55%,
        rgba(4,6,10,0.60) 100%);
  }
  .hero-inner {
    width: auto;
    margin-left: 32px;
    margin-right: 32px;
    padding: clamp(24px, 6vw, 32px) clamp(20px, 5vw, 28px);
    margin-bottom: clamp(40px, 10vw, 72px);
    border-radius: 18px;
  }
  .hero--home .hero-title {
    font-size: clamp(36px, 9vw, 52px);
    line-height: 0.96;
    max-width: 10.8ch;
  }
  .hero--services::before { background-position: 74% center; }
  .hero--team::before { background-position: 72% center; }
  .hero--contact::before { background-position: 75% center; }
  .hero--services::after,
  .hero--team::after,
  .hero--contact::after,
  .hero--app::after {
    background:
      linear-gradient(180deg,
        rgba(4,6,10,0.30) 0%,
        rgba(4,6,10,0.45) 55%,
        rgba(4,6,10,0.60) 100%);
  }
  .hero--services .hero-title,
  .hero--team .hero-title,
  .hero--contact .hero-title,
  .hero--app .hero-title {
    font-size: clamp(36px, 9vw, 52px);
    line-height: 0.96;
  }
  .hero--services .hero-title { max-width: 10.6ch; }
  .hero--team .hero-title { max-width: 10ch; }
  .hero--contact .hero-title { max-width: 10.2ch; }
  .hero--app .hero-title { max-width: 10.4ch; }
  .section--team-profiles {
    margin-top: clamp(-36px, -7vw, -22px);
  }
  .team-intro-panel {
    padding: 24px 22px;
    margin-bottom: 22px;
  }
  .team-intro-copy {
    gap: 12px;
  }
  .team-intro-copy h2 {
    font-size: clamp(28px, 7vw, 36px);
    max-width: 12ch;
  }
  .team-intro-copy p {
    font-size: 15.5px;
    line-height: 1.6;
  }
  .team-credibility-item {
    padding: 16px;
    border-radius: 18px;
  }
  .hero--home .hero-sub,
  .hero--services .hero-sub,
  .hero--team .hero-sub,
  .hero--contact .hero-sub,
  .hero--app .hero-sub {
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 33ch;
  }
  .page-header--visual {
    padding: clamp(84px, 18vw, 120px) 0 clamp(56px, 13vw, 78px);
  }
  .page-header--visual::after {
    background:
      linear-gradient(180deg,
        rgba(6,8,12,0.76) 0%,
        rgba(6,8,12,0.82) 30%,
        rgba(6,8,12,0.88) 62%,
        rgba(6,8,12,0.94) 100%);
  }
  .page-header--visual .eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.16em;
    padding: 6px 13px;
  }
  .page-header--visual h1 {
    font-size: clamp(40px, 12vw, 56px);
    max-width: 9.5ch;
  }
  .page-header--visual p {
    font-size: 16.5px;
    line-height: 1.55;
    max-width: none;
  }
  .page-header--bookkeeping::before { background-position: 82% center; }
  .page-header--payroll::before { background-position: 80% center; }
  .page-header--tax::before { background-position: 82% center; }
  .page-header--trust::before { background-position: 76% center; }
  .team-carousel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .team-rail {
    gap: 20px;
  }
  .team-card {
    flex-basis: 88%;
    min-width: 0;
  }
  .team-card {
    padding: 30px 26px 34px;
  }
  .team-card-header {
    gap: 16px;
  }
  .team-avatar {
    width: 68px;
    height: 68px;
  }
  .section { padding: clamp(56px, 10vw, 96px) 0; }
  .triptych article .num { font-size: 12px; letter-spacing: 0.16em; }
  .triptych article h3 { font-size: clamp(26px, 6vw, 34px); letter-spacing: -0.01em; }
  .nav { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 14px;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.15);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 14px;
    font-size: 15px;
    border-radius: 8px;
  }
  .nav-links a.active { background: rgba(0, 0, 0, 0.04); color: var(--ink); }
  .nav-links a.active::after {
    left: 14px;
    right: auto;
    width: 18px;
    bottom: 8px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-tel { display: inline-flex; }
  .stats { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .site-footer { padding-top: 52px; padding-bottom: 24px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid > * { padding: 22px 0; border-top: 1px solid rgba(246, 242, 234, 0.10); }
  .footer-brand { padding-top: 0; border-top: none; margin-bottom: 4px; display: flex; flex-direction: column; gap: 14px; }
  .footer-brand .brand { pointer-events: auto; }
  .footer-brand .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .footer-brand .brand-word strong { font-size: 14px; }
  .footer-brand .brand-word span { font-size: 12px; }
  .footer-disclaimer { margin-top: 6px; max-width: none; }
  .site-footer h4 { margin-bottom: 14px; font-size: 11.5px; }
  .site-footer li { margin-bottom: 4px; }
  .site-footer ul a { padding: 8px 0; }
  .footer-col--contact .footer-phone,
  .footer-col--contact .footer-email {
    font-size: 16px;
    padding: 8px 0;
  }
  .footer-col--contact .footer-phone { margin-bottom: 6px; }
  .footer-col--contact address { margin-bottom: 14px; font-size: 15px; }
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 28px;
    padding-top: 20px;
  }
}

/* --- Legal pages (Privacy, Terms, etc.) ------------------- */
.section--legal { padding-top: clamp(96px, 12vw, 160px); }
.legal-prose { color: var(--ink); }
.legal-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.legal-prose h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal-effective {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}
.legal-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.legal-prose h2 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}
.legal-prose h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 22px 0 8px;
}
.legal-prose p,
.legal-prose ul,
.legal-prose ol {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1em;
}
.legal-prose ul,
.legal-prose ol { padding-left: 1.4em; }
.legal-prose li { margin-bottom: 6px; }
.legal-prose strong { font-weight: 600; }
.legal-prose em { font-style: italic; }
.legal-prose a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color .2s var(--ease);
}
.legal-prose a:hover { border-bottom-color: var(--accent); }
.legal-prose address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
  margin-top: 12px;
  display: inline-block;
}
