/* ==========================================================================
   Trajector Golf
   Design tokens & global styles
   ========================================================================== */

:root {
  /* Colour tokens: restrained, premium */
  --color-black: #080A0D;
  --color-charcoal: #15181D;
  --color-green-black: #07160D;
  --color-gold: #D1A800;
  --color-gold-muted: #B99218;
  --color-gold-deep: #86670A;      /* gold for text on light backgrounds (passes AA) */
  --color-off-white: #F5F3EE;
  --color-grey: #C8C9CC;

  --color-white: #ffffff;
  --color-ink: #12140F;
  --color-ink-soft: rgba(21, 24, 29, 0.72);

  --color-border-dark: rgba(245, 243, 238, 0.14);
  --color-border-light: rgba(21, 24, 29, 0.12);

  --gradient-dusk: linear-gradient(165deg, var(--color-black) 0%, var(--color-green-black) 62%, var(--color-charcoal) 100%);
  --gradient-gold: linear-gradient(120deg, var(--color-gold-muted), var(--color-gold));

  /* Typography */
  --font-heading: 'Sora', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', 'Manrope', system-ui, sans-serif;

  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.75rem;
  --fs-3xl: 3.75rem;

  /* Spacing scale (8pt rhythm) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;
  --space-9: 9rem;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 14px rgba(4, 5, 7, 0.14);
  --shadow-md: 0 16px 40px rgba(4, 5, 7, 0.28);

  --container-w: 1240px;
  --container-narrow: 760px;
  --header-h: 105px;   /* desktop: logo height + padding; overridden below at smaller widths */
  --logo-h: 72px;
  --header-pad: 1rem;
  --transition: 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0 0 var(--space-3); text-wrap: pretty; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Reveal-on-scroll (subtle, restrained) ----
   Progressive enhancement: content is visible by default. Only once JS has
   confirmed it can run the animation (html.reveal-ready) do items arm to
   fade in, so nothing is ever hidden behind a JavaScript dependency. */
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease, transform 450ms ease;
}
html.reveal-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--space-8); }
.section-dark { background: var(--color-black); color: var(--color-off-white); }
.section-charcoal { background: var(--color-charcoal); color: var(--color-off-white); }
.section-light { background: var(--color-off-white); color: var(--color-ink); }
.section-white { background: var(--color-white); color: var(--color-ink); }

.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.line { display: block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.section-light .eyebrow, .section-white .eyebrow { color: var(--color-gold-deep); }

.section-head { max-width: 680px; margin-bottom: var(--space-6); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, var(--fs-2xl)); }
.section-head .lede { font-size: var(--fs-md); color: var(--color-ink-soft); margin-bottom: 0; }
.section-dark .section-head .lede,
.section-charcoal .section-head .lede { color: rgba(245, 243, 238, 0.76); }

.text-muted { color: var(--color-ink-soft); }
.section-dark .text-muted, .section-charcoal .text-muted { color: rgba(245, 243, 238, 0.72); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: var(--space-3);
  background: var(--color-gold); color: var(--color-black);
  font-weight: 700;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  z-index: 1000; transition: top var(--transition);
}
.skip-link:focus { top: var(--space-3); }

/* ---- Editorial layouts ---- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-7);
  align-items: start;
}
.split-head h2 { font-size: clamp(1.9rem, 3.6vw, var(--fs-2xl)); margin-bottom: 0; }
.split-body p { font-size: 1.125rem; line-height: 1.7; max-width: 58ch; color: var(--color-ink-soft); }
.section-dark .split-body p, .section-charcoal .split-body p { color: rgba(245, 243, 238, 0.8); }
.split-body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Large statement heading */
.statement { max-width: 900px; }
.statement h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: var(--space-5);
}
.statement p {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--color-ink-soft);
  max-width: 62ch;
}
.section-dark .statement p, .section-charcoal .statement p { color: rgba(245, 243, 238, 0.8); }

/* Short standalone line with weight */
.standalone {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  color: var(--color-ink);
  margin-top: var(--space-5);
  margin-bottom: 0;
}
.section-dark .standalone, .section-charcoal .standalone, .photo-band .standalone { color: var(--color-off-white); }

