/* =====================================================================
   MADDIMAX - Homepage concept
   "Show the operator, don't claim it."
   Dark cinematic impression -> light readable case -> dark proof & close.
   Architectural grotesque + mono. Deep-aubergine "house light" accent,
   rationed. All-sharp geometry (squared). Energy without chaos.

   Fonts: Hanken Grotesk + IBM Plex Mono (both SIL Open Font License, free).
   Self-hosted, latin subset, woff2. See assets/fonts/.
   ===================================================================== */

/* ---------------- Self-hosted fonts (latin subset) ----------------
   Hanken Grotesk ships as a single variable woff2 spanning 400-800. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent-h: 305;                 /* single deep-aubergine "house light" hue */

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  --t-display: clamp(2.35rem, 5.3vw, 5rem);
  --t-h1:      clamp(2.1rem, 4.4vw, 4rem);
  --t-h2:      clamp(1.5rem, 2.5vw, 2.35rem);
  --t-h3:      1.18rem;
  --t-lead:    clamp(1.18rem, 1.7vw, 1.6rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-label:   0.72rem;

  --maxw: 1480px;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --section-y: clamp(5.5rem, 10vw, 11rem);
  --r: 0px;                        /* squared: one sharp system across the page */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --paper: oklch(0.99 0.003 285);  /* near-white (replaces var(--paper); never pure white) */
  --img-grade: saturate(0.62) contrast(1.03);  /* unify photography to the neutral system */
}

/* Dark theme - near-black graphite, faint cool/violet bias (the venue material) */
.theme-dark {
  --bg:          oklch(0.165 0.007 295);
  --bg-2:        oklch(0.205 0.009 295);
  --fg:          oklch(0.965 0.004 285);
  --muted:       oklch(0.715 0.008 288);
  --faint:       oklch(0.64 0.008 288);   /* lifted to clear WCAG AA on the dark bg */
  --line:        oklch(1 0 0 / 0.12);
  --line-strong: oklch(1 0 0 / 0.24);
  --accent:      oklch(0.66 0.135 var(--accent-h));
  --accent-soft: oklch(0.66 0.135 var(--accent-h) / 0.18);
  --hover-ink:   oklch(0.16 0.01 296);   /* dark text for luminous-accent hovers */
  --btn-fg:      var(--bg);
  --btn-bg:      var(--fg);
  color: var(--fg);
  background: var(--bg);
}

/* Light theme - cool off-white (architectural, not warm paper), deep aubergine */
.theme-light {
  --bg:          oklch(0.975 0.003 285);
  --bg-2:        oklch(0.945 0.005 288);
  --fg:          oklch(0.205 0.008 292);
  --muted:       oklch(0.44 0.008 292);
  --faint:       oklch(0.52 0.008 292);   /* darkened to clear WCAG AA on the light bg */
  --line:        oklch(0.205 0.02 292 / 0.15);
  --line-strong: oklch(0.205 0.02 292 / 0.30);
  --accent:      oklch(0.44 0.115 var(--accent-h));
  --accent-soft: oklch(0.44 0.115 var(--accent-h) / 0.10);
  --hover-ink:   var(--paper);                   /* white text on deep-accent hovers */
  --btn-fg:      var(--bg);
  --btn-bg:      var(--fg);
  color: var(--fg);
  background: var(--bg);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
ul, ol { list-style: none; padding: 0; }   /* kills default left inset on lists */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 100px; }

body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.62;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: oklch(0.165 0.007 295);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------- Rail grid ---------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---------------- Type primitives ---------------- */
h1, h2, h3 { font-weight: 800; line-height: 1.0; letter-spacing: -0.025em; }
.display { font-size: var(--t-display); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; }
.h1 { font-size: var(--t-h1); line-height: 1.0; letter-spacing: -0.028em; }
.h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.lead { font-size: var(--t-lead); line-height: 1.36; color: var(--muted); font-weight: 400; }
.prose { color: var(--muted); max-width: 60ch; }
.prose p + p { margin-top: 1.05rem; }
.prose strong, .prose b { color: var(--fg); font-weight: 600; }
.num { font-variant-numeric: tabular-nums lining-nums; font-weight: 800; letter-spacing: -0.03em; }

