/* ==========================================================================
   McMENOMY LAW — “The Way Through”
   Design system · Familiar Ground: steady · local · generous
   Palette, mark rules and header spec: HANDOFF §4 and §4a. Brand values are
   fixed; where a pairing fails contrast the design adapts, the hex does not
   (see research/brand/contrast-report.md).
   ========================================================================== */

/* Fonts are linked separately (assets/fonts/fonts.css) to avoid an @import chain. */

/* ---------- Tokens ---------- */
:root {
  /* palette — exact (HANDOFF §4) */
  --sierra:    #35485A; /* primary anchor: Sierra dusk */
  --juniper:   #64788A; /* working mid-tone */
  --bone:      #EFEAE0; /* ground — not white */
  --charcoal:  #3E3A34; /* text — not black */
  --pinyon:    #5C6B54; /* secondary */
  --sage:      #9CA88F; /* secondary */
  --clay:      #B08968; /* secondary */

  /* roles. Contrast on bone: charcoal 9.42, sierra 7.87, pinyon 4.75 pass body
     text; juniper 3.81 passes only large text and UI; sage 2.08 and clay 2.64
     are grounds and rules, never text on bone. */
  --ground:        var(--bone);
  --ground-deep:   color-mix(in srgb, var(--bone) 93%, var(--charcoal));   /* tinted bone for bands */
  --ground-dark:   var(--sierra);
  --ink:           var(--charcoal);
  --ink-soft:      color-mix(in srgb, var(--charcoal) 78%, var(--bone));   /* 6.4:1 on bone */
  --ink-strong:    var(--sierra);
  --accent:        var(--juniper);          /* rules, ornaments, large type only */
  --on-dark:       var(--bone);
  --on-dark-soft:  color-mix(in srgb, var(--bone) 78%, var(--sierra));     /* 5.1:1 on sierra */

  --line:        color-mix(in srgb, var(--charcoal) 16%, transparent);
  --line-soft:   color-mix(in srgb, var(--charcoal) 9%, transparent);
  --line-dark:   color-mix(in srgb, var(--bone) 22%, transparent);
  --line-dark-soft: color-mix(in srgb, var(--bone) 11%, transparent);

  /* pattern — Northern Nevada line field, applied as a mask so colour is a token */
  --pattern: url("/assets/brand/web/Northern-Nevada-Pattern-Wide-NoBG.svg");

  /* type — stand-in pair, see assets/fonts/fonts.css */
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Source Sans 3", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;

  /* scale — unhurried; sits on an 8px rhythm */
  --fs-900: clamp(2.6rem, 1.4rem + 4.4vw, 4.6rem);
  --fs-800: clamp(2.1rem, 1.3rem + 2.8vw, 3.3rem);
  --fs-700: clamp(1.7rem, 1.25rem + 1.6vw, 2.4rem);
  --fs-600: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  --fs-500: clamp(1.18rem, 1.08rem + 0.4vw, 1.35rem);
  --fs-400: 1.0625rem;
  --fs-300: 0.9375rem;
  --fs-200: 0.8125rem;
  --fs-100: 0.75rem;
  --lh-tight: 1.1;
  --lh-body: 1.6;
  --measure: 62ch;

  /* space & shape */
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section: clamp(5rem, 10vw, 8.5rem);
  --section-sm: clamp(3rem, 6vw, 5rem);
  --container: 82rem;
  --r-sm: 4px;
  --r-md: 8px;
  --header-h: 92px;          /* two-line lockup needs vertical room (HANDOFF §4a) */
  --header-h-condensed: 64px; /* mark alone */
  --arch: 50% 50% var(--r-md) var(--r-md) / 35% 35% var(--r-md) var(--r-md); /* semicircle top on a 0.7 aspect box */

  /* motion — steady: short, eased, never spring or parallax */
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
  --t-fast: 180ms;
  --t-med: 360ms;
  --t-reveal: 520ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h-condensed) + 1rem); }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100svh;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
::selection { background: var(--sierra); color: var(--bone); }

/* the hidden attribute always wins, regardless of class display values */
[hidden] { display: none !important; }

/* ---------- Cross-document view transitions ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 240ms var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 320ms var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
.site-header { view-transition-name: site-header; }

/* ---------- Focus & a11y ---------- */
:focus-visible { outline: 2px solid var(--sierra); outline-offset: 3px; border-radius: var(--r-sm); }
.on-dark :focus-visible { outline-color: var(--bone); }
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 10000;
  background: var(--sierra); color: var(--bone);
  padding: 0.7rem 1.2rem; border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600; text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-900); }