/* ---- Buttons and links ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-black);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(245, 243, 238, 0.45);
  color: var(--color-off-white);
}
.btn-outline:hover { border-color: var(--color-gold); color: var(--color-gold); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 1.05rem 1.75rem; font-size: var(--fs-base); }
.btn-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-gold-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap var(--transition), color var(--transition);
}
.panel-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.panel-link:hover { gap: var(--space-3); }
.section-dark .panel-link, .section-charcoal .panel-link, .photo-band .panel-link { color: var(--color-gold); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border-dark);
}
/* Blur lives on a pseudo-element rather than .site-header itself, because
   backdrop-filter on an element creates a new containing block for any
   position:fixed descendants (the mobile nav panel, the fixed CTA button),
   which would otherwise get trapped inside the header's own small box
   instead of covering the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 10, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--header-pad);
}
.brand { display: flex; align-items: center; }
.brand img { height: var(--logo-h); width: auto; }
@media (max-width: 1180px) {
  :root { --header-h: 89px; --logo-h: 60px; --header-pad: 0.875rem; }
}
@media (max-width: 600px) {
  :root { --header-h: 77px; --logo-h: 52px; --header-pad: 0.75rem; }
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-primary a {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(245, 243, 238, 0.8);
  padding-block: var(--space-1);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--color-off-white);
  border-color: var(--color-gold);
}

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(245, 243, 238, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  color: var(--color-off-white);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1180px) {
  .nav-primary {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-black);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    overflow-y: auto;
  }
  .nav-primary a {
    padding: var(--space-3) var(--space-1);
    border-bottom: 1px solid var(--color-border-dark);
    font-size: var(--fs-md);
  }
  body.nav-open .nav-primary {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .header-actions .btn-gold { display: none; }
  body.nav-open .header-actions .btn-gold {
    display: inline-flex;
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    justify-content: center;
    z-index: 101;
  }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Atmosphere (photography behind text) and heroes
   ========================================================================== */
.atmosphere { position: absolute; inset: 0; overflow: hidden; }
.atmosphere img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atmosphere-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,10,13,0.78) 0%, rgba(8,10,13,0.42) 40%, rgba(8,10,13,0.1) 66%),
    linear-gradient(180deg, rgba(8,10,13,0.2) 0%, rgba(8,10,13,0.3) 45%, rgba(8,10,13,0.9) 100%);
}

/* Home hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-off-white);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-8) var(--space-7);
}
.hero .eyebrow { margin-bottom: var(--space-4); color: rgba(245, 243, 238, 0.86); }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: var(--space-4);
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--color-gold); }
.hero .hero-category {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-off-white);
  max-width: 60ch;
  margin-bottom: var(--space-3);
}
.hero .supporting {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.88);
  max-width: 46ch;
  margin-bottom: var(--space-5);
}
.hero-dates {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.82);
}
.hero-dates .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-gold); }

@media (max-width: 640px) {
  .hero-inner { padding-block: var(--space-7) var(--space-6); }
  .hero-dates { margin-top: var(--space-5); }
}

/* Sub-page heroes */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-off-white);
}
.page-hero.is-short { min-height: 40vh; }
.page-hero.is-plain { background: var(--gradient-dusk); min-height: 0; }
.page-hero .hero-inner { padding-block: var(--space-8) var(--space-6); }
.page-hero.is-plain .hero-inner { padding-block: var(--space-7) var(--space-6); }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.page-hero .lede {
  color: rgba(245, 243, 238, 0.86);
  font-size: clamp(1.05rem, 1.6vw, var(--fs-md));
  max-width: 56ch;
  margin-bottom: 0;
}

/* ==========================================================================
   Photo band: full-bleed golf photography with text over it
   ========================================================================== */
