/* ---- fonts.css ---- */
/*
 * Brand typefaces, bundled locally (SIL Open Font License 1.1; licences in assets/fonts/).
 * Official releases via Fontsource, Latin subset, variable weight axis.
 * Funnel Display: headings. Geist: body and UI. Geist Mono: data, labels, numbers.
 */
@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/funnel-display-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ---- tokens.css ---- */
/*
 * Tax Master design tokens (Royal Violet).
 * Values from Tax_Master_Final_Brand_Kit/06_Developer/tokens.json and brand.css.
 * Scoped to .tax-master-theme (set on <html>) so they can sit inside a shared app
 * without touching The LLC Master's blue identity.
 */
.tax-master-theme {
  /* Core palette (tokens.json "color") */
  --tax-master-brand-primary: #6b4dff; /* Royal Violet */
  --tax-master-brand-tint: #e3dcff; /* Lavender Tint */
  --tax-master-surface-canvas: #f7f5ff; /* Soft Cream */
  --tax-master-text-ink: #191725; /* Ink */
  --tax-master-accent-slate: #a6a1c1; /* Slate Lilac: decorative only, never small text on light */
  --tax-master-surface-card: #ffffff; /* White */
  --tax-master-text-muted: #59536f; /* Muted Ink */
  --tax-master-border-default: #dcd7eb; /* Border */
  --tax-master-action-hover: #5736e8; /* Primary hover */

  /* Approved website tonal extensions (V3 "editorial night palette").
     Website-specific treatments, not extra core palette colours. */
  --tax-master-night: #15121f;
  --tax-master-deep: #211834;
  --tax-master-soft-light: #c8b9f5;
  --tax-master-light-on-dark: #e3dcff;

  /* Typography */
  --tax-master-font-display: "Funnel Display", "Inter Display", "Inter", Arial, sans-serif;
  --tax-master-font-body: "Geist", "Inter", Arial, sans-serif;
  --tax-master-font-mono: "Geist Mono", monospace;

  /* Layout, radius, motion */
  --tax-master-max-width: 1320px;
  --tax-master-radius-sm: 8px;
  --tax-master-radius-md: 12px;
  --tax-master-radius-lg: 16px;
  --tax-master-motion-fast: 150ms;
  --tax-master-motion: 200ms;
  --tax-master-motion-slow: 250ms;
  --tax-master-tap-target: 44px;

  /*
   * Short aliases used by the approved V4 stylesheet. They point at the namespaced
   * tokens above, so the section CSS stays byte-for-byte equivalent to the approved
   * prototype while every value has a single source.
   */
  --violet: var(--tax-master-brand-primary);
  --tint: var(--tax-master-brand-tint);
  --cream: var(--tax-master-surface-canvas);
  --ink: var(--tax-master-text-ink);
  --muted: var(--tax-master-text-muted);
  --border: var(--tax-master-border-default);
  --hover: var(--tax-master-action-hover);
  --white: var(--tax-master-surface-card);
  --display: var(--tax-master-font-display);
  --body: var(--tax-master-font-body);
  --mono: var(--tax-master-font-mono);
  --max: var(--tax-master-max-width);
  --night: var(--tax-master-night);
  --deep: var(--tax-master-deep);
  --soft-light: var(--tax-master-soft-light);
  --light-on-dark: var(--tax-master-light-on-dark);
}

