/* ==========================================================================
   IRON DISTRICT. Strength has an address.
   Palette: ink #0B0B0D / concrete #2A2A2E / signal red #E62E2E / bone #F2F2F2
   Display: Anybody variable (wdth 50-150, wght 100-900). Body: Inter.
   ========================================================================== */

:root {
  --ink: #0B0B0D;
  --concrete: #2A2A2E;
  --red: #E62E2E;
  --red-deep: #8f1616;
  --bone: #F2F2F2;
  --bone-dim: rgba(242, 242, 242, 0.62);
  --hairline: rgba(242, 242, 242, 0.14);
  --font-display: "Anybody", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --load: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1320px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

::selection { background: var(--red); color: var(--bone); }

/* ---------- type utilities ---------- */

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 3vh;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 34px; height: 2px;
  background: var(--red);
  margin-right: 14px;
  vertical-align: middle;
}

.h2 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 86, "wght" 640;
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 22px;
  white-space: nowrap;
}

.lede { color: var(--bone-dim); max-width: 46ch; margin-bottom: 8px; }

.dot { color: var(--red); font-style: normal; }

.section { padding: clamp(90px, 13vh, 160px) 0; position: relative; }
.section::before {
  content: "";
  position: absolute;
  top: 0; left: var(--pad); right: var(--pad);
  height: 1px;
  background: var(--hairline);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110, "wght" 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 14px 26px;
  border: 1px solid var(--bone);
  transition: background 0.15s steps(2, end), color 0.15s steps(2, end), border-color 0.15s;
}
.btn--red { background: var(--red); border-color: var(--red); color: var(--bone); }
.btn--red:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad);
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.92), rgba(11, 11, 13, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  /* own compositor layer: prevents one-frame detach under hard flick scrolling */
  will-change: transform;
  backface-visibility: hidden;
}

.logo { display: flex; align-items: center; gap: 11px; }
.logo__plate { width: 26px; height: 26px; }
.logo__word {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118, "wght" 850;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--bone);
}
.logo__word b { color: var(--red); font-weight: inherit; }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.12s;
}
.nav__links a:hover { color: var(--red); }

.nav__cta { padding: 10px 22px; }

/* ---------- barbell scroll progress ---------- */

.lift-progress {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 80;
  width: 176px;
  pointer-events: none;
  background: rgba(11, 11, 13, 0.82);
  border: 1px solid var(--hairline);
  padding: 8px 10px 9px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.35s ease;
}
/* auto-fade when page text would rest behind the widget (set by app.js) */
.lift-progress.dodge { opacity: 0.15; }
.lift-progress__svg { width: 100%; display: block; }
.lift-progress .plate rect {
  fill: var(--red);
  stroke: #0B0B0D;
  stroke-width: 1;
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: center;
  transform-box: fill-box;
}
.lift-progress .plate.on rect {
  opacity: 1;
  animation: plate-pop 0.22s steps(3, end) both;
}
@keyframes plate-pop {
  0% { transform: scaleY(1.6); }
  60% { transform: scaleY(0.9); }
  100% { transform: scaleY(1); }
}
.lift-progress__kg {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 105, "wght" 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--bone);
  margin-bottom: 2px;
  padding-left: 2px;
}
.lift-progress__kg #kgVal { color: var(--red); }
.lift-progress__track {
  height: 2px;
  background: rgba(242, 242, 242, 0.15);
  margin-top: 4px;
}
.lift-progress__track i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
}

/* ---------- duotone treatment ---------- */

.duo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 78%, #4d0d0d 100%);
}
.duo picture { display: contents; }
.duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.32) brightness(1.12);
  mix-blend-mode: multiply;
}
.duo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.18) 0%, rgba(11, 11, 13, 0) 34%, rgba(11, 11, 13, 0.42) 100%);
  pointer-events: none;
}
.duo--deep img { filter: grayscale(1) contrast(1.34) brightness(0.98); }
.duo--deep::after {
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.36), rgba(11, 11, 13, 0.52));
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  transform: scale(calc(1 + var(--load) * 0.025));
}
.hero__media img { height: 100%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(11, 11, 13, 0) 30%, rgba(11, 11, 13, 0.66) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.55) 0%, rgba(11, 11, 13, 0.05) 34%, rgba(11, 11, 13, 0.88) 88%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  /* bottom safe zone: keep hero copy clear of the fixed barbell HUD at first paint */
  padding-bottom: max(9vh, 132px);
  padding-top: 18vh;
}

