/* ————————————————————————————————————————————————
   KRATOS ATHLETIC CENTER — Kasson, Minnesota
   Thesis: the town's working forge. Documentary-editorial.
   Ink / bone / one red. Big Shoulders · Libre Franklin · Plex Mono.
   ———————————————————————————————————————————————— */

/* Fonts (self-hosted, OFL — licenses in assets/fonts/) */
@font-face {
  font-family: "Big Shoulders";
  src: url("../assets/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../assets/fonts/libre-franklin-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../assets/fonts/libre-franklin-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Tokens */
:root {
  --ink: #0b0b0c;
  --coal: #131315;
  --smoke: #1b1b1e;
  --bone: #f0ece3;
  --bone-dim: #b4b0a6;
  --gray: #85858b;
  --red: #d7202e;
  --red-btn: #ce1f2c;   /* buttons: bone text stays ≥4.5:1 */
  --red-text: #dd414d;  /* small red type on ink ≥4.5:1 */
  --line: rgba(240, 236, 227, 0.16);
  --line-strong: rgba(240, 236, 227, 0.34);
  --line-dark: rgba(11, 11, 12, 0.22);

  --disp: "Big Shoulders", "Arial Narrow", sans-serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --gut: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1400px;

  /* load → brace → lock */
  --ease-lock: cubic-bezier(0.22, 0.9, 0.24, 1);
  --noise: 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.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, p, ul, dl, dd, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--red); color: var(--bone); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--gut); top: -4rem; z-index: 100;
  background: var(--red); color: var(--bone); padding: 0.6rem 1rem;
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; text-decoration: none; transition: top 0.2s var(--ease-lock);
}
.skip:focus-visible { top: 0; }

/* Utility mono */
.u {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* Type */
.h1-big {
  font-family: var(--disp);
  font-weight: 750;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.002em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0.004em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--disp);
  font-weight: 650;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.05;
}
p { max-width: 58ch; }
.dot { font-style: normal; color: var(--red); }

/* Buttons — substantial, physical, square-shouldered */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  transition: background-color 0.22s var(--ease-lock), color 0.22s var(--ease-lock),
              border-color 0.22s var(--ease-lock), transform 0.22s var(--ease-lock);
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--red-btn); color: var(--bone); border-color: var(--red-btn); }
.btn-solid:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-line { border-color: var(--line-strong); color: var(--bone); }
.btn-line:hover { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-dark:hover { background: var(--red); border-color: var(--red); color: var(--bone); }

/* ————————————— Nav ————————————— */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2.25rem;
  padding: 0 var(--gut);
  height: 4.5rem;
  transition: background-color 0.3s var(--ease-lock), border-color 0.3s var(--ease-lock);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 0.2rem; margin-right: auto; }
.brand-name {
  font-family: var(--disp); font-weight: 800; font-size: 1.6rem;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.brand-sub {
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--bone-dim);
}
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--bone-dim);
  padding: 0.35rem 0;
  background: linear-gradient(var(--bone), var(--bone)) left bottom / 0% 1px no-repeat;
  transition: color 0.22s var(--ease-lock), background-size 0.28s var(--ease-lock);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); background-size: 100% 1px; }
.nav-join { padding: 0.7rem 1.3rem; }
.burger {
  display: none; background: none; border: 1px solid var(--line-strong);
  width: 2.9rem; height: 2.9rem; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.burger span { display: block; width: 1.2rem; height: 2px; background: var(--bone); transition: transform 0.25s var(--ease-lock); }
.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile menu */
.menu[hidden] { display: none; }
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink);
  padding: 7rem var(--gut) 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1.16;
  text-decoration: none; border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
}
.menu nav a:hover { color: var(--red); }
.menu-foot { display: grid; gap: 0.4rem; color: var(--bone-dim); }
.menu-foot a { text-decoration: none; }

/* ————————————— Movement labels ————————————— */
.mvt {
  display: flex; align-items: baseline; gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1rem var(--gut) 0;
  margin: 0 var(--gut);
  padding-left: 0; padding-right: 0;
  color: var(--bone-dim);
}
.mvt .no { color: var(--red-text); font-weight: 500; }
.mvt-dark { border-top-color: var(--line-dark); color: rgba(11,11,12,0.62); }