/* ---- base.css ---- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--hover);
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  display: block;
}
.wrap {
  width: min(var(--max), calc(100% - 96px));
  margin-inline: auto;
}
.small-label {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.arrow {
  width: 20px;
  height: 20px;
  flex: none;
}
.primary,
.outline,
.textlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  white-space: nowrap;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.primary {
  background: var(--violet);
  color: white;
  border: 1px solid var(--violet);
  padding: 0 21px;
  border-radius: 12px;
}
.primary:hover {
  background: var(--hover);
  border-color: var(--hover);
}
.outline {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0 20px;
  border-radius: 12px;
}
.outline:hover {
  border-color: var(--violet);
  color: var(--violet);
}
.textlink {
  gap: 10px;
  min-height: 44px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
}
.textlink:hover {
  color: var(--violet);
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 12px;
}

/* ---- header.css ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.logo {
  display: block;
  width: 160px;
  flex: none;
}
.logo img {
  width: 100%;
  height: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.nav-links a:hover {
  color: var(--violet);
}
.nav .primary {
  min-height: 44px;
  font-size: 14px;
  gap: 14px;
  padding: 0 16px;
  border-radius: 8px;
}
.menu-btn,
.mobile-nav {
  display: none;
}

/* ---- hero.css ---- */
.hero {
  padding: 68px 0 54px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 44px;
  align-items: center;
}
.hero-copy {
  padding: 20px 0 24px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1.45 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 30px;
}
.eyebrow:before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--violet);
}
.hero h1 {
  font-size: clamp(44px, 5.25vw, 78px);
  line-height: 0.99;
  letter-spacing: -0.052em;
}
.hero h1 span {
  display: block;
  color: var(--violet);
  margin-top: 8px;
}
.hero-copy > p {
  font-size: 20px;
  line-height: 1.55;
  max-width: 510px;
  margin: 30px 0 28px;
  color: var(--muted);
  letter-spacing: -0.025em;
}
.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-actions .primary {
  min-height: 56px;
  padding: 0 20px;
  gap: 22px;
}
.hero-art {
  background: var(--tint);
  border: 1px solid var(--border);
  position: relative;
  padding: 24px 20px 20px;
  overflow: hidden;
  min-width: 0;
}
.art-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 0 8px 16px;
  border-bottom: 1px solid #bdb3ee;
}
.art-header span {
  color: var(--muted);
}
.art-header strong {
  font-size: 13px;
  font-weight: 600;
}
.hero-svg {
  width: 100%;
  height: auto;
  margin: 12px 0 4px;
}
.art-caption {
  border-top: 1px solid #bdb3ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 8px 2px;
  font-size: 13px;
  line-height: 1.4;
}
.art-caption strong {
  font-weight: 600;
}
.art-caption .small-label {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.hero-foot a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-weight: 600;
  min-height: 44px;
}
.hero-foot a svg {
  width: 14px;
}

/* ---- audience.css ---- */
.audience {
  padding: 88px 0 104px;
}
.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-index:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 100px;
  align-items: start;
}
.audience h2,
.process h2,
.faq h2,
.closing h2 {
  font-size: clamp(36px, 4.45vw, 62px);
}
.audience h2 span {
  color: var(--violet);
  display: block;
}
.audience .intro > p {
  margin-top: 24px;
  max-width: 430px;
  color: var(--muted);
  font-size: 18px;
}
.audience-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}
.audience-row:first-child {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.audience-row .num {
  font: 13px/1.5 var(--mono);
  color: var(--muted);
  padding-top: 6px;
}
.audience-row h3 {
  font-size: 28px;
  margin-bottom: 10px;
}
.audience-row p {
  color: var(--muted);
  max-width: 490px;
}

/* ---- expertise.css ---- */
.services {
  background: var(--violet);
  color: white;
  padding: 74px 0 78px;
}
.services .section-index {
  color: white;
}
.services .section-index:after {
  background: #ffffff60;
}
.services-head {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 45px;
}
.services h2 {
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 0.98;
}
.services-head p {
  font-size: 18px;
  max-width: 395px;
  color: white;
  line-height: 1.55;
}
.service-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 76px;
  align-items: start;
}
.stages {
  position: relative;
}
.stage {
  min-height: clamp(310px, 47vh, 480px);
  padding: 44px 12px 42px 0;
  border-top: 1px solid #ffffff65;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.stage:last-child {
  border-bottom: 1px solid #ffffff65;
}
.stage.is-active {
  opacity: 1;
}
.stage .small-label {
  margin-bottom: 18px;
  font-size: 12px;
}
.stage.is-active .small-label:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: white;
  vertical-align: middle;
  margin-right: 8px;
}
.stage h3 {
  font-size: clamp(32px, 3.3vw, 47px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}
.stage p {
  font-size: 17px;
  max-width: 350px;
  line-height: 1.6;
}
.stage .scope {
  display: block;
  margin-top: 22px;
  font: 12px/1.6 var(--mono);
  color: white;
}
.sticky-art {
  position: sticky;
  top: max(110px, calc((100vh - 510px) / 2));
  align-self: start;
  min-width: 0;
  padding-top: 10px;
}
.art-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 12px/1.5 var(--mono);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  gap: 12px;
}
.sheet {
  background: var(--cream);
  color: var(--ink);
  padding: 12px;
  overflow: hidden;
  border: 1px solid #ffffff6e;
}
.service-art {
  width: 100%;
  height: auto;
}
.diagram {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  fill: var(--ink);
  font-family: var(--body);
}
.diagram.active {
  opacity: 1;
  visibility: visible;
}
.diagram-label {
  font: 11px var(--mono);
  fill: var(--muted);
}
.node-label {
  font-size: 16px;
  font-weight: 600;
}
.art-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 15px;
}
.art-progress span {
  height: 3px;
  background: #ffffff55;
  transition: background 0.2s;
}
.art-progress span.active {
  background: white;
}
.service-foot {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid #ffffff65;
  padding-top: 25px;
  font-size: 15px;
}
.white-btn {
  background: white;
  color: var(--ink);
  border: 1px solid white;
}
.white-btn:hover {
  background: var(--tint);
  border-color: var(--tint);
  color: var(--ink);
}
.services :focus-visible {
  outline-color: white;
}

