/* ============================================================================
   Trevor Amrein — site.css
   Structure, type scale, shape and spacing derived from the Notion design
   language. COLOURS ARE UNCHANGED from the original Fable build — every value
   in the palette block below is lifted verbatim from the existing site.
   ========================================================================= */

/* ---------------------------------------------------------------- TOKENS -- */
:root {
  /* -- Brand palette (UNCHANGED — original values) -- */
  --canvas:          #FAF9F7;  /* warm paper page canvas */
  --surface:         #FFFFFF;  /* cards, fields */
  --ink:             #0A0A0A;
  --ink-secondary:   #3A3630;
  --ink-muted:       #55504A;
  --ink-faint:       #B8B2A9;
  --hairline:        #E4E0DA;
  --field-border:    #D8D3CC;
  --primary:         #CC1212;  /* the single structural accent */
  --primary-bright:  #FF1717;  /* hover / rules / progress bar */
  --on-primary:      #FFFFFF;
  --night:           #161412;  /* inverted band */
  --night-deep:      #0A0A0A;
  --on-night:        #FAF9F7;
  --on-night-soft:   rgba(250,249,247,.75);
  --on-night-faint:  rgba(250,249,247,.55);
  --on-night-line:   rgba(250,249,247,.18);
  --accent-on-night: #FF6B6B;  /* eyebrow colour inside dark bands */

  /* -- Type (Notion scale; Fraunces for display, Inter for everything else) -- */
  --font-display: Fraunces, Georgia, "Times New Roman", serif;
  --font-ui: Inter, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;

  /* -- Radius (Notion) -- */
  --r-xs: 4px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* -- Spacing (Notion, 8px base) -- */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 28px;
  --s-xxl: 32px;

  /* -- Elevation (Notion: many near-transparent layers, never a hard cast) -- */
  --e1: 0 .175px 1.041px rgba(0,0,0,.01),
        0 .8px 2.925px rgba(0,0,0,.02),
        0 2.025px 7.847px rgba(0,0,0,.027),
        0 4px 18px rgba(0,0,0,.04);
  --e2: 0 .175px 1.041px rgba(0,0,0,.01),
        0 .8px 2.925px rgba(0,0,0,.02),
        0 2.025px 7.847px rgba(0,0,0,.027),
        0 4px 18px rgba(0,0,0,.04),
        0 23px 52px rgba(0,0,0,.05);

  /* -- Layout -- */
  --container: 1320px;
  --gutter: 40px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "lnum" 1, "locl" 1;
}

img { max-width: 100%; }

a { color: var(--primary); }
a:hover { color: var(--primary-bright); }

::selection { background: var(--primary-bright); color: var(--canvas); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-xs); }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
  box-shadow: var(--e1);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--on-primary);
  padding: var(--s-sm) var(--s-md); border-radius: 0 0 var(--r-md) 0;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--on-primary); }

.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;
}

/* ------------------------------------------------------------------ TYPE -- */
/* Notion's scale, made fluid. Negative tracking applied explicitly, as the
   design doc requires — the serif reads loose without it.                   */

.t-display-1, .t-display-2, .t-h1, .t-h2, .t-h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: pretty;
}