/* =====================================================================
   BUTTONS - squared, architectural, divided arrow cell, directional wipe
   ===================================================================== */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: stretch;
  font-size: var(--t-small); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bg); border-radius: var(--r);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .12s var(--ease);
}
.btn__t { padding: 0.95rem 1.35rem; }
.btn .arr {
  display: inline-flex; align-items: center; padding: 0.95rem 1.05rem;
  border-left: 1px solid color-mix(in oklab, var(--btn-fg) 26%, transparent);
  transition: transform .25s var(--ease), border-color .3s var(--ease);
}
/* the wipe */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .42s var(--ease);
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--hover-ink); border-color: var(--accent); }
.btn:hover .arr { transform: translateX(4px); border-left-color: color-mix(in oklab, var(--hover-ink) 30%, transparent); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost .arr { border-left-color: var(--line-strong); }

/* text link */
.tlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: var(--t-small);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s var(--ease);
}
.tlink:hover { background-size: 100% 1.5px; }
.tlink .arr { transition: transform .25s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }
.dl:hover .arr { transform: translateY(3px); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  /* nav sits outside the theme wrappers; give it the dark-mode accent so
     button wipes and link underlines work over the hero */
  --accent: oklch(0.66 0.135 var(--accent-h));
  --hover-ink: oklch(0.16 0.01 296);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* readability scrim over the hero so nav items stay legible on light patches;
   fades out once the solid stuck bar takes over */
.nav::before {
  content: ""; position: absolute; inset: 0; bottom: -90%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, oklch(0.09 0.01 296 / 0.62) 0%, oklch(0.10 0.01 296 / 0.28) 45%, transparent 100%);
  transition: opacity .3s var(--ease);
}
.nav.is-stuck::before { opacity: 0; }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav.is-stuck {
  background: color-mix(in oklab, oklch(0.165 0.007 295) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: oklch(1 0 0 / 0.12);
}
.nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 1.9vw, 2.1rem); }
.nav__links a {
  position: relative; font-size: var(--t-small); font-weight: 500;
  color: oklch(0.88 0.004 285 / 0.82); padding-bottom: 4px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: color .18s var(--ease), background-size .32s var(--ease);
}
.nav__links a:hover { color: var(--paper); background-size: 100% 1.5px; }
.nav__brand { display: inline-flex; align-items: center; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav .btn--primary { background: var(--paper); color: oklch(0.18 0.006 295); border-color: var(--paper); }
.nav__toggle { display: none; font-family: var(--mono); font-size: var(--t-small); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); }

