/* ==========================================================================
   Gandler Sports Group — gandlersports.com
   Single stylesheet. Organised: tokens → reset → type → layout → components
   → sections → pages → responsive → motion/a11y.
   Brand hexes are lifted directly from the logo SVGs; do not eyeball-replace.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — extracted from gandler-lockup.svg / gandler-lockup-reverse.svg */
  --ink: #201e1d;          /* brand charcoal, the true black of the mark */
  --accent: #fa7c1f;       /* accent ON DARK  — from the reverse lockup */
  --accent-deep: #ec3013;  /* accent ON LIGHT — from the primary lockup */

  /* Dark palette built around --ink */
  --bg: #131211;           /* page, a touch deeper than ink */
  --bg-raised: #1a1817;
  --surface: var(--ink);
  --surface-2: #2a2726;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #f6f3f1;
  --text-dim: #b7b1ab;
  --text-faint: #756e69;

  /* Light section (used sparingly, e.g. leadership) */
  --light-bg: #f2f0ee;
  --light-text: var(--ink);
  --light-dim: #5d5754;

  /* Type */
  --font-display: "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Arial, sans-serif;
  --font-body: var(--font-display);

  /* Hero display size, taken down ~20% from the original 2.75/7/6 so the
     headline sits more comfortably inside the scrim panel. */
  --fs-hero:    clamp(2.2rem, 5.6vw, 4.8rem);
  --fs-h1:      clamp(2.25rem, 5vw, 4rem);
  --fs-h2:      clamp(1.875rem, 3.6vw, 3rem);
  --fs-h3:      clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-lead:    clamp(1.125rem, 1.7vw, 1.5rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.75rem;

  /* Spacing scale */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;    --sp-6: 4rem;   --sp-7: 6rem;    --sp-8: 8rem;

  --section-y: clamp(5rem, 10vw, 10rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1320px;
  --measure: 68ch;

  --radius: 3px;   /* the brand is angular; keep corners nearly sharp */
  --nav-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 240ms;

  /* The logo's slash leans ~20°. Reused as the accent motif throughout. */
  --slash: -20deg;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--ink); }

.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--ink);
  padding: var(--sp-1) var(--sp-3);
  font-weight: 700;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-2); }

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

/* --------------------------------------------------------------------------
   3. Type
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
  max-width: 30ch;
  letter-spacing: -0.01em;
}

.prose { max-width: var(--measure); color: var(--text-dim); }
.prose p + p { margin-top: var(--sp-3); }
.prose strong { color: var(--text); font-weight: 600; }

.dim { color: var(--text-dim); }

/* Section eyebrow — the recurring motif. The ::before is a parallelogram
   skewed to the same angle as the slash in the G of the logo. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 8px;
  background: var(--accent);
  transform: skewX(var(--slash));
  flex: none;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
/* The CTA band carries its own generous padding; trim the preceding section's
   bottom padding so the two rhythms don't stack into an oversized gap. */
.section:has(+ .cta) { padding-bottom: var(--sp-4); }
.section--ink { background: var(--surface); }
.section--raised { background: var(--bg-raised); }

.section-head {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--sp-6);
  }
}

.grid { display: grid; gap: var(--sp-4); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.hr { height: 1px; background: var(--line); border: 0; }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #ffa257; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Text link with animated underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease);
}
.link:hover { background-size: 100% 1px; }
.link .arrow { transition: transform var(--dur) var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              height var(--dur) var(--ease);
}
.nav.is-stuck {
  height: 68px;
  background: rgba(19, 18, 17, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 34px; width: auto; }

.nav__links { display: flex; align-items: center; gap: var(--sp-4); }
.nav__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  padding-block: 0.4rem;
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0) skewX(var(--slash));
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1) skewX(var(--slash)); }