.t-display-1 {
  font-size: clamp(40px, 6.2vw, 64px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.033em;
}
.t-display-2 {
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.0347em;
}
.t-h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.t-h2 {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.23;
  letter-spacing: -.024em;
}
.t-h3 {
  font-size: clamp(20px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.27;
  letter-spacing: -.011em;
}
.t-title {
  font-family: var(--font-ui);
  font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.006em;
  margin: 0;
}
.t-body   { font-size: 16px; font-weight: 400; line-height: 1.5; margin: 0; }
.t-body-sm{ font-size: 15px; font-weight: 400; line-height: 1.33; margin: 0; }
.t-caption{ font-size: 14px; font-weight: 400; line-height: 1.43; margin: 0; }

/* Notion's eyebrow: Inter 12/600. Replaces the IBM Plex Mono uppercase labels. */
.t-eyebrow {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; line-height: 1.33;
  letter-spacing: .08em; text-transform: uppercase;
  margin: 0;
}

.lead      { font-size: 18px; line-height: 1.6; color: var(--ink-secondary); margin: 0; }
.muted     { color: var(--ink-muted); }
.secondary { color: var(--ink-secondary); }
.measure   { max-width: 56ch; }
.measure-sm{ max-width: 44ch; }

/* ---------------------------------------------------------------- LAYOUT -- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section       { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-hero  { padding-top: clamp(120px, 14vw, 190px); padding-bottom: clamp(56px, 8vw, 104px); }

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

.stack > * + * { margin-top: var(--s-md); }
.stack-lg > * + * { margin-top: var(--s-lg); }

.grid { display: grid; gap: var(--s-xxl); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-side  { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(40px, 6vw, 88px); }
.grid-split { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(40px, 6vw, 88px); }
/* Contact page: one wide "start here" card beside three narrow ones. */
.grid-contact { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: stretch; }

.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .t-eyebrow { margin-bottom: var(--s-sm); }

/* Notion's badge-pill, used for the numbered section eyebrows. */
.badge {
  display: inline-block;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: var(--s-xxs) var(--s-sm);
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; line-height: 1.33;
  letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 var(--s-sm);
}
.badge--night {
  background: rgba(250,249,247,.07);
  border-color: var(--on-night-line);
  color: var(--accent-on-night);
}

/* The brand's red hero rule — kept, softened to a rounded cap. */
.rule-accent {
  width: 88px; height: 4px;
  background: var(--primary-bright);
  border-radius: var(--r-full);
  margin: var(--s-xl) 0 var(--s-lg);
}

/* Inverted "night" band. */
.band-night {
  background: var(--night);
  color: var(--on-night);
}
.band-night .secondary,
.band-night .muted { color: var(--on-night-soft); }
.band-night .t-eyebrow { color: var(--accent-on-night); }
.band-night a { color: var(--on-night); }

/* --------------------------------------------------------------- BUTTONS -- */
/* Notion: pill marketing CTAs, 8px utility buttons — the contrast is intentional. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-xs);
  font-family: var(--font-ui);
  font-size: 16px; font-weight: 500; line-height: 1.5;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  padding: 14px 26px;
  min-height: 44px;
  cursor: pointer;
  transition: filter .25s ease, transform .12s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover, .btn-primary:focus-visible { filter: brightness(1.12); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-bright); }

.btn-secondary {
  background: var(--surface); color: var(--ink);
  border-color: var(--hairline);
  box-shadow: var(--e1);
}
.btn-secondary:hover, .btn-secondary:focus-visible { color: var(--ink); box-shadow: var(--e2); }

.btn-ink { background: var(--ink); color: var(--canvas); }
.btn-ink:hover, .btn-ink:focus-visible { filter: brightness(1.35); color: var(--canvas); }

.btn-on-night {
  background: transparent; color: var(--on-night);
  border-color: rgba(250,249,247,.7);
}
.btn-on-night:hover, .btn-on-night:focus-visible {
  background: rgba(250,249,247,.1); color: var(--on-night);
}

/* Utility button — tighter 8px radius, for nav and dense rows. */
.btn-utility {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 600; line-height: 1.5;
  text-decoration: none;
  background: var(--ink); color: var(--canvas);
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  padding: 8px 16px;
  min-height: 40px;
  transition: filter .25s ease, transform .12s ease;
}
.btn-utility:hover, .btn-utility:focus-visible { filter: brightness(1.35); color: var(--canvas); }
.btn-utility:active { transform: scale(.97); }

/* Quiet inline text link with a moving arrow. */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-xs);
  font-size: 15px; font-weight: 600;
  color: var(--primary); text-decoration: none;
}
.link-arrow--ink { color: var(--ink); }
.band-night .link-arrow { color: var(--on-night); }
.arrow { display: inline-block; transition: transform .3s ease; }
a:hover .arrow, a:focus-visible .arrow, .card:hover .arrow, .card:focus-within .arrow { transform: translateX(6px); }
.arrow-down { display: inline-block; transition: transform .3s ease; }
a:hover .arrow-down, a:focus-visible .arrow-down { transform: translateY(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-md); align-items: center; }