/* Brand wordmark - typeset to match the MADDIMAX logo lockup */
.wordmark { display: inline-flex; flex-direction: column; gap: 4px; color: currentColor; }
.wordmark__rule { height: 2px; background: currentColor; width: 100%; }
.wordmark__type { font-weight: 800; font-size: 1.02rem; letter-spacing: 0.34em; line-height: 1; padding-left: 0.34em; }
.nav .wordmark { color: var(--paper); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
/* continuous ken-burns cross-fade slideshow (4 slides, 36s loop, long dissolves) */
.hero__slide { position: absolute; inset: 0; opacity: 0; animation: heroFade 36s linear infinite; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; animation: heroZoom 36s linear infinite; }
.hero__slide:nth-child(1), .hero__slide:nth-child(1) img { animation-delay: 0s; }
.hero__slide:nth-child(2), .hero__slide:nth-child(2) img { animation-delay: 9s; }
.hero__slide:nth-child(3), .hero__slide:nth-child(3) img { animation-delay: 18s; }
.hero__slide:nth-child(4), .hero__slide:nth-child(4) img { animation-delay: 27s; }
/* ~2.2s cross-dissolves; the image is always slowly moving while visible */
@keyframes heroFade { 0% { opacity: 0; } 6% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; } 100% { opacity: 0; } }
@keyframes heroZoom {
  0%   { transform: scale(1.05) translate(0, 0); }
  31%  { transform: scale(1.16) translate(-2%, -1.4%); }
  100% { transform: scale(1.16) translate(-2%, -1.4%); }
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% 10%, transparent 30%, oklch(0.16 0.02 300 / 0.55) 100%),
    linear-gradient(180deg, oklch(0.16 0.02 300 / 0.45) 0%, transparent 28%, oklch(0.14 0.015 298 / 0.72) 78%, oklch(0.12 0.012 296 / 0.94) 100%),
    linear-gradient(90deg, oklch(0.13 0.02 300 / 0.66) 0%, transparent 55%);
}
.hero__inner {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  padding-bottom: clamp(3.5rem, 7vw, 6rem); padding-top: 6rem;
}
.hero__copy { max-width: min(92vw, 46rem); }
.hero__headline { color: var(--paper); }
.hero__headline .line { display: block; white-space: nowrap; }
.hero__headline .thin { color: oklch(0.80 0.02 295); font-weight: 500; }
.hero__sub { color: oklch(0.86 0.006 285); font-size: var(--t-lead); line-height: 1.4; max-width: 42ch; margin-top: 1.5rem; }
.hero__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero__actions .tlink { color: var(--paper); }

/* ---- The "house light" mark: a short accent rule above major statements.
   One recurring signature in place of ad-hoc accents/eyebrows. ---- */
.tick { display: block; width: 2.4rem; height: 3px; background: var(--accent); margin-bottom: 1.3rem; }

/* =====================================================================
   STAT STRIP - 3 prospectus facts, hairline-separated, no cards
   ===================================================================== */
.stats { border-top: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1.4rem, 3vw, 2.6rem); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__val { font-size: clamp(2.8rem, 5.4vw, 4.6rem); line-height: 0.9; display: flex; align-items: baseline; gap: .06em; }
.stat__val sup { font-size: 0.4em; color: var(--accent); font-weight: 700; top: -0.9em; }
.stat__label { margin-top: 1rem; font-size: var(--t-small); color: var(--muted); max-width: 24ch; line-height: 1.4; }

/* =====================================================================
   ABOUT / THE OPERATOR - statement + overlapping image composition
   ===================================================================== */
.about__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.about__statement { font-size: clamp(1.9rem, 3.6vw, 3.3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; max-width: 17ch; }
.about__statement .em { color: var(--accent); font-weight: 700; }
.about__aside { padding-bottom: .4rem; }
.about__aside .prose { font-size: 1.08rem; }
.about__aside .tlink { margin-top: 1.6rem; }

.about__media { display: flex; align-items: flex-end; margin-top: clamp(3rem, 6vw, 5rem); }
.about__media .a { flex: 0 0 63%; position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.about__media .a img { filter: var(--img-grade); }
/* image B: a plain image (no parallax) with the elevation on the IMG itself,
   so the edge hugs the picture, not an empty frame */
.about__media .b { flex: 0 0 42%; margin-left: -5%; margin-bottom: 9%; position: relative; z-index: 2; }
.about__media .b img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.12), 0 26px 55px -22px oklch(0 0 0 / 0.8); }

/* ---- Image media ---- */
.about__media .a img, .landlord__media figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Parallax: the image is oversized inside its overflow-hidden frame and the
   displayed portion pans as you scroll (main.js sets the transform).
   High specificity so the oversize wins over the fill rule above. */
.about__media .a img.parallax,
.landlord__media figure img.parallax {
  position: absolute; inset: -22% 0 auto 0; left: 0; right: 0; width: 100%; height: 144%;
  object-fit: cover; will-change: transform;
}

/* =====================================================================
   SECTION HEAD (shared) - no max-width clamp (fits full measure)
   ===================================================================== */
