:root {
  --ink: #101318;
  --cream: #F5F2EA;
  --accent: #EF9F27;
  --accent-deep: #BA7517;
  --muted: #8A8880;
  --muted-dark: #9AA0A8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-light {
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  max-width: 22ch;
}

p {
  margin: 0 0 1.1em;
  max-width: 62ch;
  font-size: clamp(16px, 1.2vw, 18px);
}

.wrap {
  width: min(1120px, calc(100% - 2 * 6vw));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(62ch, calc(100% - 2 * 6vw));
  margin-inline: auto;
  text-align: center;
}

.wrap-narrow .eyebrow,
.wrap-narrow h2 {
  margin-inline: auto;
}

.wrap-narrow-left {
  width: min(62ch, calc(100% - 2 * 6vw));
  margin-inline: auto;
}

.wrap-center {
  text-align: center;
}

.section {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.section-light {
  background: var(--cream);
  color: var(--ink);
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-dark p {
  color: color-mix(in srgb, var(--cream) 88%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.92;
}

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

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

/* —— Hero —— */
.hero-track {
  height: 200vh;
  background: var(--ink);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  color: var(--cream);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  will-change: object-position;
}

@media (max-width: 768px) {
  .hero-img {
    object-position: 8% 50%;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 19, 24, 0.92) 0%,
    rgba(16, 19, 24, 0.4) 40%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6vw;
  max-width: 900px;
}

.tagline {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.tagline-line {
  display: block;
}

.tagline .w {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 1;
  will-change: opacity, transform;
}

.js-scrub .tagline .w {
  opacity: 0.12;
  transform: translateY(12px);
}

.hero-sub {
  margin: 0;
  font-size: 16px;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  max-width: 36ch;
}

.hero-cta {
  margin-top: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.js-scrub .hero-cta {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.js-scrub .hero-cta.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-hint.off {
  opacity: 0;
}

.scroll-hint-line {
  display: block;
  width: 1px;
  height: 36px;
  background: color-mix(in srgb, var(--cream) 55%, transparent);
}

.scroll-hint-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}

/* —— Who —— */
.who-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.portrait-slot img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.who-copy p:last-child {
  margin-bottom: 0;
}

.who-copy p:has(+ .signature) {
  margin-bottom: 0;
}

.signature {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--accent-deep);
  margin-top: 20px;
}

.grid-why {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: center;
}

.why-copy h2 {
  max-width: 18ch;
}

.why-copy p:last-child {
  margin-bottom: 0;
}

.teaching {
  width: 100%;
  height: auto;
  max-height: min(32rem, 70vh);
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .grid-why {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* —— Steps —— */
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.step-num {
  display: block;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* —— Gyms —— */
.gyms {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.gyms li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 242, 234, 0.12);
}

.gyms li:last-child {
  border-bottom: none;
}

.gym-name {
  display: block;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.gym-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 15px;
  color: var(--muted-dark);
}

.coaches {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.coaches-label {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  color: var(--cream);
}

/* —— Contact —— */
.section-contact {
  padding: 112px 0 104px;
}

.contact-title {
  font-size: clamp(32px, 5.5vw, 56px);
  max-width: none;
  margin-inline: auto;
}

.contact-sub {
  margin: 0 auto 2rem;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted-dark);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  text-align: center;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
}

.site-footer p {
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.6;
  max-width: 62ch;
}

/* —— Reveals (progressive enhancement) —— */
.reveal {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.js-scrub .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js-scrub .reveal.in {
  opacity: 1;
  transform: none;
}

/* —— Sticky mobile CTA —— */
.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 50;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: var(--accent);
    color: var(--ink);
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 -6px 20px rgba(16, 19, 24, 0.18);
    transform: translateY(120%);
    transition: transform 0.25s ease;
  }

  .sticky-cta.on {
    transform: translateY(0);
  }

  .sticky-cta[hidden] {
    display: none;
  }

  body.has-sticky-cta {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.75rem;
  }
}

@media (min-width: 901px) {
  .who-grid {
    grid-template-columns: 2fr 3fr;
    gap: 64px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-track {
    height: 100dvh;
  }

  .tagline .w,
  .hero-cta,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }

  .scroll-hint {
    display: none;
  }

  .sticky-cta {
    transition: none;
  }
}
