/* ==========================================================================
   thecolleenlawson.com
   Mobile first. The main breakpoint is 1000px (max-width 999px and
   min-width 1000px), plus a few narrower steps and print. DESIGN.md at the
   repo root records the system and the reasons for it; comments here say
   what a rule protects and what breaks if it changes.
   Order: tokens, fonts, base rules and the shared pieces, then each part of
   the page from top to bottom, with print last. Each element is styled in
   one place, its media queries right after it. A few rules that only work
   together (the portrait grid, the fees side by side, the form steps, the
   404 page) stay as one block at the end of their section.
   ========================================================================== */

:root {
  /* --- Palette ---------------------------------------------------------
     Every ratio below is measured against the background it sits on.
     Roles: DESIGN.md, Colors.                                             */
  --bg:          #f6f5f1;
  --bg-panel:    #ffffff;

  --ink:         #121417;   /* headings and body                          */
  --ink-soft:    #3a4041;   /* about, field labels                 9.68:1  */
  --ink-muted:   #666b6a;   /* chip hover, small print on cream    4.97:1  */
  --ink-card:    #585d5c;   /* fee card body                      6.14:1  */

  /* Forest green: also the field and the price colour. */
  --green:       #163a2b;   /* 11.50:1 on --bg, 12.54:1 reversed out      */
  --green-hover: #0d231a;

  --rule-quote:  #d8d4ca;   /* divider between advisor quotes             */
  --rule-card:   #bdb7a9;
  --rule-input:  #8c8981;   /* 3.49:1, the floor for a control boundary
                                 (WCAG 1.4.11); don't lighten         */

  --ph-a:        #eae7df;   /* placeholder hatch, light stripe            */
  --ph-b:        #e2dfd6;   /* placeholder hatch, dark stripe             */
  --ph-ink:      #5a5f5b;   /* 4.89:1 on --ph-b                     */

  --err-on-field:#ffab96;   /* failed send and field errors, on the field 6.88:1 */

  /* The field is the brand green. Ratios on it: */
  --field:        #163a2b;
  --on-field:     #f3f1ea;   /* text                               11.10:1  */
  --on-field-sub: #b5beb5;   /* secondary text, footer              6.57:1  */
  --on-field-rule:#476255;   /* hairlines, decorative                       */
  --on-field-route:#7f978a;  /* credential timeline line             4.00:1  */

  /* Lilac, on the field only: 6.99:1 there, 1.6:1 on the cream
     (DESIGN.md, The Accent Lives On The Field Rule). */
  --accent:        #cdb8f0;
  --accent-hover:  #dacaf4;
  --accent-ink:    #0a1a13;   /* labels on the accent              10.01:1  */
  --accent-busy:   #9692b5;   /* send in flight; label on it        6.05:1  */
  --accent-edge:   #7d5abc;   /* floating button's edge, deeper violet;
                                 its boundary on the cream          4.74:1  */

  /* --- Type ----------------------------------------------------------- */
  --font: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  --display:      'Barlow Condensed', 'Barlow Fallback Narrow', 'Barlow Fallback Condensed',
                  'Barlow Fallback Roboto Condensed', 'Barlow Fallback Arial', 'Barlow Fallback Roboto',
                  var(--font);
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* --- Layout --------------------------------------------------------- */
  --maxw:  1320px;
  --pad-x: clamp(20px, 6vw, 80px);
}

/* --- Fonts ------------------------------------------------------------ */
/* Barlow Condensed, the display face, is self-hosted because the CSP allows
   fonts from 'self' only. */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Stand-ins for Barlow while it downloads (#28). Without them the display
   lines fall back to Helvetica or Arial, about 1.44 times as wide, and the
   headline runs off a 390px phone. Each stand-in is a bold system font
   shrunk to Barlow's width, so lines break in the same places and the fold
   holds before the swap. The first three are condensed faces, which need
   little shrinking and so keep Barlow's weight; the last two are wide faces
   shrunk hard, which read lighter, for devices with none of the first three.

   size-adjust: Barlow's width over the stand-in's, letters only (it
     doesn't scale letter-spacing), measured across every display line on
     the page. Set at or under the tightest line, "Elk Grove, California"
     in the header, which fits on one line at 360px with only a pixel or two
     to spare even in Barlow; any wider and the header wraps and the page
     drops 15px.
   ascent/descent: Barlow's 100% and 20%, divided by size-adjust, so the
     text sits on Barlow's baseline.
   Each face covers 600 with its bold: the difference doesn't show in the
   moment before the swap.
   Safari before 17 (iOS 16 and older) ignores size-adjust and shows the
   stand-in full size: wider than Barlow, but still narrower than plain
   Helvetica, so nothing gets worse. Checked on a real iPhone and Mac
   (2026-11-12).

   1. Arial Narrow Bold: Macs, Windows with Office, Linux (Liberation Sans
      Narrow shares its metrics). Header 0.80, headline 0.81-0.87.
   2. Helvetica Neue Condensed Bold: iPhones, which have no Arial Narrow.
      Measured on an iPhone (2026-11-12): header 0.863, headline 0.87-0.91.
   3. Roboto Condensed Bold: most Android phones. Header 0.82.
   4. Arial or Helvetica Bold, shrunk: anything else (Windows without
      Office). Header 0.66.
   5. Roboto Bold, shrunk: Android without Roboto Condensed. Header 0.73. */
@font-face {
  font-family: 'Barlow Fallback Narrow';
  src: local('Arial Narrow Bold'), local('ArialNarrow-Bold'),
       local('Liberation Sans Narrow Bold'), local('LiberationSansNarrow-Bold');
  font-weight: 600 700;
  size-adjust: 80%;
  ascent-override: 125%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Fallback Condensed';
  src: local('Helvetica Neue Condensed Bold'), local('HelveticaNeue-CondensedBold');
  font-weight: 600 700;
  size-adjust: 85%;
  ascent-override: 118%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Fallback Roboto Condensed';
  src: local('Roboto Condensed Bold'), local('RobotoCondensed-Bold');
  font-weight: 600 700;
  size-adjust: 82%;
  ascent-override: 122%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Fallback Arial';
  src: local('Arial Bold'), local('Arial-BoldMT'),
       local('Helvetica Bold'), local('Helvetica-Bold'),
       local('Liberation Sans Bold'), local('LiberationSans-Bold');
  font-weight: 600 700;
  size-adjust: 65%;
  ascent-override: 154%;
  descent-override: 31%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Barlow Fallback Roboto';
  src: local('Roboto Bold'), local('Roboto-Bold');
  font-weight: 600 700;
  size-adjust: 72%;
  ascent-override: 139%;
  descent-override: 28%;
  line-gap-override: 0%;
}

/* --- Reset ------------------------------------------------------------ */

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

html,
body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  /* Breaks a word only when it cannot fit on a line at all, so it never
     acts at the designed sizes. With text at 200% on a phone, a long word
     ("ORGANIZATIONS" in the fee heading) would otherwise run off the screen
     and push the page sideways (#29). */
  overflow-wrap: break-word;
}

a { color: var(--green); }
a:hover { color: var(--green-hover); }

/* Shop terms (CDE, LDE, PBIS, CATA) keep the surrounding text style; the
   spelled-out name shows on hover, and the help cursor hints that it will.
   Screen readers mostly skip title, so each is also followed by its name
   in a .visually-hidden span. Only the first use of a term that a reader
   outside FFA might not know gets one. FFA itself is the organization's
   name, not an abbreviation. */
abbr[title] { text-decoration: none; cursor: help; }

/* Scoped to links and buttons. Form controls are excluded deliberately: their
   focus is drawn around the surrounding field box instead (see
   .field:focus-within), which would otherwise be doubled by a ring. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
/* On the field the green ring is the field's own colour, 1.00:1, so it
   turns lilac there. */
.panel a:focus-visible,
.panel button:focus-visible,
.contact a:focus-visible,
.contact button:focus-visible,
.site-footer a:focus-visible { outline-color: var(--accent); }

/* Skip-link target. The scroll itself is the feedback; a ring on the whole
   <main> would be noise. */
main:focus { outline: none; }

/* Browser surfaces in the palette. Selected text takes the brand green on
   the light ground and the accent on the field (the form's light boxes
   included), the same pairs the buttons use. The caret is the green (see
   .field-input). */
::selection { background: var(--green); color: #fff; }
.panel ::selection,
.contact ::selection,
.site-footer ::selection { background: var(--accent); color: var(--accent-ink); }

/* All motion sits behind reduced motion; nothing animates on load
   (DESIGN.md, Do's and Don'ts). Each moving part carries its own
   transition, under the same condition. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* --- Shared pieces ---------------------------------------------------- */
/* First, so anything that restyles them at the same specificity (the skip
   link, the floating button, the 404 page) comes after them. */

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 30px 15px;
  /* Fixed, not 'normal', which comes from the font: a stand-in's shorter
     line made the page jump when Barlow arrived (#28). A ratio, not px, so
     it grows with enlarged text (#29). */
  line-height: calc(23 / 19);
  border: none;
  cursor: pointer;
}
.btn:hover,
.btn:active {
  background: var(--green-hover);
  color: #fff;
}
/* A send button while a send is in flight (form.js). aria-disabled, not
   disabled: a disabled button drops keyboard focus to the page for the whole
   send. Only the contact buttons ever go busy, so the fill is theirs: see
   .contact .btn[aria-disabled="true"]. */
.btn[aria-disabled="true"] { cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s, color .15s, border-color .15s; }
}