.photo-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-off-white);
  padding-block: var(--space-9);
}
.photo-band .atmosphere-overlay {
  background:
    linear-gradient(90deg, rgba(8,10,13,0.9) 0%, rgba(8,10,13,0.7) 45%, rgba(8,10,13,0.35) 100%),
    linear-gradient(180deg, rgba(8,10,13,0) 40%, rgba(8,10,13,0.7) 100%);
}
.photo-band.is-centered .atmosphere-overlay { background: rgba(8, 10, 13, 0.6); }
.photo-band .band-inner { position: relative; z-index: 2; }
.photo-band h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: var(--space-5);
}
.photo-band .band-copy { max-width: 54ch; }
.photo-band .band-copy p { font-size: 1.1875rem; line-height: 1.7; color: rgba(245, 243, 238, 0.88); }
.photo-band.is-centered { text-align: center; padding-block: var(--space-8); }
.photo-band.is-centered .band-copy { margin-inline: auto; }
.photo-band.is-centered .btn-row { justify-content: center; }
.photo-band.is-centered h2 { margin-inline: auto; max-width: 16ch; }

/* Golf principles: a restrained typographic list, not cards */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 var(--space-6);
  margin-top: var(--space-7);
}
.principle {
  padding-block: var(--space-4);
  border-top: 1px solid rgba(245, 243, 238, 0.24);
}
.principle dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--color-gold);
  margin-bottom: 0.35rem;
}
.principle dd { font-size: var(--fs-sm); line-height: 1.6; color: rgba(245, 243, 238, 0.82); margin: 0; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; margin-top: var(--space-6); } }

/* Leadership themes as one line of words */
.theme-line {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0.6rem 2.25rem;
  margin-top: var(--space-5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
}
.theme-line li { display: flex; align-items: center; gap: 0.7rem; }
.theme-line li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}
.section-light .theme-line li::before, .section-white .theme-line li::before { background: var(--color-gold-deep); }
@media (max-width: 560px) { .theme-line { grid-template-columns: repeat(2, auto); gap: 0.6rem 1.5rem; } }

/* ==========================================================================
   Stats (the cohort in numbers)
   ========================================================================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
  padding-block: var(--space-6);
  margin-block: var(--space-6);
}
.section-light .stat-row, .section-white .stat-row { border-color: var(--color-border-light); }
.stat .stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.section-light .stat .stat-number, .section-white .stat .stat-number { color: var(--color-gold-deep); }
.stat .stat-label { font-size: var(--fs-sm); margin: 0; color: rgba(245, 243, 238, 0.8); }
.section-light .stat .stat-label, .section-white .stat .stat-label { color: var(--color-ink-soft); }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Rhythm rows (label on the left, prose on the right)
   ========================================================================== */
.rhythm-list { display: flex; flex-direction: column; }
.rhythm-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border-dark);
}
.section-light .rhythm-row, .section-white .rhythm-row { border-top-color: var(--color-border-light); }
.rhythm-row:last-child { border-bottom: 1px solid var(--color-border-dark); }
.section-light .rhythm-row:last-child, .section-white .rhythm-row:last-child { border-bottom-color: var(--color-border-light); }
.rhythm-label {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0.4rem 0 0;
}
.section-light .rhythm-label, .section-white .rhythm-label { color: var(--color-gold-deep); }
.rhythm-row h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.rhythm-row p { font-size: var(--fs-base); line-height: 1.7; color: var(--color-ink-soft); max-width: 60ch; margin-bottom: 0; }
.section-dark .rhythm-row p, .section-charcoal .rhythm-row p { color: rgba(245, 243, 238, 0.8); }
@media (max-width: 760px) {
  .rhythm-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .rhythm-label { margin-top: 0; }
}

/* ==========================================================================
   Lists
   ========================================================================== */
.dot-list { display: flex; flex-direction: column; gap: var(--space-2); }
.dot-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-ink-soft);
}
.section-dark .dot-list li, .section-charcoal .dot-list li { color: rgba(245, 243, 238, 0.84); }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
}
.section-light .dot-list li::before, .section-white .dot-list li::before { background: var(--color-gold-deep); }
.dot-list strong { color: var(--color-ink); font-weight: 600; }
.section-dark .dot-list strong, .section-charcoal .dot-list strong { color: var(--color-off-white); }

