/* EnduRider landing page: "The Edit". Loaded after site.css. */

.home { background: var(--ink); color: var(--on-ink); }
.home main { overflow-x: clip; }

.band { padding: clamp(4.5rem, 10vw, 9rem) var(--wrap); }
.band h2 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); letter-spacing: -0.035em; line-height: 0.98; }
.band .intro {
  margin: 1.5rem 0 0; max-width: 46ch;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5;
}

/* ---------- First screen: freeze frame ---------- */

.hero {
  --gap: clamp(2rem, 4vw, 4.5rem);
  display: grid; align-items: center; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: calc(100svh - 4.5rem);
  padding: clamp(1.5rem, 4svh, 3rem) var(--gutter);
  background: var(--ink);
}
.hero h1 { font-size: clamp(3.25rem, 5.5vw, 5.5rem); line-height: 0.94; letter-spacing: -0.04em; }
.hero h1 span { color: var(--yellow); }
.hero .sub {
  margin: 1.75rem 0 2.25rem; max-width: 30ch;
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.45; color: var(--on-ink-soft);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }

.clip {
  position: relative; overflow: hidden;
  height: min(80svh, 46rem); aspect-ratio: 9 / 16;
  border-radius: clamp(1.5rem, 2.4vw, 2.25rem);
  background: var(--ink-deep);
  box-shadow: 0 2.5rem 5rem -1rem rgba(4, 9, 12, 0.75);
}
.clip video, .clip .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.clip video { object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.clip.has-video video { opacity: 1; }
.clip.has-video .scene { visibility: hidden; }

/* The coach's marks, drawn until real footage is in place. */
.scene .ground { fill: var(--ink-raised); }
.scene .far { fill: #17262f; }
.scene .arc {
  fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 1; animation: draw 1.5s var(--ease-out) 0.25s backwards;
}
.scene .mark { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pop 0.5s var(--ease-out) backwards; }
.scene .mark:nth-of-type(1) { animation-delay: 0.3s; }
.scene .mark:nth-of-type(2) { animation-delay: 0.85s; }
.scene .mark:nth-of-type(3) { animation-delay: 1.4s; }
.scene .pill { fill: var(--ink); fill-opacity: 0.85; }
.scene text { font-family: var(--display); font-weight: 800; font-size: 15px; fill: var(--yellow); }
.scene .phase { fill: var(--paper); }
.scene .phase.air { fill: var(--yellow); }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.calls { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.75rem, 5svh, 3.5rem); }
.call { position: relative; padding-left: 3.5rem; max-width: 22rem; }
.call::before {
  content: ""; position: absolute; top: 1.6rem; height: 2px;
  left: calc(-1 * var(--gap) - 0.25rem); width: calc(var(--gap) + 2.75rem);
  background: color-mix(in srgb, var(--paper) 45%, transparent);
  transform-origin: left; animation: reach 0.7s var(--ease-out) 1.2s backwards;
}
.call::after {
  content: ""; position: absolute; top: calc(1.6rem - 6px); left: calc(-1 * var(--gap) - 0.75rem);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink);
}
@keyframes reach { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.call b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.75rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -0.03em;
  color: var(--yellow); font-variant-numeric: tabular-nums;
}
.call strong { display: block; margin-top: 0.4rem; font-family: var(--display); font-weight: 800; font-size: 1.375rem; line-height: 1.2; }
.call.goal strong { margin-top: 0; font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -0.02em; }
.call small { display: block; margin-top: 0.3rem; font-size: 1rem; line-height: 1.4; color: var(--on-ink-soft); }

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center;
    min-height: 0; padding-top: clamp(2.5rem, 8vw, 4.5rem); padding-bottom: clamp(3rem, 8vw, 5rem);
  }
  .hero h1 { font-size: clamp(3.25rem, 13vw, 5.5rem); }
  .hero .sub { margin-inline: auto; }
  .actions { justify-content: center; }
  .clip { height: auto; width: min(100%, 22rem); }
  .calls { width: min(100%, 22rem); text-align: left; gap: 0; }
  .call { padding: 1.25rem 0; max-width: none; border-bottom: 1px solid var(--ink-line); }
  .call:last-child { border-bottom: 0; }
  .call::before, .call::after { content: none; }
}