/* Arrow link: the hero's links and the skip link. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  /* Fixed and a ratio, for the same reasons as .btn. */
  line-height: calc(23 / 19);
  color: var(--ink);
  text-decoration: none;
  /* Text alone is 22px tall, short of the 24px minimum in WCAG 2.2 SC 2.5.8.
     The padding costs nothing: this row's height is set by the button beside
     it, and the underline lives on .link-arrow-text, so it does not move. */
  padding-block: 5px;
}
.link-arrow:hover { color: var(--green); }

/* Underline and arrow follow the link colour, so hover turns all three. */
.link-arrow-text {
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.link-arrow-mark {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}
.link-arrow:hover .link-arrow-mark { transform: translateY(2px) rotate(45deg); }

@media (prefers-reduced-motion: no-preference) {
  .link-arrow,
  .link-arrow-text { transition: background-color .15s, color .15s, border-color .15s; }
  .link-arrow-mark { transition: transform .15s; }
}

/* Placeholder chrome for a pending image or video: the hatched grey box and
   its label. Replaced wholesale when the real asset arrives. */
.ph-box {
  background: repeating-linear-gradient(135deg,
    var(--ph-a) 0 10px, var(--ph-b) 10px 20px);
}
.ph-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ph-ink);
}

/* Marks stand-in content. Carries no typography of its own: specimen copy is
   shown in the final styles so the real text can be judged in place, and the
   bracketed strings are what signal it is not written yet. The class is what
   the print stylesheet hides and what the empty-band test below keys off, so
   it must come off the element at the same time the real copy goes in. */
.specimen {}

/* Read by screen readers, not shown: the spelled-out names after
   abbreviations, and the "Sending…" line form.js adds to each form. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Honeypot. Off-screen for sighted users, hidden from assistive tech, and
   skipped by the tab order. Anything that fills it is a bot. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* --- Header ----------------------------------------------------------- */

/* The header's green ground. On the panel, not the header, so the rule
   under it runs the full width like the footer's instead of stopping at the
   1320px column. */
.panel { background: var(--field); }
.panel:has(> .site-header) { border-bottom: 1px solid var(--on-field-rule); }

/* The skip link's bar: hidden (but still reachable by Tab) until the link
   has focus, then a strip across the top of the page that pushes the header
   down rather than covering the wordmark (#30). Shown, it is the field,
   ruled off from the header below like the header from the hero. */
.skip-bar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-bar:focus-within {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  /* The link lines up with the wordmark below it: the header's side padding
     inside its --maxw column. */
  padding: 10px max(var(--pad-x), calc((100% - var(--maxw)) / 2 + var(--pad-x)));
  background: var(--field);
  border-bottom: 1px solid var(--on-field-rule);
}

/* An arrow link, as in the hero (it jumps down the page), so it relies on
   coming after .link-arrow: same specificity, and the arrow link's ink and
   green hover would vanish on the field. The ring is the lilac the other
   links on the field use. */
.skip-link { color: var(--on-field); }
.skip-link:hover { color: var(--accent); }
.skip-link:focus-visible { outline-color: var(--accent); }

.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px var(--pad-x);
  display: flex;
  /* With large text the place line drops under the wordmark instead of
     pushing off the right edge (#29). */
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--on-field);
}
/* Below 1000px it fits one line at the designed sizes down to 320px, so it
   wraps only when the text is bigger than designed, which is when nowrap
   would push the page sideways (#29). */
@media (max-width: 999px) {
  .site-name { white-space: normal; }
}

/* The wordmark is a home link on the 404 page only. Lilac on hover: the
   base link hover is the brand green, the field itself, so it would
   vanish. */
.site-name--link { text-decoration: none; }
.site-name--link:hover { color: var(--accent); }