.nav__cta { flex: none; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  flex: none;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--gutter) var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__list { display: grid; gap: var(--sp-2); }
.menu__link {
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.menu__link:hover, .menu__link[aria-current="page"] { color: var(--accent); padding-left: 0.5rem; }
.menu__foot { margin-top: var(--sp-6); color: var(--text-faint); font-size: var(--fs-small); }

body.is-locked { overflow: hidden; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero--inner {
  min-height: 62svh;
  align-items: flex-end;
}
/* Shorter inner hero — less empty space before the content that follows. */
.hero--short { min-height: 42svh; }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Video/poster sit ABOVE the gradient fallback, which stays visible underneath
   as a backstop. If the sources 404 or autoplay is refused, the transparent
   <video> simply reveals the fallback again rather than showing a black box. */
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback backdrop used until real footage is dropped in.
   Layered radial + linear gradients over the brand charcoal, with an
   angled accent sweep echoing the logo slash. */
.hero__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(250, 124, 31, 0.28) 0%, rgba(250, 124, 31, 0) 55%),
    radial-gradient(90% 70% at 12% 92%, rgba(236, 48, 19, 0.20) 0%, rgba(236, 48, 19, 0) 60%),
    linear-gradient(155deg, #2b2725 0%, var(--ink) 45%, #0e0d0c 100%);
}
.hero__fallback::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(250, 124, 31, 0.10) 46%,
    rgba(250, 124, 31, 0.16) 50%,
    rgba(250, 124, 31, 0.10) 54%,
    transparent 62%
  );
  transform: skewX(var(--slash));
}

/* Fine grain so the flat gradient never bands on large displays */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(19, 18, 17, 0.72) 0%,
      rgba(19, 18, 17, 0.30) 30%,
      rgba(19, 18, 17, 0.65) 72%,
      rgba(19, 18, 17, 0.96) 100%);
}

/* Photographic hero. The Brisbane Road shot is bright — blue sky, lit pitch —
   so the standard scrim isn't enough to hold white type. This adds weight at
   the bottom where the headline sits, plus a left-to-right wash for the text
   column, while leaving the middle of the frame open so the ground still
   reads. */
.hero--photo .hero__scrim {
  background:
    linear-gradient(to right,
      rgba(19, 18, 17, 0.97) 0%,
      rgba(19, 18, 17, 0.95) 26%,
      rgba(19, 18, 17, 0.62) 44%,
      rgba(19, 18, 17, 0.12) 62%,
      rgba(19, 18, 17, 0) 74%),
    linear-gradient(to bottom,
      rgba(19, 18, 17, 0.30) 0%,
      rgba(19, 18, 17, 0) 34%,
      rgba(19, 18, 17, 0.55) 100%);
}

/* A left column has nowhere to go on a phone — fall back to bottom-weighted. */
@media (max-width: 860px) {
  .hero--photo .hero__scrim {
    background:
      linear-gradient(to bottom,
        rgba(19, 18, 17, 0.55) 0%,
        rgba(19, 18, 17, 0.18) 30%,
        rgba(19, 18, 17, 0.70) 62%,
        rgba(19, 18, 17, 0.98) 100%);
  }
}

/* Grain is tuned for the flat gradient; over a photograph it only adds noise. */
.hero--photo .hero__grain { opacity: 0.07; }

.hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(4rem, 9vw, 8rem);
  padding-top: calc(var(--nav-h) + var(--sp-6));
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  margin-top: var(--sp-3);
  /* Its own scale rather than --fs-lead, so shrinking the hero doesn't drag
     the section leads down with it. Ceiling is ~20% off; the floor stays at
     1rem to keep it readable on a phone. */
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: var(--text-dim);
  max-width: 34ch;
  line-height: 1.45;
}
.hero__actions {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--sp-3);
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__cue i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 700px) { .hero__cue { display: none; } }

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3.25rem) var(--sp-3);
  text-align: center;
}
.stat__num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat__num .unit { color: var(--accent); }
.stat__label {
  margin-top: var(--sp-2);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
/* Attribution under a stats row — kept tight to the figures it belongs to */
.stat__note {
  margin-top: var(--sp-2);
  text-align: center;
  color: var(--text-faint);
  font-size: var(--fs-small);
}

/* Community page — tighter vertical rhythm than the default section spacing */
.page-community { --section-y: clamp(3.25rem, 6.5vw, 6.5rem); }
.page-community .section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-community .stat__note + .section { padding-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  background: var(--surface);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--surface-2), var(--ink));
  overflow: hidden;
  flex: none;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Angled accent wash on the placeholder media, keeps empty cards from
   reading as broken. */
.card__media::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(100deg, transparent 42%, rgba(250,124,31,0.14) 50%, transparent 58%);
  transform: skewX(var(--slash));
  transition: transform 600ms var(--ease);
}
.card:hover .card__media::after { transform: skewX(var(--slash)) translateX(12%); }

.card__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.card__mark img { width: clamp(48px, 18%, 76px); height: auto; opacity: 0.5; }

