/* ==========================================================================
   Cutler Realty — homepage stylesheet
   Implements docs/DESIGN-SYSTEM.md v1.0 (pinned South Florida editorial world).
   Mobile-first; WCAG 2.1 AA floor; self-hosted fonts only.
   The one-line radius rule: the building is square; the handshake is round.
   ========================================================================== */

/* ---- Fonts (self-hosted, latin subset, swap) ---------------------------- */
@font-face {
  font-family: "Marcellus";
  src: url("../assets/fonts/marcellus-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../assets/fonts/fragment-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Grounds (the architecture).
     AMENDED 2026-11-11 by client mid-build: dark surfaces moved from foliage
     green to the client's brand navy, and gold moves
     to the on-dark accent, per the logo's own lettering.
     RE-AMENDED 2026-11-11 evening (session 2): the navy was re-sampled from
     the logo artwork itself — four background patches average #0F243C
     (RGB 15 36 60) — because the earlier hand-picked navy read visibly grayer
     than the logo sitting on it. The logo also ships as a transparent PNG now,
     so artwork and surface share the exact same navy everywhere. */
  --ground-page: #FAF7F2;        /* white stucco */
  --ground-raised: #F3EEE5;      /* warm limestone */
  --ground-sand: #E8E1D3;        /* dry sand */
  --ground-coralline: #F0DFD3;   /* coral stone */
  --ground-deep: #0F243C;        /* brand navy (RGB 15 36 60), sampled from the logo — nav, footer, dark bands */

  /* Ink (text) — navy-black family, matching the navy grounds */
  --ink: #13273F;
  --ink-soft: #425264;
  --ink-muted: #566678;          /* stucco + limestone only */
  --ink-inverse: #F6F3EC;
  --ink-inverse-soft: #B9C2CC;

  /* Accents */
  --accent: #0F243C;             /* brand navy — every action */
  --accent-hover: #1B3556;       /* navy pressed/hovered */
  --accent-on-deep: #D3AE7B;     /* sandbar gold — links and actions on navy */
  --gold: #D3AE7B;               /* alias of accent-on-deep, from the logo */
  --accent-chip: #21385A;        /* raised navy chip (nav phone button) */
  --accent-warm: #A84B31;        /* coral clay — warm notes */
  --accent-warm-on-deep: #E5A48F;
  --accent-water: #33606B;       /* bay water — literal water only */

  /* Support */
  --rule: #7A5C42;               /* teak hairlines */
  --error: #9C3225;
  --focus: #0F243C;

  /* Type scale (fluid, mobile-first) */
  --text-display-xl: clamp(2.75rem, 1.85rem + 4.6vw, 4.5rem);
  --text-display-l: clamp(2rem, 1.6rem + 2vw, 2.875rem);
  --text-display-m: clamp(1.375rem, 1.3rem + 0.4vw, 1.625rem);
  --text-body-l: clamp(1.0625rem, 1.04rem + 0.15vw, 1.1875rem);
  --text-body: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  --text-small: 0.875rem;

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem;
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --grid-gap: 1rem;

  /* Radii: media square, controls round, cards barely off square */
  --radius-media: 0;
  --radius-control: 0.375rem;
  --radius-card: 0.125rem;
  --radius-pill: 999px;

  /* Containers */
  --container-content: 68rem;
  --container-wide: 76rem;

  /* Motion */
  --ease-arrival: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 150ms;
  --dur-standard: 300ms;
  --dur-media: 400ms;
  --dur-entrance: 600ms;

  /* Mobile contact bar height (reserved so it never covers content) */
  --contact-bar-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  /* Landed anchors must clear the sticky header and the mobile contact bar */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--ground-page);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* The mobile contact bar never covers content */
  padding-bottom: var(--contact-bar-h);
}

/* Browser surfaces carry the design too */
::selection { background: var(--ground-sand); color: var(--ink); }
input, textarea, select { caret-color: var(--accent); }
html { scrollbar-color: var(--ink-muted) transparent; }

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
/* Dark-ground links keep their light color on hover — the global hover rule
   above must never darken text sitting on the foliage-deep footer or CTA band. */
.site-footer a:hover,
.contact a:hover { color: var(--accent-on-deep); }