/* ----------------------------------------------------------------- CARDS -- */
/* Notion: 12px radius, hairline first, barely-there shadow second. */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
a.card:hover, a.card:focus-visible, .card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--e1);
  color: var(--ink);
}
a.card:hover::before, a.card:focus-visible::before, .card:focus-within::before { transform: scaleX(1); }

.card--night {
  background: var(--night); color: var(--on-night);
  border-color: var(--night);
}
.card--night:hover, .card--night:focus-visible { color: var(--on-night); }

.card--soft { background: var(--canvas); }

.card-index {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 var(--s-xxl);
}
.card--night .card-index { color: var(--accent-on-night); }
.card-body { flex: 1; margin: 0 0 var(--s-lg); }
.card-cta { margin: 0; font-size: 15px; font-weight: 600; color: var(--primary); }
.card--night .card-cta { color: var(--on-night); }

/* Bordered list-style item — replaces the old top-rule blocks. */
.item {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-lg);
}
.band-night .item { border-top-color: var(--on-night-line); }
.item .t-h3 { margin-bottom: var(--s-sm); }

/* Numbered row (fractional-ops style). */
.row-numbered {
  display: grid; grid-template-columns: 48px minmax(0,1fr); gap: var(--s-lg);
  border-top: 1px solid var(--on-night-line);
  padding: var(--s-xl) 0;
}
.row-numbered .num {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--on-night-faint); margin: 0;
}

/* Callout strip. */
.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg) var(--s-xl);
}

/* Checklist. */
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-md) clamp(32px,5vw,64px); margin: 0; padding: 0; list-style: none; }
.checklist li {
  display: flex; gap: var(--s-sm);
  font-size: 16px; line-height: 1.5; color: var(--ink-secondary);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--s-md);
}
.check { color: var(--primary); font-weight: 700; flex: none; }

/* Credentials list. */
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 clamp(32px,4vw,48px); }
.cred-list li { border-bottom: 1px solid var(--hairline); padding: var(--s-md) 0; font-size: 15px; line-height: 1.5; }
.cred-meta { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-top: var(--s-xxs); }

/* Stat / proof bar. */
.stats { display: grid; grid-template-columns: 1.1fr .8fr .9fr 1.4fr; gap: clamp(24px,3vw,40px); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px); font-weight: 700; line-height: 1;
  letter-spacing: -.033em; margin: 0 0 var(--s-xs);
}
.stat-value--accent { color: var(--primary-bright); }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.stat-note { border-left: 1px solid var(--hairline); padding-left: clamp(24px,3vw,40px); align-self: center; }

/* ---------------------------------------------------------------- IMAGES -- */
/* Notion: images sit in rounded wells with a hairline edge and scale fluidly
   inside their cell — no heavy art-direction crop.                          */
.frame {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
}
.frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
}
.band-night .frame img { border-color: var(--on-night-line); }

.frame-lg { border-radius: var(--r-lg); }
.frame-lg img { border-radius: var(--r-lg); }

.frame figcaption,
.figcaption {
  font-family: var(--font-ui);
  font-size: 14px; line-height: 1.43; color: var(--ink-muted);
  margin-top: var(--s-sm);
}
.band-night .frame figcaption,
.band-night .figcaption { color: var(--on-night-faint); }

.img-portrait img { aspect-ratio: 3 / 4; object-position: top; filter: grayscale(1); }
.img-tile img     { aspect-ratio: 4 / 3; }
.img-wide img     { aspect-ratio: 16 / 9; }
.img-gray img     { filter: grayscale(1); }

/* Full-bleed media panel with a rounded inner well. */
.media-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  min-height: 420px;
}
.media-panel img {
  position: absolute; inset: -8% 0;
  width: 100%; height: 116%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.media-caption {
  position: absolute; left: var(--s-md); bottom: var(--s-md);
  margin: 0;
  background: rgba(10,10,10,.78);
  color: rgba(250,249,247,.92);
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  border-radius: var(--r-full);
  padding: 6px 14px;
  backdrop-filter: blur(6px);
}

/* Hero with a background image (speaking page). */
.hero-media {
  position: relative;
  display: flex; align-items: flex-end;
  overflow: hidden;
  min-height: 88vh;
  background: var(--night);
  color: var(--on-night);
}
.hero-media > img {
  position: absolute; inset: -8% 0;
  width: 100%; height: 116%;
  object-fit: cover; transform: scale(1.06); will-change: transform;
}
.hero-media .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.86) 0%, rgba(10,10,10,.45) 42%, rgba(10,10,10,.12) 75%);
}
.hero-media .container { position: relative; width: 100%; }