.hero__title { display: block; }
.fit-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 72, "wght" 460;
  line-height: 0.88;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--bone);
  will-change: font-variation-settings;
}
.fit-line--red { color: var(--red); }
.fit-line--red .dot { color: var(--bone); }

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 5vh;
  flex-wrap: wrap;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--bone-dim);
  max-width: 40ch;
}

/* live bar-load readout */
.loadmeter {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 16px;
  align-items: baseline;
  min-width: 250px;
  border-left: 2px solid var(--red);
  padding-left: 16px;
}
.loadmeter__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.loadmeter__kg {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 105, "wght" 800;
  font-size: 22px;
  color: var(--bone);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.loadmeter__kg #loadKg { color: var(--red); }
.loadmeter__bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(242, 242, 242, 0.14);
  overflow: hidden;
}
.loadmeter__bar i {
  display: block;
  height: 100%;
  width: calc(var(--load) * 100%);
  background: var(--red);
}
.loadmeter__hint {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  opacity: calc(1 - var(--load) * 1.6);
}

.hero__scrollcue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 44px;
  background: rgba(242, 242, 242, 0.22);
  overflow: hidden;
}
.hero__scrollcue span {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--red);
  animation: cue 1.6s steps(12, end) infinite;
}
@keyframes cue { to { top: 110%; } }

/* ---------- method ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 56px;
}
.pillar {
  background: var(--ink);
  padding: 40px 34px 46px;
  position: relative;
}
.pillar:hover { background: #101014; }
.pillar__num {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100, "wght" 700;
  font-size: 13px;
  color: var(--red);
  letter-spacing: 0.2em;
}
.pillar__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 88, "wght" 680;
  font-size: clamp(2rem, 3.4vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
  margin: 18px 0 16px;
  white-space: nowrap;
}
.pillar p { color: var(--bone-dim); font-size: 15px; max-width: 34ch; }

/* ---------- break sections ---------- */

.break {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.break--tall { min-height: 78vh; }
.break__media { position: absolute; inset: 0; }
.break__media img { height: 100%; }
.break__inner { position: relative; z-index: 2; width: 100%; }
.break__word {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 84, "wght" 700;
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
}
.break__sub {
  margin-top: 20px;
  color: var(--bone);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  max-width: 52ch;
}

/* ---------- classes ---------- */

.class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
}

.class-card {
  position: relative;
  border: 1px solid var(--hairline);
  background: #101013;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}
.class-card:focus-visible { border-color: var(--red); }

.class-card__media { aspect-ratio: 16 / 9.5; }
.class-card__media img { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.class-card:hover .class-card__media img,
.class-card:focus .class-card__media img { transform: scale(1.045); }

.class-card__bpm {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 105, "wght" 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--bone);
  background: rgba(11, 11, 13, 0.78);
  border: 1px solid var(--hairline);
  padding: 7px 12px;
  font-variant-numeric: tabular-nums;
}
.class-card__bpm b { color: var(--red); font-weight: inherit; font-size: 17px; }

.class-card__body { padding: 26px 26px 18px; }
.class-card__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 90, "wght" 700;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
  white-space: nowrap;
}
.class-card__body > p { color: var(--bone-dim); font-size: 15px; max-width: 52ch; }
.class-card__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.class-card__meta span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--hairline);
  padding: 5px 10px;
}

.ecg {
  display: block;
  width: 100%;
  height: 22px;
  margin-top: 4px;
  padding: 0 26px 10px;
}
.ecg path {
  stroke: rgba(242, 242, 242, 0.22);
  stroke-width: 1.6;
  stroke-dasharray: 640;
  stroke-dashoffset: 0;
}
.class-card.live .ecg path {
  stroke: var(--red);
  stroke-dasharray: 46 594;
  animation: ecg-run 1.1s linear infinite;
}
@keyframes ecg-run {
  from { stroke-dashoffset: 640; }
  to { stroke-dashoffset: 0; }
}

/* ---------- coaches ---------- */