/* ————————————— Sections common ————————————— */
section { position: relative; }

/* ————————————— Hero ————————————— */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 6.5rem var(--gut) 0;
  max-width: none;
}
.hero-topline { color: var(--bone-dim); margin-bottom: clamp(1.5rem, 4vh, 3.5rem); }
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  max-width: var(--max);
}
.hero-h {
  font-family: var(--disp);
  font-weight: 780;
  font-size: clamp(4rem, 13.5vw, 12.5rem);
  line-height: 0.92;
  letter-spacing: 0.002em;
  text-transform: uppercase;
  margin-bottom: clamp(1.75rem, 3.5vh, 3rem);
}
.hero-h .hl { display: block; }
.hero-lede { color: var(--bone-dim); max-width: 52ch; margin-bottom: 2.25rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-slate { align-self: stretch; display: flex; }
.hero-slate .plate { width: 100%; aspect-ratio: auto; min-height: 100%; }
.hero-cue {
  display: inline-flex; align-items: center; gap: 0.9rem;
  color: var(--bone-dim); text-decoration: none;
  padding: 2.5rem 0 2rem;
}
.hero-cue::before {
  content: ""; width: 3.5rem; height: 1px; background: var(--red);
  transition: width 0.3s var(--ease-lock);
}
.hero-cue:hover { color: var(--bone); }
.hero-cue:hover::before { width: 5.5rem; }

/* ————————————— Slates (labeled media placeholders) ————————————— */
.slate { position: relative; }
.plate {
  position: relative;
  aspect-ratio: var(--ar, 3/2);
  background:
    var(--noise),
    linear-gradient(160deg, #17171a 0%, #101012 55%, #0d0d0f 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
/* corner registration ticks */
.plate::before, .plate::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 14px 1px,
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 1px 14px,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 14px 1px,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 1px 14px;
  background-repeat: no-repeat;
}
.plate::after {
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 14px 1px,
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 1px 14px,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 14px 1px,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 1px 14px;
  background-repeat: no-repeat;
}
/* filled slate: real photography inside the same frame */
.plate picture, .frame-plate picture { display: contents; }
.plate img.ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}
.plate .scrim {
  position: absolute; inset: 42% 0 0 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,11,12,0) 0%, rgba(11,11,12,0.72) 100%);
}
.plate::before, .plate::after { z-index: 2; }
.slate-onlight .plate {
  background:
    var(--noise),
    linear-gradient(160deg, #dcd7cc 0%, #d2cdc2 60%, #c9c4b9 100%);
  border-color: var(--line-dark);
}
.slate-onlight .plate::before, .slate-onlight .plate::after { filter: invert(1) opacity(0.7); }

/* ————————————— 01 · Walk-in —————————————
   Default layout: a stacked editorial sequence (works with no JS, on
   mobile, and under reduced motion). The pinned scrub layout is applied
   only when js adds .js-pin (desktop + motion allowed). */
.walk { background: var(--ink); }
.walk-stage { padding: clamp(4rem, 9vh, 7rem) var(--gut) 1rem; }
.walk-mvt {
  color: var(--bone-dim);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 2.5rem;
  display: flex; gap: 1rem;
}
.walk-mvt .no { color: var(--red-text); }
.frame { position: relative; isolation: isolate; margin-bottom: 3.5rem; max-width: var(--max); }
.frame-plate {
  position: relative; aspect-ratio: 16/9; border: 1px solid var(--line);
  background:
    var(--noise),
    linear-gradient(175deg, #161619 0%, #0e0e10 60%, #0b0b0c 100%);
}
.frame-plate img.ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}
.frame-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,11,12,0.82) 0%, rgba(11,11,12,0.28) 45%, rgba(11,11,12,0.12) 100%);
}
.frame-copy { margin-top: 1.2rem; }
.frame-kicker { color: var(--bone-dim); margin-bottom: 0.9rem; display: block; }
.frame-line {
  font-family: var(--disp);
  font-weight: var(--fw, 600);
  letter-spacing: var(--ls, 0);
  font-size: clamp(2.4rem, 6.5vw, 6.5rem);
  line-height: 0.96;
  text-transform: uppercase;
  max-width: none;
}
.frame-plate-brand { display: none; }
.frame-brand { margin-bottom: 0; padding-bottom: 2rem; }
.brand-line { font-size: clamp(4.5rem, 16vw, 15rem); line-height: 0.9; }
.frame-after { color: var(--bone-dim); margin-top: 1.25rem; display: block; }
.walk-progress { display: none; }