h1, h2, h3 {
  font-family: "Marcellus", serif;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On the navy grounds the navy ring is invisible — scope gold there so
   keyboard users get a real indicator on nav, footer, and the contact band. */
.site-header :focus-visible,
.site-nav :focus-visible,
.paths :focus-visible,
.team :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent-on-deep);
}

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

.skip-link {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ground-deep);
  color: var(--ink-inverse);
  border-radius: var(--radius-control);
  transform: translateY(-200%);
  transition: transform var(--dur-micro) var(--ease-arrival);
}
.skip-link:focus-visible { transform: translateY(0); color: var(--ink-inverse); }

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

.section-title {
  font-size: var(--text-display-l);
  line-height: 1.15;
}
.section-lede {
  font-size: var(--text-body-l);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: var(--space-4) 0 0;
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding-inline: 1.5rem;
  border-radius: var(--radius-control);
  border: 1.5px solid transparent;
  font: 600 var(--text-body) "Hanken Grotesk", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-arrival),
              border-color var(--dur-micro) var(--ease-arrival),
              color var(--dur-micro) var(--ease-arrival),
              transform var(--dur-micro) var(--ease-arrival);
}
.btn--lg { min-height: 3.5rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--secondary:hover { background: rgb(15 36 60 / 0.06); color: var(--accent-hover); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.text-link svg { transition: transform var(--dur-micro) var(--ease-arrival); }
.text-link:hover { text-decoration: underline; color: var(--accent-hover); }
.text-link:hover svg { transform: translateX(2px); }

/* ---- Header: the brand-navy bar. The logo's navy ground sits in it seamlessly. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground-deep);
}
.site-header__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: var(--space-2) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__logo {
  height: 56px;
  width: auto;
}
.wordmark {
  font-family: "Marcellus", serif;
  font-size: 1.375rem;
  color: var(--ink-inverse);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--gold); }

.site-nav { display: none; }
/* The sheet's own close control (touch has no Escape). Displayed only while
   the sheet is open; first in the sheet's DOM so focus lands on it. */
.sheet-close {
  display: none;
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid rgb(246 243 236 / 0.35);
  border-radius: var(--radius-control);
  color: var(--ink-inverse);
  cursor: pointer;
}
.site-nav.is-open .sheet-close { display: inline-flex; }
.sheet-close:hover { background: rgb(255 255 255 / 0.08); }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  font-weight: 500;
  color: var(--ink-inverse);
  text-decoration: none;
  padding: var(--space-2) 0;
}
.site-nav__list a:hover { color: var(--gold); }
/* Scroll-spy: the section in view marks its nav item */
.site-nav__list a[aria-current="true"] {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
}
.site-nav__phone-item { margin-left: var(--space-4); }
/* Specificity fix (2026-11-12): .site-nav__list a (0,1,1) outranks a bare
   .site-nav__phone (0,1,0) and was forcing padding-inline to 0 — the phone
   number sat ~1px from the button edge no matter what this rule declared.
   Qualifying with a.site-nav__phone (0,2,1) makes the padding actually apply.
   Mike asked for 12px on each side. */
.site-nav__list a.site-nav__phone {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 12px;
  background: var(--accent-chip);
  color: var(--ink-inverse);
  border: 1px solid rgb(246 243 236 / 0.18);
  border-radius: var(--radius-control);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-nav__phone:hover {
  /* Chip hover, re-derived from the new chip token #21385A at session 2's
     navy re-anchor (the old value descended from the pre-sample navy). */
  background: #294266;
  border-color: rgb(246 243 236 / 0.3);
  color: var(--ink-inverse);
}

.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink-inverse);
  cursor: pointer;
}
.icon-btn:hover { background: rgb(255 255 255 / 0.08); color: var(--ink-inverse); }

/* Mobile menu sheet: navy, matching the bar */
.site-nav.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ground-deep);
  padding: var(--space-16) var(--gutter) var(--space-8);
  overflow-y: auto;
}
.site-nav.is-open .site-nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.site-nav.is-open .site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: var(--text-display-m);
  color: var(--ink-inverse);
  border-bottom: 1px solid rgb(246 243 236 / 0.18);
}
.site-nav.is-open .site-nav__list a:hover { color: var(--gold); }
.site-nav.is-open .site-nav__phone-item {
  margin: var(--space-6) 0 0;
}
.site-nav.is-open .site-nav__phone {
  width: 100%;
  justify-content: center;
  min-height: 3.5rem;
  font-size: var(--text-body-l);
}

