/* Landing-page-only visual system (modules/landing/views/landing.ejs).
   Deliberately NOT Tailwind utility classes — same reasoning as
   public/book.css, and for a second reason on top of it: the shared
   Tailwind config in shared/views/partials/head.ejs defines an indigo
   `brand` palette with Inter/Manrope, which is the platform's chrome, not
   The CEO's Table's identity. This page is the brand's own front door, so
   it ships the approved gold/charcoal tokens and the Cormorant/Jost
   pairing instead.

   Single-theme by intent: this is a committed Serious/Elegant surface, not
   a document that adapts. Gold measures 7.08:1 on charcoal and only 2.57:1
   on white, so the dark ground is what makes the brand colour usable as
   anything other than a fill. The shared theme toggle is therefore not
   wired up on this page.

   Palette and type derived in the approved spec — every value sampled from
   Design-Guidelines/logo.png and the host photography, then contrast
   checked. Anchors: gold-500 #CF982A (the logo), ink-800 #23272E (the
   panelled wall behind every portrait). */

:root {
  /* gold — anchor #CF982A, the logo */
  --gold-50:#FBF7EF;  --gold-100:#F5ECD6; --gold-200:#ECD8AC;
  --gold-300:#E2C179; --gold-400:#DAAB4E; --gold-500:#CF982A;
  --gold-600:#B37E23; --gold-700:#92621C; --gold-800:#6A4516;
  --gold-900:#452D11;

  /* ink — anchor #23272E, the panelled wall */
  --ink-50:#F9FAFB;  --ink-100:#F0F2F4; --ink-200:#DFE2E7;
  --ink-300:#C0C5CE; --ink-400:#89909F; --ink-500:#676F7E;
  --ink-600:#4D5460; --ink-700:#343842; --ink-800:#23272E;
  --ink-900:#121417;

  /* roles */
  --bg:var(--ink-900);
  --surface:var(--ink-800);
  --surface-2:#1A1E24;
  --fg:#E1E4EA;            /* tint of the ground, not white */
  --fg-muted:#AFB5C0;
  /* 4.72:1 on ink-800, 5.81:1 on ink-900, 5.27:1 on surface-2. The
     obvious "faint" step (#79808D) measures only 3.77:1 on ink-800 and
     fails AA for the body text it carries — figure captions, the hero
     credit, event years, the footer. */
  --fg-faint:#8A919D;
  --rule:#2C313A;
  --rule-strong:#3A404A;

  /* type */
  --font-display:"Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-ui:"Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* type scale */
  --t12:12px; --t14:14px; --t16:16px; --t18:18px; --t20:20px; --t24:24px;
  --t30:30px; --t36:36px; --t44:44px; --t52:52px; --t62:62px; --t74:74px;

  /* spacing */
  --s2:2px;  --s4:4px;  --s8:8px;   --s12:12px; --s16:16px; --s24:24px;
  --s32:32px; --s48:48px; --s64:64px; --s80:80px; --s96:96px; --s128:128px;

  --radius:2px;
  --maxw:1180px;
  --gutter:24px;
}

@media (max-width: 640px) { :root { --gutter:20px; } }

/* ---- Phone type scale ----------------------------------------------
   The desktop scale above is too loud on a handset: at 390px the hero
   dropped to its clamp() floor of 44px, the closing date number stayed
   at a fixed 62px, and body copy sat at 18px — so the hero alone ran
   902px, taller than the screen. Redefining the scale's tokens here
   fixes every fixed-size rule at once; the clamp()-based headings carry
   their own lowered floors beside their declarations. Ratios are kept,
   the whole scale just steps down. */
@media (max-width: 560px) {
  :root {
    --t12:11px; --t14:13px; --t16:15px; --t18:16px; --t20:17px; --t24:20px;
    --t30:23px; --t36:27px; --t44:32px; --t52:36px; --t62:42px; --t74:44px;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: var(--t18);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--gold-300); text-decoration: none; }