.dot-list.is-columns { display: block; columns: 2; column-gap: var(--space-6); max-width: 900px; }
.dot-list.is-columns li { break-inside: avoid; margin-bottom: var(--space-2); }
@media (max-width: 700px) { .dot-list.is-columns { columns: 1; } }

/* Hairline list: each item a line with a bold lead */
.plain-list li {
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-border-dark);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: rgba(245, 243, 238, 0.82);
}
.plain-list li:last-child { border-bottom: 1px solid var(--color-border-dark); }
.plain-list strong { display: block; font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-md); color: var(--color-off-white); margin-bottom: 2px; }
.section-light .plain-list li, .section-white .plain-list li { border-color: var(--color-border-light); color: var(--color-ink-soft); }
.section-light .plain-list strong, .section-white .plain-list strong { color: var(--color-ink); }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.col-block { border-top: 1px solid var(--color-border-dark); padding-top: var(--space-4); }
.section-light .col-block, .section-white .col-block { border-top-color: var(--color-border-light); }
.col-block h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.col-block p { color: var(--color-ink-soft); margin-bottom: 0; }
.section-dark .col-block p, .section-charcoal .col-block p { color: rgba(245, 243, 238, 0.8); }
@media (max-width: 860px) {
  .cols-3 { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ==========================================================================
   Venues
   ========================================================================== */
/* Home: editorial mosaic, two tiles a row, widths alternating */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}
.tile {
  position: relative;
  overflow: hidden;
  grid-column: span 6;
  min-height: clamp(240px, 30vw, 400px);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-dark);
  margin: 0;
}
.tile.span-5 { grid-column: span 5; }
.tile.span-7 { grid-column: span 7; }
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}
.tile:hover img { transform: scale(1.03); }
.tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,13,0) 45%, rgba(8,10,13,0.88) 100%);
}
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-4);
  z-index: 2;
}
.tile-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 4px;
}
.tile h3 { color: var(--color-off-white); font-size: var(--fs-lg); margin: 0; }
@media (max-width: 760px) {
  .tile, .tile.span-5, .tile.span-7 { grid-column: 1 / -1; min-height: 240px; }
}

.venue-notice {
  margin: var(--space-5) 0 0;
  font-size: var(--fs-sm);
  color: var(--color-ink-soft);
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-3);
  max-width: 68ch;
}
.section-dark .venue-notice, .section-charcoal .venue-notice { color: rgba(245, 243, 238, 0.78); }

/* Courses page: one venue per row, photograph and words side by side */
.venue-group-head { max-width: 640px; margin: var(--space-8) 0 var(--space-4); }
.venue-group-head:first-of-type { margin-top: var(--space-6); }
.venue-group-head h2 { font-size: clamp(1.6rem, 3vw, var(--fs-xl)); margin-bottom: 0; }
.venue-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-5);
}
.venue-detail.reverse { grid-template-columns: 0.85fr 1.15fr; }
.venue-detail.reverse .venue-detail-media { order: 2; }
.venue-detail-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-charcoal);
}
.venue-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.venue-index {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin-bottom: var(--space-2);
}
.venue-detail-copy h3 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.venue-detail-copy p { font-size: var(--fs-base); line-height: 1.7; color: var(--color-ink-soft); margin-bottom: 0; }
@media (max-width: 860px) {
  .venue-detail, .venue-detail.reverse { grid-template-columns: 1fr; gap: var(--space-4); }
  .venue-detail.reverse .venue-detail-media { order: 0; }
}

/* ==========================================================================
   Conversations: leadership themes as questions
   ========================================================================== */