.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.coach { border: 1px solid var(--hairline); background: #101013; }
.coach__media { aspect-ratio: 3 / 3.4; }
.coach__media img { object-position: 50% 12%; filter: grayscale(1) contrast(1.22) brightness(1.45); }
.coach__media--face img { object-position: 38% 35%; }
.coach__body { padding: 24px 24px 30px; }
.coach__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 90, "wght" 700;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.coach__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin: 10px 0 14px;
}
.coach__bio { color: var(--bone-dim); font-size: 14.5px; }
.coach--text {
  display: flex;
  align-items: flex-end;
  background: var(--concrete);
}
.coach--text .coach__bio { color: rgba(242, 242, 242, 0.75); margin-bottom: 22px; }
.coach--text .coach__name { margin-bottom: 14px; white-space: normal; }
.coach--text .coach__body { padding-top: 44px; }

/* ---------- stats ---------- */

.stats { background: #0e0e11; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.stat { border-left: 2px solid var(--red); padding-left: 22px; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 95, "wght" 850;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
  will-change: transform;
}
.stat.landed .stat__num { color: var(--red); }
.stat__label {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---------- timetable marquee ---------- */

.timetable {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 20px 0;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee--reverse { border-top: 1px solid var(--hairline); background: var(--red); color: var(--ink); }
.marquee--reverse .marquee__track { animation: marquee-rev 30s linear infinite; }
.marquee__track span {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 95, "wght" 750;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.marquee__track i { font-style: normal; font-size: 8px; color: var(--red); }
.marquee--reverse .marquee__track i { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  align-items: stretch;
}
.price {
  border: 1px solid var(--hairline);
  background: #101013;
  padding: 38px 32px 42px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price--featured { border-color: var(--red); background: #17090a; }
.price__tag {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--red);
  color: var(--bone);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 5px 12px;
}
.price__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 95, "wght" 720;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}
.price--featured .price__name { color: var(--bone); }
.price__amount {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 90, "wght" 850;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  margin: 18px 0 26px;
  color: var(--bone);
}
.price__cur { font-size: 0.5em; vertical-align: super; color: var(--red); margin-right: 2px; }
.price__per { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--bone-dim); margin-left: 8px; }
.price ul { flex: 1; margin-bottom: 30px; }
.price li {
  color: var(--bone-dim);
  font-size: 14.5px;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid rgba(242, 242, 242, 0.08);
  position: relative;
}
.price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px; height: 2px;
  background: var(--red);
}
.price .btn { text-align: center; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding: 90px 0 36px; background: #0e0e11; }
.footer__word {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 80, "wght" 640;
  font-size: clamp(2.6rem, 9vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer__tag {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 70px 0;
}
.footer__cols p { color: var(--bone-dim); font-size: 14.5px; }
.footer__cols .label { margin-bottom: 12px; }
.footer__cols a:hover { color: var(--red); }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
  padding-right: 210px; /* reserved space: the fixed barbell HUD parks here at 100% scroll */
  font-size: 12.5px;
  color: var(--bone-dim);
}
.footer__badge b { color: var(--red); }

/* ---------- reveals (JS adds .in) ---------- */

.rev { opacity: 0; transform: translateY(26px); }
.rev.in { opacity: 1; transform: none; transition: opacity 0.4s steps(6, end), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .class-grid { gap: 20px; }
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: 1fr; }
  .coach-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .price--featured { order: -1; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .lift-progress { width: 112px; right: 12px; bottom: 12px; padding: 6px 8px 7px; }
  .lift-progress__kg { font-size: 12px; }
  .footer__base { padding-right: 0; padding-bottom: 96px; } /* bottom reserved space for the HUD */
  .break { min-height: 52vh; }
  .break--tall { min-height: 62vh; }
  .kicker { letter-spacing: 0.22em; }
  .h2 { white-space: normal; }
  .break__word { white-space: normal; }
  .hero__inner { padding-bottom: max(12vh, 104px); } /* clear the HUD at first paint */
  .hero__scrollcue { display: none; }
}

@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .stat { padding-left: 14px; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__scrollcue span { animation: none; }
  .rev { opacity: 1; transform: none; }
  .class-card__media img { transition: none; }
  .lift-progress .plate.on rect { animation: none; transform: none; }
  .fit-line { font-variation-settings: "wdth" 110, "wght" 780; }
}