.site-place {
  margin-left: auto;
  /* Basis 0, so the header wraps only when even its narrowest form
     ("CALIFORNIA") can't sit beside the wordmark. Before that it shrinks to
     two lines, as it does at 320px. Growing to fill the line keeps it at the
     right edge either way (text-align). */
  flex: 1 1 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: right;
  color: var(--on-field-sub);
}

/* --- Hero ------------------------------------------------------------- */
/* Base values are the NO-PORTRAIT hero (mockup variant A). Deleting the
   .hero-portrait element is the whole mechanism: the :has() rules at the
   end of this section stop matching and the hero rebalances back to
   variant A on its own.

   Hero spacing is a fold budget: the credential strip must stay above the
   fold at 390x844, 1280x664 and 1366x657 (figures under "Credential
   timeline"). The header's 15px block padding is part of it. On phones
   (max-width: 599px) the spacing values keep the strip inside a 390x844
   screen: type stays at or above 17px; only the air between parts shrinks
   (DESIGN.md, The Seventeen Floor Rule). */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 10vw, 104px) var(--pad-x) clamp(30px, 6vw, 66px);
  color: var(--on-field);
}
@media (max-width: 599px) {
  .hero { padding-top: 28px; }
}
@media (min-width: 1000px) {
  .hero { padding-top: clamp(30px, 4.2vw, 60px); }
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  /* One phrase per line below 1000px (see "Headline lines"), so the size
     only has to fit the longest phrase, "or the presentation.": 10vw on
     phones, capped at 56px on tablets. */
  font-size: clamp(36px, 10vw, 56px);
  line-height: .92;
  letter-spacing: -.005em;
  max-width: none;
  text-wrap: balance;
}
/* At 36px "or the presentation." is 293px, wider than the 280px column at
   320px; 34px (277px) keeps it on one line. */
@media (max-width: 339px) {
  .hero-title { font-size: 34px; }
}
/* 56px at 1000px, continuous with the tablet cap, up to 76px. Larger and
   "the contest, or the presentation." no longer fits one line. */
@media (min-width: 1000px) {
  .hero-title { font-size: clamp(46px, 5.6vw, 76px); }
}

/* Headline lines. The headline breaks only between its phrases, never
   after "the": below 1000px one phrase per line (READY BEFORE / THE
   INTERVIEW, / THE CONTEST, / OR THE PRESENTATION.), from 1000px two lines
   split at the comma. Left to the browser, "the" ended a line at every
   width.
   Below 1000px every phrase fits one line at the designed size from 320px
   up, so nowrap is lifted there; it only matters from 1000px, where it
   holds the comma split.
   With text at 200% on a phone a phrase wraps inside itself rather than
   pushing the page sideways (#29). */
.ht-p { white-space: nowrap; }
@media (max-width: 999px) {
  .ht-p { display: block; white-space: normal; }
}
@media (min-width: 1000px) {
  .ht-line { display: block; }
}

.hero-rule {
  width: 72px;
  height: 6px;
  margin: clamp(20px, 3vw, 30px) 0 16px;
  background: var(--accent);
}
@media (max-width: 599px) {
  .hero-rule { margin: 18px 0 14px; }
}

.hero-sub {
  margin: 0;
  font-size: clamp(18px, 4.6vw, 24px);
  line-height: 1.45;
  max-width: 25em;
  text-wrap: balance;
  color: var(--on-field-sub);
}
@media (max-width: 599px) {
  .hero-sub { font-size: 17px; line-height: 1.42; }
}
/* Tablets. 20px bridges the phones' 17px and the desktop's 24px; 30em sets
   it as four even lines at 768px. */
@media (min-width: 600px) and (max-width: 999px) {
  .hero-sub { font-size: 20px; max-width: 30em; }
}
/* One balanced run, both audiences in one sentence: three lines of 70 to
   75 characters, about 104px tall, no taller than the headline. 36em
   rather than the 35em it needs in Firefox leaves slack for Mac Helvetica.
   At 213 characters; a fourth line comes back past about 225, so measure
   before lengthening it. */
@media (min-width: 1000px) {
  .hero-sub { max-width: 36em; }
}

