/* ==========================================================================
   GeorgiaTax — design system
   Ported from the Claude Design prototype (`GeorgiaTax Homepage.dc.html`).
   Every value here is taken from the prototype's inline styles; the
   prototype's `style-hover` / `style-focus` attributes become real
   :hover / :focus rules, and its repeated inline blocks become classes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Dark ground */
  --ink: #1a2129;          /* primary dark surface, and text on light */
  --ink-deep: #141b22;     /* footer, testimonials band */
  --ink-raised: #232b34;   /* cards and menus on dark */
  --ink-hover: #2b343e;    /* hovered menu row */
  --ink-header: rgba(10, 14, 20, 0.92);

  /* Light ground */
  --paper: #fff;
  --paper-alt: #f2f5f9;    /* alternating light section */
  --paper-hover: #f6f8fb;  /* hovered card on white */
  --paper-hover-alt: #e7ecf4;

  /* Accent */
  --accent: #2b5cff;
  --accent-soft: #8fa7ff;  /* accent hover on dark ground */
  --accent-line: #c3d1f5;  /* hairline accent on light ground */
  --cyan: #5ce1e6;         /* eyebrow / footer headings on dark */

  /* Text on light */
  --text: #1a2129;
  --text-strong: #414c5b;
  --text-body: #4d5866;
  --text-muted: #5a6675;
  --text-faint: #93a1b3;

  /* Text on dark */
  --on-dark: #fff;
  --on-dark-bright: #e4eaf3;
  --on-dark-body: #c8d3e2;
  --on-dark-muted: #9aa8bd;
  --on-dark-faint: #7d8da3;
  --on-dark-dim: #6c7d94;

  /* Rules */
  --rule-light: #e2e7ee;
  --rule-mid: #d7dee8;
  --rule-dark-16: rgba(160, 180, 210, 0.16);
  --rule-dark-18: rgba(160, 180, 210, 0.18);
  --rule-dark-20: rgba(160, 180, 210, 0.2);
  --rule-dark-22: rgba(160, 180, 210, 0.22);
  --rule-dark-24: rgba(160, 180, 210, 0.24);
  --rule-dark-28: rgba(160, 180, 210, 0.28);
  --rule-dark-30: rgba(160, 180, 210, 0.3);

  /* Type */
  --font-sans: 'Space Grotesk', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --shell: 1400px;
  --gutter: clamp(18px, 5vw, 40px);
  --section-y: 84px;
  --header-h: 87px;        /* sticky header height, used by scroll offsets */

  /* The faint vertical rules on dark sections. Widened from 116px to 264px
     during design review — "too many background lines, clean it up". */
  --grid-lines: repeating-linear-gradient(
    90deg,
    rgba(160, 180, 210, 0.05) 0 1px,
    transparent 1px 264px
  );
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header. */
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; }
input, textarea, select, button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.on-dark :focus-visible,
.site-header :focus-visible {
  outline-color: var(--cyan);
}

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

/* Skip link — not in the prototype; required for keyboard users. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--paper-alt { background: var(--paper-alt); border-top: 1px solid var(--rule-light); }
.section--ink { background: var(--ink); }
.section--ink-deep { background: var(--ink-deep); }

/* Dark sections carry the faint vertical rule pattern and, on four of them,
   a very low-opacity logo watermark. */
.section--lined { position: relative; overflow: hidden; }
.section--lined > .shell { position: relative; }

.section__lines,
.section__watermark {
  position: absolute;
  pointer-events: none;
}
.section__lines { inset: 0; background: var(--grid-lines); }
.section__watermark {
  width: clamp(400px, 50vw, 740px);
  opacity: 0.055;
  filter: invert(1);
}
.section__watermark--br { right: -70px; bottom: -58px; }
.section__watermark--bl { left: -96px; bottom: -70px; }
.section__watermark--tl { left: -96px; top: -74px; }

/* Intrinsic responsive grid. No media queries: columns fold on their own
   once the declared minimum no longer fits. */
.autogrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 330px)), 1fr));
  gap: var(--gap, clamp(34px, 5vw, 80px));
}

