*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #F3F4F1; }
body {
  color: #15171A;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #15171A; }
a:hover { color: #3A3F46; }

.ep-track { position: relative; height: 2600px; }
.ep-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; max-height: 980px; min-height: 600px;
  overflow: hidden;
  max-width: 1360px; margin: 0 auto;
  padding: 28px 56px 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.ep-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ep-brand { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.ep-contact { font-size: 15px; font-weight: 500; text-decoration: none; padding: 12px 4px; }

.ep-main { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.ep-copy { flex: 1 1 380px; min-width: 0; max-width: 540px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.ep-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border: 1px solid #CDD0C9; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #3A3F46;
}
.ep-dot { width: 8px; height: 8px; border-radius: 50%; }
.ep-dot--reward { background: #A0703F; opacity: .35; }
.ep-h1 {
  margin: 0; font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 500;
  font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.03em;
}
.ep-lede { margin: 0; font-size: 18px; line-height: 1.6; color: #50555C; max-width: 30em; }


.ep-figure { flex: 1.4 1 480px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ep-svg { display: block; width: 100%; height: auto; max-height: 62vh; }
.ep-svg .lbl { font-family: 'JetBrains Mono', monospace; font-size: 12px; fill: #6A7078; }
.ep-cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.5; color: #50555C;
}

@media (max-width: 760px) {
  /* On phones the stage grows to fit its content instead of being clamped to one screen.
     pinStage() in common.js then sets a negative sticky `top`, so a stage taller than the
     screen scrolls until its bottom (drawing + caption) is in view, and pins there. */
  .ep-stage {
    height: auto; max-height: none; min-height: 100svh; overflow: visible;
    padding: 16px 20px 24px; gap: 16px;
  }
  .ep-main { flex: 1 0 auto; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 22px; }
  .ep-copy { flex: none; max-width: none; gap: 16px; }
  .ep-figure { flex: none; }
  .ep-svg { max-height: none; }
  .ep-pill { padding: 5px 12px 5px 10px; font-size: 11px; }
  .ep-h1 { font-size: 36px; }
  .ep-lede { font-size: 15px; line-height: 1.5; }
  .ep-cap { font-size: 10.5px; }
}
