/* ============================================================
   IN THE RING FITNESS — Home page
   Implements Home.dc.html. Shared styles live in site.css.
   ============================================================ */
:root {
  --hero-red-hi: #f0353a;
  --hero-red-lo: #8f1015;
  --hero-shade: 80, 8, 12;                  /* rgb — the hero's dark-red scrims */
}

/* ---------- Home-only pieces ---------- */
.pill-btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 500; font-size: clamp(13px, 0.6vw, 16px); line-height: 1.2;
  color: #fff; padding: clamp(10px, 0.52vw, 14px) clamp(16px, 0.82vw, 22px); white-space: nowrap;
  border: 1.5px solid rgba(255, 255, 255, 0.75); border-radius: var(--radius-pill);
  transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
.pill-btn:hover { background: #fff; color: var(--ink-900); }
.pill-btn--ink { color: var(--ink-800); border-color: var(--ink-800); }
.pill-btn--ink:hover { background: var(--ink-800); color: #fff; }

.circle-btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 50%; color: #fff;
  font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: 0.04em;
  transition: transform 250ms var(--ease-punch);
}
.circle-btn:hover { transform: scale(1.06); color: #fff; }
.circle-btn--ink { background: var(--ink-900); box-shadow: 0 24px 60px rgba(12, 14, 18, 0.45); }
.circle-btn--red { background: var(--red-500); box-shadow: 0 18px 44px rgba(217, 29, 33, 0.35); }
.circle-btn--sm { width: clamp(110px, 5.6vw, 150px); height: clamp(110px, 5.6vw, 150px); font-size: clamp(15px, 0.75vw, 20px); }
.circle-btn--md { width: clamp(120px, 6.3vw, 170px); height: clamp(120px, 6.3vw, 170px); font-size: clamp(16px, 0.82vw, 22px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  margin: var(--frame);
  border-radius: var(--radius-panel);
  min-height: max(calc(100vh - 24px), 560px);
  background: radial-gradient(120% 90% at 20% 10%, var(--hero-red-hi) 0%, var(--red-500) 40%, var(--hero-red-lo) 100%);
  display: flex; flex-direction: column;
}
.hero__media {
  position: absolute; inset: 0; border-radius: var(--radius-panel); overflow: hidden; pointer-events: none;
}
.hero__photo {
  position: absolute; right: 4%; bottom: 0;
  width: min(62%, clamp(400px, 32.8vw, 880px)); height: 96%;
  object-fit: cover; object-position: center 20%;
  mix-blend-mode: luminosity; opacity: 0.92;
  -webkit-mask-image: radial-gradient(ellipse 58% 68% at 50% 50%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 68% at 50% 50%, #000 52%, transparent 100%);
  animation: itr-fade 900ms ease-out both;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--hero-shade), 0.55) 0%, rgba(var(--hero-shade), 0) 45%);
}
.hero__explore {
  position: absolute; left: 50%; bottom: 0; z-index: 5;
  width: clamp(120px, 9.7vw, 260px); height: clamp(120px, 9.7vw, 260px);
  font-size: clamp(15px, 1.2vw, 32px);
  transform: translate(-50%, 25%);
}
.hero__explore:hover { transform: translate(-50%, 25%) scale(1.06); }

/* Hero content grid */
.hero__grid {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  gap: 0 clamp(20px, 2.4vw, 64px);
  padding: clamp(12px, 1.2vw, 32px) var(--gutter-x) clamp(16px, 1.5vw, 40px);
}
.hero__headline {
  grid-column: 1 / -1; grid-row: 1 / 3; align-self: start; min-width: 0;
  display: grid; gap: clamp(12px, 1.05vw, 28px);
  animation: itr-rise 700ms var(--ease-out) both; pointer-events: none;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 17vw, 460px); line-height: 0.8; letter-spacing: -0.03em;
  text-transform: uppercase; color: #fff; text-wrap: balance;
}
.hero__kicker {
  display: flex; align-items: center; gap: clamp(10px, 0.6vw, 16px);
  font-family: var(--font-heading); font-weight: 700; font-size: clamp(11px, 0.75vw, 20px);
  letter-spacing: 0.28em; text-transform: uppercase; color: #fff;
}
.hero__rule { width: clamp(28px, 1.65vw, 44px); height: 3px; background: #fff; flex: 0 0 auto; }
.hero__blurb {
  grid-column: 2; grid-row: 2; justify-self: end; align-self: start; position: relative; z-index: 3;
  max-width: clamp(250px, 12.7vw, 340px); padding: clamp(12px, 0.67vw, 18px) clamp(14px, 0.75vw, 20px); border-radius: 12px;   /* 300px content + padding, as designed */
  background: rgba(var(--hero-shade), 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: clamp(13px, 0.67vw, 18px); line-height: 1.5; color: #fff; text-wrap: pretty;
  animation: itr-rise 700ms 120ms var(--ease-out) both;
}
.hero__proof {
  grid-column: 1; grid-row: 3; align-self: end;
  display: grid; gap: clamp(18px, 1.5vw, 40px);
  animation: itr-rise 700ms 240ms var(--ease-out) both;
}
.stat__row { display: flex; align-items: flex-start; gap: 6px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 3.13vw, 84px); line-height: 0.9; color: #fff; }
.stat__star {
  width: 12px; height: 12px; margin-top: 4px; background: #fff; flex: 0 0 auto;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.stat__label { margin-top: 8px; font-size: clamp(13px, 0.67vw, 18px); line-height: 1.3; font-weight: 500; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: clamp(6px, 0.37vw, 10px); max-width: clamp(400px, 24vw, 640px); }
.chip {
  display: inline-block;
  font-family: var(--font-body); font-weight: 500; font-size: clamp(12px, 0.6vw, 16px); line-height: 1.2; color: #fff;
  padding: clamp(9px, 0.52vw, 14px) clamp(14px, 0.82vw, 22px); border: 1.5px solid rgba(255, 255, 255, 0.75); border-radius: var(--radius-pill); white-space: nowrap;
  transition: background 180ms, color 180ms;
}
.chip:hover { background: #fff; color: var(--red-500); }
.hero__card {
  grid-column: 2; grid-row: 3; justify-self: end; align-self: end;
  width: min(100%, clamp(280px, 16.3vw, 438px)); padding: clamp(18px, 1.05vw, 28px) clamp(18px, 1.05vw, 28px) clamp(16px, 0.9vw, 24px); border-radius: 14px;   /* 380px content + padding + border */
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: itr-rise 700ms 360ms var(--ease-out) both;
}
.hero__card-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 1.5vw, 40px); line-height: 0.95; text-transform: uppercase; color: #fff; }
.hero__card-row { margin: clamp(12px, 0.67vw, 18px) 0 clamp(10px, 0.52vw, 14px); display: flex; align-items: center; gap: 12px; }
.hero__card-row img { height: clamp(26px, 1.64vw, 44px); width: auto; }
.hero__card-note { font-family: var(--font-heading); font-weight: 600; font-size: clamp(10px, 0.45vw, 12px); letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.5; color: #fff; }
.hero__card-foot { font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 0.97vw, 26px); line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: var(--section-gap) var(--gutter-x) 0; }
.section--first { padding-top: clamp(56px, 5.2vw, 140px); }
.section__head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 1.5vw, 40px); align-items: end; margin-bottom: clamp(20px, 1.64vw, 44px);
}
.section__head .section__title { grid-column: span 2; }
.section__head .pill-btn { justify-self: end; }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 4.1vw, 110px); line-height: 0.86; letter-spacing: -0.015em;
  text-transform: uppercase; color: #fff; text-wrap: balance;
}
.section__title--md { font-size: clamp(34px, 3.13vw, 84px); line-height: 0.88; margin-bottom: 24px; }
.section__lede { font-size: clamp(15px, 0.63vw, 17px); line-height: 1.55; color: var(--text-on-dark-soft); max-width: 380px; text-wrap: pretty; }

