/* =========================================================
   FORGE — tokens
   ========================================================= */
:root {
  --bg: #070503;
  --bg-2: #0f0b07;
  --ember: #ff6b1a;
  --amber: #ffb56b;
  --bone: #efe6d8;
  --ash: #8c8178;
  --line: rgba(239, 230, 216, 0.14);

  --font: "Archivo", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --nav-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* clip (not hidden) so position: sticky keeps working */
body { overflow-x: clip; }

body.is-loading { overflow: hidden; height: 100dvh; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

/* Type scale --------------------------------------------- */
.h2 {
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-stretch: 112%;
  font-weight: 800;
  max-width: 14ch;
}

/* Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--ember); color: #170800; }
.btn--solid:hover { background: var(--amber); }
.btn--ghost { border-color: rgba(239, 230, 216, 0.35); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }

/* Media helpers ------------------------------------------- */
.parallax-media { position: absolute; inset: -12% 0; overflow: hidden; will-change: transform; }
.parallax-media video {
  width: 100%; height: 100%; object-fit: cover;
}

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  display: grid; place-items: center;
  overflow: hidden;
}
.loader__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.9;
}
.loader__mark {
  position: relative;
  font-size: clamp(3rem, 12vw, 9rem);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--bone);
  mix-blend-mode: screen;
}
.loader__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.loader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--ember);
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, transform 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(7, 5, 3, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo {
  font-stretch: 125%; font-weight: 900; font-size: 1.35rem; letter-spacing: 0.06em;
}
.nav__links { display: flex; gap: 32px; font-size: 0.95rem; color: var(--ash); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--bone); }
.nav__cta { padding: 12px 22px; font-size: 0.88rem; }
.nav__burger {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 0 8px;
}
.nav__burger span { display: block; height: 2px; background: var(--bone); transition: transform 0.3s, opacity 0.3s; }
.nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: var(--pad);
  font-size: 2rem; font-stretch: 112%; font-weight: 700;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu .btn { font-size: 1rem; font-stretch: 100%; align-self: flex-start; margin-top: 16px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: flex; align-items: flex-end;
  padding: 0 var(--pad) clamp(48px, 9vh, 96px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,5,3,0.55) 0%, rgba(7,5,3,0.05) 35%, rgba(7,5,3,0.25) 70%, var(--bg) 100%);
}
.hero__content { position: relative; max-width: 900px; }
.hero__kicker { color: var(--amber); font-size: 0.95rem; margin-bottom: 18px; }
.hero__title {
  font-size: clamp(3rem, 10.5vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-stretch: 118%;
  font-weight: 900;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: block; transform: translateY(110%); }
.hero__sub {
  max-width: 46ch; color: var(--bone); opacity: 0.85;
  margin: 28px 0 32px; font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.75rem; color: var(--ash); letter-spacing: 0.08em;
}
.hero__scroll i {
  width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--ember);
  animation: drip 1.8s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes drip { to { top: 100%; } }

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; background: var(--bg);
}
.marquee__track {
  display: flex; gap: 56px; white-space: nowrap; width: max-content;
  font-stretch: 112%; font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--ash);
}
.marquee__track span { display: flex; align-items: center; gap: 56px; }
.marquee__track span::after {
  content: ""; width: 8px; height: 8px; background: var(--ember); transform: rotate(45deg);
}

/* =========================================================
   About (sticky media + scrolling copy)
   ========================================================= */
.about {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 0 var(--pad);
  gap: clamp(32px, 6vw, 96px);
}
.about__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.about__media {
  position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 5; max-height: 78vh;
  border-radius: 6px; overflow: hidden;
}
.about__media video { position: absolute; inset: -12% 0; height: 124%; }
.about__copy { padding: 22vh 0; }
.about__points { margin-top: clamp(48px, 8vh, 96px); display: grid; gap: clamp(40px, 8vh, 88px); }
.point h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem); font-stretch: 110%; letter-spacing: -0.01em; margin-bottom: 12px;
}
.point p { color: var(--ash); max-width: 42ch; font-size: 1.05rem; }

/* =========================================================
   Quote
   ========================================================= */