h2, .h2 { font-size: var(--fs-800); }
h3, .h3 { font-size: var(--fs-600); line-height: 1.2; }
h4, .h4 { font-family: var(--sans); font-size: var(--fs-400); font-weight: 600; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }

.lede { font-size: var(--fs-500); line-height: 1.55; color: var(--ink-soft); max-width: 36em; }
.on-dark .lede { color: var(--on-dark-soft); }
.measure { max-width: var(--measure); }

/* eyebrow — certificate register: small capitals, tracked, Sierra dusk. Never mono. */
.eyebrow {
  font-family: var(--serif);
  font-variant-caps: all-small-caps;
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-strong);
  display: inline-flex; align-items: center; gap: 0.8em;
}
.on-dark .eyebrow { color: var(--on-dark-soft); }
/* the separator ornament is a short rule, used consistently — never a diamond */
.eyebrow::before, .rule::before { content: ""; width: 2.25rem; height: 1px; background: var(--accent); flex: none; }
.rule { display: block; }
.on-dark .eyebrow::before, .on-dark .rule::before { background: var(--sage); }

/* section head: eyebrow + heading + optional lede, one idea per section */
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lede { margin-top: 0.25rem; }

/* ---------- Layout ---------- */
.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 50rem; }
.section { padding-block: var(--section); position: relative; }
.section--sm { padding-block: var(--section-sm); }
.section--tint { background: var(--ground-deep); }
.on-dark { background: var(--ground-dark); color: var(--on-dark); }

/* pattern field — always large or cropped, always low contrast, never captioned */
.field { position: relative; isolation: isolate; overflow: clip; }
.field::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--field-ink, var(--bone));
  opacity: var(--field-opacity, 0.11);
  -webkit-mask-image: var(--pattern); mask-image: var(--pattern);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: var(--field-size, 170%); mask-size: var(--field-size, 170%);
  -webkit-mask-position: var(--field-pos, 40% 30%); mask-position: var(--field-pos, 40% 30%);
}
.field--light { --field-ink: var(--juniper); --field-opacity: 0.10; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 4rem); align-items: start; }
.grid-2--center { align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.flow > * + * { margin-top: 1.1em; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.tc { text-align: center; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--sierra); --btn-fg: var(--bone); --btn-line: var(--sierra);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-300); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--btn-line); border-radius: var(--r-sm);
  padding: 0.9em 1.6em;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { --btn-bg: var(--charcoal); --btn-line: var(--charcoal); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--sierra); --btn-line: color-mix(in srgb, var(--sierra) 55%, transparent); }
.btn--ghost:hover { --btn-bg: var(--sierra); --btn-fg: var(--bone); --btn-line: var(--sierra); }
.on-dark .btn { --btn-bg: var(--bone); --btn-fg: var(--sierra); --btn-line: var(--bone); }
.on-dark .btn:hover { --btn-bg: transparent; --btn-fg: var(--bone); --btn-line: var(--bone); }
.on-dark .btn--ghost { --btn-bg: transparent; --btn-fg: var(--bone); --btn-line: var(--line-dark); }
.on-dark .btn--ghost:hover { --btn-bg: var(--bone); --btn-fg: var(--sierra); --btn-line: var(--bone); }
.btn .ph, .on-dark .btn .ph { color: inherit; border-color: color-mix(in srgb, currentColor 55%, transparent); background: color-mix(in srgb, currentColor 10%, transparent); font-family: var(--sans); font-size: var(--fs-200); }
.btn--phone { font-family: var(--serif); font-size: var(--fs-400); font-weight: 600; letter-spacing: 0.01em; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.link-quiet {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: var(--fs-300); color: var(--ink-strong);
  text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.link-quiet:hover { text-decoration-color: currentColor; color: var(--charcoal); }
.on-dark .link-quiet { color: var(--bone); text-decoration-color: var(--line-dark); }
.on-dark .link-quiet:hover { color: var(--bone); }

/* ---------- Placeholders (labelled gaps, never plausible copy) ---------- */
.ph {
  border: 1px dashed color-mix(in srgb, var(--juniper) 70%, transparent);
  border-radius: var(--r-sm);
  padding: 0.35em 0.7em;
  font-family: var(--sans); font-size: var(--fs-200); font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--juniper) 7%, transparent);
  display: inline-block;
}
.on-dark .ph { color: var(--on-dark); border-color: var(--line-dark); background: color-mix(in srgb, var(--bone) 6%, transparent); }
.ph--block { display: block; padding: 1.2rem 1.4rem; line-height: 1.5; font-weight: 500; }