.shead .h1 { max-width: 18ch; }
.shead__sub { margin-top: 1.6rem; max-width: 56ch; }

/* =====================================================================
   LANDLORD VALUE - copy + numbered points / staggered image column
   ===================================================================== */
.landlord__grid { display: grid; grid-template-columns: 1fr 0.94fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.points { margin-top: 2.6rem; }
.points li { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.7rem 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points__n { font-family: var(--mono); font-size: var(--t-small); color: var(--accent); padding-top: .2rem; font-weight: 500; }
.points__t { font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }
.points__d { color: var(--muted); margin-top: .5rem; max-width: 48ch; font-size: var(--t-small); line-height: 1.5; }
.landlord__cta { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; margin-top: 2.6rem; }

.landlord__media { display: grid; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.landlord__media figure { position: relative; overflow: hidden; }
.landlord__media .m1 { margin-right: 14%; aspect-ratio: 16 / 10; }
.landlord__media .m2 { margin-left: 22%; aspect-ratio: 4 / 3; }
.landlord__media .m3 { margin-right: 6%; margin-left: 8%; aspect-ratio: 3 / 2; }

/* =====================================================================
   INTERLUDE - full-bleed gallery band breaking the two light sections
   ===================================================================== */
/* Morphing accordion: one panel always leads; hovering any panel expands it
   and narrows the rest. */
.interlude { background: var(--bg); }
/* full-bleed morphing band of 7 panels. width:100% + cover means each panel
   always fills (no side bands); with this many narrow panels they stay below
   the image's natural cover width, so the morph reveals rather than zooms. */
.interlude__row { display: flex; gap: 0; }
.interlude figure { position: relative; overflow: hidden; flex: 1 1 0; min-width: 0;
  height: clamp(17rem, 34vw, 30rem); transition: flex-grow 1s cubic-bezier(0.22, 1, 0.36, 1); }
/* lead width == hover width, so the open panel never moves when hovered and
   any hovered panel expands to exactly the lead's width */
.interlude figure.is-lead { flex-grow: 2.2; }
.interlude__row:hover figure { flex-grow: 1; }
.interlude__row:hover figure:hover { flex-grow: 2.2; }
.interlude img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) contrast(1.04); }
.about__media .b img, .landlord__media figure img { filter: var(--img-grade); }

/* =====================================================================
   CAREERS - ascent ladder + leadership grid
   ===================================================================== */
.careers__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
/* left column holds while the leadership tiles scroll past */
.careers__content { position: sticky; top: calc(76px + 2rem); align-self: start; }
.career__q { font-size: clamp(1.5rem, 2.4vw, 2.15rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; max-width: 18ch; }
.ascent { margin-top: 2.4rem; }
.ascent__step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; padding: 1.25rem 0; }
.ascent__rail { display: flex; flex-direction: column; align-items: center; }
.ascent__dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); margin-top: .3rem; }
.ascent__line { width: 2px; flex: 1; background: var(--line); margin: 4px 0 -1.25rem; min-height: 2.2rem; }
.ascent__step:last-child .ascent__line { display: none; }
.ascent__step--peak .ascent__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.ascent__role { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.ascent__step--peak .ascent__role { color: var(--accent); }
.ascent__meta { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: .35rem; }
.career__attr { margin-top: 1.8rem; color: var(--muted); max-width: 44ch; font-size: var(--t-small); }
.career__attr .em { color: var(--fg); font-weight: 700; }
.career__cta { margin-top: 2rem; }

/* Leadership: squared portrait tiles, staggered (no circular avatars) */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.member { display: flex; flex-direction: column; gap: .85rem; }
.member:nth-child(even) { transform: translateY(clamp(1.4rem, 4vw, 3rem)); }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-grade); }
.member__name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.member__role { font-size: var(--t-small); color: var(--muted); }

/* =====================================================================
   PROOF & PARTNERSHIP - full-bleed dark, scrimmed image, proof index
   ===================================================================== */