/* ---- Hero: the bay photograph is the ground (Mike, session 2). Copy rides
   on a solid stucco plate and the plat panel on its navy plate — the
   system's no-scrim rule keeps type off the photograph. ---- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 800px);
}
.hero__backdrop {
  position: absolute;
  inset: 0;
}
.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Plat-style annotations on the photograph (session 2 audit): cream mono
   over the image with a soft navy shadow for legibility — the aerial reads
   as local evidence, not weather. Decorative: aria-hidden in the markup,
   pointer-events off, hidden below 640px where margins are too tight. */
.hero__mark {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: "Fragment Mono", monospace;
  font-size: var(--text-small);
  letter-spacing: 0.14em;
  color: rgb(246 243 236 / 0.92);
  /* Offset-only shadows (no glow halos): legibility over the photo's
     variable luminance, not decoration. */
  text-shadow: 0 1px 2px rgb(15 36 60 / 0.65), 0 2px 10px rgb(15 36 60 / 0.45);
  pointer-events: none;
}
.hero__mark--place {
  left: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 5vh, 2.5rem);
}
.hero__mark--north {
  right: clamp(1rem, 4vw, 3rem);
  top: clamp(1rem, 5vh, 2.5rem);
  flex-direction: column;
  gap: var(--space-1);
}
@media (max-width: 639px) {
  .hero__mark { display: none; }
}
.hero__inner {
  position: relative;
  max-width: var(--container-wide);
  margin-inline: auto;
  width: 100%;
  padding: var(--space-10) var(--gutter) var(--space-12);
  display: grid;
  gap: var(--space-8);
}
.hero__copy {
  /* The stone plate: solid stucco under the type, generous inner padding. */
  background: var(--ground-page);
  border-radius: var(--radius-card);
  padding: var(--space-8);
}
.hero__title {
  font-size: var(--text-display-xl);
  line-height: 1.1;
  letter-spacing: 0.01em;
  max-width: 18ch;
  text-wrap: balance;
}
.hero__lede {
  font-size: var(--text-body-l);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: var(--space-5) 0 0;
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero .text-link { margin-top: var(--space-6); }

/* The plat panel retired (2026-11-11 night, Mike): the sketch left the hero
   for good — the full-bleed bay photograph and its plat annotations carry
   the first viewport alone. The sketch lives in
   .impeccable/archive/hero-plat-sketch.html if ever wanted back. */

/* ---- Trust bar -------------------------------------------------------------- */
.trust {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust__list {
  list-style: none;
  margin: 0 auto;
  max-width: var(--container-content);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.trust__fact {
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.trust__numeral {
  font-family: "Marcellus", serif;
  font-size: var(--text-display-m);
  font-variant-numeric: lining-nums;
  color: var(--ink);
}
.trust__caption {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---- Section rhythm: a heading owns what follows it ------------------------ */
section { padding-block: var(--space-section); }

/* ---- Two paths --------------------------------------------------------------- */
/* Dark section (session 2 night, Mike): raised navy chips on the footer navy,
   cream type, and the on-dark button grammar — gold primary, cream outline. */
.paths { background: var(--ground-deep); }
.paths .section-title { color: var(--ink-inverse); }
.paths .section-lede { color: var(--ink-inverse-soft); }
.paths__grid {
  display: grid;
  gap: var(--grid-gap);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.path-card {
  background: var(--accent-chip);
  border: 1px solid rgb(246 243 236 / 0.14);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-6);
}
.path-card__title { font-size: var(--text-display-m); line-height: 1.25; color: var(--ink-inverse); }
.path-card__body {
  color: var(--ink-inverse-soft);
  margin: var(--space-3) 0 0;
  max-width: 46ch;
}
.path-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.paths .btn--primary {
  background: var(--accent-on-deep);
  border-color: var(--accent-on-deep);
  color: var(--ground-deep);
}
.paths .btn--primary:hover {
  background: #E2C593;
  border-color: #E2C593;
  color: var(--ground-deep);
}
.paths .btn--secondary {
  border-color: rgb(246 243 236 / 0.5);
  color: var(--ink-inverse);
}
.paths .btn--secondary:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(246 243 236 / 0.8);
  color: var(--ink-inverse);
}
/* The card-foot tertiary links are the base navy text-link — invisible on
   the chip navy. They flip to gold with the rest of the on-dark grammar. */
.paths .text-link { color: var(--accent-on-deep); }
.paths .text-link:hover { color: var(--ink-inverse); }

/* ---- Why Cutler Realty ------------------------------------------------------- */
.why { background: var(--ground-sand); }
.why__grid {
  display: grid;
  gap: var(--space-8);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.why__block-title { font-size: var(--text-display-m); line-height: 1.25; }
.why__block p {
  margin: var(--space-3) 0 0;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---- Neighborhoods: the engraved plat index (session 2 audit fix). The
   seven names ARE the claim — they carry the display weight, and a single
   mono status line replaces the old wall of repeated placeholder notes. */
.hoods__list {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--ground-sand);
  display: grid;
}
.hood {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-2);
  border-bottom: 1px solid var(--ground-sand);
}
.hood__index {
  font-family: "Fragment Mono", monospace;
  font-size: var(--text-small);
  color: var(--ink-muted);
  min-width: 2.5rem;
}
.hood__name { font-size: var(--text-display-l); line-height: 1.15; }
.hoods__status {
  margin: var(--space-6) 0 0;
  font-family: "Fragment Mono", monospace;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ---- Videos -------------------------------------------------------------------- */
.videos { background: var(--ground-raised); }
.videos__grid {
  display: grid;
  gap: var(--grid-gap);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.video-card__stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ground-sand);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-card__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-media) var(--ease-arrival);
}
.video-card__stage:hover img { transform: scale(1.03); }
.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.92);
  color: var(--ground-deep);
  transition: transform var(--dur-micro) var(--ease-arrival);
}
.video-card__stage:hover .video-card__play { transform: scale(1.06); }
.video-card__title { font-size: var(--text-display-m); line-height: 1.25; margin-top: var(--space-4); }
.video-card__meta {
  margin: var(--space-1) 0 0;
  font-family: "Fragment Mono", monospace;
  font-size: var(--text-small);
  color: var(--ink-muted);
}

/* ---- Team ----------------------------------------------------------------------- */
.team__grid {
  display: grid;
  gap: var(--space-10);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.member__photo {
  aspect-ratio: 4 / 5;
  background: var(--ground-sand);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Real portraits (session 2): the img fills the 4:5 plate. object-fit: cover
   crops rather than distorts; border-radius: inherit keeps the plate's
   rounded corners clipping the photo. */
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.member__name { font-size: var(--text-display-m); line-height: 1.25; margin-top: var(--space-5); }
.member__role {
  margin: var(--space-1) 0 0;
  font-family: "Fragment Mono", monospace;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.member__bio { margin: var(--space-3) 0 0; color: var(--ink-soft); max-width: 44ch; }
.member__contact {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-4);
}
.member__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 48px;
  padding-inline: var(--space-3);
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-card);
}
.member__row:hover { background: rgb(15 36 60 / 0.06); color: var(--accent-hover); }

/* Dark section (session 2 night, Mike): Team Schuler rides the footer navy —
   cream names, gold contact rows, everything scoped under .team so the
   light-ground rules above stay untouched. */
.team { background: var(--ground-deep); }
.team .section-title { color: var(--ink-inverse); }
.team .section-lede { color: var(--ink-inverse-soft); }
.team .member__name { color: var(--ink-inverse); }
.team .member__role { color: var(--ink-inverse-soft); }
.team .member__bio { color: var(--ink-inverse-soft); }
.team .member__row { color: var(--accent-on-deep); }
.team .member__row:hover {
  background: rgb(255 255 255 / 0.08);
  color: var(--ink-inverse);
}

/* ---- Client proof (coral stone band — proof gets the warmest material) ---------- */
.proof { background: var(--ground-page); }
.proof__band {
  margin-top: clamp(2rem, 5vw, 3rem);
  background: var(--ground-coralline);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-6);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.proof__glyph {
  font-family: "Marcellus", serif;
  /* Inscription scale (session 2 audit: 4rem floated small beside the rating
     line; 6rem makes it the band's anchor mark). */
  font-size: 6rem;
  line-height: 0.72;
  color: var(--accent-warm); /* large text on coralline: 4.4:1 at ≥24px — passes large-text AA */
}
/* ---- Reviews carousel (session 2). The client asked for a carousel; the
   brief bans busy sliders — so: no autoplay, no transformed slides, a native
   horizontal scroll list with snap points. Touch users swipe it, everyone
   else uses the 48px buttons, keyboard users page with arrows, and reduced
   motion gets instant jumps. -------------------------------------------- */
.proof__body { flex: 1; min-width: 0; }
.proof__rating {
  margin: 0 0 var(--space-4);
  font-family: "Fragment Mono", monospace;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  color: var(--ink); /* ink on coralline — ink-muted is forbidden on this ground */
}
.proof__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%; /* below 640px: one review per view */
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* buttons + swipe are the affordances; no visible bar */
}
.proof__track::-webkit-scrollbar { display: none; }
.proof__track:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 4px; }
.proof__slide { scroll-snap-align: start; }
.review {
  margin: 0;
  height: 100%;
  background: var(--ground-page);
  border: 1px solid var(--ground-sand);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.review__quote {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--ink);
}
/* Five drawn gold stars top every card (Mike, session 2 night), then ~15px
   of air before the quote. Decorative: aria-hidden, the rating line above
   carries the meaning. */