/* ---- process.css ---- */
.process {
  padding: 104px 0;
}
.process-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 50px;
}
.process-top p {
  color: var(--muted);
  font-size: 18px;
  max-width: 440px;
}
.process-rail {
  display: grid;
  grid-template-columns: 1fr 2.35fr;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--border);
}
.your-part {
  padding: 24px 28px 35px 0;
  border-right: 1px solid var(--border);
}
.our-part {
  padding: 24px 0 35px 28px;
  background: transparent;
}
.process-rail .small-label {
  color: var(--muted);
  margin-bottom: 20px;
}
.our-part > .small-label {
  color: var(--violet);
}
.process-step h3 {
  font-size: 26px;
  margin: 12px 0 8px;
}
.process-step p {
  color: var(--muted);
  font-size: 15px;
  max-width: 260px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  color: var(--violet);
  font: 13px/1.4 var(--mono);
  gap: 12px;
}
.step-num:after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--violet);
}
.our-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ---- faq.css ---- */
.faq {
  padding: 80px 0 104px;
  border-top: 1px solid var(--border);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 96px;
}
.faq h2 {
  max-width: 420px;
}
.faq-intro > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:first-child {
  border-top: 1px solid var(--border);
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 18px;
  font-weight: 600;
  padding: 21px 0;
  min-height: 64px;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  font-size: 26px;
  line-height: 1;
  color: var(--violet);
  font-weight: 400;
  flex: none;
}
details[open] summary:after {
  content: "−";
}
details p {
  padding: 0 36px 23px 0;
  color: var(--muted);
  max-width: 610px;
}