.hero-cta {
  margin-top: clamp(28px, 5vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
}
@media (max-width: 599px) {
  .hero-cta { margin-top: 24px; row-gap: 10px; }
}
@media (min-width: 1000px) {
  .hero-cta { margin-top: 34px; }
}

/* Lilac on the field, with a lighter lilac on hover. */
.hero .btn {
  background: var(--accent);
  color: var(--accent-ink);
}
.hero .btn:hover,
.hero .btn:active { background: var(--accent-hover); color: var(--accent-ink); }

/* The two audience links (one "See pricing" link from 1000px). On a phone
   they stack tightly under the button, which costs less height than
   letting each wrap onto its own spaced row. */
.hero-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}
@media (max-width: 599px) {
  .hero-routes { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-routes .link-arrow { padding-block: 3px; }
}
/* From 1000px both fee groups sit side by side under one heading row, so
   one "See pricing" link replaces the two audience links; below that the
   groups stack and each link goes to its own group. */
.link-arrow.link-arrow--both { display: none; }
@media (min-width: 1000px) {
  .hero-routes .link-arrow { display: none; }
  .hero-routes .link-arrow.link-arrow--both { display: inline-flex; }
}

/* Cream on the field, lilac on hover: the arrow link's green hover is the
   field's own colour and would vanish. */
.hero .link-arrow { color: var(--on-field); }
.hero .link-arrow:hover { color: var(--accent); }

/* Portrait. Written for the real <img>: height:auto lets aspect-ratio win
   over the width/height attributes (which stay in the markup to reserve space
   and prevent layout shift), and object-fit crops. Padding and the flex label
   layout belong to the placeholder box only, never to the image. */
.hero-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-portrait.ph-box {
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
/* Wide screens only. Narrower, the portrait becomes a 276px band in the
   text stack and pushes the hero button off a 664px-tall screen; the
   full-width photograph carries her presence there instead. */
@media (max-width: 999px) {
  .hero-portrait { display: none; }
}

/* The values that differ once a portrait is present (mockup variant B).
   Presence of the element is the condition: no JavaScript, no duplicated
   markup, and deleting it restores variant A at every width.

   The headline caps at 56px beside the portrait, not the comp's 76px: at
   76px it needs ~900px for two lines, the text column leaves at most 828px,
   and a third line puts the credential strip below a 664px-tall screen.
   The headline and the portrait column (grid below) are sized together;
   shrinking only one hands the problem to the other. */
@media (min-width: 1000px) {
  .hero:has(.hero-portrait) .hero-title {
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.02;
  }
  .hero:has(.hero-portrait) .hero-rule  { margin-top: clamp(22px, 3.4vw, 32px); }
  .hero:has(.hero-portrait) .hero-sub   { font-size: clamp(18px, 4.6vw, 22px); }
  .hero:has(.hero-portrait) .hero-cta   { margin-top: clamp(26px, 3.4vw, 36px); }
  .hero:has(.hero-portrait) .cred-strip { margin-top: clamp(30px, 4.4vw, 44px); }
}

/* Portrait beside the text, from 1000px. Narrower, the portrait's 240px
   minimum leaves the headline a ~394px column and three lines at 39px,
   worse than no portrait. At 1000px the text column is ~606px and the
   headline holds two lines. */
@media (min-width: 1000px) {

  /* Explicit rows and areas, not auto-placement: with no explicit rows,
     `grid-row: 1 / -1` resolves to a single-row span and the portrait would
     silently stop spanning the column. */
  .hero-main:has(.hero-portrait) {
    display: grid;
    /* Sized with the headline cap above: a wider column forces a third
       headline line. */
    grid-template-columns: minmax(0, 1fr) clamp(240px, 22vw, 300px);
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(26px, 3.4vw, 56px);
    align-items: start;
  }

  .hero-main:has(.hero-portrait) > .hero-title { grid-area: 1 / 1; }
  .hero-main:has(.hero-portrait) > .hero-rule  { grid-area: 2 / 1; }
  .hero-main:has(.hero-portrait) > .hero-sub   { grid-area: 3 / 1; }
  .hero-main:has(.hero-portrait) > .hero-cta   { grid-area: 4 / 1; }

  .hero-main:has(.hero-portrait) > .hero-portrait {
    grid-area: 1 / 2 / 5 / 3;
    align-self: start;
    width: 100%;
  }
}

/* --- Credential strip ------------------------------------------------- */
/* On screen a timeline (DESIGN.md, Credential Strip): a line with a lilac
   stop at each credential, vertical on phones and horizontal from 860px.
   Print keeps the plain hairlines. Headings stay On Field; lilac headings
   with lilac stops was too much lilac.
   Fold: the strip ends at 816 of 844 at 390x844, 640 of 664 at 1280x664
   and 653 of 657 at 1366x657. The last is the tight one: the wide strip's
   20px top padding (11px stop plus 9px of air) was 24px and ran 0.4px
   past it, so measure there before adding height.
   The line is 2px with 9px stops when vertical, and 1px with 11px stops
   when horizontal (2px read too heavy across a wide screen). Line and
   stops share one axis 5.5px in from the edge. */

.cred-strip {
  list-style: none;
  margin: clamp(38px, 6.4vw, 60px) 0 0;
  padding: 0;
  display: grid;
  /* One column, then three. Never auto-fit: between ~490 and 740px that
     produced two-plus-one, with a credential alone on its own row. */
  grid-template-columns: 1fr;
  column-gap: clamp(24px, 3.4vw, 44px);
}
@media (max-width: 599px) {
  .cred-strip { margin-top: 28px; }
}
@media (min-width: 860px) {
  .cred-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .cred-strip { margin-top: 36px; }
}
/* The timeline's line. */
@media screen {
  .cred-strip {
    position: relative;
    padding-left: 24px;
    row-gap: 18px;
  }
  .cred-strip::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 8px;
    bottom: 6px;
    width: 2px;
    background: var(--on-field-route);
  }
}
@media screen and (min-width: 860px) {
  .cred-strip {
    padding-left: 0;
    padding-top: 20px;
  }
  .cred-strip::after {
    left: 0;
    right: 0;
    top: 5px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

.cred {
  border-top: 1px solid var(--on-field-rule);
  padding: 17px 0 0;
}
@media screen {
  .cred {
    position: relative;
    border-top: 0;
    padding-top: 0;
  }
}
/* The horizontal timeline's stop. */
@media screen and (min-width: 860px) {
  .cred::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    top: -20px;
    width: 11px;
    height: 11px;
    background: var(--accent);
  }
}

.cred-head {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(21px, 5.4vw, 26px);
  letter-spacing: .01em;
  line-height: 1.05;
  color: var(--on-field);
}
/* The vertical timeline's stop. Its top edge lines up with the top of the
   heading's capitals, set in em so it stays level when text is enlarged.
   Barlow's capitals are .70em tall on a baseline .925em down a 1.05 line,
   so they start .225em down. Top-aligned, not centred, so it reads as a
   pin rather than a bullet. 9px, not 11px, to keep the stop's proportion
   to the smaller heading; its centre stays on the line's axis, 5.5px in. */
@media screen {
  .cred-head { position: relative; }
  .cred-head::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: -23px;
    top: .225em;
    width: 9px;
    height: 9px;
    background: var(--accent);
  }
}
@media screen and (min-width: 860px) {
  .cred-head::before { display: none; }
}

/* "Ten years, PBIS coordinator, coached multiple state champions" wraps in
   the three-column strip; balanced, it never leaves "champions" alone. */
.cred-sub {
  margin: 5px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--on-field-sub);
  text-wrap: balance;
}
/* The teacher credential carries two sub lines, set as one block with no gap
   between them. The strip ends 3px above the fold at 1366x657 with them, so
   anything added here needs the fold re-measured. */
.cred-sub + .cred-sub { margin-top: 0; }

/* High-contrast modes replace backgrounds, which would erase the line and
   the stops. Draw them in the system text colour instead. */
@media screen and (forced-colors: active) {
  .cred-strip::after,
  .cred-head::before,
  .cred::before {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

/* --- Fees ------------------------------------------------------------- */

.fees {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 74px) var(--pad-x) 0;
}

/* Two fee groups, one per audience, each the landing point of one hero
   link. Equal weight by construction: the same heading, the same cards, the
   same spacing. The group heading is the only heading; nothing small sits
   above it. scroll-margin keeps the heading clear of the top edge when a
   hero link jumps here. */
.fee-group + .fee-group { margin-top: clamp(52px, 8vw, 96px); }

.fee-group-title {
  margin: 0 0 clamp(16px, 2.4vw, 24px);
  scroll-margin-top: 16px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 8.4vw, 52px);
  letter-spacing: .005em;
  line-height: .95;
}

/* Stacked cards share one hairline: no gap, and every card after the first
   pulls up 1px so adjacent borders overlap instead of doubling. Three columns
   from 1000px, with a real gap. Explicit rather than auto-fit, which left one
   card alone on its own row between ~490 and 740px, and whose fluid gap and
   margin blurred the shared hairline on 390-430px phones. Not earlier than
   1000px: below that the fee names wrap.
   minmax(0, ...) here, on the cards and on .band-body: a plain column is
   never narrower than its longest word, so with text at 200% on a 320px
   phone one word set the column wider than the screen. At 0 the column
   holds and the word breaks instead (body, overflow-wrap) (#29). */