.proof { position: relative; overflow: hidden; }
.proof__bg { position: absolute; inset: 0; z-index: 0; }
.proof__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55) brightness(0.62); }
.proof__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.15 0.01 296 / 0.86), oklch(0.15 0.012 298 / 0.93)), radial-gradient(90% 120% at 85% 0%, oklch(0.5 0.12 300 / 0.2), transparent 55%); }
.proof__inner { position: relative; z-index: 1; }
.proof__statement { font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; max-width: 24ch; }
.proof__statement .em { color: var(--accent); font-weight: 700; }
.proof__statement .muted { color: var(--muted); }
.proof__index { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, 1fr); }
.proof__item { padding: 2rem clamp(1.4rem, 2.5vw, 2.4rem) 0; border-top: 1px solid var(--line-strong); }
.proof__item:not(:first-child) { border-left: 1px solid var(--line); }
.proof__item:first-child { padding-left: 0; }
.proof__item h3 { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.015em; }
.proof__item p { margin-top: .8rem; color: var(--muted); font-size: var(--t-small); line-height: 1.5; max-width: 36ch; }

/* =====================================================================
   CLUBS - mega numeral + tabbed map with pinned locations
   ===================================================================== */
.clubs__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.clubs__mega { font-size: clamp(5.5rem, 16vw, 14rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.05em; }
.clubs__mega .plus { color: var(--accent); }
.clubs__head .prose { max-width: 40ch; }

.clubs__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 1.6rem 1.1rem;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { color: var(--muted); }
.tab.is-active { color: var(--fg); border-bottom-color: var(--accent); }
.tab__c { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); }
.tab.is-active .tab__c { color: var(--accent); }

.clubs__panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 3.5vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); align-items: stretch; }

.map { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
/* real map screenshot, treated to read as a dark-mode map, tinted to the system */
.map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.5) brightness(0.95) contrast(0.9); }
.map__region { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease); }
.map__region.is-active { opacity: 1; visibility: visible; }
.map__region::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, oklch(0.18 0.02 300 / 0.30), oklch(0.16 0.02 298 / 0.48)),
              radial-gradient(75% 75% at 50% 45%, transparent, oklch(0.14 0.012 296 / 0.42)); }
.pin { position: absolute; transform: translate(-50%, -50%); z-index: 3; line-height: 0; }
.pin__dot { display: block; width: 13px; height: 13px; background: var(--accent); border: 2px solid var(--bg-2); box-shadow: 0 0 0 4px var(--accent-soft); transition: transform .2s var(--ease); }
.pin:hover, .pin:focus-visible { z-index: 6; outline: none; }
.pin:hover .pin__dot, .pin:focus-visible .pin__dot, .pin.is-active .pin__dot { transform: scale(1.35); }
.pin--soon .pin__dot { background: transparent; border-color: var(--faint); box-shadow: none; }
.pin__label {
  position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%) translateY(5px);
  white-space: nowrap; font-family: var(--mono); font-size: 0.72rem; letter-spacing: .02em;
  color: var(--fg); background: oklch(0.12 0.01 296 / 0.92); border: 1px solid var(--line-strong);
  padding: .35rem .55rem; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.pin:hover .pin__label, .pin:focus-visible .pin__label, .pin.is-active .pin__label { opacity: 1; transform: translateX(-50%) translateY(0); }

.clubs__list { align-self: center; }
.register { } /* container per state, toggled */
.register[hidden] { display: none; }
.register li { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); font-size: var(--t-small); transition: background-color .15s var(--ease); }
.register li.is-active { background: var(--accent-soft); }
.register__n { font-family: var(--mono); color: var(--faint); font-size: var(--t-label); }
.register__name { font-weight: 600; }
.register__status { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: .5rem; }
.mark { width: 8px; height: 8px; }
.mark--open { background: var(--accent); }
.mark--soon { border: 1.5px solid var(--faint); }
.clubs__note { margin-top: 2rem; font-size: var(--t-small); color: var(--faint); }