/* Pinned scrub layout (added by js) */
.js-pin .walk-track { height: 520svh; }
.js-pin .walk-stage {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  padding: 0;
}
.js-pin .walk-mvt {
  position: absolute; top: 5.25rem; left: var(--gut); right: var(--gut); z-index: 10;
  margin-bottom: 0;
}
.js-pin .walk-frames { position: absolute; inset: 0; }
.js-pin .frame { position: absolute; inset: 0; margin: 0; max-width: none; }
.js-pin .frame-plate {
  position: absolute; inset: 0; aspect-ratio: auto; border: 0;
}
.frame:nth-child(2) .frame-plate { background: var(--noise), linear-gradient(175deg, #19191c 0%, #101013 60%, #0b0b0c 100%); }
.frame:nth-child(3) .frame-plate { background: var(--noise), linear-gradient(20deg, #1a1a1d 0%, #111114 55%, #0b0b0c 100%); }
.frame:nth-child(4) .frame-plate { background: var(--noise), linear-gradient(200deg, #17171a 0%, #0f0f12 60%, #0b0b0c 100%); }
.js-pin .frame-copy {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 14vh; z-index: 2;
  max-width: 62rem;
  margin-top: 0;
}
.js-pin .frame-kicker { margin-bottom: 1.1rem; }
.js-pin .frame-line { font-size: clamp(3rem, 9vw, 8.5rem); }
.js-pin .frame-brand .frame-copy-brand { bottom: auto; top: 50%; transform: translateY(-50%); }
.js-pin .brand-line { font-size: clamp(5rem, 22vw, 21rem); }
.js-pin .frame-after { margin-top: 1.5rem; }
.js-pin .frame-plate-brand {
  display: block;
  background: var(--noise), radial-gradient(120% 90% at 50% 110%, #1a1a1d 0%, #0b0b0c 60%);
}
.js-pin .walk-progress {
  display: flex;
  position: absolute; left: var(--gut); bottom: 2rem; z-index: 10;
  align-items: center; gap: 1rem;
}
.wp-count { color: var(--bone-dim); min-width: 4.5rem; }
.wp-bar { width: clamp(6rem, 12vw, 12rem); height: 1px; background: var(--line); position: relative; }
.wp-bar i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--red); }

/* ————————————— 02 · Who ————————————— */
.who { padding: clamp(5rem, 12vh, 9rem) var(--gut) clamp(4rem, 10vh, 8rem); }
.who .mvt, .floor .mvt, .community .mvt, .join .mvt { margin: 0 0 clamp(2.5rem, 6vh, 4.5rem); }
.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  max-width: var(--max);
}
.who-story { display: grid; gap: 1.4rem; align-content: start; }
.who-story .h2 { margin-bottom: 0.5rem; }
.who-story p { color: var(--bone-dim); }
.who-story .fact-strip {
  color: var(--gray); border-top: 1px solid var(--line);
  padding-top: 1.1rem; margin-top: 1rem; max-width: none;
}
.roll-head { color: var(--gray); margin-bottom: 0.5rem; }
.roll li {
  display: grid; gap: 0.35rem;
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.roll li:last-child { border-bottom: 1px solid var(--line); }
.roll-name {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1;
}
.roll-note { color: var(--bone-dim); font-size: 0.95rem; }

/* ————————————— 03 · Floor ————————————— */
.floor { padding: clamp(5rem, 12vh, 9rem) var(--gut); background: var(--coal); }
.floor-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 8rem);
  max-width: var(--max);
}
.floor-side { align-self: start; position: sticky; top: 7rem; display: grid; gap: 1.25rem; }
.floor-side p { color: var(--bone-dim); }
.fi-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem; align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.7rem;
}
.fi-row:last-child { border-bottom: 1px solid var(--line); }
.fi-no { color: var(--red); }
.fi-name {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1;
}
.fi-note { color: var(--bone-dim); font-size: 0.95rem; }
.floor .slate-wide { margin: 1rem 0 2.5rem; }
.fl-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  margin: 1rem 0 2.5rem;
}

/* ————————————— 04 · Wrestling (hard cut) ————————————— */
.wrestling { background: var(--ink); padding-bottom: clamp(5rem, 12vh, 9rem); }
.slate-bleed .plate { border-left: 0; border-right: 0; }
.wrestling .mvt { margin: clamp(3rem, 7vh, 5rem) var(--gut) clamp(2.5rem, 6vh, 4rem); }
.wr-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: 0 var(--gut);
  max-width: var(--max);
}
.wr-main .h1-big { margin-bottom: 1.75rem; text-transform: uppercase; }
.wr-main p { color: var(--bone-dim); }
.wr-girls {
  border-left: 2px solid var(--red);
  padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
  display: grid; gap: 1.1rem; align-content: start;
}
.wr-girls .h3 { text-transform: uppercase; }
.wr-girls p { color: var(--bone-dim); font-size: 0.98rem; }
.wr-strip {
  color: var(--gray);
  border-top: 1px solid var(--line);
  margin: clamp(3rem, 7vh, 5rem) var(--gut) 0;
  padding-top: 1.1rem;
}
.wr-jump { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.wr-jump:hover { color: var(--red); }

/* ————————————— 05 · Kratos Wrestling Academy ————————————— */
.kwa { background: var(--coal); padding-bottom: clamp(5rem, 12vh, 9rem); }
.kwa .mvt { margin: 0 var(--gut) clamp(2.5rem, 6vh, 4rem); padding-top: clamp(5rem, 12vh, 9rem); }
.kwa-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: 0 var(--gut);
  max-width: var(--max);
  align-items: start;
}
.kwa-slate { align-self: start; }
.kwa-copy { display: grid; gap: 1.4rem; align-content: start; }
.kwa-copy .h1-big { text-transform: uppercase; margin-bottom: 0.4rem; }
.kwa-copy p { color: var(--bone-dim); }
.kwa-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.75rem; }
.kwa-tel { color: var(--gray); }