/* Hairline-separated card grid: a 1px background showing through 1px gaps. */
.cardgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 255px)), 1fr));
  gap: 1px;
  background: var(--rule-light);
  border: 1px solid var(--rule-light);
}
.cardgrid--mid { background: var(--rule-mid); border-color: var(--rule-mid); }
.cardgrid--dark { background: var(--rule-dark-20); border-color: var(--rule-dark-20); }

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */

.mono {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
}

/* Solid accent tab used as every section label. */
.eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 7px 11px;
  margin-bottom: 22px;
}
.eyebrow--flush { margin-bottom: 44px; }

.h1 {
  font-size: clamp(38px, 7vw, 86px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--on-dark);
  text-wrap: balance;
}
.h1--page {
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.96;
}
.h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.02;
  margin: 0;
}
.h2--sm {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}
.h2--seg {
  font-size: clamp(27px, 3.8vw, 44px);
  letter-spacing: -0.04em;
}
.h3 {
  font-size: clamp(24px, 2.8vw, 33px);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}
.lede--dark { color: var(--on-dark-muted); }
.lede--lg { font-size: 16.5px; }
.lede--measure { max-width: 46ch; }

/* --------------------------------------------------------------------------
   5. Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 15px 26px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover,
.btn:focus-visible { background: #fff; color: var(--ink); }

.btn--sm { padding: 11px 18px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 15px; }

.btn--ghost {
  background: none;
  border: 1px solid var(--rule-dark-30);
  color: var(--on-dark-bright);
  font-weight: 500;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: none;
  border-color: #fff;
  color: #fff;
}

/* Underlined text link — accent rule under white text on dark ground. */
.link-rule {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--on-dark);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  font-size: 14.5px;
  font-weight: 500;
}
.link-rule:hover { color: var(--accent-soft); }

/* Same idea on light ground: accent text over a pale rule. */
.link-rule--light {
  color: var(--accent);
  border-bottom-color: var(--accent-line);
  padding-bottom: 3px;
}
.link-rule--light:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-dark-16);
}
.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

/* The logo artwork has generous transparent padding; the prototype crops to
   the mark by oversizing the image inside a fixed, overflow-hidden box. */
.logo {
  display: block;
  position: relative;
  overflow: hidden;
  flex: none;
  width: 168px;
  height: 55px;
}
.logo img {
  position: absolute;
  left: -40.4px;
  top: -26.2px;
  width: 248.9px;
  height: 108.9px;
  max-width: none;
  filter: invert(1);
}
.logo--footer { width: 214px; height: 70.1px; margin-bottom: 20px; }
.logo--footer img {
  left: -51.5px;
  top: -33.4px;
  width: 317px;
  height: 138.7px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.site-nav a { color: var(--on-dark-muted); }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current='page'] { color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-divider {
  display: block;
  width: 1px;
  height: 20px;
  background: var(--rule-dark-22);
}

/* --------------------------------------------------------------------------
   7. Language switcher
   -------------------------------------------------------------------------- */

.lang { position: relative; }

.lang__toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--rule-dark-22);
  color: var(--on-dark-bright);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  cursor: pointer;
}
.lang__toggle:hover {
  border-color: rgba(160, 180, 210, 0.5);
  color: #fff;
}
.lang__caret { font-size: 8px; color: var(--on-dark-faint); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--ink-raised);
  border: 1px solid var(--rule-dark-22);
  z-index: 40;
}
.lang__menu[hidden] { display: none; }