.card__body {
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__title { font-size: var(--fs-h3); }
.card__desc { color: var(--text-dim); font-size: 0.9375rem; flex: 1; }
.card__meta {
  font-size: var(--fs-small);
  color: var(--text-faint);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.card__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
}
.card__sources a { color: var(--accent); white-space: nowrap; }
.card__sources a:hover { text-decoration: underline; }
.card__foot { margin-top: var(--sp-1); }

/* Whole-card click target without nesting interactive elements */
.card__link::after { content: ""; position: absolute; inset: 0; }

/* Portfolio holding cards — a logo plate over the standard card body.
   Light plate suits dark logos (Leyton Orient, EFA); --dark suits a white
   mark (London Guard). The wordmark fallback shows until the file is placed. */
.holding__logo {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: #d8d3cb;              /* warm stone — more refined than pure white */
  overflow: hidden;
}
/* Restrained brand-colour glow behind each logo; --glow is set per card. */
.holding__logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 54% at 50% 47%, var(--glow, transparent), transparent 72%);
  pointer-events: none;
}
.holding__logo img,
.holding__fallback { position: relative; z-index: 1; }
.holding__logo img {
  max-width: 78%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.holding__fallback {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* Hide the wordmark once a real logo image is present. */
.holding__logo:has(img) .holding__fallback { display: none; }
.holding .card__title a { color: inherit; text-decoration: none; }
.holding .card__ext { color: var(--accent); font-size: 0.85em; margin-left: 0.15em; }
.card.holding:hover .card__title a { color: var(--accent); }

/* Value list with a small angled accent marker */
.value-list { display: grid; gap: 0.85rem; margin-top: var(--sp-3); }
.value-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-dim);
}
.value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 2px;
  background: var(--accent);
  transform: skewX(var(--slash));
}

.card--news .card__media { aspect-ratio: 16 / 9; }
.card__media--ballard img { object-position: center 57%; }
.card__media--logo {
  display: grid;
  place-items: center;
  padding: clamp(2.25rem, 5vw, 4.5rem);
  background: #d8d3cb;
}
.card__media--logo img {
  width: min(78%, 30rem);
  height: auto;
  max-height: 72%;
  object-fit: contain;
}
.card__media--logo::after { opacity: 0.08; }
.card:hover .card__media--logo img { transform: none; }
.card--lead { grid-column: 1 / -1; }
/* The Ballard source is close to square. On the stacked mobile lead card,
   preserve that natural framing so his face and awards stay in view. The
   separate 16:9 homepage crop and the desktop split-card treatment are
   intentionally unaffected. */
@media (max-width: 899px) {
  .card--lead .card__media--ballard { aspect-ratio: 1440 / 1318; }
  .card--lead .card__media--ballard img { object-position: center; }
}
@media (min-width: 900px) {
  .card--lead { flex-direction: row; }
  .card--lead .card__media { flex: 1 1 55%; aspect-ratio: auto; min-height: 340px; }
  .card--lead .card__body { flex: 1 1 45%; justify-content: center; padding: var(--sp-5); }
  .card--lead .card__title { font-size: var(--fs-h2); }
}

/* --------------------------------------------------------------------------
   10. Pillars (value-capture stack)
   -------------------------------------------------------------------------- */