a:hover { color: var(--gold-200); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

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

/* Skip link — the page is long and keyboard users shouldn't tab the nav twice. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold-500); color: var(--ink-900);
  padding: var(--s12) var(--s24); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; font-size: var(--t12);
}
.skip:focus { left: var(--s16); top: var(--s16); }

/* ---------------------------------------------------------- eyebrow ---- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--t12);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0;
}
.eyebrow-quiet { color: var(--fg-faint); }

/* ------------------------------------------------------------ header ---- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(18,20,23,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s24); min-height: 72px;
}
.brand { display: flex; align-items: center; gap: var(--s12); min-width: 0; }
.brand img { width: 40px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-the {
  font-size: 9.5px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-400);
}
.brand-name {
  font-family: var(--font-ui); font-size: var(--t14); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--fg);
  white-space: nowrap;
}
.header-nav { display: flex; align-items: center; gap: var(--s32); }
/* Scoped to .nav-link, not a bare `a` descendant selector: the CTA
   button right beside these links is also an <a> inside .header-nav,
   and a bare-element selector here is MORE specific than .btn-primary
   alone (class+element beats class), so it was silently overriding the
   button's own ink-on-gold text color with this muted body-text gray —
   #AFB5C0 on the gold-500 fill is barely legible, and the :hover
   variant (gold-300 on gold-400) was worse still. */
.header-nav .nav-link {
  font-size: var(--t14); font-weight: 500; letter-spacing: .04em;
  color: var(--fg-muted);
}
.header-nav .nav-link:hover { color: var(--gold-300); }
@media (max-width: 860px) { .header-nav .nav-link { display: none; } }
/* The header CTA carries a long and a short label; exactly one shows. */
.label-narrow { display: none; }
@media (max-width: 560px) {
  .label-wide { display: none; }
  .label-narrow { display: inline; }
}

/* ---------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s8);
  font-family: var(--font-ui); font-weight: 600; font-size: var(--t14);
  letter-spacing: .14em; text-transform: uppercase;
  padding: 15px var(--s32); border: 1px solid transparent;
  border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  min-height: 48px; text-align: center;
}
/* ink-900 on gold-500 = 7.19:1. White on gold is 2.57:1 and never used. */
.btn-primary { background: var(--gold-500); color: var(--ink-900); }
.btn-primary:hover { background: var(--gold-400); color: var(--ink-900); }
.btn-ghost { background: transparent; color: var(--gold-300); border-color: var(--gold-700); }
.btn-ghost:hover { background: rgba(207,152,42,.08); color: var(--gold-200); border-color: var(--gold-600); }
.btn[aria-disabled="true"] {
  background: transparent; color: var(--fg-faint);
  border-color: var(--rule-strong); cursor: default;
}
.btn-sm { padding: 11px var(--s24); min-height: 42px; font-size: var(--t12); }

/* ------------------------------------------------------------- hero ---- */
.hero { position: relative; isolation: isolate; background: var(--ink-900); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
/* Guideline 03, method #1: darken the image with a gradient, then place
   text into the cleared area rather than over the subject. */
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,20,23,.97) 0%, rgba(18,20,23,.95) 42%, rgba(18,20,23,.74) 60%, rgba(18,20,23,.34) 82%, rgba(18,20,23,.24) 100%),
    linear-gradient(0deg, rgba(18,20,23,.88) 0%, rgba(18,20,23,0) 48%);
}
.hero-inner { padding-block: var(--s128) var(--s96); max-width: 680px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 7.4vw, var(--t74));
  line-height: 1.06;
  letter-spacing: -.012em;
  color: #EDEFF2;
  margin-block: var(--s24) var(--s24);
}
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero-lede { font-size: var(--t20); line-height: 1.65; color: var(--fg-muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s16); margin-top: var(--s48); }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s12);
  margin-top: var(--s32); font-size: var(--t14); color: var(--fg-faint);
}
.hero-meta .dot { width: 3px; height: 3px; background: var(--gold-600); border-radius: 50%; flex: none; }

@media (max-width: 860px) {
  .hero-media img { object-position: 70% 30%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(18,20,23,.80) 0%, rgba(18,20,23,.88) 55%, rgba(18,20,23,.97) 100%);
  }
  .hero-inner { padding-block: var(--s96) var(--s64); }
}

/* --------------------------------------------------------- sections ---- */
.section { padding-block: var(--s128); }
.section-tight { padding-block: var(--s96); }
@media (max-width: 860px) {
  .section { padding-block: var(--s80); }
  .section-tight { padding-block: var(--s64); }
}
.section-head { display: flex; flex-direction: column; gap: var(--s16); margin-bottom: var(--s64); max-width: 60ch; }
@media (max-width: 860px) { .section-head { margin-bottom: var(--s48); } }
/* A section whose whole content IS its heading block — the gallery
   before any photographs exist. Without this the head keeps the bottom
   margin it reserves for the content that would follow, leaving the band
   looking half-empty. */