.lang__item {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(160, 180, 210, 0.14);
  color: var(--on-dark-body);
  padding: 12px 14px;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
}
.lang__item:last-child { border-bottom: none; }
.lang__item:hover { background: var(--ink-hover); color: #fff; }

.lang__code {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--on-dark-faint);
}
.lang__dot {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

/* Placeholder banner shown on the non-English layouts. */
.lang-note {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--rule-dark-16);
  padding: 11px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

/* The hero owns its own spacing: 96px above the headline, and nothing below
   the stat bar so the photo band sits flush against it. */
.hero { padding-block: 0; }
.hero .shell { padding-top: 96px; }
.hero__grid {
  --min: 330px;
  --gap: clamp(34px, 5vw, 80px);
  align-items: end;
  padding-bottom: 64px;
}
.hero__copy { margin: 0 0 30px; font-size: 17px; line-height: 1.58; color: var(--on-dark-muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  border-top: 1px solid var(--rule-dark-18);
}
.stat {
  padding: 26px 28px 30px;
  border-right: 1px solid var(--rule-dark-18);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: none; }
.stat__value {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
}
.stat__value span { color: var(--accent); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  color: var(--on-dark-faint);
  margin-top: 8px;
}

/* Full-bleed office photo band sitting between hero and services. */
.photoband { background: var(--ink); padding: 0 var(--gutter) var(--section-y); }
.photoband__frame {
  max-width: var(--shell);
  margin: 0 auto;
  border: 1px solid var(--rule-dark-18);
  height: 340px;
  overflow: hidden;
}
.photoband__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* A photo frame whose image failed to load (see initPhotoFallbacks). The
   frame keeps its dimensions and shows a plain tinted panel, so a missing
   photo reads as whitespace rather than a broken page. */
/* Two classes deep so this beats the `.firm__photo img` / `.office__photo img`
   display rules further down the file, whatever the source order. */
.photoband__frame.is-missing img,
.firm__photo.is-missing img,
.office__photo.is-missing img { display: none; }

.photoband__frame.is-missing { background: var(--ink-raised); }
.firm__photo.is-missing,
.office__photo.is-missing { background: var(--paper-alt); }

/* --------------------------------------------------------------------------
   9. Section headers
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 48px;
}
.section-head--tight { margin-bottom: 44px; }
.section-head > div { min-width: min(100%, 330px); }

/* --------------------------------------------------------------------------
   10. Service / insight / office cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--paper);
  padding: 34px 30px 38px;
  transition: background-color 0.15s ease;
}
.card:hover { background: var(--paper-hover); }
.card__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.028em;
  margin: 0 0 12px;
}
.card__body { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--text-muted); }

/* Whole-card link: only the background reacts, so the title and body keep
   their own colours rather than turning accent-blue via the base a:hover. */
.card--insight { display: block; padding: 30px 28px 34px; color: var(--text); }
.card--insight:hover { color: var(--text); }
.card--insight .card__title { font-size: 21px; letter-spacing: -0.026em; line-height: 1.25; }
.card__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.office { background: var(--paper); }
.office__photo { position: relative; height: 280px; overflow: hidden; }
.office__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.office__credit {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(26, 33, 41, 0.72);
  color: var(--on-dark-body);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 4px 7px;
}
.office__credit:hover { color: #fff; }
.office__body { padding: 32px 32px 36px; }
.office__name {
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.032em;
  margin: 0 0 16px;
}
.office__address { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.office__email {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 3px;
}
.office__email:hover { border-color: var(--accent); }

/* --------------------------------------------------------------------------
   11. "Which one are you?" segment selector
   -------------------------------------------------------------------------- */

.segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 1px;
  background: var(--rule-mid);
  border: 1px solid var(--rule-mid);
}
.segments__list {
  background: var(--paper-alt);
  display: flex;
  flex-direction: column;
}

.segment-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 20px;
  gap: 20px;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--rule-mid);
  padding: 26px 24px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.segment-row:last-of-type { border-bottom: none; }
.segment-row:hover { background: var(--paper-hover-alt); }

.segment-row__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 5px 6px;
  justify-self: stretch;
  text-align: center;
}
.segment-row__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.026em;
  color: var(--ink);
}
.segment-row__arrow { color: var(--text-faint); font-size: 15px; }

/* Selected row: white ground, accent spine, solid accent tag. */
.segment-row[aria-selected='true'] {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--accent);
  cursor: default;
}
.segment-row[aria-selected='true'] .segment-row__tag {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.segment-row[aria-selected='true'] .segment-row__arrow { color: var(--accent); }

.segments__panels { background: var(--ink); padding: 46px 42px 50px; }
.segment-panel[hidden] { display: none; }
.segment-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 22px;
}
.segment-panel .h3 { color: #fff; margin-bottom: 28px; }

/* Label / value rows inside the dark panel. */
.factrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 26px;
  padding: 17px 0;
  border-top: 1px solid var(--rule-dark-20);
}
.factrow__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--on-dark-faint);
}
.factrow__value { font-size: 14.5px; line-height: 1.56; color: var(--on-dark-body); }
.segment-panel .link-rule { margin-top: 30px; }