.stack { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.layer {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: var(--sp-2);
  transition: background var(--dur) var(--ease);
}
.layer:hover { background: var(--bg-raised); }
@media (min-width: 860px) {
  .layer {
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: center;
    gap: var(--sp-4);
  }
}
.layer__n {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.25rem;
}
.layer__name { font-size: var(--fs-h3); }
.layer__detail { color: var(--text-dim); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   11. Split feature
   -------------------------------------------------------------------------- */
.split { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split__media {
  position: relative;
  min-height: clamp(280px, 46vw, 620px);
  background: linear-gradient(150deg, var(--surface-2), var(--ink));
  overflow: hidden;
}
.split__media img, .split__media video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.split__media::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(100deg, transparent 40%, rgba(250,124,31,0.16) 50%, transparent 60%);
  transform: skewX(var(--slash));
}
.split__body {
  background: var(--surface);
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Phase list inside the split */
.phases { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.phase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.phase__when {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.phase__what { color: var(--text-dim); font-size: 0.9375rem; }
.phase__what b { color: var(--text); font-weight: 600; display: block; margin-bottom: 0.15rem; }

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(100deg, transparent 44%, rgba(250,124,31,0.12) 50%, transparent 56%);
  transform: skewX(var(--slash));
}
.cta__inner {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); }
}
.cta__title { font-size: var(--fs-h2); max-width: 20ch; }
.cta__lede { color: var(--text-dim); margin-top: var(--sp-3); max-width: 46ch; }

/* --------------------------------------------------------------------------
   13. Leadership
   -------------------------------------------------------------------------- */
.people { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.person {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
}
.person__photo {
  aspect-ratio: 4 / 5;
  position: relative;
  background: linear-gradient(150deg, var(--surface-2), var(--ink));
  display: grid;
  place-items: center;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: -0.03em;
}
.person__body { padding: var(--sp-3); display: grid; gap: 0.5rem; }
.person__name { font-size: var(--fs-h3); }
.person__role {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.person__bio { color: var(--text-dim); font-size: 0.9375rem; }

/* Founder feature — split media graded into the dark theme */
.founder__role {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.6rem;
}
.founder__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: -0.03em;
}
.founder__media img {
  z-index: 1;
  object-position: 30% center;
  filter: saturate(0.9) contrast(1.03) brightness(0.96);
}
/* Scrim: weight the bottom and text-side edges so the bright sky sits in the dark. */
.founder__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(19,18,17,0.5), rgba(19,18,17,0) 42%),
    linear-gradient(to top, rgba(19,18,17,0.74), rgba(19,18,17,0.12) 46%, rgba(19,18,17,0) 72%),
    linear-gradient(to left, rgba(19,18,17,0.5), rgba(19,18,17,0) 55%);
}
/* Keep the accent slash sweep above the scrim. */
.founder__media::after { z-index: 3; }

/* --------------------------------------------------------------------------
   14. Filters
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--sp-5);
}
.filter {
  padding: 0.55rem 1.15rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.empty { color: var(--text-faint); padding: var(--sp-5) 0; }

/* --------------------------------------------------------------------------
   15. Form
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-3); }
@media (min-width: 720px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); } }

.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input,
.field select,
.field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }

.field__error {
  font-size: var(--fs-small);
  color: #ff8f7a;
  min-height: 1.2em;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #ff8f7a; }

.form__status {
  padding: var(--sp-3);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(250, 124, 31, 0.08);
  color: var(--text);
  display: none;
}
.form__status.is-visible { display: block; }

/* Reassurance line under the submit button */
.form__note {
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--text-dim);
  max-width: 48ch;
}

/* Contact page — shorter hero (~40% down from the inner default), form pulled
   up so it shows within the first screen */
.page-contact .hero { min-height: 37svh; }
.page-contact .hero + .section { padding-top: var(--sp-5); }

/* Smooth in-page scrolling (e.g. Partner with us -> the form) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Legal / long-form text pages (Privacy, Terms) */
.legal { max-width: 68ch; color: var(--text-dim); }
.legal > p { margin-bottom: var(--sp-3); line-height: 1.6; }
.legal h2 {
  color: var(--text);
  font-size: var(--fs-h3);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.legal ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin-bottom: var(--sp-3);
  display: grid;
  gap: 0.45rem;
}
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
/* Highlight placeholders still to be filled before launch */
.legal__todo {
  background: rgba(250, 124, 31, 0.18);
  color: var(--text);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 600;
}

/* Contact detail list */
.details { display: grid; gap: var(--sp-4); }
.detail__label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.detail__value { font-size: 1.0625rem; }
.detail__value a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  /* Brand anchors the left; the three link columns share the rest and fill the width. */
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__brand img { height: 34px; width: auto; margin-bottom: var(--sp-2); }
.footer__blurb { color: var(--text-dim); font-size: 0.9375rem; max-width: 30ch; }
.footer__h {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.footer__list { display: grid; gap: 0.6rem; }
.footer__list a, .footer__list span { color: var(--text-dim); font-size: 0.9375rem; transition: color var(--dur) var(--ease); }
.footer__list a:hover { color: var(--accent); }

.footer__bar {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: var(--fs-small);
}
.footer__bar nav { display: flex; gap: var(--sp-3); }
.footer__bar a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Reduced motion — disable everything decorative
   -------------------------------------------------------------------------- */
@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 { opacity: 1; transform: none; }
  .hero__cue i { animation: none; }
}