.quote {
  position: relative; min-height: 90svh; overflow: hidden;
  display: flex; align-items: center; padding: 12vh var(--pad);
}
.quote__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,5,3,0.85) 0%, rgba(7,5,3,0.35) 60%, rgba(7,5,3,0.1) 100%);
}
.quote__text { position: relative; margin: 0; max-width: 18ch; }
.quote__text p {
  font-size: clamp(2.2rem, 5.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.025em;
  font-stretch: 112%; font-weight: 800;
}

/* =========================================================
   Scrub — dumbbell (pinned)
   ========================================================= */
.scrub { position: relative; height: 320vh; background: #000; }
.scrub__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.scrub__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub__steps { position: absolute; inset: 0; pointer-events: none; }
.scrub__step {
  position: absolute; left: var(--pad); bottom: clamp(56px, 12vh, 120px);
  opacity: 0; transform: translateY(24px);
  max-width: 480px;
}
.scrub__num {
  display: block; font-size: clamp(4.5rem, 14vw, 12rem); line-height: 0.85;
  font-stretch: 125%; font-weight: 900; letter-spacing: -0.04em; color: var(--bone);
}
.scrub__step p { color: var(--amber); font-size: clamp(1rem, 1.5vw, 1.25rem); margin-top: 14px; max-width: 32ch; }

/* =========================================================
   Programs — horizontal pinned
   ========================================================= */
.programs { position: relative; background: var(--bg); }
.programs__pin {
  height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) 0 32px;
}
.programs__head {
  padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.programs__head p { color: var(--ash); max-width: 38ch; }
.programs__track {
  display: flex; gap: 24px; padding: 0 var(--pad); width: max-content;
}
.card {
  position: relative; width: clamp(300px, 34vw, 480px); flex-shrink: 0;
  border-radius: 8px; overflow: hidden; background: var(--bg-2);
  transform-style: preserve-3d; perspective: 900px;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 22px 24px 26px; }
.card h3 { font-size: 1.5rem; font-stretch: 110%; margin-bottom: 8px; }
.card p { color: var(--ash); font-size: 0.98rem; }
.card__meta { display: inline-block; margin-top: 16px; color: var(--amber); font-size: 0.85rem; }
.tilt { transition: transform 0.15s ease-out; }

/* =========================================================
   Coaches
   ========================================================= */
.coaches { position: relative; overflow: hidden; padding: 16vh var(--pad); min-height: 100svh; display: flex; align-items: center; }
.coaches__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(7,5,3,0.9) 0%, rgba(7,5,3,0.55) 50%, rgba(7,5,3,0.2) 100%);
}
.coaches__copy { position: relative; margin-left: auto; max-width: 560px; }
.coaches__list { list-style: none; padding: 0; margin: 48px 0 40px; border-top: 1px solid var(--line); }
.coaches__list li {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.coaches__list strong { font-size: 1.35rem; font-stretch: 110%; font-weight: 700; }
.coaches__list span { color: var(--ash); }

/* =========================================================
   Results
   ========================================================= */
.results { position: relative; overflow: hidden; padding: 18vh var(--pad); }
.results__media::after {
  content: ""; position: absolute; inset: 0; background: rgba(7,5,3,0.6);
}
.results__grid {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.stat__num {
  display: block; font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: 0.9;
  font-stretch: 125%; font-weight: 900; letter-spacing: -0.04em;
}
.stat__label { display: block; margin-top: 14px; color: var(--amber); font-size: 1.05rem; }

/* =========================================================
   Plans
   ========================================================= */
.plans { position: relative; overflow: hidden; padding: 16vh var(--pad); background: #000; }
.plans__media { position: absolute; inset: 0; opacity: 0.9; }
.plans__media video { width: 100%; height: 100%; object-fit: cover; }
.plans__inner { position: relative; max-width: 1240px; margin: 0 auto; }
.plans__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.plans__head p { color: var(--ash); max-width: 36ch; }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; padding: 36px 32px; border-radius: 10px;
  background: rgba(15, 11, 7, 0.75); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--ember); background: rgba(24, 12, 4, 0.85); }
.plan__tag {
  position: absolute; top: -14px; left: 32px; background: var(--ember); color: #170800;
  padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
}
.plan h3 { font-size: 1.15rem; color: var(--ash); font-weight: 600; margin-bottom: 18px; }
.plan__price {
  font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; font-stretch: 118%; font-weight: 900; letter-spacing: -0.03em;
}
.plan__price sup { font-size: 0.42em; vertical-align: top; margin-right: 2px; font-stretch: 100%; font-weight: 700; }
.plan__price small { font-size: 0.32em; color: var(--ash); font-stretch: 100%; font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.plan__desc { margin: 18px 0 26px; color: var(--bone); opacity: 0.85; }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-left: 22px; position: relative; color: var(--ash); font-size: 0.98rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--ember); }
.plan .btn { width: 100%; }
.plans__note { margin-top: 32px; color: var(--ash); font-size: 0.95rem; }