/* ---- closing-footer.css ---- */
.closing {
  padding: 82px 0 88px;
  background: var(--tint);
  position: relative;
  overflow: hidden;
}
.closing:after {
  content: "";
  position: absolute;
  right: -180px;
  top: -100px;
  width: 650px;
  height: 500px;
  transform: skewX(-42deg);
  border-left: 90px solid #6b4dff15;
  border-right: 38px solid #6b4dff13;
  pointer-events: none;
}
.closing-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.closing h2 {
  max-width: 770px;
}
.closing p {
  font-size: 18px;
  color: var(--muted);
  margin-top: 20px;
}
.footer {
  background: var(--ink);
  color: white;
  padding: 48px 0 24px;
}
.foot-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}
.foot-main .logo {
  width: 160px;
}
.foot-main p {
  margin-top: 18px;
  color: #e3dcff;
  font-size: 14px;
  max-width: 310px;
}
.footer-nav {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.foot-base {
  border-top: 1px solid #ffffff38;
  padding-top: 22px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  color: #e3dcff;
  font-size: 12px;
}
.footer :focus-visible {
  outline-color: white;
}

/* ---- onboarding-preview.css ---- */
/* Local-only three-question preview, not a data collection form. */
dialog {
  border: 1px solid var(--border);
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  border-radius: 16px;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
}
dialog::backdrop {
  background: #191725b8;
}
dialog .dialog-inner {
  padding: 28px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}
.dialog-head .logo {
  width: 150px;
}
.close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 25px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 11px var(--mono);
  margin: 16px 0 8px;
}
.dialog-progress {
  height: 4px;
  background: var(--tint);
}
.dialog-progress i {
  display: block;
  height: 100%;
  background: var(--violet);
  transition: width 0.2s;
}
.dialog-body {
  padding: 30px 0 24px;
}
.dialog-body h2 {
  font-size: 34px;
  line-height: 1.08;
  margin-bottom: 12px;
}
.dialog-body > p {
  color: var(--muted);
  margin-bottom: 20px;
}
.options {
  display: grid;
  gap: 8px;
}
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--border);
  background: white;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink);
}
.option:hover,
.option.selected {
  background: var(--tint);
  border-color: var(--violet);
}
.dialog-foot {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.dialog-foot .textlink {
  font-size: 14px;
}
.demo-note {
  font-size: 11px;
  color: var(--muted);
  max-width: 230px;
  text-align: right;
}
.summary-items {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.summary-items div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 14px;
}
.summary-items dt {
  color: var(--muted);
}
.summary-items dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.dialog-body .primary {
  width: 100%;
}

/* ---- responsive.css ---- */
@media (max-width: 1140px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .nav-links {
    gap: 20px;
  }
  .hero-grid {
    gap: 28px;
  }
  .hero-copy > p {
    font-size: 18px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .primary {
    gap: 12px;
  }
  .hero-actions .textlink {
    font-size: 14px;
  }
  .audience-grid,
  .faq-grid {
    gap: 60px;
  }
  .service-grid {
    gap: 48px;
  }
  .sticky-art {
    top: 130px;
  }
  .process-top {
    gap: 45px;
  }
  .our-steps {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .nav-links,
  .nav > .primary {
    display: none;
  }
  .nav {
    height: 68px;
  }
  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: none;
    border-radius: 8px;
    color: var(--ink);
  }
  .mobile-nav.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 24px;
    border-top: 1px solid var(--border);
  }
  .mobile-nav a {
    padding: 10px 0;
    min-height: 44px;
  }
  .mobile-nav .primary {
    width: 100%;
    margin-top: 6px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero {
    padding: 44px 0 32px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    font-size: clamp(48px, 8vw, 72px);
  }
  .hero-copy > p {
    max-width: 580px;
  }
  .hero-art {
    max-width: 650px;
    width: 100%;
  }
  .hero-svg {
    max-height: 400px;
  }
  .hero-foot {
    margin-top: 30px;
  }
  .audience {
    padding: 68px 0 76px;
  }
  .audience-grid {
    gap: 36px;
    grid-template-columns: 1fr;
  }
  .audience .intro > p {
    max-width: 560px;
  }
  .services {
    padding: 56px 0;
  }
  .services-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 0;
    display: flex;
    flex-direction: column;
  }
  .sticky-art {
    top: 68px;
    order: -1;
    z-index: 2;
    width: 100%;
    background: var(--violet);
    padding: 12px 0 16px;
    max-height: none;
  }
  .sheet {
    padding: 6px;
  }
  .service-art {
    width: 100%;
    height: auto;
    max-height: 320px;
  }
  .stages {
    width: 100%;
  }
  .stage {
    min-height: 320px;
    padding: 30px 0;
    opacity: 1;
  }
  .stage h3 {
    font-size: 36px;
  }
  .stage p {
    max-width: 550px;
  }
  .service-foot {
    margin-top: 26px;
  }
  .process {
    padding: 76px 0;
  }
  .process-top {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }
  .process-rail {
    grid-template-columns: 1fr;
  }
  .your-part {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 20px 0 28px;
  }
  .our-part {
    padding: 24px 0 30px;
  }
  .faq {
    padding: 64px 0 76px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .closing-inner {
    display: block;
  }
  .closing .primary {
    margin-top: 26px;
  }
  .closing {
    padding: 64px 0;
  }
  .footer-nav {
    gap: 12px 22px;
  }
}
@media (max-width: 540px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .nav {
    height: 64px;
  }
  .logo {
    width: 150px;
  }
  .hero {
    padding-top: 34px;
  }
  .hero-grid {
    gap: 27px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 21px;
    gap: 8px;
  }
  .eyebrow:before {
    width: 16px;
  }
  .hero h1 {
    font-size: clamp(37px, 10.35vw, 54px);
    letter-spacing: -0.055em;
  }
  .hero h1 span {
    margin-top: 6px;
  }
  .hero-copy > p {
    font-size: 17px;
    line-height: 1.48;
    margin: 22px 0;
  }
  .hero-actions {
    gap: 7px 14px;
  }
  .hero-actions .primary {
    min-height: 52px;
    padding: 0 14px;
    gap: 14px;
  }
  .hero-actions .textlink {
    font-size: 13px;
    gap: 6px;
  }
  .hero-actions .textlink .arrow {
    width: 15px;
  }
  .hero-art {
    padding: 14px 8px 12px;
  }
  .art-header {
    padding: 0 6px 10px;
    gap: 8px;
  }
  .art-header strong {
    font-size: 12px;
  }
  .art-header .small-label {
    font-size: 9px;
  }
  .hero-svg {
    margin: 7px 0 0;
  }
  .art-caption {
    font-size: 11px;
    padding: 10px 6px 1px;
  }
  .art-caption .small-label {
    font-size: 8px;
  }
  .hero-foot {
    margin-top: 22px;
    padding-top: 10px;
    gap: 10px;
    font-size: 11px;
  }
  .hero-foot span {
    max-width: 190px;
  }
  .hero-foot a {
    min-height: 44px;
    white-space: nowrap;
    font-size: 11px;
  }
  .section-index {
    font-size: 10px;
    margin-bottom: 20px;
  }
  .audience {
    padding: 54px 0 65px;
  }
  .audience h2,
  .process h2,
  .faq h2,
  .closing h2 {
    font-size: 39px;
  }
  .audience-grid {
    gap: 28px;
  }
  .audience .intro > p,
  .process-top p,
  .faq-intro > p,
  .closing p {
    font-size: 16px;
    line-height: 1.55;
    margin-top: 16px;
  }
  .audience-row {
    grid-template-columns: 26px 1fr;
    gap: 12px;
    padding: 20px 0;
  }
  .audience-row h3 {
    font-size: 25px;
  }
  .audience-row p {
    font-size: 15px;
  }
  .services {
    padding: 48px 0;
  }
  .services h2 {
    font-size: 44px;
  }
  .services-head {
    gap: 15px;
  }
  .services-head p {
    font-size: 16px;
  }
  .sticky-art {
    top: 64px;
    padding-top: 8px;
    padding-bottom: 12px;
  }
  .art-control {
    font-size: 10px;
    margin-bottom: 7px;
  }
  .art-progress {
    margin-top: 9px;
  }
  .service-art {
    max-height: 232px;
  }
  .stage {
    min-height: 300px;
    padding: 26px 0 30px;
  }
  .stage .small-label {
    margin-bottom: 12px;
  }
  .stage h3 {
    font-size: 34px;
    margin-bottom: 12px;
  }
  .stage p {
    font-size: 16px;
  }
  .stage .scope {
    margin-top: 16px;
    font-size: 11px;
  }
  .service-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .service-foot .primary {
    width: 100%;
    justify-content: space-between;
  }
  .process {
    padding: 60px 0;
  }
  .process-top {
    gap: 0;
  }
  .our-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .our-steps .process-step {
    border-top: 1px solid var(--border);
    padding: 18px 0 22px;
  }
  .our-steps .process-step:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .process-step h3 {
    font-size: 25px;
  }
  .process-step p {
    max-width: none;
  }
  .our-part {
    padding: 22px 0 0;
  }
  .process-rail .small-label {
    margin-bottom: 17px;
  }
  .faq {
    padding: 54px 0 64px;
  }
  .faq-grid {
    gap: 26px;
  }
  summary {
    font-size: 16px;
    padding: 18px 0;
    min-height: 60px;
  }
  .faq details p {
    font-size: 15px;
    padding-right: 14px;
  }
  .closing {
    padding: 56px 0;
  }
  .closing .primary {
    width: 100%;
    justify-content: space-between;
  }
  .closing:after {
    width: 380px;
    right: -280px;
  }
  .footer {
    padding: 34px 0 20px;
  }
  .foot-main {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 24px;
  }
  .footer-nav {
    justify-content: flex-start;
    gap: 8px 22px;
  }
  .foot-base {
    flex-direction: column;
    gap: 10px;
  }
  .dialog-inner {
    padding: 20px !important;
  }
  .dialog-body h2 {
    font-size: 29px;
  }
  .dialog-body {
    padding: 24px 0 20px;
  }
  .dialog-foot {
    gap: 8px;
  }
  .demo-note {
    max-width: 200px;
  }
}
@media (max-height: 560px) and (min-width: 901px) {
  .sticky-art {
    top: 88px;
  }
  .service-art {
    max-height: calc(100vh - 168px);
  }
}
@media (max-height: 550px) and (max-width: 900px) {
  .sticky-art {
    position: relative;
    top: auto;
  }
  .stage {
    min-height: 0;
  }
  .service-art {
    max-height: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ---- night-palette.css ---- */
/* V3: editorial night palette. Only tonal extensions of the approved violet/ink system. */
.header {
  background: #191725;
  color: var(--white);
  border-bottom: 1px solid #ffffff17;
}
.nav-links {
  color: #e3dcff;
}
.nav-links a:hover {
  color: white;
}
.header .primary {
  background: var(--violet);
}
.header .menu-btn {
  color: #f7f5ff;
  border-color: #ffffff40;
}
.mobile-nav.open {
  border-color: #ffffff25;
}
.header :focus-visible,
.hero :focus-visible,
.closing :focus-visible {
  outline-color: #e3dcff;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 83% 46%, #3c2868 0%, #231c39 29%, #191725 63%);
  color: var(--cream);
  padding: 66px 0 26px;
  min-height: 680px;
}
.hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, transparent 62%, #6b4dff0e 62%, #6b4dff0e 80%, transparent 80%);
  pointer-events: none;
}
.hero-grid {
  grid-template-columns: 1fr 1.09fr;
  gap: 20px;
  min-height: 580px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 12px 0 44px;
}
.hero .eyebrow {
  color: var(--light-on-dark);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.hero .eyebrow:before {
  background: #ae9cff;
  width: 32px;
}
.hero h1 {
  font-size: clamp(45px, 5.62vw, 84px);
  letter-spacing: -0.059em;
  line-height: 1.01;
  font-weight: 700;
}
.hero h1 span {
  color: #b3a1ff;
  margin-top: 8px;
}
.hero-copy > p {
  color: #e3dcff;
  font-size: 19px;
  line-height: 1.65;
  max-width: 480px;
  margin: 28px 0 34px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.hero-actions {
  gap: 24px;
}
.hero-actions .primary {
  border-radius: 8px;
  box-shadow: 0 9px 28px #08051147;
}
.hero .textlink {
  color: var(--cream);
  font-weight: 500;
}
.hero .textlink:hover {
  color: #c8b9ff;
}
.hero-art {
  position: relative;
  background: transparent;
  padding: 0;
  border: 0;
  overflow: visible;
  max-width: none;
  margin-left: -24px;
  margin-right: -18px;
  align-self: center;
  width: auto;
}
.scene {
  position: relative;
  overflow: visible;
}
.hero-svg {
  width: 100%;
  height: auto;
  margin: 0;
  max-height: none;
  filter: drop-shadow(0 16px 20px #09061738);
}
.hero .art-caption {
  color: #c9bdf0;
  border: 0;
  padding: 0 0 0 6%;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-top: -15px;
  display: block;
}
.hero-foot {
  margin-top: 14px;
  border-color: #e3dcff35;
  color: #d9cffc;
  font-size: 13px;
  padding-top: 18px;
}
.hero-foot a {
  color: #e3dcff;
}
.hero-foot a:hover {
  color: white;
}
.audience {
  background: var(--cream);
  padding-top: 88px;
  padding-bottom: 104px;
}
.audience .audience-row:first-child {
  border-top: 2px solid var(--ink);
}
.audience-row .num {
  color: var(--violet);
}
.audience-row h3 {
  font-weight: 650;
}
.audience h2 span {
  max-width: 570px;
}
.services {
  background: linear-gradient(151deg, #352274 0%, #5736e8 47%, #372372 100%);
  position: relative;
  color: white;
  isolation: isolate;
}
.services:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(139deg, transparent 40%, #e3dcff09 40%, #e3dcff09 65%, transparent 65%);
}
.services-head p,
.stage p,
.stage .scope {
  color: #f7f5ff;
}
.services .stage {
  border-color: #ffffff55;
}
.services .sheet {
  box-shadow: 0 20px 50px #15121f42;
  border: 1px solid #e3dcff;
  background: var(--cream);
  border-radius: 8px;
}
.services .art-control {
  color: #f7f5ff;
}
.services .art-progress span {
  background: #e3dcff55;
}
.services .art-progress span.active {
  background: white;
}
.process {
  background: var(--cream);
}
.faq {
  background: #f0ecfa;
}
.closing {
  background: #191725;
  color: var(--cream);
  padding: 100px 0;
}
.closing .eyebrow,
.closing p {
  color: var(--light-on-dark);
}
.closing:after {
  border-left-color: #6b4dff36;
  border-right-color: #6b4dff65;
  transform: skewX(-42deg);
  right: -160px;
  top: -90px;
}
.closing .primary {
  border-radius: 8px;
}
.footer {
  background: #15121f;
  border-top: 1px solid #ffffff18;
}
@media (min-width: 901px) and (max-width: 1200px) {
  .hero-grid {
    min-height: 510px;
  }
  .hero {
    min-height: 620px;
  }
  .hero-copy {
    padding: 0 0 24px;
  }
  .hero h1 {
    font-size: clamp(45px, 5.4vw, 64px);
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-art {
    margin: 0 -10px 0 -10px;
  }
}
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 48px 0 24px;
    background: radial-gradient(ellipse at 80% 70%, #3c2868 0%, #241d3a 39%, #191725 77%);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 10px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    font-size: clamp(44px, 8.6vw, 76px);
  }
  .hero-copy > p {
    max-width: 600px;
    margin: 20px 0 24px;
  }
  .hero-art {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
  }
  .hero-svg {
    max-height: 440px;
  }
  .hero .art-caption {
    margin-top: 0;
    padding-left: 6%;
    text-align: left;
  }
  .hero-foot {
    margin-top: 23px;
  }
  .hero .eyebrow {
    margin-bottom: 24px;
  }
  .services .sticky-art {
    background: #4930ad;
  }
  .closing {
    padding: 64px 0;
  }
}
@media (max-width: 540px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 18px;
  }
  .hero-grid {
    gap: 17px;
  }
  .hero h1 {
    font-size: clamp(35px, 10.6vw, 55px);
    letter-spacing: -0.05em;
  }
  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 20px;
  }
  .hero .eyebrow:before {
    width: 22px;
  }
  .hero-copy > p {
    font-size: 17px;
    line-height: 1.55;
    margin: 20px 0 21px;
  }
  .hero-actions {
    gap: 8px 14px;
  }
  .hero-actions .primary {
    min-height: 52px;
  }
  .hero-actions .textlink {
    font-size: 13px;
  }
  .hero-art {
    margin: 0 -4px;
    width: calc(100% + 8px);
  }
  .hero-svg {
    max-height: none;
  }
  .hero .art-caption {
    font-size: 11px;
    margin-top: -3px;
  }
  .hero-foot {
    font-size: 11px;
    margin-top: 20px;
    padding-top: 9px;
  }
  .hero-foot span {
    max-width: 155px;
  }
  .hero-foot a {
    font-size: 11px;
  }
  .audience {
    padding: 54px 0 65px;
  }
  .closing {
    padding: 56px 0;
  }
}

/* ---- expertise-studies.css ---- */
/* Expertise revision: rich violet architectural studies, scoped to #services. */
#services {
  background: linear-gradient(145deg, #352274 0%, #4b2abd 38%, #382475 74%, #261b49 100%);
  padding-top: 88px;
  padding-bottom: 80px;
}
#services:before {
  background: linear-gradient(139deg, transparent 35%, #e3dcff08 35%, #e3dcff08 58%, transparent 58%);
}
#services .services-head {
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
#services h2 {
  font-size: clamp(42px, 5.15vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.048em;
}
#services h2 span {
  color: #d6c8ff;
}
#services .services-head p {
  max-width: 580px;
  font-size: 18px;
  line-height: 1.55;
}
#services .service-grid {
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
}
#services .stage {
  min-height: clamp(450px, 67vh, 680px);
  padding: 60px 12px 60px 0;
}
#services .stage h3 {
  max-width: 530px;
  font-size: clamp(34px, 3.55vw, 51px);
  line-height: 1.06;
}
#services .stage p {
  max-width: 440px;
  color: #f7f5ff;
}
#services .stage .scope {
  color: #e3dcff;
  line-height: 1.6;
}
#services .sticky-art {
  top: max(100px, calc((100vh - 550px) / 2));
  padding-top: 12px;
}
#services .sheet {
  padding: 0;
  border: 1px solid #d6c8ff45;
  border-radius: 3px;
  background: #191725;
  box-shadow: 0 22px 55px #120b3259;
}
#services .service-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
#services .art-progress {
  margin-top: 10px;
}
#services .art-progress span {
  height: 2px;
}
#services .expertise-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 5px;
}
#services .expertise-nav button {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  color: #f7f5ff;
  font: 12px/1.3 var(--mono);
}
#services .expertise-nav button span {
  font: 12px/1.3 var(--body);
  color: #e3dcff;
}
#services .expertise-nav button[aria-current="step"] {
  font-weight: 700;
  color: white;
}
#services .expertise-nav button[aria-current="step"] span {
  font-weight: 700;
  color: white;
}
#services .expertise-nav button:hover span {
  text-decoration: underline;
}
@media (max-width: 900px) {
  #services {
    padding: 58px 0;
  }
  #services .services-head {
    gap: 18px;
    margin-bottom: 28px;
  }
  #services .service-grid {
    gap: 0;
  }
  #services .sticky-art {
    top: 68px;
    background: #402986;
    padding: 10px 0 8px;
  }
  #services .stage {
    min-height: 340px;
    padding: 35px 0;
  }
  #services .stage h3 {
    font-size: clamp(32px, 5.5vw, 43px);
  }
  #services .expertise-nav button {
    justify-content: center;
    gap: 4px;
  }
  #services .expertise-nav button span {
    font-size: 11px;
  }
}
@media (max-width: 540px) {
  #services {
    padding: 48px 0;
  }
  #services h2 {
    font-size: clamp(34px, 9.6vw, 44px);
    letter-spacing: -0.045em;
  }
  #services .services-head p {
    font-size: 16px;
  }
  #services .sticky-art {
    top: 64px;
  }
  #services .stage {
    min-height: 340px;
    padding: 28px 0;
  }
  #services .stage h3 {
    font-size: 34px;
  }
  #services .stage p {
    font-size: 16px;
  }
  #services .expertise-nav button span {
    font-size: 10px;
  }
  #services .expertise-nav button {
    font-size: 11px;
    gap: 3px;
  }
  #services .art-control {
    font-size: 9px;
  }
  #services .art-progress {
    margin-top: 7px;
  }
}
@media (max-width: 360px) {
  #services .expertise-nav button {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}
@media (max-height: 550px) {
  #services .sticky-art {
    position: relative;
    top: auto;
  }
  #services .stage {
    min-height: 0;
  }
}