/* Disciplines */
.disciplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.discipline {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--radius-panel);
  background: var(--ink-800) radial-gradient(90% 70% at 50% 100%, rgba(217, 29, 33, 0.28), transparent 70%);
  transition: transform 300ms var(--ease-out);
}
.discipline:hover { transform: translateY(-6px); }
.discipline__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discipline__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 14, 18, 0.92) 0%, rgba(12, 14, 18, 0.1) 55%); }
.discipline__tag { position: absolute; top: 20px; left: 20px; }
.discipline__body { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 10px; }
.discipline__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 2.4vw, 64px); line-height: 0.9; text-transform: uppercase; color: #fff; }
.discipline__text { font-size: 15px; line-height: 1.5; color: var(--text-on-dark-soft); }

/* Coach panel */
.coach {
  margin: clamp(40px, 3.9vw, 104px) var(--frame) 0;
  border-radius: var(--radius-panel); overflow: hidden;
  background: var(--paper-050); color: var(--ink-800);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.coach :focus-visible { outline-color: var(--ink-800); }
.coach__media { position: relative; min-height: clamp(360px, 19.4vw, 520px); background: var(--photo-fallback); }
.coach__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.coach__pills { position: absolute; left: 24px; bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.coach__content {
  padding: clamp(28px, 3vw, 80px) clamp(20px, 2.4vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 1.05vw, 28px);
}
.coach__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 3.9vw, 104px); line-height: 0.86; letter-spacing: -0.015em;
  text-transform: uppercase; color: var(--ink-800); text-wrap: balance;
}
.coach__text { font-size: clamp(16px, 0.67vw, 18px); line-height: 1.6; color: var(--text-body); max-width: 520px; text-wrap: pretty; }
.coach__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step {
  border-radius: var(--radius-panel); padding: clamp(18px, 1.05vw, 28px) clamp(16px, 0.97vw, 26px); min-height: clamp(220px, 12.5vw, 336px);   /* 280px content + padding */
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(18px, 1.05vw, 28px);
}
.step--red { background: var(--red-500); color: #fff; }
.step--ink { background: var(--ink-800); color: #fff; }
.step--paper { background: var(--paper-050); color: var(--ink-800); }
.step__top { display: flex; justify-content: space-between; align-items: center; }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 2.4vw, 64px); line-height: 0.9; }
.step__when {
  font-family: var(--font-body); font-weight: 500; font-size: 13px; line-height: 1.2;
  padding: 7px 14px; border: 1.5px solid currentColor; border-radius: var(--radius-pill); opacity: 0.85;
}
.step__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 1.12vw, 30px); line-height: 1; text-transform: uppercase; }
.step__text { margin-top: 10px; font-size: 15px; line-height: 1.5; opacity: 0.85; }