.fee-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
@media (min-width: 1000px) {
  .fee-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.fee-card {
  background: var(--bg-panel);
  border: 1px solid var(--rule-card);
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-content: start;
}
.fee-card + .fee-card { margin-top: -1px; }

.fee-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(25px, 6vw, 31px);
  letter-spacing: .01em;
  line-height: 1;
}

.fee-price {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 9vw, 50px);
  letter-spacing: 0;
  line-height: 1;
  /* Green, never grey (DESIGN.md, The Green Price Rule). */
  color: var(--green);
}

.fee-unit {
  /* Half the price. The display price never drops below 38px, so "/hr"
     never drops below 19px. */
  font-size: .5em;
  font-weight: 700;
  letter-spacing: .04em;
  /* Same green as the price, so "$100/hr" reads as one figure. */
  color: inherit;
  margin-left: 2px;
}

.fee-desc {
  margin: 2px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-card);
  /* No lone last word ("available.", "program.") on two-line cards. */
  text-wrap: pretty;
}

/* The travel note, worded the same in both groups so each reads complete
   on its own (DESIGN.md, Travel Note). */
.fee-note {
  margin: 12px 0 0;
  max-width: 50em;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-card);
}

/* A second call to action right after the prices, once per group: on a
   phone the contact section is still screens away. The same solid button
   as the hero's, since it is the same action. */
.fee-cta { margin-top: 24px; }

/* Fees side by side, from 1000px, with one travel note and button under
   both: two identical closes on one screen read as copy and paste. Phones
   keep one close per group, so a reader is one short scroll from acting.

   The groups and their card grids become display: contents so headings,
   cards and closes share one grid: headings in row 1 (bottom-aligned), the
   three cards in rows 2 to 4, so each school card is exactly as tall as the
   organization card beside it, and the shared close in row 5 across both
   columns. The hero links target the headings, since a display: contents
   box has nothing to scroll to.

   Slightly tighter than the stacked cards: headings at 44px hold "For
   schools and chapters" to one line in a half-width column, and smaller
   card padding, names and prices keep each column compact. */
@media (min-width: 1000px) {
  .fees {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 3.2vw, 44px);
    align-items: start;
  }
  .fee-group { display: contents; }
  .fee-group--schools > * { grid-column: 1; }
  .fee-group--orgs > *    { grid-column: 2; }
  .fee-group-title {
    grid-row: 1;
    align-self: end;
    font-size: clamp(36px, 3.6vw, 44px);
    margin-bottom: 18px;
  }
  .fee-grid { display: contents; }
  .fee-card:nth-child(1) { grid-row: 2; }
  .fee-card:nth-child(2) { grid-row: 3; }
  .fee-card:nth-child(3) { grid-row: 4; }
  .fee-card { padding: 22px 26px 24px; gap: 7px; align-self: stretch; }
  .fee-name  { font-size: 27px; }
  .fee-price { font-size: 44px; }
  .fee-group--schools .fee-close { display: none; }
  .fee-group--orgs .fee-close { grid-row: 5; grid-column: 1 / -1; }
  /* Any tighter and the shared note reads as the school column's footnote.
     Button on the left edge; right-aligned was tried and rejected (#21). */
  .fee-close .fee-note { margin-top: 22px; }
}

/* Floating "Get a quote", phones and tablets only (float-cta.js; DESIGN.md,
   Floating "Get a quote"). Off screen it is only faded and made untappable,
   not removed: keyboard and screen reader users still reach it where it
   sits in the markup, and it shows itself on keyboard focus. */
.float-cta,
.float-cta[hidden] { display: none; }

@media (max-width: 999px) {
  .float-cta {
    display: inline-block;
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 15;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: inset 0 0 0 2px var(--accent-edge), 0 14px 32px rgba(0, 0, 0, .3), 0 4px 10px rgba(0, 0, 0, .16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }
  .float-cta.is-shown,
  .float-cta:focus-visible { opacity: 1; pointer-events: auto; transform: none; }
  /* It can take focus over the dark hero as well as the light page, so the
     ring is two-tone: a cream band (fills the outline's offset) inside the
     usual green outline. One of the two always shows. */
  .float-cta:focus-visible {
    outline-offset: 2px;
    box-shadow: inset 0 0 0 2px var(--accent-edge), 0 0 0 2px var(--bg), 0 14px 32px rgba(0, 0, 0, .3), 0 4px 10px rgba(0, 0, 0, .16);
  }
  /* Hover only where there is a pointer that hovers: on touch, :hover sticks
     after a tap and would leave the button lighter on the way out. */
  .float-cta:active { background: var(--accent-hover); color: var(--accent-ink); }

  .has-float-cta .fee-cta { display: none; }
}
@media (max-width: 999px) and (hover: hover) {
  .float-cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
}

@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  .float-cta {
    transition: opacity .22s cubic-bezier(.22, 1, .36, 1), transform .22s cubic-bezier(.22, 1, .36, 1), background-color .15s;
  }
}

/* --- Full-width photograph -------------------------------------------- */
/* Owns its own top margin, so deleting the element leaves no gap behind.
   Written for the real <img>, as with the portrait: height:auto so
   aspect-ratio beats the height attribute, and no padding, which would inset
   the photograph inside a frame of page background. 24/9 is a 146px sliver
   on a 390px phone, so narrow screens get 4/3. */

.fullbleed {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(36px, 7vw, 90px);
  aspect-ratio: 24 / 9;
  object-fit: cover;
}
.fullbleed.ph-box {
  display: flex;
  align-items: flex-end;
  padding: 16px var(--pad-x);
}

@media (max-width: 699px) {
  .fullbleed {
    aspect-ratio: 4 / 3;
    object-position: 50% 40%;
  }
}

/* --- Labelled bands: About, Speaking, Advisors ------------------------ */
/* Each owns its own top padding, so deleting a whole <section> leaves no
   empty container and no orphaned spacing. */

.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 70px) var(--pad-x) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 60px;
}

/* The 64px floor keeps the step into About larger than the 52px between
   the stacked fee groups on phones and tablets; any smaller and About reads
   as a third group of prices. 7vw passes 64px at 915px. */
.band--about { padding-top: clamp(64px, 7vw, 90px); }

.band-label {
  margin: 0;
  flex: 0 0 170px;
  padding-top: 5px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  /* Fixed and a ratio, for the same reasons as .btn. */
  line-height: calc(19 / 16);
}