/* ————————————— 05 · Forged (light) ————————————— */
.forged { background: var(--bone); color: var(--ink); padding: clamp(5rem, 12vh, 9rem) var(--gut); }
.forged .mvt { margin: 0 0 clamp(2.5rem, 6vh, 4.5rem); }
.forged .mvt .no { color: var(--red); }
.fg-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  max-width: var(--max);
}
.fg-copy { display: grid; gap: 1.4rem; align-content: start; }
.fg-copy .h2 { margin-bottom: 0.5rem; }
.fg-copy p { color: rgba(11, 11, 12, 0.72); }
.fg-cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.75rem; }
.fg-tel { color: rgba(11, 11, 12, 0.55); }
.fg-slate { align-self: start; }
.fg-family { max-width: 34rem; margin-top: 0.5rem; }

/* ————————————— 06 · Community ————————————— */
.community { padding: clamp(5rem, 12vh, 9rem) var(--gut); }
.cm-head { max-width: var(--max); display: grid; gap: 1.25rem; margin-bottom: clamp(3rem, 7vh, 5rem); }
.cm-head p { color: var(--bone-dim); }
.cm-events { max-width: var(--max); margin-bottom: clamp(3rem, 7vh, 5rem); }
.ev-row {
  display: grid;
  grid-template-columns: minmax(9rem, 2fr) minmax(0, 4fr) minmax(0, 6fr);
  gap: 1.5rem; align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2rem;
}
.ev-row:last-child { border-bottom: 1px solid var(--line); }
.ev-date { color: var(--red); }
.ev-name {
  font-family: var(--disp); font-weight: 720; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1;
}
.ev-note { color: var(--bone-dim); font-size: 0.95rem; }
.ev-strip {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: var(--max);
  align-items: start;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}
