:root {
  --night: #070a12;
  --night-2: #0d1220;
  --night-3: #141a2b;
  --bone: #ece8df;
  --steel: #8b93a3;
  --line: rgba(236, 232, 223, .14);
  --yellow: #ffcc00;
  --red: #e0233a;
  --blue: #3a66ff;
  --gold: #e8b923;
  --silver: #b9c1cc;
  --bronze: #c47f45;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  /* Hero geometry. The name's size drives where the photo sits: Daniel's left
     edge (35% into the photo) lands just before BECERRA ends (~3.1em), so the
     end of his surname and of EDUARDO pass behind him at every screen size. */
  --fs: clamp(4rem, min(15vw, 27svh), 22rem);
  --ph-w: min(46vw, 74svh);
  --ph-left: calc(var(--gutter) + 2.85 * var(--fs) - .35 * var(--ph-w));
  /* lightbox theme */
  --lb-bg: rgba(7, 10, 18, .95);
  --lb-accent: #ffcc00;
  --lb-font: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--night);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* Grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Top bar */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
}
.mono {
  font-family: var(--display); font-weight: 900; font-size: 26px;
  letter-spacing: .02em; text-decoration: none; color: #fff;
}
.mono span { color: #fff; opacity: .55; }
.top nav { display: flex; gap: 28px; }
.top nav a {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
  opacity: .75; transition: opacity .2s;
}
.top nav a:hover { opacity: 1; }

/* Route rail */
.rail {
  position: fixed; right: calc(var(--gutter) - 18px); top: 50%; z-index: 70;
  transform: translateY(-50%);
  height: min(62vh, 560px); width: 120px;
  pointer-events: none;
}
.rail-svg { position: absolute; right: 0; top: 0; width: 34px; height: 100%; overflow: visible; }
.rail-bg { fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rail-line {
  fill: none; stroke: var(--yellow); stroke-width: 2.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
html:not(.js) .rail-line { stroke-dashoffset: 0; }
.rail-marks {
  list-style: none; position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-end; padding-right: 9px;
}
.rail-marks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--steel);
  transition: color .3s;
}
.rail-marks li::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--night); border: 1.5px solid var(--steel);
  transition: background .3s, border-color .3s, transform .3s;
}
.rail-marks li b { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.rail-marks li span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
.rail-marks li.on { color: var(--bone); }
.rail-marks li.on::after { background: var(--yellow); border-color: var(--yellow); }
.rail-marks li.now span { opacity: 1; transform: none; }
.rail-marks li.now::after { transform: scale(1.5); box-shadow: 0 0 0 5px rgba(255, 204, 0, .18); }
.rail { transition: opacity .4s; }
.rail.dim { opacity: .25; }

.progress { display: none; }

/* ---------- HERO ----------
   Stack, back to front: ambient blur, photo (zoom-burst pack), speed lines,
   the name, Daniel's cutout, then the readouts. */
.hero {
  position: relative; min-height: 100svh;
  overflow: hidden; isolation: isolate;
  background: var(--night);
}
.hero-ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* the same frame, scaled up around Daniel and blurred: the pack continues past the photo's edges */
.hero-ambient img {
  position: absolute; left: var(--ph-left); bottom: 0; width: var(--ph-w); aspect-ratio: 864 / 1080;
  max-width: none;
  filter: blur(22px) saturate(1.3) brightness(.78);
  transform: scale(2.3); transform-origin: 51% 45%;
}
.hero-ambient::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,10,18,.82) 0%, rgba(7,10,18,.35) 30%, rgba(7,10,18,0) 55%, rgba(7,10,18,.25) 85%, rgba(7,10,18,.6) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(7,10,18,0) 30%);
}
.hero-photo, .hero-cut {
  position: absolute; bottom: 0; left: var(--ph-left); width: var(--ph-w);
  aspect-ratio: 864 / 1080;
}
.hero-photo { z-index: 1; }
.hero-photo img, .hero-cut img { width: 100%; height: 100%; }
.hero-photo {
  -webkit-mask-image: radial-gradient(closest-side at 51% 46%, #000 48%, transparent 100%);
          mask-image: radial-gradient(closest-side at 51% 46%, #000 48%, transparent 100%);
}
.hero-cut {
  z-index: 4; pointer-events: none;
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 16%);
          mask-image: linear-gradient(0deg, transparent 0%, #000 16%);
}
.hero-photo img { animation: heroZoom 2.6s cubic-bezier(.2, .7, .1, 1) both; transform-origin: 51% 26%; }
.hero-cut img { animation: heroZoom 2.6s cubic-bezier(.2, .7, .1, 1) both; transform-origin: 51% 26%; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: none; } }

/* speed lines radiating from his head, plus a warm flare */
.hero-speed {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at calc(var(--ph-left) + var(--ph-w) * .51) 22%, rgba(255, 204, 0, .16), rgba(255, 204, 0, 0) 70%),
    repeating-conic-gradient(from 0deg at calc(var(--ph-left) + var(--ph-w) * .51) 26%, rgba(255,255,255,0) 0deg 3.1deg, rgba(255,255,255,.09) 3.1deg 3.5deg, rgba(255,255,255,0) 3.5deg 7.3deg);
  -webkit-mask-image: radial-gradient(circle at calc(var(--ph-left) + var(--ph-w) * .51) 26%, transparent 14vw, #000 48vw);
          mask-image: radial-gradient(circle at calc(var(--ph-left) + var(--ph-w) * .51) 26%, transparent 14vw, #000 48vw);
  mix-blend-mode: screen;
  animation: speedIn 2s ease .4s both, flicker 3.2s steps(2) 2.4s infinite;
}
@keyframes speedIn { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }
@keyframes flicker { 50% { opacity: .78; } }

.hero-inner {
  /* its own layer between the speed lines (2) and Daniel (4) */
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(40px, 7vh, 80px);
}
.stars { position: relative; z-index: 5; display: flex; gap: 7px; margin-bottom: 18px; }
.stars i {
  width: 9px; height: 9px; background: var(--yellow);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: starIn .5s ease both;
}
.stars i:nth-child(1) { animation-delay: 1.05s; } .stars i:nth-child(2) { animation-delay: 1.1s; }
.stars i:nth-child(3) { animation-delay: 1.15s; } .stars i:nth-child(4) { animation-delay: 1.2s; }
.stars i:nth-child(5) { animation-delay: 1.25s; } .stars i:nth-child(6) { animation-delay: 1.3s; }
.stars i:nth-child(7) { animation-delay: 1.35s; }
@keyframes starIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.name {
  position: relative; z-index: 3;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: var(--fs);
  line-height: .8; letter-spacing: -.01em;
  text-shadow: 0 10px 60px rgba(7, 10, 18, .45);
}
.name .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.name .line > span {
  display: block;
  animation: rise 1.1s cubic-bezier(.16, 1, .3, 1) both;
}
.name .line:nth-child(1) > span { animation-delay: .15s; }
.name .line:nth-child(2) > span { animation-delay: .27s; padding-left: .5em; color: transparent; -webkit-text-stroke: 2px var(--bone); text-shadow: none; }
.name .line:nth-child(3) > span { animation-delay: .39s; color: var(--yellow); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.hero-sub {
  position: relative; z-index: 5;
  margin-top: 22px; font-size: 18px; color: rgba(236, 232, 223, .82);
  animation: fadeUp .9s ease .9s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.credit {
  position: absolute; z-index: 5; right: calc(var(--gutter) + 150px); bottom: 26px;
  font-size: 11.5px; color: rgba(236, 232, 223, .5); letter-spacing: .02em;
}

/* HUD: a bike computer floating in the empty right side */
.hud {
  position: absolute; z-index: 5; top: clamp(96px, 20vh, 200px); right: calc(var(--gutter) + 150px);
  display: grid; grid-template-columns: repeat(2, auto);
  border: 1px solid var(--line);
  background: rgba(7, 10, 18, .4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 4px;
  animation: fadeUp .9s ease 1.1s both;
}
.hud-cell { padding: 14px 22px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 140px; }
.hud-cell:nth-child(2n) { border-right: 0; }
.hud-cell:nth-child(n+3) { border-bottom: 0; }
.hud-k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--steel); }
.hud-v { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.hud-v b {
  font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hud-v small { font-size: 12px; color: var(--steel); }
.heart { width: 13px; height: 13px; fill: var(--red); animation: beat .37s ease-in-out infinite alternate; }
@keyframes beat { from { transform: scale(.85); } to { transform: scale(1.12); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; color: var(--steel); text-decoration: none;
}

/* Shared headings */
.km-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em;
  color: var(--yellow);
}
.km-tag::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(4rem, 11vw, 10rem); line-height: .82; letter-spacing: -.005em;
}

/* MANIFESTO */
.manifesto { padding: clamp(110px, 18vh, 200px) 0 clamp(90px, 14vh, 160px); }
.manifesto .wrap { padding-right: calc(var(--gutter) + 120px); }
.statement {
  margin-top: 28px; max-width: 22ch;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: .98; letter-spacing: -.005em;
}
.statement .w { opacity: 1; }
html.js .statement .w { opacity: .14; }
.stats {
  margin-top: clamp(64px, 10vh, 110px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stats div { padding: 22px 0 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-size: 13px; color: var(--steel); }
.stats dd {
  font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .9;
  font-variant-numeric: tabular-nums;
}

/* ---------- MIRADA ----------
   plate (studio-dark portrait) -> sliding words -> Daniel cutout */
.mirada { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); }
.mirada-stage { position: relative; height: 100%; isolation: isolate; }
.m-plate, .m-cut {
  position: absolute; left: 50%; bottom: 0;
  height: min(100%, 125vw); width: auto; max-width: none; aspect-ratio: 864 / 1080;
  translate: -50% 0;
}
.m-plate {
  z-index: 0;
  -webkit-mask-image: radial-gradient(closest-side at 46% 40%, #000 35%, transparent 100%);
          mask-image: radial-gradient(closest-side at 46% 40%, #000 35%, transparent 100%);
}
/* studio fall-off: the far sleeve and the handlebars melt into the dark */
.m-cut {
  z-index: 2;
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%), linear-gradient(90deg, #000 0%, #000 72%, transparent 90%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(0deg, transparent 0%, #000 30%), linear-gradient(90deg, #000 0%, #000 72%, transparent 90%);
          mask-composite: intersect;
}
.m-words {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; gap: 1vh;
  padding-bottom: 18vh;
}
.m-row {
  display: block; white-space: nowrap;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(5rem, 15vw, 16rem); line-height: .82;
  will-change: transform;
}
.m-row.r1 { color: var(--yellow); }
.m-row.r2 { color: transparent; -webkit-text-stroke: 2px rgba(236, 232, 223, .7); transform: translateX(-30%); }
.m-cap {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(40px, 8vh, 90px);
  max-width: 34ch;
}
.m-cap p:not(.km-tag) {
  margin-top: 12px; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: .95;
}

/* VERSUS */
.versus { position: relative; }
.vs-stage { position: relative; }
.vs-panel { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.vs-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.vs-road img { object-position: 70% 18%; filter: brightness(.82) contrast(1.04); }
.vs-mtb img { filter: saturate(.7) brightness(.62) contrast(1.08); }
.vs-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,18,.35) 0%, rgba(7,10,18,0) 30%, rgba(7,10,18,.88) 100%),
              linear-gradient(90deg, rgba(7,10,18,.55) 0%, rgba(7,10,18,0) 55%);
}
.vs-copy {
  position: relative; z-index: 2;
  padding: 0 var(--gutter) clamp(48px, 9vh, 96px);
  padding-right: calc(var(--gutter) + 140px);
  display: grid; grid-template-columns: auto 1fr; column-gap: 56px; align-items: end; width: 100%;
}
.vs-copy .km-tag { grid-column: 1 / -1; margin-bottom: 10px; }
.vs-copy h2 { font-size: clamp(6rem, 20vw, 19rem); line-height: .78; }
.vs-copy p:not(.km-tag) { max-width: 34ch; font-size: 19px; color: rgba(236, 232, 223, .88); }
.vs-facts { list-style: none; grid-column: 2; display: flex; gap: 36px; margin-top: 22px; }
.vs-facts li { display: flex; flex-direction: column; font-size: 15px; }
.vs-facts b { font-weight: 500; font-size: 12px; color: var(--steel); }
.vs-copy > p:not(.km-tag) { grid-column: 2; grid-row: 2; align-self: end; margin-bottom: .6em; }
.vs-copy h2 { grid-column: 1; grid-row: 2 / 4; }
.vs-mtb h2 { color: var(--bone); }
.vs-credit {
  position: absolute; z-index: 2; right: calc(var(--gutter) + 150px); top: clamp(84px, 12vh, 120px);
  font-size: 11.5px; color: rgba(236, 232, 223, .55);
}

/* JS mode: stacked wipe */
html.js.wide .vs-stage { height: 100vh; overflow: hidden; }
html.js.wide .vs-panel { position: absolute; inset: 0; min-height: 0; }
html.js.wide .vs-mtb { clip-path: inset(100% 0 0 0); }

/* PALMARES */
.palmares { padding: clamp(110px, 16vh, 180px) 0 0; background: var(--night); position: relative; overflow: hidden; }
.pal-head h2 { margin-top: 14px; }
.pal-intro { margin-top: 18px; color: var(--steel); max-width: 40ch; }
.pal-viewport { overflow-x: auto; padding: clamp(48px, 7vh, 80px) 0 clamp(110px, 16vh, 180px); scrollbar-width: none; }
.pal-viewport::-webkit-scrollbar { display: none; }
html.js.wide .pal-viewport { overflow: visible; }
.track {
  list-style: none; display: flex; gap: 22px;
  padding: 0 var(--gutter); width: max-content;
}
.stage {
  position: relative; width: clamp(300px, 30vw, 440px); aspect-ratio: 4 / 5;
  background: var(--night-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--steel); opacity: .5;
}
.stage.gold::before { background: var(--gold); opacity: 1; }
.stage.silver::before { background: var(--silver); opacity: 1; }
.stage.bronze::before { background: var(--bronze); opacity: 1; }
.pos {
  font-family: var(--display); font-weight: 900; font-size: clamp(9rem, 15vw, 15rem); line-height: .78;
  color: var(--night-3); -webkit-text-stroke: 1.5px rgba(236, 232, 223, .35);
  margin-left: -6px;
}
.pos sup { font-size: .32em; vertical-align: top; position: relative; top: .25em; margin-left: 4px; }
.stage.gold .pos { color: var(--gold); -webkit-text-stroke: 0; }
.stage.silver .pos { color: var(--silver); -webkit-text-stroke: 0; }
.stage.bronze .pos { color: var(--bronze); -webkit-text-stroke: 0; }
.stage-body h3 {
  font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; text-transform: uppercase;
  margin-top: 12px;
}
.stage-body p { margin-top: 8px; color: var(--steel); font-size: 15px; }
.stage-body time { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.disc {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.disc.road { background: rgba(58, 102, 255, .18); color: #93abff; }
.disc.mtb { background: rgba(224, 35, 58, .16); color: #ff8f9c; }

/* GALLERY */
.gallery {
  display: grid; gap: 14px; padding: 0 var(--gutter) clamp(90px, 12vh, 140px);
  padding-right: calc(var(--gutter) + 130px);
  grid-template-columns: 1.15fr .9fr 1fr 1fr; grid-template-rows: 330px 330px auto;
  max-width: 1600px; margin: 0 auto;
}
.g { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--night-2); }
.g img { width: 100%; height: 115%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: filter .5s; }
.g:hover img, .g:focus-visible img { filter: none; }
.g span {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.g::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--yellow); transition: box-shadow .3s; }
.g:hover span, .g:focus-visible span { opacity: 1; transform: none; }
.g:hover::after, .g:focus-visible::after { box-shadow: inset 0 0 0 3px var(--yellow); }
.g1 { grid-column: 1; grid-row: 1 / 3; }
.g2 { grid-column: 2; grid-row: 1 / 3; }
.g3 { grid-column: 3; grid-row: 1; }
.g4 { grid-column: 4; grid-row: 1; }
.g5 { grid-column: 3; grid-row: 2; }
.g6 { grid-column: 4; grid-row: 2; }
.gallery-cap { grid-column: 1 / -1; font-size: 13px; color: var(--steel); }

/* APOYO */
.apoyo {
  position: relative; padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 12vh, 140px);
  background: linear-gradient(180deg, var(--night) 0%, #0a1230 100%);
  overflow: hidden;
}
.finish {
  position: absolute; left: 0; right: 0; top: 0; height: 28px;
  background:
    repeating-conic-gradient(var(--bone) 0 25%, var(--night) 0 50%) 0 0 / 28px 28px;
  opacity: .9;
}
.apoyo .big { margin-top: 14px; font-size: clamp(5rem, 14vw, 13rem); }
.apoyo-grid { margin-top: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; max-width: 1100px; }
.apoyo-text { font-size: 20px; color: rgba(236, 232, 223, .82); max-width: 40ch; }
.contact { border-left: 2px solid var(--yellow); padding-left: 26px; }
.contact p { color: var(--steel); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 20px;
  background: var(--yellow); color: var(--night); text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 16px 26px; border-radius: 999px;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 204, 0, .5); }
.sponsors { list-style: none; margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sponsors li {
  background: #09102a; height: 110px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; color: rgba(236, 232, 223, .25);
}

.foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px var(--gutter) 70px; background: #0a1230; color: var(--steel); font-size: 14px;
  border-top: 1px solid var(--line);
}
.flag { display: inline-flex; flex-direction: column; width: 26px; height: 16px; border-radius: 2px; overflow: hidden; }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: var(--yellow); }
.flag i:nth-child(2) { background: #1f3ccf; }
.flag i:nth-child(3) { background: var(--red); }

/* Responsive */
@media (max-width: 1100px) {
  .hud-cell { min-width: 0; padding: 10px 16px 8px; }
  .hud-v b { font-size: 28px; }
}
@media (max-width: 900px) {
  :root { --ph-w: 100vw; --ph-left: 0px; --fs: clamp(4.4rem, 23vw, 9rem); }
  .top nav { display: none; }
  .rail { display: none; }
  .progress { display: block; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 85; background: rgba(236,232,223,.08); }
  .progress i { display: block; height: 100%; width: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
  html:not(.js) .progress i { transform: none; }
  .hero-photo, .hero-cut { top: 0; bottom: auto; }
  .hero-photo {
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%);
            mask-image: linear-gradient(0deg, transparent 0%, #000 30%);
  }
  .hero-cut { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%); mask-image: linear-gradient(0deg, transparent 0%, #000 30%); }
  .hud { order: 2; top: auto; bottom: 0; left: 0; right: 0; position: relative; margin: 18px var(--gutter) 0; grid-template-columns: repeat(2, 1fr); }
  .hero { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 32px; }
  .hero-inner { position: relative; order: 1; padding-bottom: 0; }
  .credit { right: var(--gutter); bottom: auto; top: 76px; }
  .manifesto .wrap { padding-right: var(--gutter); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .mirada { height: auto; min-height: 0; padding-top: 30px; }
  .mirada-stage { aspect-ratio: 864 / 1080; height: auto; }
  .m-plate, .m-cut { height: 100%; }
  .m-row { font-size: 22vw; }
  .vs-copy { grid-template-columns: 1fr; padding-right: var(--gutter); }
  .vs-copy h2, .vs-copy > p:not(.km-tag), .vs-facts { grid-column: 1; grid-row: auto; }
  .vs-copy h2 { font-size: clamp(6rem, 30vw, 11rem); margin-bottom: 14px; }
  .vs-credit { right: var(--gutter); }
  .vs-road img { object-position: 78% 50%; }
  .stage { width: 78vw; }
  .gallery { padding-right: var(--gutter); grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px 220px 220px auto; }
  .g1 { grid-column: 1 / -1; grid-row: 1; }
  .g2 { grid-column: 1; grid-row: 2 / 4; }
  .g3 { grid-column: 2; grid-row: 2; }
  .g4 { grid-column: 2; grid-row: 3; }
  .g5 { grid-column: 1; grid-row: 4; }
  .g6 { grid-column: 2; grid-row: 4; }
  .g span { opacity: 1; transform: none; font-size: 18px; }
  .apoyo-grid { grid-template-columns: 1fr; gap: 32px; }
  .sponsors { grid-template-columns: repeat(2, 1fr); }
}

html.shot *, html.shot *::before, html.shot *::after { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grain { display: none; }
  html.js .statement .w { opacity: 1; }
}

/* Pinned palmarés must fit one viewport */
html.js.wide .palmares { height: 100vh; padding-top: clamp(84px, 11vh, 120px); display: flex; flex-direction: column; }
html.js.wide .palmares h2 { font-size: clamp(4rem, 8vw, 8.5rem); }
html.js.wide .pal-viewport { flex: 1; display: flex; align-items: center; padding: 3vh 0 4vh; }
html.js.wide .stage { width: min(30vw, 40vh, 440px); }
html.js.wide .pos { font-size: min(15vw, 22vh, 15rem); }

/* LA TEMPORADA: one chapter per real race */
.etapas { position: relative; padding: clamp(40px, 8vh, 90px) 0 clamp(90px, 12vh, 140px); }
.et-head { margin-bottom: clamp(40px, 7vh, 80px); }
.et-head h2 { margin-top: 14px; }
.et-intro { margin-top: 18px; color: var(--steel); max-width: 44ch; font-size: 19px; }
.etapa { position: relative; }
.et-grid {
  display: grid; grid-template-columns: minmax(260px, .85fr) 2fr; gap: clamp(28px, 4vw, 64px);
  padding-top: 44px; padding-bottom: 72px; border-top: 1px solid var(--line);
}
.et-info { position: sticky; top: 96px; align-self: start; }
.et-n {
  display: block; font-family: var(--display); font-weight: 900; line-height: .8;
  font-size: clamp(6rem, 10vw, 9.5rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(236, 232, 223, .32);
  margin-left: -4px;
}
.etapa:has(.et-res.is-gold) .et-n { color: var(--gold); -webkit-text-stroke: 0; }
.et-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--steel); }
.et-meta time { font-variant-numeric: tabular-nums; }
.et-res { font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: .04em; padding: 3px 12px; border-radius: 999px; text-transform: uppercase; }
.et-res.is-gold { background: var(--gold); color: var(--night); }
.et-res.is-podio { background: var(--bone); color: var(--night); }
.etapa h3 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 4.2vw, 4.1rem); line-height: .88; letter-spacing: .005em; margin-top: 14px;
}
.et-place { margin-top: 10px; font-weight: 600; color: var(--yellow); }
.et-text { margin-top: 18px; color: rgba(236, 232, 223, .8); max-width: 36ch; }
.et-credit { margin-top: 18px; font-size: 13px; color: var(--steel); }

.jrow { display: flex; gap: 12px; }
.jrow + .jrow { margin-top: 12px; }
.jph {
  flex: var(--ar) 1 0; aspect-ratio: var(--ar); min-width: 0;
  position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--night-2);
}
.jph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.04); transition: filter .5s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.jph span {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1; text-transform: uppercase; letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.jph::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--yellow); transition: box-shadow .3s; }
.jph:hover img, .jph:focus-visible img { filter: none; transform: scale(1.04); }
.jph:hover span, .jph:focus-visible span { opacity: 1; transform: none; }
.jph:hover::after, .jph:focus-visible::after { box-shadow: inset 0 0 0 3px var(--yellow); }

/* The mountain race: a full-width dirt-dark band with a red rule */
.etapa.mtb { background: linear-gradient(180deg, #120d0c 0%, #17110e 100%); }
.etapa.mtb::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); }
.etapa.mtb .et-grid { border-top: 0; padding-top: 64px; padding-bottom: 80px; }
.etapa.mtb .et-n { -webkit-text-stroke-color: rgba(255, 143, 156, .55); }
.etapa.mtb .et-place { color: #ff8f9c; }
.etapa.mtb .jph::after { box-shadow: inset 0 0 0 0 var(--red); }
.etapa.mtb .jph:hover::after, .etapa.mtb .jph:focus-visible::after { box-shadow: inset 0 0 0 3px var(--red); }

@media (min-width: 901px) {
  .etapas .wrap { padding-right: calc(var(--gutter) + 110px); }
}
@media (max-width: 900px) {
  .et-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; padding-bottom: 56px; }
  .et-info { position: relative; top: 0; }
  .et-n { font-size: 5.5rem; }
  .jph span { opacity: 1; transform: none; font-size: 17px; }
}
@media (max-width: 640px) {
  .et-photos {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none;
  }
  .et-photos::-webkit-scrollbar { display: none; }
  .jrow { display: contents; }
  .jph { flex: 0 0 auto; height: min(80vw, 440px); width: auto; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
}
.etapa h3.long { font-size: clamp(2.2rem, 3.2vw, 3.1rem); }