/* --------------------------------------------------------------------------
   12. Structures / firm
   -------------------------------------------------------------------------- */

.structure {
  border-top: 1px solid var(--rule-dark-28);
  padding-top: 18px;
}
.structure h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 9px;
  color: #fff;
}
.structure p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--on-dark-muted); }

.firm__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.04;
  margin: 0 0 22px;
  text-wrap: balance;
}
.firm__copy { margin: 0 0 16px; font-size: 16px; line-height: 1.65; color: var(--text-strong); text-wrap: pretty; }
.firm__copy:last-child { margin-bottom: 0; }
.firm__photo { border: 1px solid var(--rule-light); height: 400px; overflow: hidden; }
.firm__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */

.quote { background: var(--ink-raised); padding: 40px 36px 42px; margin: 0; }
.quote__text {
  margin: 0 0 30px;
  font-size: 22px;
  line-height: 1.48;
  letter-spacing: -0.018em;
  color: #fff;
  text-wrap: pretty;
}
.quote__by {
  border-top: 1px solid var(--rule-dark-20);
  padding-top: 22px;
}
.quote__name { font-size: 15px; font-weight: 600; color: #fff; }
.quote__org {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  color: var(--on-dark-faint);
  margin-top: 5px;
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule-mid); }
.faq__item { border-bottom: 1px solid var(--rule-mid); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  background: none;
  border: none;
  padding: 24px 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.faq__q-text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.024em;
  color: var(--ink);
}
.faq__sign {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--accent);
  line-height: 1.2;
  flex: none;
}
/* Prototype swaps the glyph between + and –; do it in CSS from the state. */
.faq__sign::before { content: '+'; }
.faq__q[aria-expanded='true'] .faq__sign::before { content: '\2013'; }

.faq__a { margin: 0; padding: 0 60px 26px 8px; font-size: 15px; line-height: 1.68; color: var(--text-body); }
.faq__a[hidden] { display: none; }

/* --------------------------------------------------------------------------
   15. Contact form
   -------------------------------------------------------------------------- */

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 1px solid var(--rule-dark-20);
  padding-top: 28px;
}
.contact-detail__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  color: var(--on-dark-faint);
  margin-bottom: 8px;
}
.contact-detail__email {
  font-size: 19px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}
.contact-detail__email:hover { color: var(--accent-soft); }
.contact-detail__value { font-size: 15px; color: var(--on-dark-body); }

.form-card {
  background: var(--ink-raised);
  border: 1px solid var(--rule-dark-20);
  padding: 38px 36px 40px;
}

.field { display: block; margin-bottom: 22px; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  color: var(--on-dark-faint);
  margin-bottom: 10px;
}
.field__control {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--rule-dark-24);
  color: #fff;
  padding: 13px 14px;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field__control:focus { border-color: var(--accent); }
textarea.field__control { resize: vertical; }
.field__control::placeholder { color: var(--on-dark-dim); }

.field-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 22px;
  margin-bottom: 22px;
}
.field-pair .field { margin-bottom: 0; }

/* Validation message — the prototype relies on native `required`, but a
   real form needs a visible, screen-reader-announced error. */
.field__error {
  display: none;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #ff8f8f;
}
.field.is-invalid .field__error { display: block; }
.field.is-invalid .field__control { border-color: #ff8f8f; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 24px;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--on-dark-dim);
}
.btn[aria-disabled='true'] { opacity: 0.6; cursor: progress; }