.review__stars {
  display: flex;
  gap: 3px;
  margin: 0 0 15px;
}
.review__star {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}
.review__attr {
  margin: auto 0 0; /* pins the attribution to the card foot across unequal quote lengths */
  padding-top: var(--space-3);
  border-top: 1px solid var(--ground-sand);
  font-family: "Fragment Mono", monospace;
  font-size: var(--text-small);
  color: var(--ink-soft);
}
.proof__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* the status line drops to its own row on narrow screens */
  row-gap: var(--space-2);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.proof__btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-control);
  color: var(--accent);
  cursor: pointer;
}
.proof__btn:hover:not(:disabled) {
  background: rgb(15 36 60 / 0.06);
  color: var(--accent-hover);
}
.proof__btn:disabled { opacity: 0.35; cursor: default; }
.proof__status {
  margin: 0 0 0 var(--space-2);
  font-family: "Fragment Mono", monospace;
  font-size: var(--text-small);
  color: var(--ink-soft);
}
.proof__source {
  margin: var(--space-4) 0 0;
  font-size: var(--text-small);
  color: var(--ink-soft);
}
/* Wider viewports page more reviews at once — main.js perView() mirrors these
   exact breakpoints (640 → 2-up, 1024 → 3-up). */
@media (min-width: 640px) {
  .proof__track { grid-auto-columns: calc((100% - var(--space-5)) / 2); }
}
@media (min-width: 1024px) {
  .proof__track { grid-auto-columns: calc((100% - 2 * var(--space-5)) / 3); }
}
/* Mike, session 2 night: pull the band 100px past the container each side at
   wide viewports — the extra card width reads more square, less rectangle. */
