/* Ross Mizen Coaching: draft site styles (red and black) */

/* Archivo variable font (width 62–125%, weight 400–900), hosted on the site so no visitor
   data goes to Google. SIL Open Font License: assets/fonts/OFL.txt */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #e3120b;
  --red-deep: #a80d08;
  /* Lighter red for small text on dark backgrounds (meets WCAG AA 4.5:1) */
  --red-text: #ff4d45;
  --black: #0d0d0d;
  --ink: #151515;
  --panel: #1b1b1b;
  --line: #2a2a2a;
  --white: #ffffff;
  --mute: #a3a3a3;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.display,
h1, h2, h3 {
  margin: 0;
  font-weight: 900;
  font-stretch: 80%;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3.2rem, 11vw, 9.5rem); }
h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1; }

h1 > span { display: block; }

.accent { color: var(--red); }

/* Red full stop drawn as a square */
.dot {
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-left: 0.05em;
  background: var(--red);
  vertical-align: baseline;
}

/* The eyebrow sits inside its h1/h2 (so the heading carries it for search engines),
   so it resets the heading's width, line height and spacing to keep its own look */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--red-text);
  font-size: 0.78rem;
  font-stretch: 100%;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 3px;
  background: var(--red);
  flex: none;
}

.lead {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: #d6d6d6;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.muted { color: var(--mute); }

/* Location link with a map pin */
.map-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(227, 18, 11, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.map-link:hover { text-decoration-color: var(--red); }

.map-link .pin {
  flex: none;
  width: 0.95em;
  height: 0.95em;
  fill: var(--red);
  align-self: center;
}

.placeholder-text {
  color: var(--mute);
  font-style: italic;
}

/* ---------- Draft banner ---------- */

.draft-banner {
  background: #2b2b2b;
  color: #d9d9d9;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  padding: 0.4rem var(--gutter);
  /* Sit above the load-in animation's blocks */
  position: relative;
  z-index: 3;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 13, 13, 0.94);
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 900;
  font-stretch: 80%;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  /* With large text, "Coaching" drops under the name instead of pushing the menu off screen */
  flex-wrap: wrap;
  row-gap: 0.1rem;
  min-width: 0;
}

.menu-toggle { flex: none; }

@media (max-width: 400px) {
  .site-header .brand { font-size: 1.15rem; gap: 0.45rem; }
  .site-header .brand small { font-size: 0.7rem; letter-spacing: 0.18em; }
}

.brand small {
  color: var(--red-text);
  font-size: 0.72rem;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.24em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfcfcf;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--white); }