/* ---------- Coach ---------- */

.coach { background: var(--ink-deep); }
.coach .split {
  display: grid; gap: clamp(2.5rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.coach .lead { position: sticky; top: 7rem; align-self: start; }
.coach .intro { color: var(--on-ink-soft); }
.coach .honest { margin: 1.5rem 0 0; max-width: 46ch; font-size: 1rem; color: var(--on-ink-soft); }

.result { margin: 0; border-top: 2px solid var(--paper); }
.result > div {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.5rem 2rem;
  align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--ink-line);
}
.result dt { font-family: var(--display); font-weight: 800; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--yellow); }
.result dd { margin: 0; max-width: 44ch; color: var(--on-ink); }

.moments {
  list-style: none; margin: clamp(3rem, 7vw, 6rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 1.2vw, 1rem);
}
.moments li { position: relative; overflow: hidden; border-radius: 1.25rem; background: var(--ink); }
.moments img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; }
.moments span {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 85%, transparent); color: var(--yellow);
  font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1.3;
}
@media (max-width: 700px) { .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.terms-line {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.terms-line li {
  padding: 0.7rem 1.2rem; border-radius: 999px;
  background: var(--ink-raised); color: var(--on-ink);
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3;
}

@media (max-width: 900px) {
  .coach .split { grid-template-columns: minmax(0, 1fr); }
  .coach .lead { position: static; }
}
@media (max-width: 520px) {
  .result > div { grid-template-columns: minmax(0, 1fr); padding: 1.25rem 0; }
}

/* ---------- Camera (the one Paper band; no yellow here) ---------- */

.camera { background: var(--paper); color: var(--text); }
.camera h2 { max-width: 16ch; }
.camera .intro { color: var(--text-soft); }

.session { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.session .tape {
  position: relative; height: clamp(4rem, 8vw, 6rem); border-radius: 1rem; overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--paper-line) 0 2px, transparent 2px 11px);
  border: 2px solid var(--ink);
}
.session .pass {
  position: absolute; top: 0; bottom: 0; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 2vw, 1.5rem);
  transform-origin: bottom;
}
.session figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem;
  margin-top: 0.9rem; font-size: 1rem; color: var(--text-soft);
}
.session figcaption strong { color: var(--text); font-weight: 650; }

.facts {
  list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 6rem);
  border-top: 2px solid var(--ink);
}
.facts li { padding: 1.4rem 0; border-bottom: 1px solid var(--paper-line); }
.facts strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.facts span { display: block; margin-top: 0.3rem; color: var(--text-soft); max-width: 40ch; }
@media (max-width: 700px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rides ---------- */

.rides { padding-inline: 0; }
.rides .head { padding: 0 var(--wrap); }
.rides .intro { color: var(--on-ink-soft); }
.reel {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0 var(--wrap) 1.25rem;
  display: flex; gap: clamp(0.875rem, 1.6vw, 1.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--wrap);
  scrollbar-color: #5a6b77 transparent;
}
.reel li {
  flex: none; width: clamp(14rem, 22vw, 19rem); aspect-ratio: 9 / 16;
  border-radius: 1.5rem; overflow: hidden; background: var(--ink-deep);
  scroll-snap-align: start;
}
.reel li:nth-child(even) { margin-top: clamp(1.5rem, 3vw, 3rem); }
.reel li { position: relative; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel .tag {
  position: absolute; left: 0.75rem; top: 0.75rem; margin: 0;
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 85%, transparent); color: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 0.9375rem; line-height: 1.3;
}

/* ---------- Get the app: Lift Yellow ground, Ink type ---------- */

.get { background: var(--yellow); color: var(--ink); }
.get h2 { font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -0.04em; max-width: 12ch; }
.get .intro { margin-bottom: 2.25rem; }
.get :focus-visible { outline-color: var(--ink); }
.get .soon { color: var(--ink); }
.get ::selection { background: var(--ink); color: var(--yellow); }