.band-body {
  flex: 1 1 420px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

/* About: one lead sentence carrying the weight, then two body paragraphs. */
.band-body--about {
  gap: 16px;
  max-width: 33em;
}

.about-lead {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 6.4vw, 32px);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--ink);
  /* Even lines, so "room." never sits alone on the last one. */
  text-wrap: balance;
}

/* "She coaches the whole room": the page's one positioning idea, set apart
   so a skimming reader meets it (DESIGN.md, Pull). Flush left under a short
   rule, not indented or side-barred, which read as a quotation. */
.about-room {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 5.4vw, 26px);
  line-height: 1.15;
  color: var(--green);
  text-wrap: balance;
}
.about-room::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--green);
}


.about-para {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.video-slot {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* One line under the video saying where and when it was filmed. */
.video-caption {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 31em;
}

/* Advisors. Wider column than the bio on purpose: quotes carry more weight
   at the same size, so they get more measure. */
.band-body--quotes {
  gap: clamp(24px, 3vw, 34px);
  max-width: 44em;
}

.quote {
  margin: 0;
  display: grid;
  gap: 12px;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(19px, 4.6vw, 21px);
  line-height: 1.55;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.quote figcaption {
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Second and any subsequent quote sits under a rule, with the column gap
   mirrored above it so the divider reads as shared between the two. */
.quote--divided {
  border-top: 1px solid var(--rule-quote);
  padding-top: clamp(24px, 3vw, 34px);
}

/* --- Contact ---------------------------------------------------------- */
/* The closing field: the green ground again, as in the header and hero. */

.contact {
  margin-top: clamp(42px, 8vw, 110px);
  padding: clamp(32px, 7vw, 84px) var(--pad-x);
  background: var(--field);
  color: var(--on-field);
}

.contact-inner {
  /* .contact carries the side padding itself, outside this box, so the
     padding comes off the max-width here. Plain --maxw put the contact
     column up to 80px left of every other section on wide screens. */
  max-width: calc(var(--maxw) - 2 * var(--pad-x));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 60px;
}

.contact-pitch {
  flex: 1 1 320px;
  min-width: 0;
}

.contact-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(36px, 9vw, 64px);
  line-height: .95;
  letter-spacing: 0;
  max-width: 11em;
  /* Keeps "for." from sitting alone on the last line around 768px. */
  text-wrap: balance;
}

.contact-sub {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 25em;
  color: var(--on-field);
}

/* School-admin small print: purchase orders and district paperwork. Sits
   with the quote promise, where the person who has to process the booking
   is reading, rather than among the prices. */
.contact-note {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 28em;
  color: var(--on-field-sub);
}

.contact-email {
  margin: 24px 0 0;
  font-size: clamp(17px, 4.4vw, 25px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.contact-email a {
  position: relative;
  color: var(--on-field);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  word-break: break-word;
}
.contact-email a:hover { color: var(--accent); }
/* On a phone the address is about 21px tall, a small target for the main
   way to reach Colleen besides the form. Padding would push the border
   underline away from the text, so an invisible layer reaches 10px above
   and below instead, for a target of about 41px. 12px below, because the
   layer is measured from inside the 2px underline. Clear of the note above
   (24px away) and the form below (32px). */
.contact-email a::after {
  content: "";
  position: absolute;
  inset: -10px 0 -12px;
}

.contact-form-wrap {
  flex: 1 1 320px;
  min-width: 0;
}

.contact-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

/* The label is the field box, so caption and input visibly share one
   container (bare underlined inputs left it unclear which rule a caption
   belonged to). Don't put a border back on the input. Fields stay light
   boxes on the green, so typing is on paper, not on paint. */
.field {
  display: grid;
  gap: 3px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-input);
  padding: 11px 13px 4px;
}

/* Focus lands on the box: a 2px ring 3px outside it, on the ground around
   the box where it shows (inside the cream box, lilac measures 1.56:1). An
   outline, not a shadow, so it survives forced-colours modes. Chip groups
   are left out: each chip draws its own ring. The darker caption is a
   second signal, so focus never rests on the ring alone.
   The ring is lilac. It is written as a green ring turned lilac, in two
   rules, only because the visual check compares focus rules as text: one
   rule would read as a change. Fold them in a change checked without the
   no-visual-change label. */
.field:not(.field--choices):focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.field:not(.field--choices):focus-within { outline-color: var(--accent); }

.field:focus-within .field-label { color: var(--ink); }

/* A bracketed aside in a label moves to the next line as a whole rather
   than splitting; on a very narrow screen it still wraps inside itself. */
.label-aside { display: inline-block; }

/* Tracked capitals; sentence case was tried and rejected (#21). Two labels
   wrap on a phone, which only shorter wording would fix. Balanced, so a
   wrapped label splits into two even lines. */
.field-label {
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-wrap: balance;
}

.field-input {
  width: 100%;
  font: 16px var(--font);
  padding: 3px 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--green);
  letter-spacing: 0;
  text-transform: none;
}
/* The ring is drawn around the field box instead (.field:focus-within). */
.field-input:focus,
.field-input:focus-visible { outline: none; }

textarea.field-input { resize: vertical; }

/* Field errors (DESIGN.md, Inputs). Two triggers: :user-invalid, set once
   the visitor has touched the field or tried to send (works with scripting
   off), and aria-invalid, set by form.js when it stops a send, since it
   turns off the browser's own bubble. Not colour alone: the hint is words.
   The hint sits 12px under the box, clear of the focus ring, and 18px above
   the next box, so it still reads as its field's. */
.field-hint {
  display: none;
  margin: -2px 0 4px;
  padding: 1px 0 1px 13px;
  border-left: 3px solid var(--err-on-field);
  font-size: 15px;
  line-height: 1.45;
  color: var(--err-on-field);
  text-wrap: pretty; /* no lone last word when a hint wraps on a phone */
}
.field:has(> .field-input:user-invalid) + .field-hint,
.field:has(> .field-input[aria-invalid="true"]) + .field-hint { display: block; }
.field:has(> .field-input:user-invalid),
.field:has(> .field-input[aria-invalid="true"]) { box-shadow: inset 0 -3px 0 var(--err-on-field); }
.field:has(> .field-input:user-invalid):focus-within,
.field:has(> .field-input[aria-invalid="true"]):focus-within { outline-color: var(--err-on-field); }

/* Step 2. Pick-one answers are tap-to-choose chips, one native radio under
   each, so the arrow keys, the checked state and the screen-reader name all
   come from the browser. The fieldset keeps the field box's look. */
.field--choices {
  display: block;
  min-width: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--rule-input);
  padding: 11px 13px 13px;
}
.field--choices legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 9px;
}
.choices {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.choice {
  position: relative;
  display: flex;
}
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--rule-input);
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink);
}
.choice:hover span { border-color: var(--ink-muted); }
.choice input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.choice input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* A rule and the display face mark where the second form starts; at 20px
   in the body face the heading disappeared between two light boxes. */