/* ---------- Reveal-on-scroll (steady: 10px, eased, once) ---------- */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }

/* ---------- Arch window — the mark’s arch, carried into layout ---------- */
.arch { border-radius: var(--arch); overflow: clip; background: var(--ground-deep); aspect-ratio: 0.7; position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--ph { display: grid; place-items: center; text-align: center; padding: 1rem; border: 1px dashed color-mix(in srgb, var(--juniper) 60%, transparent); }
.arch--ph .ph { border: 0; background: none; }

/* ---------- Responsive base ---------- */
@media (max-width: 64rem) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@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; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Shell — header, navigation, footer, mobile call bar (HANDOFF §4a header spec, §5 nav, §8.6)
   ========================================================================== */

/* ---------- Header ---------- */
/* Two-line horizontal lockup at rest (88–96px). Condensed/sticky state and mobile: mark alone.
   Both images are the approved files; nothing is recoloured in CSS. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
}
.site-header.is-scrolled { border-color: var(--line-soft); }
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
  transition: height var(--t-med) var(--ease);
}
.is-scrolled .header-bar { height: var(--header-h-condensed); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; height: 100%; }
.brand__lockup { height: 56px; width: auto; }        /* 1370×353 → ≈217px wide */
.brand__mark { height: 40px; width: auto; display: none; } /* channel verified open at 40px; 32px is the floor */
.is-scrolled .brand__lockup { display: none; }
.is-scrolled .brand__mark { display: block; }

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.site-nav__list { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; padding: 0; margin: 0; }
.site-nav__link {
  font-size: var(--fs-300); font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--ink);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.site-nav__link:hover { border-color: var(--accent); }
.site-nav__link[aria-current="page"] { color: var(--ink-strong); border-color: var(--sierra); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-actions .btn { padding: 0.7em 1.15em; }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; padding: 0.6rem; cursor: pointer; z-index: 310; position: relative; color: var(--ink); }
.nav-toggle__box { display: block; width: 24px; height: 14px; position: relative; }
.nav-toggle__box span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 1px; background: currentColor; transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease), opacity var(--t-fast); }
.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: 6px; }
.nav-toggle__box span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle__box span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
html.nav-open .site-header { z-index: 300; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ground);
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--header-h-condensed) + 1.5rem) var(--gutter) 5.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity var(--t-med) var(--ease); }
.mobile-menu__list { list-style: none; padding: 0; margin: 0; display: grid; align-content: center; border-top: 1px solid var(--line); }
.mobile-menu__link {
  display: block; font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 500;
  text-decoration: none; color: var(--ink);
  padding-block: 0.7rem; border-bottom: 1px solid var(--line);
}
.mobile-menu__link[aria-current="page"] { color: var(--ink-strong); }
.mobile-menu__foot { display: grid; gap: 0.75rem; font-size: var(--fs-300); color: var(--ink-soft); }

/* persistent tap-to-call bar on phones (wireframe 01, note 4) */
.call-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--sierra); color: var(--bone);
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
}
.call-bar .ph { color: var(--bone); border-color: var(--line-dark); background: color-mix(in srgb, var(--bone) 8%, transparent); }
.call-bar a { display: flex; align-items: center; justify-content: center; gap: 0.6em; text-decoration: none; color: inherit; font-weight: 600; font-family: var(--serif); font-size: var(--fs-500); }

@media (max-width: 64rem) {
  .header-bar { height: var(--header-h-condensed); }
  .brand__lockup { display: none; }
  .brand__mark { display: block; }
  .site-nav__list, .header-actions { display: none; }
  .nav-toggle { display: block; }
  .call-bar { display: block; }
  body { padding-bottom: 4.25rem; }
}

/* ---------- Footer ---------- */
.site-footer { font-size: var(--fs-300); }
.site-footer.field { --field-opacity: 0.045; --field-size: 190%; --field-pos: 70% 85%; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(2rem, 4vw, 4rem); padding-block: var(--section-sm); }
.footer-brand { display: grid; gap: 1.25rem; align-content: start; }
.footer-brand__lockup { width: 128px; height: auto; }
.footer-brand p { color: var(--on-dark-soft); max-width: 22em; }
.footer-col h4 { font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: 0.12em; font-size: var(--fs-300); font-weight: 600; color: var(--on-dark-soft); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: var(--on-dark); border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease); }
.footer-col a:hover { border-color: var(--sage); }
.footer-col li { color: var(--on-dark-soft); }
.footer-col li a { color: var(--on-dark); }