.section--copy-only { padding-block: var(--s96); }
.section--copy-only .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .section--copy-only { padding-block: var(--s64); } }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, var(--t52));
  line-height: 1.14;
  color: #EDEFF2;
}
.prose p { color: var(--fg-muted); max-width: 66ch; font-size: var(--t18); line-height: 1.75; }
.prose p + p { margin-top: var(--s24); }

.band-surface { background: var(--surface-2); border-block: 1px solid var(--rule); }

/* ----------------------------------------------------------- snapshot -- */
.snapshot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 860px) { .snapshot { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .snapshot { grid-template-columns: 1fr; } }
.snap { background: var(--bg); padding: var(--s32) var(--s24); display: flex; flex-direction: column; gap: var(--s8); min-width: 0; }
.snap dt { font-size: var(--t12); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); }
.snap dd { margin: 0; font-family: var(--font-display); font-size: var(--t30); line-height: 1.2; color: #EDEFF2; }
.snap dd.small { font-family: var(--font-ui); font-size: var(--t16); line-height: 1.55; color: var(--fg-muted); }

/* ------------------------------------------------------------ themes --- */
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s48); }
@media (max-width: 760px) { .themes { grid-template-columns: 1fr; gap: 0; } }
.theme {
  display: flex; align-items: flex-start; gap: var(--s16);
  padding-block: var(--s24); border-bottom: 1px solid var(--rule); min-width: 0;
}
.theme-mark { flex: none; width: 7px; height: 7px; margin-top: 11px; background: var(--gold-500); transform: rotate(45deg); }
.theme span { font-size: var(--t18); line-height: 1.55; color: var(--fg); }

/* --------------------------------------------------- upcoming events --- */
/* A schedule, not a card grid: rows read down the page in date order, the
   way a programme does, and a single row still looks deliberate rather
   than like a grid with one item in it. */
.events { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.event {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: var(--s32);
  align-items: center;
  padding-block: var(--s32);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.event-date {
  flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: var(--s12) var(--s8);
  border: 1px solid var(--rule-strong);
  background: var(--surface-2);
}
.event-day {
  font-family: var(--font-display); font-weight: 500; font-size: var(--t36);
  line-height: 1; color: var(--gold-300);
}
.event-month {
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-500);
}
.event-year { font-size: 10.5px; letter-spacing: .1em; color: var(--fg-faint); }

.event-body { min-width: 0; display: flex; flex-direction: column; gap: var(--s8); }
.event-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--t30); line-height: 1.15; color: #EDEFF2;
}
.event-when {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s8);
  font-size: var(--t14); color: var(--gold-400); letter-spacing: .02em;
}
.event-when .sep { color: var(--rule-strong); }
.event-desc {
  font-size: var(--t16); line-height: 1.65; color: var(--fg-muted);
  max-width: 62ch;
  /* Long organiser-written descriptions are clamped rather than left to
     stretch a schedule row to half a screen; the booking page carries the
     full text. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-action { flex: none; }

@media (max-width: 760px) {
  .event {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: var(--s16);
    align-items: start;
  }
  .event-date { padding: var(--s8) var(--s4); }
  .event-day { font-size: var(--t30); }
  /* The button drops to its own full-width row under both columns. */
  .event-action { grid-column: 1 / -1; }
  .event-action .btn { width: 100%; }
}