.theme-group { padding-block: var(--space-6); border-top: 1px solid var(--color-border-dark); }
.theme-group:first-child { border-top: none; padding-top: 0; }
.theme-group-head { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-6); margin-bottom: var(--space-4); }
.theme-group-head h3 { font-size: var(--fs-xl); margin: 0; }
.theme-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.theme-name { font-size: var(--fs-md); margin-bottom: 4px; }
.theme-gist { font-size: var(--fs-sm); color: rgba(245, 243, 238, 0.72); margin: 0; }
.theme-questions { display: flex; flex-direction: column; gap: var(--space-2); }
.theme-questions li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(245, 243, 238, 0.9);
}
.theme-questions li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
}
@media (max-width: 760px) {
  .theme-group-head, .theme-row { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ==========================================================================
   Steps and Q&A
   ========================================================================== */
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}
.steps li:last-child { border-bottom: 1px solid var(--color-border-light); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  color: var(--color-gold-deep);
  padding-top: 0.2rem;
}
.steps h3 { font-size: var(--fs-md); margin: 0 0 0.25rem; }
.steps p { margin: 0; color: var(--color-ink-soft); font-size: var(--fs-base); }

.qa { max-width: 780px; }
.qa-item { padding-block: var(--space-5); border-top: 1px solid var(--color-border-light); }
.qa-item:last-child { border-bottom: 1px solid var(--color-border-light); }
.qa-item h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.qa-item p { color: var(--color-ink-soft); font-size: 1.0625rem; line-height: 1.7; max-width: 64ch; margin-bottom: 0; }
.qa-item a { color: var(--color-gold-deep); border-bottom: 1px solid currentColor; }

/* ==========================================================================
   Investment note (The six days, For your organisation, Register)
   ========================================================================== */
.investment {
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-4);
  max-width: 62ch;
  margin-block: var(--space-4);
}
.section-light .investment, .section-white .investment { border-left-color: var(--color-gold-deep); }
.investment p { font-size: var(--fs-base); line-height: 1.65; margin-bottom: var(--space-2); }
.investment p:last-child { margin-bottom: 0; }
.investment p.investment-lead {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.2;
  color: var(--color-ink);
}
.section-dark .investment p.investment-lead, .section-charcoal .investment p.investment-lead { color: var(--color-off-white); }
.form-card .investment { margin-top: 0; margin-bottom: var(--space-5); }

/* Subtle single line under a call to action */
.cta-meta {
  margin: var(--space-5) 0 0;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.85);
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-7);
  align-items: start;
}
.about-photo-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-charcoal);
}
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { font-size: clamp(1.9rem, 3.6vw, var(--fs-2xl)); margin-bottom: var(--space-4); }
.about-content p { font-size: 1.125rem; line-height: 1.7; color: var(--color-ink-soft); max-width: 58ch; }
.about-content .standalone { color: var(--color-ink); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .about-photo-frame { max-width: 360px; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  overflow: hidden;
  background: var(--gradient-dusk);
  color: var(--color-off-white);
}
.cta-band .cta-inner { position: relative; z-index: 1; max-width: 620px; margin-inline: auto; }
.cta-band h2 { font-size: clamp(1.75rem, 3.6vw, var(--fs-2xl)); }
.cta-band p { color: rgba(245, 243, 238, 0.82); margin-bottom: var(--space-5); font-size: var(--fs-md); }
.cta-band .btn-row { justify-content: center; }
.cta-band h2 + .btn-row { margin-top: var(--space-5); }
@media (max-width: 600px) { .cta-band { padding: var(--space-6) var(--space-4); } }

/* ==========================================================================
   Register form
   ========================================================================== */
.register-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-7);
  align-items: start;
}
.register-aside h2 { font-size: var(--fs-xl); margin-bottom: var(--space-4); }
.register-aside > p { color: var(--color-ink-soft); }
@media (max-width: 960px) { .register-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
/* Side column starts level with the first line INSIDE the card (card border + padding), not its outer edge */
@media (min-width: 961px) { .register-aside { padding-top: 2.7rem; } }

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .form-card { padding: var(--space-4); } }
/* Very small phones (320px): the submit button must be able to fit inside the card */
@media (max-width: 380px) {
  .form-card { padding: var(--space-3); }
  .form-card .btn { width: 100%; justify-content: center; padding-inline: 1rem; white-space: normal; text-align: center; }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
.form-field { margin-bottom: var(--space-4); border: 0; padding: 0; min-width: 0; }
.form-field > label {
  display: block;
  width: 100%;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-ink);
}
.form-field .optional { font-weight: 400; color: var(--color-ink-soft); }
.form-hint { font-size: var(--fs-xs); color: var(--color-ink-soft); margin: -2px 0 8px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-base);
  padding: 0.8rem 0.95rem;
  border: 1px solid #a9abb0;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold-deep);
  box-shadow: 0 0 0 3px rgba(209, 168, 0, 0.22);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field.has-error input,