/* ---- implementation.css ---- */
/*
 * Implementation-only additions. Nothing here changes the approved design; every rule is
 * covered by the pixel comparison in qa/ (0 visual difference against the approved V4).
 */

/* 1. Onboarding CTAs are real links (<a class="primary start">) instead of <button>s so they
 *    navigate without JavaScript. Restore the exact button metrics where a generic
 *    link rule from the approved CSS would otherwise apply. */
.mobile-nav a.primary {
  padding: 0 21px;
  min-height: 52px;
}

/* 2. Hit areas: enlarge to the 44px minimum (tokens.json accessibility.minTapTargetPx)
 *    with invisible pseudo-elements. */

/* Header/footer lockup links render 33-35px tall at the approved logo width. */
a.logo {
  position: relative;
}
a.logo::before {
  content: "";
  position: absolute;
  inset: -6px 0;
}

/* Short desktop nav labels ("FAQs") are narrower than 44px; extend sideways into the 32px gap. */
.nav-links a,
.footer-nav a {
  position: relative;
}
.nav-links a::before,
.footer-nav a::before {
  content: "";
  position: absolute;
  inset: 0 -8px;
}

/* 3. Screen-reader-only text. Used in the stage nav so each button's accessible name starts
 *    with its visible label ("01 Property: Real estate bookkeeping"), satisfying WCAG 2.5.3
 *    Label in Name. The approved prototype used aria-label="Real estate bookkeeping", which
 *    did not contain the visible text. Higher specificity than the approved
 *    "#services .expertise-nav button span" rule so that rule cannot reveal it. */
.tm-sr-only,
#services .expertise-nav button .tm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