.events-empty {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--gold-600);
  background: var(--surface-2);
  padding: var(--s32);
}
.events-empty-lede { font-size: var(--t18); line-height: 1.7; color: var(--fg-muted); max-width: 60ch; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ gallery -- */
/* Uniform square tiles on a hairline grid. Guideline 03.12 — images
   placed side by side should share the exact same dimensions — so every
   thumbnail is cropped to the same square by object-fit rather than
   laid out as a ragged mosaic. The 1px gap IS the grid: the band's own
   rule colour shows through between tiles. */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--rule);
  border:1px solid var(--rule);
}
@media (max-width:860px){ .gallery-grid{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:560px){ .gallery-grid{ grid-template-columns:repeat(2, 1fr); } }

/* The tiles are plain images, not links — nothing on this page routes to
   the gallery module's experience page. So no hover lift, no focus ring
   and no pointer affordance: styling something as interactive when it
   isn't is worse than leaving it quiet. */
.gallery-tile{ min-width:0; background:var(--surface-2); }
.gallery-tile img{
  width:100%;
  aspect-ratio:1/1;
  max-width:100%;
  height:auto;
  object-fit:cover;
  display:block;
}

.gallery-credit{
  margin:var(--s24) 0 0;
  font-size:var(--t14); letter-spacing:.04em; color:var(--gold-400);
}
.gallery-note{
  margin-top:var(--s8); font-size:var(--t14); line-height:1.6;
  color:var(--fg-faint); max-width:60ch;
}

/* -------------------------------------------------------------- host --- */
.host { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--s80); align-items: start; }
@media (max-width: 960px) { .host { grid-template-columns: 1fr; gap: var(--s48); } }
.host-figure { margin: 0; position: relative; }
.host-figure img { width: 100%; height: auto; border: 1px solid var(--rule); }
.host-figure figcaption {
  margin-top: var(--s16); font-size: var(--t14); color: var(--fg-faint); line-height: 1.6;
}
.host-name { font-family: var(--font-display); font-size: clamp(28px, 4.6vw, var(--t52)); line-height: 1.1; color: #EDEFF2; }
.host-role { margin-top: var(--s8); font-size: var(--t16); letter-spacing: .04em; color: var(--gold-400); }
.host-body { margin-top: var(--s32); }

.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s24); margin-top: var(--s48); padding-top: var(--s32); border-top: 1px solid var(--rule); }
@media (max-width: 620px) { .creds { grid-template-columns: 1fr; gap: var(--s24); } }
.cred { min-width: 0; display: flex; flex-direction: column; gap: var(--s4); }
.cred b { font-family: var(--font-display); font-weight: 500; font-size: var(--t36); line-height: 1; color: var(--gold-300); }
.cred span { font-size: var(--t14); line-height: 1.5; color: var(--fg-faint); }

/* ------------------------------------------------------- pull quote ---- */
.quote-band { position: relative; isolation: isolate; overflow: hidden; }
.quote-media { position: absolute; inset: 0; z-index: -2; }
.quote-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.quote-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,20,23,.55) 0%, rgba(18,20,23,.88) 45%, rgba(18,20,23,.97) 100%);
}
@media (max-width: 860px) {
  .quote-scrim { background: linear-gradient(180deg, rgba(18,20,23,.72) 0%, rgba(18,20,23,.95) 60%); }
  .quote-media img { object-position: 50% 15%; }
}
.quote-inner { padding-block: var(--s128); margin-left: auto; max-width: 720px; }
@media (max-width: 860px) { .quote-inner { padding-block: var(--s96); margin-left: 0; } }
blockquote { margin: 0; }
blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(21px, 3.8vw, var(--t44));
  line-height: 1.38;
  color: #EDEFF2;
}
blockquote footer {
  margin-top: var(--s32); font-family: var(--font-ui); font-size: var(--t12);
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-400);
}