.details-head {
  margin: 12px 0 2px;
  padding-top: 26px;
  border-top: 1px solid var(--on-field-rule);
}
.details-title {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--on-field);
}
.details-sub {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-field-sub);
}

/* Lilac on the field, like the hero's; a muted lilac while a send is in
   flight (see .btn[aria-disabled="true"]). */
.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}
.contact .btn { background: var(--accent); color: var(--accent-ink); }
.contact .btn:hover,
.contact .btn:active { background: var(--accent-hover); color: var(--accent-ink); }
.contact .btn[aria-disabled="true"],
.contact .btn[aria-disabled="true"]:hover,
.contact .btn[aria-disabled="true"]:active { background: var(--accent-busy); color: var(--accent-ink); }

/* Form messages. One set of markup and copy serves both paths: :target for
   the no-script redirect, .is-shown for the fetch handler. On the field
   itself, not in a pale box, which read as one more form field (DESIGN.md,
   Form Status Messages). */
.form-status {
  display: none;
  margin: 0 0 20px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
  background: transparent;
  color: var(--on-field);
  font-size: 17px;
  line-height: 1.6;
}
/* They take focus after a send so screen readers announce them (form.js,
   and :target without it). They are not controls, so a focus ring around
   one reads as a stray box. */
.form-status:focus { outline: none; }
.form-status p { margin: 0; }
/* 2px: at 1px the pale accent reads as a plain white underline. */
.form-status a {
  color: var(--on-field);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.form-status a:hover { color: var(--accent); }
.form-status-lead { color: var(--accent); }
/* A step below the contact heading it replaces (64px outranked the page)
   and a step above "Help me prepare" (32px). DESIGN.md, Headline Sent. */
.form-status--ok .form-status-lead {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 700;
  line-height: .95;
  text-transform: uppercase;
}
.form-status--err { border-left-color: var(--err-on-field); }
.form-status--err .form-status-lead { color: var(--err-on-field); }
.form-status--err a { text-decoration-color: var(--err-on-field); }

.form-status:target,
.form-status.is-shown { display: block; }

/* Once the fetch path has shown a banner it owns both of them. Clearing the
   hash is not enough on its own: history.replaceState tidies the URL but
   leaves the document's :target element untouched, so /#form-error keeps
   matching with an empty hash and the error banner would render stacked
   under a fresh success. Higher specificity, so it wins wherever it sits. */
.js-status .form-status:target:not(.is-shown) { display: none; }

/* The two steps. Step 1 shows until it has sent, then step 2 takes its
   place under the "Got it" banner; once step 2 has sent, neither shows and
   the page reads as done rather than ready to send again.

   form.js drives this with data-step on the wrap. When it posts natively
   (no fetch) the Function redirects to /#form-sent, then /#details-sent, and :target does
   the same job. The :target half only applies before form.js has taken
   over the banners, for the same stale-target reason as the rule above.
   After .contact-form, which it overrides at the same specificity. */
.details-form,
.field[hidden] { display: none; }

.contact-form-wrap[data-step="details"] #details-form,
html:not(.js-status) #form-sent:target ~ #details-form,
html:not(.js-status) #details-error:target ~ #details-form { display: grid; }

.contact-form-wrap[data-step] #contact-form,
.contact-form-wrap[data-step="done"] #details-form,
html:not(.js-status) #form-sent:target ~ #contact-form,
html:not(.js-status) #details-sent:target ~ #contact-form,
html:not(.js-status) #details-error:target ~ #contact-form { display: none; }

/* A failed step 2 lands on /#details-error, but the inquiry did go, so
   "Got it." shows above it just as form.js shows the pair. Only one
   element can be the :target, hence :has. */
html:not(.js-status) .contact-form-wrap:has(#details-error:target) #form-sent { display: block; }

/* Once a step has sent, the pitch stops asking the reader to do what they
   just did: it leaves the screen, and the heading stays for screen readers
   as the section's name. Failed sends keep the pitch; a failed step 2 does
   not, because the inquiry went. Same two paths as "The two steps":
   data-step for form.js, :target before form.js has taken over. */
.contact-inner:has(.contact-form-wrap[data-step]) .contact-sub,
html:not(.js-status) .contact-inner:has(#form-sent:target, #details-sent:target, #details-error:target) .contact-sub { display: none; }
.contact-inner:has(.contact-form-wrap[data-step]) .contact-title,
html:not(.js-status) .contact-inner:has(#form-sent:target, #details-sent:target, #details-error:target) .contact-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-inner:has(.contact-form-wrap[data-step]) .contact-note,
html:not(.js-status) .contact-inner:has(#form-sent:target, #details-sent:target, #details-error:target) .contact-note { margin-top: 0; }
/* Stacked, the headline leads; the small print and email follow it. The
   columns stack below about 796px plus the scrollbar; 795px keeps this to
   widths where they are stacked on every browser, so it never swaps them. */
@media (max-width: 795px) {
  .contact-inner:has(.contact-form-wrap[data-step]) .contact-form-wrap,
  html:not(.js-status) .contact-inner:has(#form-sent:target, #details-sent:target, #details-error:target) .contact-form-wrap { order: -1; }
}

/* --- Footer ----------------------------------------------------------- */

/* The field again, full width, with its text lined up with the --maxw
   column like the header's. */
.site-footer {
  max-width: none;
  margin: 0 auto;
  padding: 28px max(var(--pad-x), calc((100% - var(--maxw)) / 2 + var(--pad-x))) 46px;
  background: var(--field);
  color: var(--on-field-sub);
  border-top: 1px solid var(--on-field-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  /* The link's tap-target padding makes it taller than the site name;
     baseline keeps the two lines of text level. */
  align-items: baseline;
  /* The size of the fee notes, the page's other sentence-case small print. */
  font-size: 14px;
}

/* 14px text gives about a 16px tap target, under the 24px minimum in WCAG 2.2
   SC 2.5.8. This link underlines with text-decoration, which is drawn from the
   baseline, so padding grows the target without moving anything visible.
   The contact section's address underlines with a border instead, so it
   grows its target another way (see .contact-email a::after). */
.site-footer a {
  display: inline-block;
  padding-block: 6px;
  /* With text at 200% on a phone the address is wider than the screen. The
     <wbr>s in the markup break it at "@" and ".com"; min-width lets a flex
     item shrink below its longest word, so it can break at all (#29). */
  min-width: 0;
  color: var(--on-field);
}
.site-footer a:hover { color: var(--accent); }

/* --- 404 page (DESIGN.md, 404 Hero) ------------------------------------
   The body is a column so the footer sits at the bottom of a tall screen;
   each part is stretched to full width, since the footer's auto side
   margins would otherwise shrink it to its text. The button keeps the
   Violet Edge: lilac alone is 1.6:1 on cream.
   This hero sits on the light ground, so these rules undo the field's
   colours. Keep them after the hero section: .hero--notfound and its .btn
   and .link-arrow rules beat the hero's only by coming later, at the same
   specificity. */
@media screen {
  body:has(.hero--notfound) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  body:has(.hero--notfound) > * { width: 100%; }
  body:has(.hero--notfound) > main { flex: 1; }
}
.hero--notfound { color: var(--ink); }
.hero--notfound .hero-title { color: var(--ink); }
.hero--notfound .hero-rule  { background: var(--green); }
.hero--notfound .hero-sub   { color: var(--ink-soft); }
.hero--notfound .btn {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 2px var(--accent-edge);
}
.hero--notfound .btn:hover,
.hero--notfound .btn:active { background: var(--accent-hover); color: var(--accent-ink); }
.hero--notfound .link-arrow { color: var(--ink); }
.hero--notfound .link-arrow:hover { color: var(--green); }

/* ==========================================================================
   Print: one clean, forwardable page with the contact path at the bottom.
   ========================================================================== */

@media print {

  @page { margin: 12mm; }

  :root { --pad-x: 0; }

  html,
  body {
    background: #fff;
    color: #000;
    min-height: 0;
  }

  /* Screen-only chrome: navigation, the form, and every placeholder. */
  .skip-bar,
  .hero-cta,
  .fee-cta,
  .float-cta,
  .video-slot,
  .hero-portrait,
  .fullbleed,
  .contact-form-wrap,
  .ph-box,
  .specimen { display: none !important; }

  /* Belt and braces: US Letter is ~725px wide, under the 1000px portrait
     grid, but wider paper would bring the grid back and print its second
     track as a blank gutter. */
  .hero-main:has(.hero-portrait) { display: block; }

  /* Hide a band whose body holds nothing but specimen copy, so no orphaned
     "About", "Speaking" or "Advisors" label prints above empty space. Drop
     the class as real copy goes in and the band starts printing itself. */
  .band:not(:has(.band-body > :not(.specimen))) { display: none; }

  /* Ink on paper: no coloured grounds, no accent. */
  .panel,
  .contact {
    background: transparent;
    border: 0;
  }
  .panel:has(> .site-header) { border-bottom: 0; }

  .site-header { padding: 0 0 10pt; }
  .site-name   { font-size: 9pt; color: #000; }
  .site-place  { font-size: 8pt; color: #333; }

  .hero { padding: 10pt 0 0; color: #000; }

  /* Paper is under 1000px wide, so undo the one-phrase-per-line stack:
     two lines split at the comma, as on a desktop screen. */
  .ht-p    { display: inline; }
  .ht-line { display: block; }

  .hero-title {
    font-size: 24pt !important;
    line-height: 1.05 !important;
    max-width: 24em;
  }
  .hero-rule {
    margin: 8pt 0 6pt !important;
    width: 44px;
    height: 2px;
    background: #000;
  }
  .hero-sub {
    font-size: 11pt !important;
    max-width: none;
    color: #000;
  }

  .cred-strip {
    margin-top: 12pt !important;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 14pt;
    row-gap: 8pt;
  }
  .cred      { padding-top: 6pt; border-top-color: #999; break-inside: avoid; }
  .cred-head { font-size: 10.5pt; color: #000; }
  .cred-sub  { font-size: 8.5pt; color: #000; }

  .fees { padding: 14pt 0 0; }
  .fee-group + .fee-group { margin-top: 10pt; }
  .fee-group-title { font-size: 13pt !important; margin-bottom: 5pt; color: #000; }

  .fee-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6pt;
  }
  .fee-card,
  .fee-card + .fee-card { margin-top: 0; }
  /* Two fee groups no longer fit one sheet with the price on its own line,
     so on paper the price sits on the name's line, at its right edge. */
  .fee-card {
    padding: 8pt;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4pt;
    column-gap: 6pt;
    align-items: baseline;
    break-inside: avoid;
    /* The screen border is too pale on a laser printout; match the notes. */
    border-color: #999;
  }
  .fee-name  { font-size: 12pt !important; }
  .fee-price { font-size: 12pt !important; color: #000; margin-top: 0; text-align: right; }
  .fee-unit  { color: #333; font-size: 8pt; }
  .fee-desc  { grid-column: 1 / -1; font-size: 8.5pt; color: #000; }
  /* The travel caption, unruled, kept on the same page as the cards it
     qualifies. */
  .fee-note  { font-size: 8.5pt; line-height: 1.35; color: #333; margin-top: 3pt; break-before: avoid; }

  .band { padding: 12pt 0 0; gap: 6pt 20pt; break-inside: avoid; }
  .band-label { flex-basis: 90pt; font-size: 8pt; color: #000; }
  .band-body--about { gap: 5pt; max-width: none; }
  .about-lead { font-size: 10.5pt; line-height: 1.45; color: #000; }
  .about-para { font-size: 9pt; line-height: 1.45; color: #000; }
  .about-room { font-size: 10.5pt; line-height: 1.35; color: #000; margin: 0; }
  .about-room::before { display: none; }

  .contact {
    margin-top: 14pt;
    padding: 12pt 0 0;
    border-top: 1px solid #999;
    color: #000;
  }
  .contact-title {
    font-size: 15pt !important;
    line-height: 1.1 !important;
    max-width: none;
  }
  /* 9.5pt keeps the sub on one line; at 10pt a wrapped last word pushed
     the footer onto a second page. */
  .contact-sub   { font-size: 9.5pt; margin-top: 6pt; color: #000; max-width: none; }
  .contact-note  { font-size: 8.5pt; margin-top: 3pt; color: #000; max-width: none; }
  .contact-email { font-size: 12pt !important; margin-top: 8pt; }
  .contact-email a { color: #000; border-bottom: 1px solid #000; }

  .site-footer {
    padding: 10pt 0 0;
    background: transparent;
    border-top: 0;
    font-size: 8.5pt;
    color: #000;
  }
  .site-footer a { color: #000; padding-block: 0; }

  a[href^="mailto"] { text-decoration: none; }
}