/* Goals + FAQ */
.goals-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 80px); align-items: start; }
.goals { display: flex; flex-wrap: wrap; gap: 10px; }
.goal {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.12vw, 30px); line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.02em; color: #fff;
  padding: clamp(10px, 0.6vw, 16px) clamp(16px, 0.97vw, 26px); border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius-pill);
  transition: background 180ms, color 180ms, border-color 180ms;
}
.goal:hover { background: var(--red-500); border-color: var(--red-500); }
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--ink-800); border-radius: 14px; overflow: hidden; }
.faq__q {
  width: 100%; padding: clamp(14px, 0.75vw, 20px) clamp(16px, 0.82vw, 22px); text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 0.82vw, 22px); line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.02em; color: #fff;
}
.faq__q:focus-visible { outline-offset: -4px; }
.faq__icon {
  width: clamp(26px, 1.27vw, 34px); height: clamp(26px, 1.27vw, 34px); flex: 0 0 clamp(26px, 1.27vw, 34px); border-radius: 50%;
  background: #fff; color: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: clamp(16px, 0.82vw, 22px); line-height: 1;
}
.faq__q[aria-expanded="true"] .faq__icon { background: var(--red-500); color: #fff; }
.faq__a p { padding: 0 22px 22px; font-size: 16px; line-height: 1.6; color: var(--text-on-dark-soft); text-wrap: pretty; }

/* CTA panel */
.cta {
  position: relative; overflow: hidden; box-sizing: content-box;   /* 560px min-height is content height in the design */
  margin: var(--section-gap) var(--frame) var(--frame);
  border-radius: var(--radius-panel); min-height: clamp(360px, 21vw, 560px);
  background: radial-gradient(120% 90% at 80% 20%, var(--hero-red-hi) 0%, var(--red-500) 40%, var(--hero-red-lo) 100%);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end;
  padding: clamp(32px, 3.6vw, 96px) clamp(20px, 2.1vw, 56px);
}
.cta__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  mix-blend-mode: luminosity; opacity: 0.35; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.cta__lead { position: relative; }
.cta__eyebrow { color: #fff; opacity: 0.9; }
.cta__title {
  margin-top: 18px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 6.7vw, 180px); line-height: 0.84; letter-spacing: -0.015em;
  text-transform: uppercase; color: #fff;
}
.cta__aside { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; text-align: right; }
.cta__text { max-width: 360px; font-size: 17px; line-height: 1.55; color: #fff; text-wrap: pretty; }

/* ============================================================
   Responsive (Home)
   ============================================================ */
@media (max-width: 1099.98px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959.98px) {
  /* Single column; leave room at the bottom for the Explore disc that hangs below the panel. */
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: clamp(28px, 5vw, 40px); padding-top: clamp(32px, 6vw, 56px); padding-bottom: calc(clamp(120px, 9.7vw, 260px) * 0.75 + 32px); }
  .hero__headline, .hero__blurb, .hero__proof, .hero__card { grid-column: auto; grid-row: auto; justify-self: stretch; align-self: auto; }
  .hero__blurb { max-width: 460px; }
  .hero__card { width: min(100%, 420px); }
  .hero__photo { right: -12%; width: 90%; height: 60%; opacity: 0.7; }
  .disciplines { grid-template-columns: minmax(0, 1fr); }
  .coach { grid-template-columns: minmax(0, 1fr); }
  .coach__media { min-height: 0; aspect-ratio: 4 / 5; max-height: 640px; }
  .goals-faq { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 32px; }
  .cta__aside { align-items: flex-start; text-align: left; }
}
@media (max-width: 639.98px) {
  .section__head .section__title { grid-column: auto; }
  .section__head .pill-btn { justify-self: start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero__grid { padding-bottom: calc(120px * 0.75 + 32px); }
  .hero__explore { width: 120px; height: 120px; font-size: 16px; }
  .hero__kicker { font-size: 12px; letter-spacing: 0.22em; gap: 12px; }
  .hero__rule { width: 28px; }
  .step__num { font-size: 40px; }
  .faq__q { font-size: 16px; padding: 14px 16px; }
  .faq__a p { padding: 0 18px 18px; }
}