.nav a[aria-current="page"]:not(.btn) {
  box-shadow: inset 0 -3px 0 var(--red);
  padding-bottom: 0.3rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }

  .nav.is-open { display: flex; }

  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }

  .nav a[aria-current="page"]:not(.btn) { box-shadow: none; color: var(--red-text); padding-bottom: 0.9rem; }

  .nav .btn { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  background: var(--red);
  color: var(--white) !important;
  border: 2px solid var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline {
  background: transparent;
  border-color: #4a4a4a;
}

.btn-dark { background: var(--black); border-color: var(--black); }

/* Hover only on devices with a real pointer (phones keep hover "stuck" after a tap);
   :active gives touch users feedback while pressing */
@media (hover: hover) {
  .btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
  .btn-outline:hover { background: transparent; border-color: var(--white); }
  .btn-dark:hover { background: #262626; border-color: #262626; }
}

.btn:active { background: var(--red-deep); border-color: var(--red-deep); }
.btn-outline:active { background: transparent; border-color: var(--white); }
.btn-dark:active { background: #262626; border-color: #262626; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 4.25rem - 1.6rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(110% 90% at 15% 30%, #1d1d1d 0%, var(--black) 62%);
}

.hero .container { position: relative; z-index: 2; padding-top: 4rem; padding-bottom: 5rem; }

.slab {
  position: absolute;
  top: 0;
  right: 0;
  width: 36vw;
  height: 100%;
  background: var(--red);
  clip-path: polygon(68% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.ghost {
  position: absolute;
  left: -0.04em;
  bottom: -0.2em;
  margin: 0;
  font-size: clamp(5rem, 17vw, 17rem);
  font-weight: 900;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  background: var(--red);
}

/* Hide the flat red shapes while the block animation builds them */
.fx-pending .hero .slab { opacity: 0; }
.fx-pending .hero .dot { visibility: hidden; }

.slab-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 860px) {
  .slab {
    width: 58vw;
    height: 46%;
    clip-path: polygon(62% 0, 100% 0, 100% 100%);
  }

  /* Keep the hero eyebrow on one line and clear of the slab: shorter dash, tighter tracking */
  .hero .eyebrow {
    gap: 0.5rem;
    letter-spacing: 0.18em;
    /* The slab edge is at least 70vw in at this height; wrap (only on very narrow screens or large text) rather than overlap */
    max-width: calc(70vw - 6px);
    align-items: flex-start;
  }
  .hero .eyebrow::before { width: 1.25rem; margin-top: calc(0.5lh - 1.5px); }
}

@media (max-width: 420px) {
  .hero .eyebrow { letter-spacing: 0.14em; }
}

@media (max-width: 400px) {
  .hero .eyebrow { letter-spacing: 0.1em; }
  .hero .eyebrow::before { width: 0.85rem; }
}

@media (max-width: 380px) {
  .hero .eyebrow { font-size: 0.72rem; }
}

/* ---------- Page heading (inner pages) ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(110% 90% at 15% 30%, #1b1b1b 0%, var(--black) 62%);
}

.page-head .container { position: relative; z-index: 2; }

.page-head .slab {
  width: 22vw;
  clip-path: polygon(78% 0, 100% 0, 100% 100%, 30% 100%);
}

.page-head h1 { font-size: clamp(3rem, 9vw, 7rem); }

@media (max-width: 860px) {
  /* A wedge that tapers to nothing at the bottom, so the heading and intro stay clear of it */
  .page-head .slab { width: 26vw; height: 100%; clip-path: polygon(70% 0, 100% 0, 100% 100%); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head .lead { margin-top: 1rem; }

/* ---------- Discipline strip ---------- */

.disciplines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black);
  position: relative;
  z-index: 2;
}

.disciplines div {
  padding: 1.75rem var(--gutter);
  font-weight: 900;
  font-stretch: 80%;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
}

.disciplines div + div { border-left: 1px solid var(--line); }

@media (max-width: 760px) {
  .disciplines { grid-template-columns: 1fr; }
  .disciplines div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Stats ticker ---------- */

/* Sits between the disciplines strip and the results section, whose borders frame it */
.stats {
  background: var(--black);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.1rem var(--gutter);
}

.stat + .stat { border-left: 1px solid var(--line); }

.stat dd {
  order: -1;
  margin: 0;
  font-weight: 900;
  font-stretch: 80%;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Count-up: the real number stays in the text (for search engines and screen readers) and keeps
   its width; while counting it's hidden and the moving number is painted over it from data-now */
[data-count] { position: relative; display: inline-block; }
[data-count].is-counting { color: transparent; }
[data-count].is-counting::after {
  content: attr(data-now) / "";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--white);
}

.stat dt {
  max-width: 11rem;
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Phones: three small stacked stats side by side, still one thin band */
@media (max-width: 640px) {
  .stat {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.85rem 0.75rem;
  }
  .stat:first-child { padding-left: var(--gutter); }
  .stat dd { font-size: 1.5rem; }
  .stat dt { font-size: 0.69rem; letter-spacing: 0.08em; }
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

/* Plus that turns into a minus when open */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.9rem;
  height: 2px;
  background: var(--red);
  transition: transform 0.2s ease;
}

.faq summary::after { transform: rotate(90deg); }

.faq details[open] summary::after { transform: rotate(0deg); }

.faq summary:focus-visible { outline: 2px solid var(--red-text); outline-offset: 4px; }

.faq details p {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: #d0d0d0;
}

@media (hover: hover) {
  .faq summary:hover { color: var(--red-text); }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  background: var(--panel);
  border-left: 4px solid var(--red);
  padding: 1.75rem 1.5rem 2rem;
}

.step .num {
  color: var(--red-text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.step h3 { margin: 0.9rem 0 0.6rem; }

.step p { margin: 0; color: var(--mute); }

.step-red { background: var(--red); border-left-color: var(--black); }
.step-red .num, .step-red p { color: var(--white); }

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

/* ---------- Plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
}

.plan .tier {
  color: var(--red-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* The plan name scales with the card's width so the longest one
   ("Performance") always fits. Card width is worked out from the row
   (the size container): 3 columns minus gaps, minus card padding. */
.plans { container-type: inline-size; }

.plan h3 {
  margin: 0.6rem 0 0.75rem;
  font-size: clamp(1rem, calc(((100cqi - 2.5rem) / 3 - 3.5rem) * 0.135), 2.75rem);
}

.plan .for { margin: 0 0 1.5rem; color: #d0d0d0; }

.plan ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.plan li {
  position: relative;
  padding-left: 1.4rem;
  color: #d9d9d9;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--red);
}

.plan .price {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--mute);
}

.plan .price strong {
  display: block;
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  font-stretch: 80%;
  line-height: 1.1;
}

.plan .btn { margin-top: 1.5rem; text-align: center; }

.plan-feature {
  background: var(--red);
  border-color: var(--red);
}

.plan-feature .tier,
.plan-feature .price,
.plan-feature .for,
.plan-feature li { color: var(--white); }

.plan-feature li::before { background: var(--black); }
.plan-feature .price { border-top-color: rgba(255, 255, 255, 0.3); }

.plan-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}

.plan-tags .tier { margin-right: 0.2rem; }

.delivery,
.recommended {
  padding: 0.2rem 0.5rem;
  border: 1px solid #444;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9d9d9;
}

/* Hangs off the top edge so it doesn't push the heading out of line */
.recommended {
  position: absolute;
  top: 0;
  right: 1.25rem;
  transform: translateY(-50%);
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.plan { position: relative; }

.plan-feature .delivery { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }

/* Typical athlete for each plan */
.typical {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--red);
}

.typical-label {
  display: block;
  color: var(--red-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.typical-age {
  display: block;
  margin-top: 0.3rem;
  font-weight: 900;
  font-stretch: 80%;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.typical p {
  margin: 0.45rem 0 0;
  color: #cfcfcf;
  font-size: 0.9rem;
}

.plan-feature .typical { background: rgba(0, 0, 0, 0.2); border-left-color: var(--black); }
.plan-feature .typical-label { color: var(--white); }
.plan-feature .typical p { color: var(--white); }

/* Line up each part of the detailed plan cards across the row */
@supports (grid-template-rows: subgrid) {
  .plans-detailed { row-gap: 0; }

  .plans-detailed .plan {
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    /* Never let content widen the card's single column past the card */
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .plans-detailed .plan .price { align-self: end; }

  /* Home page summaries: tags, name, description, price */
  .plans-summary { row-gap: 0; }

  .plans-summary .plan {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .plans-summary .plan .price { align-self: end; }

  /* Keep bullets packed at the top when the row is taller than the list */
  .plans-detailed .plan ul { align-content: start; }
}

.plans-note { margin: 1.5rem 0 0; color: #d6d6d6; }

.plans-note-sub { margin: 0.4rem 0 0; font-size: 0.85rem; }

@media (max-width: 960px) {
  .plans { gap: 0.9rem; }
  .plan { padding: 1.6rem 1.25rem; }
  .plan h3 { font-size: clamp(1rem, calc(((100cqi - 1.8rem) / 3 - 2.5rem) * 0.135), 2.75rem); }
}

/* On phones the plans stay side by side as a swipeable row */
@media (max-width: 640px) {
  .plans {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0.9rem var(--gutter) 0.75rem;
    scroll-padding: 0 var(--gutter);
  }

  .plan { scroll-snap-align: start; scroll-snap-stop: always; }

  /* Each card is 82% of the row in the swipe layout */
  .plan h3 { font-size: clamp(1rem, calc((82cqi - 2.5rem) * 0.135), 2.75rem); }

  .plans:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
  }
}

/* Position dots under the swipeable plan row (only shown while it scrolls) */
.plan-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.plan-dots[hidden] { display: none; }

.plan-dots button {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.plan-dots button::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  background: #4a4a4a;
  transition: background 0.2s ease, width 0.2s ease;
}

.plan-dots button[aria-current="true"]::before {
  width: 1.4rem;
  background: var(--red);
}

.plan-dots button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 0;
}

/* ---------- Results (athlete progress cards) ---------- */

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.result {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.5rem;
  overflow: hidden;
}

.result::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--red);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* Background photo: black and white, faded well back so the numbers stay readable */
.result-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.28;
}

.result::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.7) 0%, rgba(20, 20, 20, 0.85) 75%);
}

.result > :not(.result-bg) { position: relative; z-index: 1; }

.result::after { z-index: 2; }

.result .event {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-text);
}

.result .athlete {
  margin: 0.4rem 0 1.25rem;
  font-weight: 800;
  font-size: 1.05rem;
}

/* Before → Now. Wraps onto two lines rather than overflowing narrow cards or large text */
.progress {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.progress .before,
.progress .after { flex: 0 0 auto; }

.progress small {
  display: block;
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.progress b {
  display: block;
  font-weight: 900;
  font-stretch: 80%;
  /* Scales down on phones so before → now fits on one line */
  font-size: clamp(1.35rem, 6.4vw, 1.9rem);
  line-height: 1.05;
}

.progress .arrow {
  color: var(--red);
  font-weight: 900;
  font-size: 1.5rem;
  padding-bottom: 0.2rem;
}

.progress .after b { color: var(--white); }
.progress .before b { color: #8a8a8a; }

.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.levels span {
  border: 1px solid #3a3a3a;
  padding: 0.25rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfcfcf;
}

.levels span.now { border-color: var(--red); color: var(--white); background: rgba(227, 18, 11, 0.18); }

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

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

/* ---------- Testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.quote {
  margin: 0;
  padding: 1.75rem 1.5rem;
  border-top: 4px solid var(--red);
  background: var(--panel);
}

.quote p {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: #e2e2e2;
}

.quote footer {
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* ---------- Photo placeholders ---------- */

.photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 18rem;
  padding: 1rem;
  background:
    repeating-linear-gradient(135deg, #1a1a1a 0 14px, #161616 14px 28px);
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.photo::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--red);
}

.photo-tall { min-height: 30rem; }

@media (max-width: 860px) {
  .photo-tall { min-height: 20rem; }
}

/* Photos: black and white, slightly faded into the dark background */
.photo.has-img {
  padding: 0;
  overflow: hidden;
  background: var(--black, #0a0a0a);
}

.photo.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.92) brightness(0.95);
  opacity: 0.85;
}

.photo.has-img::before { z-index: 1; }

/* ---------- Split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split-top { align-items: start; }

/* Side-by-side boxes share the same height */
.split-equal { grid-template-columns: 1fr 1fr; align-items: stretch; }

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

/* ---------- Feature list ---------- */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-list .idx {
  color: var(--red);
  font-weight: 900;
  font-stretch: 80%;
  font-size: 1.6rem;
  line-height: 1;
}

.feature-list h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }

.feature-list p { margin: 0; color: var(--mute); }

/* ---------- Stories ---------- */

.stories {
  display: grid;
  gap: 1.25rem;
}

.story {
  display: grid;
  grid-template-columns: 22rem 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
}

.story .photo { min-height: 100%; border: 0; border-right: 1px solid var(--line); }

.story-body { padding: clamp(1.5rem, 4vw, 2.5rem); }

.story-body h3 { margin: 0.5rem 0 1rem; }

.story-body p { margin: 0 0 1rem; color: #d0d0d0; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story .photo { min-height: 14rem; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Instagram placeholder ---------- */

.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.insta-grid .photo {
  min-height: 0;
  aspect-ratio: 1;
  font-size: 0.7rem;
  padding: 0.6rem;
  overflow: hidden;
}

@media (max-width: 860px) {
  .insta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.handle {
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--red);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.cta::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: var(--black);
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 15% 100%);
  opacity: 0.18;
}

.cta .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta h2 { font-size: clamp(2.6rem, 7vw, 5rem); }

.cta p { margin: 0.75rem 0 0; color: var(--white); }

.cta .accent { color: var(--black); }

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfcfcf;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  background: var(--black);
  border: 1px solid #383838;
  color: var(--white);
  font: inherit;
  border-radius: 0;
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}

.form-note {
  margin: 0;
  color: var(--mute);
  font-size: 0.85rem;
}

.form-status {
  display: none;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--red);
  background: rgba(227, 18, 11, 0.12);
  font-size: 0.9rem;
}

.form-status.is-visible { display: block; }

.form-status.is-success {
  border-left-color: #2ea043;
  background: rgba(46, 160, 67, 0.14);
}

.form-status a { color: var(--white); }

/* Honeypot: kept off screen for people, still in the form for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form { position: relative; }

/* Reserve space for the Turnstile check so the form doesn't jump when it loads */
.cf-turnstile { min-height: 65px; }

.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
}