/* =========================================================
   Doors scrub / Join
   ========================================================= */
.doors { position: relative; height: 260vh; background: #000; }
.doors__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.doors__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doors__pin::before {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.35);
}
.doors__content { position: relative; max-width: 720px; padding: 0 var(--pad); }
.doors__title {
  font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 0.92; letter-spacing: -0.03em;
  font-stretch: 118%; font-weight: 900;
}
.doors__content > p { margin: 22px auto 32px; max-width: 44ch; color: var(--bone); opacity: 0.85; }
.join-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.join-form input {
  flex: 1 1 200px; max-width: 260px;
  padding: 16px 20px; border-radius: 999px; border: 1px solid rgba(239,230,216,0.3);
  background: rgba(7,5,3,0.6); color: var(--bone); font: inherit; font-size: 0.95rem;
}
.join-form input::placeholder { color: var(--ash); }
.join-form input:focus { border-color: var(--ember); outline: none; }
.join-form input:invalid:not(:placeholder-shown) { border-color: #ff4d4d; }
.join-form__done { margin-top: 18px; color: var(--amber); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
  padding: 72px var(--pad) 40px; border-top: 1px solid var(--line); color: var(--ash);
  background: var(--bg);
}
.footer__logo { font-stretch: 125%; font-weight: 900; font-size: 1.6rem; color: var(--bone); letter-spacing: 0.06em; }
.footer h4 { color: var(--bone); font-weight: 600; margin-bottom: 14px; font-size: 0.95rem; }
.footer p { margin-bottom: 8px; }
.footer a:hover { color: var(--bone); }
.footer__legal { grid-column: 1 / -1; margin-top: 40px; font-size: 0.85rem; }

/* =========================================================
   Reveal (scroll-in)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { min-height: 560px; padding-bottom: 72px; }
  .hero__scroll { display: none; }

  .about { grid-template-columns: 1fr; gap: 0; }
  .about__sticky { position: relative; height: auto; }
  .about__media { aspect-ratio: 16 / 10; max-height: none; }
  .about__copy { padding: 56px 0 80px; }

  .scrub { height: 240vh; }
  .scrub__video { object-fit: contain; }
  .scrub__step { right: var(--pad); }

  /* programs: vertical stack on mobile, no pin */
  .programs__pin { height: auto; padding: 80px 0 40px; }
  .programs__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .programs__track { width: auto; flex-direction: column; gap: 20px; }
  .card { width: 100%; }

  .coaches { padding: 96px var(--pad); min-height: auto; }
  .coaches__copy { margin-left: 0; }

  .results__grid { grid-template-columns: 1fr; gap: 40px; }
  .results { padding: 96px var(--pad); }

  .plans__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .plans__grid { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }

  .doors { height: 200vh; }
  .join-form input { max-width: none; }
  .join-form .btn { width: 100%; }

  .footer { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title .line span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll i::after { animation: none; }
  .scrub, .doors { height: auto; }
  .scrub__pin, .doors__pin { position: relative; }
  .scrub__step { position: relative; opacity: 1; transform: none; left: auto; bottom: auto; padding: 24px var(--pad); }
  .scrub__steps { position: relative; pointer-events: auto; }
}