.form-success[hidden] { display: none; }
.form-success { padding: 34px 0; }
.form-success__mark { width: 11px; height: 11px; background: var(--cyan); margin-bottom: 26px; }
.form-success .h3 { color: #fff; letter-spacing: -0.032em; margin-bottom: 14px; }
.form-success p { margin: 0 0 26px; font-size: 15.5px; line-height: 1.65; color: var(--on-dark-muted); max-width: 42ch; }
.form-error {
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid #ff8f8f;
  font-size: 13.5px;
  line-height: 1.55;
  color: #ff8f8f;
}
.form-error[hidden] { display: none; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--rule-dark-16);
}
.site-footer__cols {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 52px var(--gutter) 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.site-footer__blurb { margin: 0; font-size: 14px; line-height: 1.65; color: var(--on-dark-faint); max-width: 38ch; }
.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.site-footer__links a { color: var(--on-dark-body); }
.site-footer__links a:hover { color: #fff; }
.site-footer__links span { color: var(--on-dark-faint); }

.site-footer__legal {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--gutter) 30px;
  border-top: 1px solid var(--rule-dark-16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--on-dark-dim);
}

/* --------------------------------------------------------------------------
   17. Who we help — segment nav and detail sections
   -------------------------------------------------------------------------- */

.segment-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-light);
}
.segment-nav__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0 34px;
  /* Long labels + narrow viewport: scroll rather than wrap into a wall. */
  overflow-x: auto;
  scrollbar-width: none;
}
.segment-nav__inner::-webkit-scrollbar { display: none; }
.segment-nav a {
  position: relative;
  padding: 17px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.segment-nav a:hover { color: var(--ink); }
.segment-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
}
.segment-nav a[aria-current='true'] { color: var(--ink); }
.segment-nav a[aria-current='true']::after { opacity: 1; }

.segment-section { border-bottom: 1px solid var(--rule-light); padding-block: 78px 84px; }
.segment-section--alt { background: var(--paper-alt); }

.spec-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  color: var(--text-faint);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-light);
}
.segment-section--alt .spec { border-bottom-color: var(--rule-mid); }
.spec__term { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.spec__def { font-size: 14.5px; line-height: 1.62; color: var(--text-muted); }

.watchout { margin-top: 34px; border-top: 1px solid var(--ink); padding-top: 20px; }
.watchout__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 10px;
}
.watchout p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--text-strong); max-width: 76ch; }

.handles { margin-top: 40px; }
.handles__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  color: var(--text-faint);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.handles .cardgrid { border-top: none; }
.handle { background: var(--paper); padding: 22px 22px 26px; }
.segment-section--alt .handle { background: var(--paper-alt); }
.handle__title { font-size: 16px; font-weight: 600; letter-spacing: -0.022em; margin-bottom: 7px; }
.handle p { margin: 0; font-size: 13.5px; line-height: 1.58; color: var(--text-muted); }

/* Closing band on the Who we help page. */
.enquire__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 0.98;
  margin: 0 0 20px;
  color: #fff;
  text-wrap: balance;
}
.enquire__actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.enquire__email {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: #fff;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
.enquire__email:hover { color: var(--accent-soft); }
.enquire__hours {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  color: var(--on-dark-dim);
}

/* --------------------------------------------------------------------------
   18. Narrow viewports
   The layout is intrinsic and needs no breakpoints to reflow, but a few
   fixed paddings and the segment-row tag column are too generous on phones.
   -------------------------------------------------------------------------- */

@media (max-width: 620px) {
  :root { --section-y: 60px; }

  /* The header wraps to three rows on a phone. Pinned, that costs about a
     fifth of the viewport on every scroll, so let it scroll away here and
     give the segment nav the top edge instead. */
  .site-header { position: static; }
  .segment-nav { top: 0; }
  html { scroll-padding-top: 8px; }

  .hero .shell { padding-top: 60px; }
  .hero__grid { padding-bottom: 44px; }

  .stat,
  .stat:first-child,
  .stat:last-child {
    padding: 22px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule-dark-18);
  }
  .stat:last-child { border-bottom: none; }

  .segment-row { grid-template-columns: minmax(0, 1fr) 20px; padding: 22px 18px; }
  .segment-row__tag { grid-column: 1 / -1; justify-self: start; }

  .segments__panels { padding: 34px 22px 38px; }
  .quote { padding: 30px 24px 32px; }
  .quote__text { font-size: 19px; }
  .form-card { padding: 28px 22px 30px; }
  .office__body { padding: 26px 22px 30px; }
  .faq__a { padding-right: 8px; }
  .photoband__frame { height: 220px; }
  .firm__photo { height: 280px; }
}