.footer-areas { border-top: 1px solid var(--line-dark-soft); padding-block: 1.6rem; display: grid; gap: 0.8rem; }
.footer-areas h4 { font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: 0.12em; font-size: var(--fs-300); font-weight: 600; color: var(--on-dark-soft); }
.area-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.area-list li { color: var(--on-dark-soft); }
.area-list li strong { color: var(--on-dark); font-weight: 600; }
.area-list .sep { width: 1px; height: 1em; background: var(--line-dark); }
.area-list a { color: var(--on-dark); text-decoration: none; }
.area-list .pending { border: 1px dashed var(--line-dark); border-radius: 999px; padding: 0.15em 0.75em; font-size: var(--fs-200); }

.footer-trust { border-top: 1px solid var(--line-dark-soft); padding-block: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; color: var(--on-dark-soft); }
.footer-trust__awards { display: inline-flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.badge-ph { width: 34px; height: 34px; border: 1px dashed var(--line-dark); border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--fs-100); color: var(--on-dark-soft); }

.footer-legal { border-top: 1px solid var(--line-dark-soft); padding-block: 1.6rem; display: grid; gap: 1rem; font-size: var(--fs-200); color: var(--on-dark-soft); }
.footer-legal .disclaimers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 1.6rem; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--on-dark); }

@media (max-width: 64rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 48rem) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal .disclaimers { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .call-bar, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .on-dark { background: #fff !important; color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

/* ==========================================================================
   Home (wireframe 01)
   ========================================================================== */

/* ---------- Hero — bone ground; carries without people photography ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero__copy { display: grid; gap: 1.5rem; max-width: 40rem; }
.hero h1 { font-size: var(--fs-900); font-weight: 500; max-width: 12em; }
.hero .lede { max-width: 32em; }
.hero .cta-pair { margin-top: 0.5rem; }
/* the arch: Sierra dusk panel, Northern Nevada field in bone at texture density, cropped to the river */
.hero__arch {
  border-radius: var(--arch); aspect-ratio: 0.7; max-height: 78vh; width: 100%; justify-self: end;
  background: var(--sierra);
  --field-ink: var(--bone); --field-opacity: 0.09; --field-size: 320%; --field-pos: 2% 50%;
}
.hero__strip {
  list-style: none; padding: 0;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem; padding-block: 1rem;
  font-size: var(--fs-300); color: var(--ink-soft);
}
.hero__strip li { display: inline-flex; align-items: center; gap: 0.7em; list-style: none; }
.hero__strip li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Awards band (three public, four embargoed) ---------- */
.awards { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.awards__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.awards__head p { color: var(--ink-soft); font-size: var(--fs-300); }
.award-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.award { display: grid; justify-items: center; text-align: center; gap: 0.6rem; align-content: start; }
.award__badge { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-strong); font-family: var(--serif); font-size: var(--fs-300); }
.award__badge.is-pending { border-style: dashed; color: var(--ink-soft); }
.award__name { font-family: var(--serif); font-size: var(--fs-300); font-weight: 600; line-height: 1.25; color: var(--ink); }
.award__meta { font-size: var(--fs-200); color: var(--ink-soft); }
.award--embargoed .award__name { color: var(--ink-strong); }

/* ---------- Promise ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.promise { display: grid; gap: 0.8rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.promise .rule { margin-bottom: 0.25rem; }
.promise h3 { font-size: var(--fs-600); }
.promise p { color: var(--ink-soft); max-width: 34em; }

/* ---------- Practice doors ---------- */
.door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.door {
  display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 1rem;
  text-decoration: none; color: inherit;
  background: var(--ground-deep); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.door:hover { border-color: var(--juniper); }
.door__kicker { display: flex; justify-content: space-between; align-items: baseline; }
.door__kicker .eyebrow::before { display: none; }
.door__kicker span:last-child { font-family: var(--serif); color: var(--ink-soft); font-size: var(--fs-300); }
.door h3 { font-size: var(--fs-600); }
.door p { color: var(--ink-soft); font-size: var(--fs-300); }
.door__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; font-size: var(--fs-300); }
.door__list li { display: flex; gap: 0.7em; align-items: baseline; }
.door__list li::before { content: ""; width: 1rem; height: 1px; background: var(--accent); flex: none; transform: translateY(-0.35em); }
.door .link-quiet { justify-self: start; }
.door__media { margin: 0.25rem calc(clamp(1.4rem, 2.6vw, 2rem) * -1) calc(clamp(1.4rem, 2.6vw, 2rem) * -1); aspect-ratio: 21 / 9; background: color-mix(in srgb, var(--juniper) 14%, var(--bone)); border-top: 1px solid var(--line-soft); display: grid; place-items: center; }

/* ---------- Process band (dark) + verifiable figures ---------- */
.process.field { --field-opacity: 0.06; --field-size: 200%; --field-pos: 20% 60%; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.step { display: grid; gap: 0.7rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.step__n { font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: 0.14em; color: var(--on-dark-soft); font-size: var(--fs-300); font-weight: 600; }
.step h3 { font-size: var(--fs-600); }
.step p { color: var(--on-dark-soft); max-width: 34em; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark-soft); border-block: 1px solid var(--line-dark-soft); margin-top: clamp(3rem, 6vw, 5rem); }
.figure { background: var(--sierra); padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1rem, 2.4vw, 2rem); display: grid; gap: 0.6rem; align-content: start; }
.figure__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.figure__label { font-size: var(--fs-300); color: var(--on-dark-soft); }

/* ---------- Team preview ---------- */
.team-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.person { text-decoration: none; color: inherit; display: grid; gap: 0.9rem; align-content: start; }
.person .arch { aspect-ratio: 0.7; }
.person .arch img { transition: filter var(--t-med) var(--ease); }
.person__name { font-family: var(--serif); font-size: var(--fs-500); font-weight: 600; line-height: 1.2; }
.person__role { font-size: var(--fs-300); color: var(--ink-soft); margin-top: 0.2em; }

/* ---------- Reviews (one at a time) ---------- */
.review-stage { position: relative; min-height: 14rem; }
.review { display: grid; gap: 1.4rem; align-content: start; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity var(--t-med) var(--ease); }
.review.is-active { opacity: 1; pointer-events: auto; position: relative; }
.review blockquote { font-family: var(--serif); font-size: var(--fs-700); line-height: 1.3; max-width: 26em; color: var(--ink); text-wrap: pretty; }
.review__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-300); color: var(--ink-soft); }
.review__stars { color: var(--ink-strong); letter-spacing: 0.15em; }
.review-nav { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.6rem; }
.review-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.review-nav button:hover { background: var(--sierra); color: var(--bone); border-color: var(--sierra); }
.review-dots { display: inline-flex; gap: 0.5rem; margin-left: 0.8rem; }
.review-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--juniper); background: transparent; padding: 0; cursor: pointer; }
.review-dots button.is-active { background: var(--sierra); border-color: var(--sierra); }
.reviews__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--fs-300); }