.who-cap { margin-top: clamp(3rem, 7vh, 5rem); }
.cm-low {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: var(--max);
  align-items: start;
}
.cm-words { display: grid; gap: 1rem; }

/* ————————————— 07 · Join ————————————— */
.join { background: var(--coal); padding: clamp(5rem, 12vh, 9rem) var(--gut); }
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  max-width: var(--max);
}
.join-member > .h2 { margin-bottom: 1.25rem; }
.join-member > p { color: var(--bone-dim); margin-bottom: 2.5rem; }
.mem-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 1.5rem;
}
.mem-row:last-child { border-bottom: 1px solid var(--line); }
.mem-name {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.05;
}
.mem-note { color: var(--bone-dim); font-size: 0.92rem; margin-top: 0.3rem; }
.mem-rate { text-align: right; white-space: nowrap; }
.mem-rate b {
  font-family: var(--disp); font-weight: 750;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1;
}
.mem-rate i { font-style: normal; color: var(--gray); margin-left: 3px; }
.mem-ask { color: var(--gray); align-self: center; }
.mem-foot { color: var(--gray); margin-top: 1.25rem; max-width: none; }
.mem-foot a { color: var(--bone-dim); }
.join-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }
.join-visit {
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  align-self: start;
  display: grid; gap: 1.75rem;
  background: var(--ink);
}
.jv-head { color: var(--red); }
.jv { display: grid; gap: 1.4rem; }
.jv dt { color: var(--gray); margin-bottom: 0.35rem; }
.jv dd { font-size: 1rem; line-height: 1.5; }
.jv a { color: var(--bone); text-underline-offset: 3px; }