@media (min-width: 1240px) {
  .proof__band { margin-inline: -100px; }
}
/* Reduced motion: paging jumps instead of gliding (the one motion grammar). */
@media (prefers-reduced-motion: reduce) {
  .proof__track { scroll-behavior: auto; }
}

/* ---- Final CTA + the one working form -------------------------------------------- */
.contact { background: var(--ground-deep); color: var(--ink-inverse); }
.contact .section-title { color: var(--ink-inverse); }
.contact__inner {
  display: grid;
  gap: var(--space-10);
}
.contact__reassure {
  margin: var(--space-5) 0 0;
  font-size: var(--text-body-l);
  line-height: 1.55;
  color: var(--ink-inverse-soft);
  max-width: 46ch;
}
.contact__reassure a { color: var(--accent-on-deep); }
.contact__direct {
  margin: var(--space-6) 0 0;
  font-size: var(--text-body-l);
  line-height: 1.9;
}
.contact__direct a { color: var(--accent-on-deep); text-decoration: none; font-weight: 500; }
.contact__direct a:hover { text-decoration: underline; }

.inquiry {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--ground-raised);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-6);
  color: var(--ink);
}
.inquiry__intent { border: 0; padding: 0; margin: 0; }
.inquiry__legend {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}
.inquiry__radios { display: flex; gap: var(--space-3); margin-top: var(--space-2); }
.radio { position: relative; }
.radio input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.radio span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: var(--space-6);
  border: 1.5px solid var(--ink-muted);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--ink);
}
.radio input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.radio input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field__label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
}
.field__input {
  min-height: 48px;
  padding-inline: var(--space-4);
  background: var(--ground-page);
  border: 1px solid var(--ink-muted);
  border-radius: 2px;
  font: 400 var(--text-body) "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
}
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--ground-raised), 0 0 0 4px var(--accent);
}
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__help { margin: 0; font-size: var(--text-small); color: var(--ink-soft); }
.field__error {
  margin: 0;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--error);
}
.inquiry__submit { align-self: flex-start; }
.inquiry__status { margin: 0; font-weight: 500; min-height: 1.5em; }
.inquiry__status.is-error { color: var(--error); }
/* Success: the form is replaced in place; the phone number stays visible above */
.inquiry.is-sent > :not(.inquiry__status) { display: none; }
.inquiry.is-sent .inquiry__status { font-size: var(--text-body-l); }