/* Split hero: copy on one side, media on the other. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0,46%) minmax(0,54%);
  align-items: stretch;
  gap: 0;
  min-height: 720px;
}
.hero-split .hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(120px,13vw,168px) clamp(32px,4vw,56px) clamp(64px,8vw,96px) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero-split .hero-media-cell { position: relative; overflow: hidden; padding: var(--s-lg) var(--s-lg) var(--s-lg) 0; }
/* Top inset clears the fixed nav so the links never sit on the dark image. */
.hero-split .media-panel {
  position: absolute;
  inset: calc(var(--nav-h) + var(--s-lg)) var(--s-lg) var(--s-lg) 0;
}

/* ----------------------------------------------------------------- FORMS -- */
/* Notion: inputs stay tight at 4px — never the pill radius of the CTAs. */
.form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-lg); align-content: start; }
.field { display: flex; flex-direction: column; gap: var(--s-xs); }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted);
}
.field input, .field select, .field textarea {
  font-family: var(--font-ui);
  font-size: 15px; line-height: 1.33;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--r-xs);
  padding: 12px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 132px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-lg); }
.form-note { font-size: 14px; color: var(--ink-muted); margin: 0; }
.honeypot { position: absolute; left: -9999px; }

/* ----------------------------------------------------------------- TABLE -- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.table th {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
  background: var(--canvas);
  padding: var(--s-sm) var(--s-md);
  border-bottom: 1px solid var(--hairline);
}
.table td {
  padding: var(--s-lg) var(--s-md);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.table td:first-child {
  font-family: var(--font-display);
  font-weight: 600; font-size: 19px; letter-spacing: -.011em;
  color: var(--ink);
}
.table .len { font-size: 15px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }

/* ------------------------------------------------------------------- NAV -- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: var(--s-md) 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
html[data-scrolled] .nav {
  background: rgba(250,249,247,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-xxl); }
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
  transition: font-size .3s ease;
}
html[data-scrolled] .nav-logo { font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: var(--s-lg); }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 400; line-height: 1.33;
  color: var(--ink-muted); text-decoration: none;
  border-radius: var(--r-sm);
  padding: 6px 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(10,10,10,.04); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--ink);
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary-bright);
  transform: scaleX(0); transform-origin: left;
  z-index: 90;
}

/* Sticky mobile booking bar. */
.cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  background: rgba(250,249,247,.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  padding: var(--s-sm) var(--s-md);
  padding-bottom: calc(var(--s-sm) + env(safe-area-inset-bottom, 0px));
}
.cta-bar .btn { width: 100%; }

/* ---------------------------------------------------------------- FOOTER -- */
.footer { background: var(--night); color: var(--on-night); font-family: var(--font-ui); }
.footer-cta {
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: clamp(32px,5vw,64px); align-items: center;
  padding-block: clamp(64px,8vw,96px) clamp(48px,6vw,72px);
  border-bottom: 1px solid rgba(250,249,247,.14);
}
.footer-cta-actions { justify-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-sm); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px,4vw,48px);
  padding-block: clamp(40px,5vw,64px);
}
.footer-col { display: flex; flex-direction: column; gap: var(--s-sm); }
.footer-col a { color: rgba(250,249,247,.85); font-size: 15px; text-decoration: none; border-radius: var(--r-sm); }
.footer-col a:hover { color: var(--on-night); text-decoration: underline; }
.footer-head {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-night-faint); margin: 0 0 var(--s-xxs);
}
.footer-social { display: flex; gap: var(--s-md); margin-top: var(--s-xxs); flex-wrap: wrap; }
.footer-social a { font-size: 14px; color: rgba(250,249,247,.65); }
.footer-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 0 0 var(--s-xxs); }
.kw-logo { height: 44px; width: auto; display: block; margin: var(--s-md) 0; filter: brightness(0) invert(1); opacity: .85; }