/* free-week form (rendered only when js/site-config.js has the hub URL) */
.lead-form {
  margin-top: clamp(2.5rem, 6vh, 4rem); padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line); display: grid; gap: 1rem; max-width: 40rem;
}
.lead-form .h3 { text-transform: uppercase; }
.lf-note { color: var(--bone-dim); }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.1rem; }
.lf-grid label { display: grid; gap: 0.35rem; }
.lf-grid .u { color: var(--gray); }
.lf-wide { grid-column: 1 / -1; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form input, .lead-form select, .lead-form textarea {
  background: var(--ink); color: var(--bone); border: 1px solid var(--line-strong);
  padding: 0.7rem 0.8rem; font: inherit; font-size: 1rem; width: 100%; border-radius: 0;
}
.lead-form :is(input, select, textarea):focus { outline: 2px solid var(--red); outline-offset: 1px; }
.lf-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lf-status { color: var(--bone-dim); }
.mem-join { display: inline-block; margin-top: 0.45rem; color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.mem-join:hover { color: var(--red); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; }
.hours span:nth-child(odd) { color: var(--bone-dim); }
.jv a:hover { color: var(--red); }

/* `hidden` must always win over component display rules (menu, lead form, buttons) */
[hidden] { display: none !important; }

/* ————————————— Sub-pages ————————————— */
body.page main { padding-top: 4.6rem; }
body.page .mvt { border-top: 0; }
/* a page that opens with its heading doesn't need a full movement's worth of air under the nav */
body.page main > section:first-child:not(.wrestling) { padding-top: clamp(2rem, 5vh, 3.5rem); }
body.page main > section:first-child .mvt { padding-top: 0; }

/* home: around the building */
.tour { padding: clamp(5rem, 12vh, 9rem) var(--gut) clamp(4rem, 10vh, 8rem); background: var(--coal); }
.tour .mvt { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.tour-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  max-width: var(--max);
}
.tour-card { display: grid; gap: 0.5rem; text-decoration: none; color: inherit; align-content: start; }
.tour-card .slate { margin-bottom: 0.6rem; }
.tour-card .plate img.ph { transition: filter 0.4s var(--ease-lock); }
.tour-card:hover .plate img.ph { filter: saturate(1.05) contrast(1.06); }
.tour-k { color: var(--red-text); }
.tour-h { font-family: var(--disp); font-weight: 700; text-transform: uppercase; line-height: 0.98; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.tour-p { color: var(--bone-dim); font-size: 0.98rem; }
.tour-go { color: var(--bone); background: linear-gradient(var(--bone), var(--bone)) left bottom / 0% 1px no-repeat; transition: background-size 0.3s var(--ease-lock); width: max-content; padding-bottom: 0.2rem; }
.tour-card:hover .tour-go { background-size: 100% 1px; }

/* home: join strip */
.join-strip { padding: clamp(5rem, 12vh, 9rem) var(--gut); }
.join-strip .mvt { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.js-grid { display: grid; gap: 1.4rem; max-width: 48rem; }
.js-grid p { color: var(--bone-dim); }

/* sub-pages: closing call to action */
.page-cta { border-top: 1px solid var(--line); background: var(--ink); color: var(--bone); padding: clamp(4rem, 9vh, 6rem) var(--gut); display: grid; gap: 1.2rem; max-width: none; }
.page-cta-k { color: var(--red-text); }
.page-cta .h2 { color: var(--bone); max-width: 20ch; }

/* ————————————— Footer ————————————— */
.foot { border-top: 1px solid var(--line); padding: clamp(3rem, 8vh, 5rem) var(--gut) 2.5rem; overflow: clip; }
.foot-mark {
  font-family: var(--disp); font-weight: 800; text-transform: uppercase;
  font-size: clamp(6rem, 22vw, 22rem);
  line-height: 0.78;
  letter-spacing: 0.01em;
  color: var(--smoke);
  user-select: none;
  margin-bottom: clamp(2rem, 5vh, 4rem);
  max-width: none;
}
.foot-grid { display: grid; gap: 1.25rem; max-width: var(--max); }
.foot-line { color: var(--bone-dim); }
.foot-logo { width: clamp(120px, 12vw, 160px); height: auto; margin: 0.75rem 0; }
.foot-asg { justify-self: start; margin-bottom: 0.5rem; }
.foot-asg img { display: block; height: 56px; width: auto; }
.foot-small { color: var(--gray); max-width: none; }
.foot-small a { color: inherit; }

/* ————————————— Responsive ————————————— */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-slate { max-width: 30rem; }
  .hero-slate .plate { aspect-ratio: 3/2; min-height: 0; }
  .who-grid, .floor-grid, .wr-grid, .kwa-grid, .fg-grid, .cm-low, .ev-strip, .join-grid { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kwa-slate { max-width: 26rem; }
  .floor-side { position: static; }
  .wr-girls { border-left-width: 2px; }
  .fi-row { grid-template-columns: 3rem minmax(0, 1fr); }
  .fi-note { grid-column: 2; }
  .ev-row { grid-template-columns: 1fr; gap: 0.6rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-join { margin-left: auto; }
  .brand { margin-right: 0; }
  .nav { gap: 1rem; }
  .burger { display: flex; }

  /* Walk-in (stacked fallback): tighter crops and type on small screens */
  .frame-plate { aspect-ratio: 4/5; }
  .frame-line { font-size: clamp(2.4rem, 11vw, 4.5rem); }
  .brand-line { font-size: clamp(4.5rem, 26vw, 8rem); }
  /* pinned sequence on phones: same stage, phone-scaled type */
  .js-pin .frame-line { font-size: clamp(2.2rem, 10.5vw, 4.2rem); }
  .js-pin .brand-line { font-size: clamp(4rem, 24vw, 7.5rem); }
  .js-pin .frame-copy { bottom: 11vh; }
  .js-pin .walk-mvt { font-size: 0.62rem; }
}

@media (max-width: 640px) {
  :root { --gut: 1.25rem; }
  .hero { padding-top: 5.5rem; }
  .hero-h { font-size: clamp(3.4rem, 17.5vw, 5rem); }
  .hero-cta .btn, .join-cta .btn, .fg-cta .btn, .kwa-cta .btn { width: 100%; text-align: center; }
  .mem-row { flex-direction: column; gap: 0.5rem; }
  .fl-strip { grid-template-columns: 1fr; }
  .lf-grid { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr; }
  .foot-mark { font-size: clamp(4.5rem, 24vw, 8rem); }
}

/* ————————————— Motion guard ————————————— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ————————————— Black Friday offer (blackfriday) ————————————— */
.bf-hero { background: var(--ink); padding: clamp(7rem, 16vh, 10rem) var(--gut) clamp(3rem, 7vh, 5rem); display: grid; gap: 1.4rem; }
.bf-tag { display: inline-block; justify-self: start; background: var(--red-btn); color: var(--bone); padding: 0.45rem 0.8rem; }
.bf-h { font-family: var(--disp); font-weight: 800; text-transform: uppercase; font-size: clamp(3.2rem, 11vw, 9.5rem); line-height: 0.9; letter-spacing: 0.002em; max-width: 12ch; }
.bf-red { color: var(--red); display: block; }
.bf-lede { color: var(--bone-dim); font-size: 1.1rem; }
.bf-count { display: flex; gap: clamp(0.75rem, 2vw, 1.5rem); }
.bf-count[hidden], .bf-ended[hidden] { display: none; }
.bf-count > div { display: grid; justify-items: center; min-width: 4.6rem; padding: 0.7rem 0.6rem 0.5rem; border: 1px solid var(--line-strong); }
.bf-count b { font-family: var(--disp); font-weight: 750; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.bf-count .u { color: var(--gray); }
.bf-ended { color: var(--bone-dim); }
.bf-ended a { color: var(--bone); }
.bf-plans { background: var(--coal); padding: clamp(4rem, 10vh, 7rem) var(--gut); }
.bf-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: var(--max); }
.bf-card { border: 1px solid var(--line); background: var(--ink); padding: 1.6rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.bf-price { margin: 1.1rem 0 1.3rem; display: flex; align-items: baseline; gap: 0.35rem; flex-wrap: wrap; }
.bf-price b { font-family: var(--disp); font-weight: 800; font-size: clamp(2.8rem, 4.4vw, 3.8rem); line-height: 1; color: var(--red); }
.bf-price i { font-style: normal; color: var(--gray); }
.bf-price s { font-family: var(--mono); font-size: 0.9rem; color: var(--gray); margin-left: 0.4rem; }
.bf-claim { margin-top: auto; text-align: center; }
.bf-faq { margin: 3rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; max-width: var(--max); }
.bf-faq dt { color: var(--red-text); margin-bottom: 0.35rem; }
.bf-faq dd { margin: 0; color: var(--bone-dim); max-width: 52ch; }
@media (max-width: 1000px) { .bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bf-grid, .bf-faq { grid-template-columns: 1fr; }
  .bf-count > div { min-width: 0; flex: 1; }
  .bf-hero .join-cta .btn { width: 100%; text-align: center; }
}
.kwa-season { margin-top: 0.75rem; }
.kwa-season .h3 { margin-bottom: 1rem; color: var(--bone); }
.kwa-tel a { color: var(--bone-dim); }

/* Home-page Black Friday banner + legal pages */
.bf-banner { display: inline-block; background: var(--red-btn); color: var(--bone); padding: 0.55rem 0.9rem; margin-bottom: 1.2rem; text-decoration: none; }
.bf-banner[hidden] { display: none; }
.bf-banner:hover { background: var(--bone); color: var(--ink); }
.legal { background: var(--ink); padding: clamp(7rem, 16vh, 10rem) var(--gut) clamp(4rem, 9vh, 6rem); }
.legal > * { max-width: 68ch; }
.legal .h2 { margin-bottom: 0.6rem; }
.legal .legal-date { color: var(--gray); margin-bottom: 2.5rem; }
.legal h2 { font-family: var(--disp); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; margin: 2.2rem 0 0.6rem; }
.legal p, .legal li { color: var(--bone-dim); margin-bottom: 0.8rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--bone); }