/* ---- Footer ------------------------------------------------------------------------ */
.site-footer {
  background: var(--ground-deep);
  color: var(--ink-inverse-soft);
  padding: var(--space-16) 0 var(--space-12);
}
/* The brand lockup lives in the contact section now (session 2 evening,
   Mike: out of the footer) — under the direct phone lines, closing the copy
   column on the navy ground. */
.contact__logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin-top: var(--space-6);
}
.contact__founding {
  margin: var(--space-2) 0 0;
  font-family: "Fragment Mono", monospace;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  color: var(--ink-inverse-soft);
}
.site-footer__cols {
  /* Session 2: the brand block moved INSIDE this grid (as the first column),
     so the divider above it is gone — the grid is the footer's top element. */
  display: grid;
  gap: var(--space-8);
}
.site-footer__heading {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-inverse);
}
.site-footer__list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-small);
}
.site-footer__list a { color: var(--accent-on-deep); text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__legal {
  margin: var(--space-10) 0 0;
  font-size: var(--text-small);
  color: var(--ink-inverse-soft);
}

/* ---- Persistent mobile contact bar -------------------------------------------------- */
.contact-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  height: calc(var(--contact-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  /* Brand-aligned (session 2 audit): the bar is on screen 100% of the mobile
     session — it carries the navy/gold identity, not generic stucco. */
  background: var(--ground-deep);
  border-top: 1px solid rgb(211 174 123 / 0.4);
  transform: translateY(100%);
  transition: transform var(--dur-standard) var(--ease-arrival);
}
.contact-bar.is-visible { transform: translateY(0); }
.contact-bar__action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ink-inverse);
  text-decoration: none;
}
.contact-bar__action:hover { color: var(--accent-on-deep); }
.contact-bar__action--alt {
  border-left: 1px solid rgb(246 243 236 / 0.18);
  color: var(--accent-on-deep);
}
.contact-bar__action--alt:hover { color: var(--ink-inverse); }

/* ---- Section reveal (part of the one motion grammar) -------------------------------- */
html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
html.js-anim [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-entrance) var(--ease-arrival),
              transform var(--dur-entrance) var(--ease-arrival);
}
html.js-anim [data-reveal].is-revealed > :nth-child(2) { transition-delay: 80ms; }
html.js-anim [data-reveal].is-revealed > :nth-child(3) { transition-delay: 160ms; }

/* ---- Responsive: tablet and desktop -------------------------------------------------- */
@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; }
  .paths__grid, .videos__grid { grid-template-columns: 1fr 1fr; }
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__fact { border-left: 1px solid var(--ground-sand); }
  .trust__fact:first-child { border-left: 0; }
  .why__grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-6); }
  .hoods__list { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); }
}

@media (min-width: 1024px) {
  .site-header__actions { display: none; }
  .site-nav { display: block; }

  .hero__inner {
    /* 8/4, not 7/5: the copy column needs ~770px for the 21ch measure at 72px
       display type — anything narrower stacks the headline into five lines */
    grid-template-columns: 8fr 4fr;
    align-items: center;
    gap: var(--space-12);
    padding-block: var(--space-16);
  }
  /* Wider measure at desktop: 18ch stacks the 72px headline into five lines;
     21ch gives the balanced three-to-four line stack the type was designed for */
  .hero__title { max-width: 21ch; }

  .team__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .contact__inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .site-footer__cols { grid-template-columns: repeat(4, 1fr); }

  /* The mobile contact bar is a mobile-only element */
  .contact-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---- Reduced motion: content stays readable, nothing moves --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html.js-anim [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