/* --------------------------------------------------------- vision ------ */
.vision { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: var(--s80); align-items: start; }
@media (max-width: 860px) { .vision { grid-template-columns: 1fr; gap: var(--s32); } }
.vision-body { font-family: var(--font-display); font-size: clamp(20px, 3vw, var(--t36)); line-height: 1.4; color: #EDEFF2; }

/* ------------------------------------------------------- testimonials -- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s24); }
@media (max-width: 860px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  min-width: 0;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  padding: var(--s32);
}
.testimonial blockquote p {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--t20); line-height: 1.5; color: var(--fg);
}
.testimonial footer { margin-top: var(--s16); display: flex; flex-direction: column; gap: 2px; }
.testimonial-name { font-size: var(--t14); font-weight: 600; color: var(--fg); }
.testimonial-role { font-size: var(--t12); color: var(--fg-faint); letter-spacing: .02em; }

/* ------------------------------------------------------------- cta ----- */
.cta-band { background: var(--surface); border-block: 1px solid var(--rule); }
.cta-inner {
  padding-block: var(--s96);
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--s48);
  align-items: center;
}
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; padding-block: var(--s64); gap: var(--s32); } }
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(25px, 4.2vw, var(--t44)); line-height: 1.15; color: #EDEFF2; }
.cta-date { display: flex; align-items: baseline; gap: var(--s12); margin-bottom: var(--s16); }
.cta-date b { font-family: var(--font-display); font-weight: 500; font-size: var(--t62); line-height: .9; color: var(--gold-400); }
.cta-date span { font-size: var(--t16); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
.cta-venue { margin-top: var(--s16); color: var(--fg-muted); font-size: var(--t16); }
.cta-actions { display: flex; flex-direction: column; gap: var(--s12); align-items: stretch; min-width: 260px; }
@media (max-width: 860px) { .cta-actions { min-width: 0; } }
.cta-note { font-size: var(--t14); color: var(--fg-faint); line-height: 1.6; text-align: center; }

/* ----------------------------------------------------------- footer ---- */
.site-footer { border-top: 1px solid var(--rule); background: var(--bg); }
.footer-inner {
  padding-block: var(--s64) calc(var(--s48) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; gap: var(--s32); justify-content: space-between; align-items: flex-start;
}
.footer-brand { display: flex; flex-direction: column; gap: var(--s12); min-width: 0; }
.footer-brand img { width: 52px; height: auto; }
.footer-tag { font-size: var(--t14); color: var(--fg-faint); max-width: 36ch; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s24); font-size: var(--t14); }
.footer-links a { color: var(--fg-muted); }
.footer-links a:hover { color: var(--gold-300); }
.footer-social { display: flex; gap: var(--s16); align-items: center; }
.footer-social a { display: inline-flex; color: var(--fg-muted); }
.footer-social a:hover { color: var(--gold-300); }
.footer-social svg { width: 19px; height: 19px; }
.footer-legal { width: 100%; padding-top: var(--s24); border-top: 1px solid var(--rule); font-size: var(--t12); color: var(--fg-faint); letter-spacing: .04em; }

/* ===================================================================
   PHONE LAYOUT
   Everything above is the desktop/tablet composition. These rules fix
   what measurement showed was wrong on a real handset at 390px: a
   two-line header button filling the whole bar, hero buttons at two
   different ragged widths, and section rhythm scaled for a 1180px
   column. Type is handled by the phone scale near the top of the file.
   =================================================================== */
@media (max-width: 560px) {
  /* --- header: shorter bar, a CTA that fits on one line --- */
  .header-inner { min-height: 58px; gap: var(--s12); }
  .brand img { width: 32px; }
  .brand-name { font-size: 13px; letter-spacing: .14em; }
  .brand-the { font-size: 8.5px; }
  .header-nav .btn-sm {
    padding: 10px var(--s16);
    min-height: 38px;
    font-size: 11px;
    letter-spacing: .08em;
    white-space: nowrap;
  }

  /* --- buttons: full width and stacked, not ragged and wrapped --- */
  .btn { padding: 14px var(--s24); min-height: 50px; font-size: 13px; letter-spacing: .1em; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: var(--s12); margin-top: var(--s32); }
  .hero-actions .btn { width: 100%; }

  /* --- vertical rhythm: the desktop scale is built for a 1180px column --- */
  .section { padding-block: var(--s64); }
  .section-tight { padding-block: var(--s48); }
  .section--copy-only { padding-block: var(--s48); }
  .section-head { margin-bottom: var(--s32); }
  .hero-inner { padding-block: var(--s64) var(--s48); }
  .quote-inner { padding-block: var(--s64); }
  .cta-inner { padding-block: var(--s48); gap: var(--s24); }
  .host { gap: var(--s32); }
  .host-body { margin-top: var(--s24); }
  .creds { margin-top: var(--s32); padding-top: var(--s24); gap: var(--s16); }
  .footer-inner { padding-block: var(--s48) calc(var(--s32) + env(safe-area-inset-bottom, 0px)); }

  /* --- snapshot: four stacked cells don't each need 32px of padding --- */
  .snap { padding: var(--s24) var(--s16); }

  /* --- testimonials: four stacked cards don't each need 32px either --- */
  .testimonial { padding: var(--s24); }

  /* --- schedule rows --- */
  .event { padding-block: var(--s24); }
  .event-desc { -webkit-line-clamp: 3; }

  /* --- the closing date block was a fixed 62px --- */
  .cta-date { margin-bottom: var(--s12); }
  .cta-date b { line-height: 1; }

  /* The hero scrim already switches to a vertical gradient at 860px;
     pull the subject further out of the text's way on a narrow crop. */
  .hero-media img { object-position: 72% 22%; }
}

/* Very small handsets (iPhone SE and similar). */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 12px; }
  .header-nav .btn-sm { padding: 9px var(--s12); font-size: 10.5px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