/* =====================================================================
   SPLIT CTA
   ===================================================================== */
.splitcta__grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.splitcta__col { padding: clamp(2.2rem, 4.5vw, 4rem); }
.splitcta__col:last-child { border-left: 1px solid var(--line); background: var(--bg-2); }
.splitcta__col h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.splitcta__col p { color: var(--muted); max-width: 38ch; margin-bottom: 1.8rem; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 5vw, 4.5rem); align-items: start; }
.footer__brand .wordmark { color: var(--fg); margin-bottom: 1.4rem; }
.footer__brand p { color: var(--muted); max-width: 38ch; font-size: var(--t-small); }
.footer__col h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1.2rem; }
.footer__col ul { display: grid; gap: .75rem; }
.footer__col a { color: var(--muted); font-size: var(--t-small); transition: color .18s var(--ease); }
.footer__col a:hover { color: var(--fg); }
.footer__pack { color: var(--fg) !important; font-weight: 600;
  background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1.5px;
  background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 3px;
  transition: background-size .32s var(--ease); }
.footer__pack:hover { background-size: 100% 1.5px; }
.footer__pack .arr { display: inline-block; transition: transform .25s var(--ease); }
.footer__pack:hover .arr { transform: translateY(3px); color: var(--accent); }
/* back to top */
.backtop { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding-block: 1.6rem 0; }
.backtop a {
  display: inline-flex; align-items: center; gap: .7rem; font-family: var(--mono);
  font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color .2s var(--ease);
}
.backtop a:hover { color: var(--fg); }
.backtop .arr { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line-strong); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.backtop a:hover .arr { border-color: var(--accent); transform: translateY(-3px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.8rem; border-top: 1px solid var(--line); margin-top: 1.6rem; font-size: var(--t-label); font-family: var(--mono); letter-spacing: .04em; color: var(--faint); }
.footer__bottom a { color: var(--muted); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease), color .2s var(--ease); }
.footer__bottom a:hover { color: var(--fg); background-size: 100% 1.5px; }

/* =====================================================================
   MOBILE MENU
   ===================================================================== */
/* padding-top 0 + a 76px head so the logo sits exactly where the nav logo is
   (no jump when the menu opens) */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: oklch(0.16 0.008 296); padding: 0 var(--gutter) var(--gutter); display: flex; flex-direction: column; transform: translateY(-100%); visibility: hidden; will-change: transform; transition: transform .5s cubic-bezier(.22,.61,.36,1), visibility 0s linear .5s; }
.mobile-menu.is-open { transform: translateY(0); visibility: visible; transition: transform .55s cubic-bezier(.16,.84,.34,1), visibility 0s; }
/* Stagger the links + buttons in just behind the panel as it lands */
.mobile-menu nav a, .mobile-menu__actions > * { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.22,.61,.36,1); }
.mobile-menu.is-open nav a, .mobile-menu.is-open .mobile-menu__actions > * { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .20s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .26s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .32s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .38s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .44s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: .50s; }
.mobile-menu.is-open .mobile-menu__actions > *:nth-child(1) { transition-delay: .54s; }
.mobile-menu.is-open .mobile-menu__actions > *:nth-child(2) { transition-delay: .60s; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; height: 76px; margin-bottom: 1.6rem; }
.mobile-menu__head .wordmark { color: var(--paper); }
.mobile-menu__close { display: inline-flex; align-items: center; font-size: 2rem; color: var(--paper); line-height: 1; }
.mobile-menu nav { display: grid; gap: .15rem; }
.mobile-menu nav a { color: var(--paper); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu__actions { margin-top: auto; padding-top: 2.25rem; display: grid; gap: 1rem; }
.mobile-menu__actions .btn { justify-content: center; }
.mobile-menu .btn--primary { background: var(--paper); color: oklch(0.18 0.006 295); border-color: var(--paper); }

/* =====================================================================
   UTILITIES & ADDED COMPONENTS
   ===================================================================== */
/* Skip link (was inline) */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--paper); color: oklch(0.16 0.006 295);
  padding: .6rem 1rem; font-weight: 600; }