.form-field.has-error textarea { border-color: #b3261e; }
.form-error-text { display: none; font-size: var(--fs-xs); color: #b3261e; margin: 6px 0 0; }
.form-field.has-error .form-error-text,
.checkbox-field.has-error .form-error-text { display: block; }

.checkbox-field { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; margin-bottom: var(--space-5); }
.checkbox-field input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--color-gold-deep); }
.checkbox-field label { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.55; }
.checkbox-field label a { color: var(--color-gold-deep); border-bottom: 1px solid currentColor; }
.checkbox-field .form-error-text { flex-basis: 100%; }

.form-note { font-size: var(--fs-xs); color: var(--color-ink-soft); margin: var(--space-3) 0 0; }

.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
}
.form-status.is-success {
  display: block;
  background: rgba(209, 168, 0, 0.1);
  border: 1px solid var(--color-gold-muted);
  color: var(--color-ink);
}
.form-status.is-error {
  display: block;
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid #b3261e;
  color: var(--color-ink);
}
.form-status h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.form-status p { margin-bottom: 0; }
.form-status:focus { outline: none; }
.form-status a { border-bottom: 1px solid currentColor; }

/* Honeypot: hidden from people, visible to bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-black); color: rgba(245, 243, 238, 0.76); padding-top: var(--space-7); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-dark);
}
.footer-brand img { height: 52px; width: auto; margin-bottom: var(--space-3); }
.footer-brand p { font-size: var(--fs-sm); color: rgba(245, 243, 238, 0.66); max-width: 34ch; }
.footer-brand a { font-size: var(--fs-sm); color: rgba(245, 243, 238, 0.82); transition: color var(--transition); }
.footer-brand a:hover { color: var(--color-gold); }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 243, 238, 0.6);
  margin-bottom: var(--space-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { font-size: var(--fs-sm); color: rgba(245, 243, 238, 0.82); transition: color var(--transition); }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  padding-block: var(--space-4) var(--space-2);
  font-size: var(--fs-2xs);
  color: rgba(245, 243, 238, 0.6);
}
.footer-bottom p { margin: 0; }
.footer-legal {
  padding-bottom: var(--space-5);
  font-size: var(--fs-2xs);
  color: rgba(245, 243, 238, 0.6);
}
.footer-legal p { margin: 0; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Focus and utility
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}
.section-light a:focus-visible, .section-white a:focus-visible,
.section-light button:focus-visible, .section-white button:focus-visible { outline-color: var(--color-gold-deep); }

/* Legal pages */
.legal-body h2 { font-size: var(--fs-lg); margin-top: var(--space-5); }
.legal-body p { color: var(--color-ink-soft); }
.legal-body a { color: var(--color-gold-deep); border-bottom: 1px solid currentColor; }

/* ==========================================================================
   Print: light backgrounds, dark text, no chrome (the "For your organisation"
   page is the one most likely to be printed or saved as a PDF)
   ========================================================================== */
@media print {
  .site-header, .skip-link, .nav-toggle, .btn, .cta-band, .atmosphere,
  .atmosphere-overlay, .footer-grid, .photo-band, .tile { display: none !important; }
  html.reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  body, .section, .section-dark, .section-charcoal, .section-light,
  .section-white, .page-hero, .site-footer { background: #fff !important; color: #000 !important; padding-block: 1rem !important; min-height: 0 !important; }
  h1, h2, h3, h4, p, li, dt, dd, .lede, .eyebrow, .stat-number, .stat-label,
  .rhythm-label, .split-body p, .statement p, .qa-item p, .dot-list li,
  .page-hero .lede, .col-block p { color: #000 !important; }
  a { color: #000 !important; border: 0 !important; }
  .qa-item, .stat-row { break-inside: avoid; }
}