/* ---------- Guides preview ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.guide { display: grid; gap: 0.9rem; align-content: start; text-decoration: none; color: inherit; }
.guide__media { aspect-ratio: 3 / 2; border-radius: var(--r-md); background: var(--ground-deep); border: 1px dashed color-mix(in srgb, var(--juniper) 50%, transparent); display: grid; place-items: center; }
.guide__meta { font-size: var(--fs-200); color: var(--ink-soft); }
.guide h3 { font-size: var(--fs-500); transition: color var(--t-fast) var(--ease); }
.guide:hover h3 { color: var(--ink-strong); }

/* ---------- Closing invitation (dark) ---------- */
.invite { text-align: center; }
.invite.field { --field-opacity: 0.06; --field-size: 220%; --field-pos: 55% 40%; }
.invite h2 { max-width: 16em; margin-inline: auto; }
.invite .lede { margin-inline: auto; margin-top: 1.25rem; }
.invite .cta-pair { justify-content: center; margin-top: 2rem; }
.invite__phone { font-family: var(--serif); font-size: var(--fs-700); color: var(--on-dark); text-decoration: none; }
.invite__note { margin-top: 1.5rem; color: var(--on-dark-soft); font-size: var(--fs-300); }

/* ---------- Home responsive ---------- */
@media (max-width: 64rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__arch { aspect-ratio: 1.6; border-radius: var(--r-md); max-height: none; --field-size: 160%; --field-pos: 40% 40%; }
  .award-row { grid-template-columns: repeat(4, 1fr); }
  .promise-grid, .door-grid, .steps-row, .guide-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 48rem) {
  .hero .cta-pair .btn, .invite .cta-pair .btn { flex: 1 1 100%; }
  .award-row { grid-template-columns: repeat(2, 1fr); }
  .team-row { grid-template-columns: repeat(2, 1fr); }
}