.skip-link:focus { left: 1rem; top: .6rem; }

/* Nav scroll sentinel (was inline) */
.nav-sentinel { position: absolute; top: 120px; }

/* Visually-hidden: screen-reader-only headings/labels */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Full-bleed helper: break out to the viewport edge */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* adjacent prose paragraphs (was an inline margin) */
.prose + .prose { margin-top: 1.05rem; }

/* split CTA: tightened actions */
.splitcta__col .hero__actions { margin-top: 0; }

/* AF franchisee lockup (factual, restrained) */
.af-lockup { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; align-items: center; gap: 1.2rem; }
.af-lockup__rule { height: 1px; flex: 1; background: var(--line); max-width: 12rem; }
.af-lockup__txt { font-family: var(--mono); font-size: var(--t-small); letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* =====================================================================
   MOTION
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__slide, .hero__slide img { animation: none !important; transform: none !important; }
  .hero__slide { opacity: 0; }
  .hero__slide:first-child { opacity: 1; }
  .interlude figure, .map__region, .pin__dot, .pin__label { transition: none !important; }
  .interlude { height: auto !important; overflow-x: auto !important; }
  .interlude__row { position: static !important; transform: none !important; }
  .mobile-menu { transition: visibility 0s linear .001s !important; }
  .mobile-menu.is-open { transition: none !important; }
  .mobile-menu nav a, .mobile-menu__actions > * { transition: none !important; transform: none !important; }
  .mobile-menu.is-open nav a, .mobile-menu.is-open .mobile-menu__actions > * { transition-delay: 0s !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta .btn--primary { display: none; }
  .nav__toggle { display: inline-flex; }
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
  .landlord__grid, .careers__grid, .clubs__panel { grid-template-columns: 1fr; }
  .careers__content { position: static; }
  .proof__index { grid-template-columns: 1fr; }
  .proof__item { border-left: 0 !important; padding-left: 0 !important; padding-top: 1.6rem; }
  .proof__item:not(:first-child) { border-top: 1px solid var(--line); }
  .landlord__media { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .landlord__media figure { margin: 0 !important; }
  .landlord__media .m1 { grid-column: 1 / -1; }
  .map { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 1.6rem 0; }
  .stat:first-child { border-top: 0; }
  .about__media { flex-direction: column; align-items: stretch; }
  .about__media .a, .about__media .b { flex: 1 1 auto; }
  .about__media .b { margin: -12% 0 0 auto; width: 72%; }
  /* auto-pan strip: the section is a tall scroll track; the row pins in view and
     JS scrubs it horizontally as you scroll the track, so the images glide by
     while the band holds the screen — finishing as it leaves. Morph/hover off. */
  .interlude { overflow-x: clip; height: var(--int-scrub, 260vh); }
  .interlude__row { width: max-content; max-width: none; margin-inline: 0; will-change: transform;
    position: sticky; top: calc((100vh - clamp(17rem, 34vw, 30rem)) / 2); }
  .interlude figure, .interlude figure.is-lead,
  .interlude__row:hover figure, .interlude__row:hover figure:hover { flex: 0 0 76vw; }
  .team { grid-template-columns: 1fr 1fr; }
  .splitcta__grid { grid-template-columns: 1fr; }
  .splitcta__col:last-child { border-left: 0; border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
  .clubs__head { grid-template-columns: 1fr; gap: 1rem; }
  .landlord__media { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .team { grid-template-columns: 1fr; }
  .member:nth-child(even) { transform: none; }
}
@media (max-width: 480px) {
  /* below this the nowrap headline risks clipping; let the two phrases wrap */
  .hero__headline .line { white-space: normal; }
}