.footer-referral { background: var(--night-deep); }
.footer-referral .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-lg); padding-block: var(--s-xl);
}
.footer-referral p { font-size: 15px; margin: 0; color: rgba(250,249,247,.85); }
.footer-referral a { font-size: 15px; font-weight: 600; color: var(--on-night); text-decoration: none; white-space: nowrap; }

.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-md); padding-block: var(--s-lg);
}
.footer-legal p { font-size: 13px; color: var(--on-night-faint); margin: 0; display: flex; align-items: center; gap: var(--s-xs); }

/* ------------------------------------------------------------- ANIMATION -- */
html[data-motion] [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
html[data-motion] [data-reveal][data-in] { opacity: 1; transform: none; }

@keyframes taRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes taRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html[data-motion] [data-hero-rise] { opacity: 0; animation: taRise .8s cubic-bezier(.22,.61,.36,1) forwards; }
html[data-motion] [data-hero-rule] { transform: scaleX(0); transform-origin: left; animation: taRule .9s cubic-bezier(.22,.61,.36,1) .55s forwards; }

/* ----------------------------------------------------------- BREAKPOINTS -- */
/* Notion's ladder: wide 1440+, desktop 1080–1300, tablet 768–840, mobile ≤600 */

@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-contact { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-contact > :first-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: var(--s-xxl); }
  .stat-note { border-left: 0; padding-left: 0; grid-column: 1 / -1; border-top: 1px solid var(--hairline); padding-top: var(--s-lg); }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-side, .grid-split { grid-template-columns: minmax(0,1fr); }
  .footer-cta { grid-template-columns: minmax(0,1fr); }
  .footer-cta-actions { justify-self: start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 840px) {
  /* Nav condenses to a hamburger. */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 8px); right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: var(--s-xxs);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    box-shadow: var(--e2);
    padding: var(--s-sm);
  }
  html[data-nav-open] .nav-links { display: flex; }
  html[data-nav-open] .nav { background: rgba(250,249,247,.94); backdrop-filter: blur(10px); }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-links .btn-utility { width: 100%; margin-top: var(--s-xxs); }

  /* Split hero stacks; the media becomes a normal rounded well. */
  .hero-split { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .hero-split .hero-copy { padding: clamp(112px,20vw,140px) var(--gutter) var(--s-xxl); }
  .hero-split .hero-media-cell { padding: 0 var(--gutter) var(--s-xxl); }
  .hero-split .media-panel { position: relative; inset: auto; min-height: 320px; }
  .hero-media { min-height: 0; padding-top: 120px; }

  .checklist { grid-template-columns: minmax(0,1fr); }
  .cred-list { grid-template-columns: minmax(0,1fr); }

  /* Sticky booking bar appears once the nav CTA is behind the hamburger. */
  .cta-bar { display: block; }
  body { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .grid { gap: var(--s-lg); }
  .grid-2, .grid-3, .grid-4, .grid-contact { grid-template-columns: minmax(0,1fr); }
  .form { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .stats { grid-template-columns: minmax(0,1fr); }
  .btn-row .btn { width: 100%; }
  .btn { padding: 14px 22px; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout .btn { width: 100%; }
  .row-numbered { grid-template-columns: minmax(0,1fr); gap: var(--s-xs); }
  .media-panel { min-height: 260px; }
  .footer-referral .container { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------- REDUCED MOTION -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html[data-motion] [data-reveal] { opacity: 1; transform: none; transition: none; }
  html[data-motion] [data-hero-rise] { opacity: 1; animation: none; }
  html[data-motion] [data-hero-rule] { transform: none; animation: none; }
  [data-parallax] { transform: none !important; }
  .card, .btn, .arrow { transition: none !important; }
}

/* --------------------------------------------------------------- PRINT --- */
@media print {
  .nav, .cta-bar, .progress { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
}

/* ---- Inline form errors ---- */
.field-error{margin:6px 0 0;font-size:13px;line-height:1.4;color:#CC1212;font-weight:500}
.field-error:empty{display:none}
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"]{
  border-color:#CC1212;box-shadow:0 0 0 1px rgba(204,18,18,.18)}