/* Cards stacked in one column */
.stack { display: grid; gap: 1.25rem; align-content: start; }

/* Beside another box, the last card stretches so both columns end level */
.split-equal .stack { grid-template-rows: auto 1fr; align-content: stretch; }

.info-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }

.info-card p { margin: 0 0 1rem; color: #d0d0d0; }

.info-card dl { margin: 0; display: grid; gap: 0.75rem; }

.info-card dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-text);
}

.info-card dd { margin: 0.15rem 0 0; }

/* ---------- Long-form text (privacy policy) ---------- */

.prose {
  max-width: 46rem;
  color: #dcdcdc;
  font-size: 1.02rem;
}

.prose h2 {
  margin: 2.75rem 0 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.05;
  scroll-margin-top: 6rem;
}

.prose h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.2rem;
  color: var(--white);
}

.prose p { margin: 0 0 1rem; }

.prose ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }

.prose li { margin-bottom: 0.45rem; }

.prose li::marker { color: var(--red-text); }

.prose strong { color: var(--white); }

.prose a { color: var(--white); text-decoration-color: rgba(227, 18, 11, 0.7); text-underline-offset: 0.18em; }

.prose-meta {
  color: var(--mute);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose-note {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--red);
  background: rgba(227, 18, 11, 0.12);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: var(--black);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h4 {
  margin: 0 0 0.9rem;
  color: var(--red-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }

.footer-grid a { text-decoration: none; color: #cfcfcf; }

.footer-grid a:hover { color: var(--white); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: #7d7d7d;
  font-size: 0.78rem;
}

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

/* Discreet build credit */
.credit {
  margin: 1.25rem 0 0;
  color: #8a8a8a;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.credit a {
  color: inherit;
  text-decoration: none;
}

.credit a:hover { color: var(--mute); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
