@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-standard-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --sky-1: #4481d1;
  --sky-2: #5a95dd;
  --sky-3: #6da1e0;
  --earth: #1c130c;
  --earth-2: #2b1d12;
  --sand: #efe5d3;
  --sand-2: #e2d4bc;
  --ink: #120c07;
  --orange: #f26a1b;
  --blue: #1c3fd6;
  --plate: #fbf6ea;

  --gutter: clamp(1rem, 3.5vw, 3.5rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--earth);
  color: var(--sand);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1.0625rem, .98rem + .3vw, 1.25rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.meta :focus-visible { outline-color: var(--ink); }
html:has(.lb[open]) { overflow: hidden; }
p { text-wrap: pretty; }

.skip {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 50;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--sand);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Sistema tipográfico: una sola familia, de muy estrecha a muy ancha */
.hero__title, .sector__title, .ficha__statement, .moto__title, .meta__title {
  font-style: italic;
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
}
.eyebrow, .hero__kicker, .topbar__nav, .btn, .spec dt, .lap__label small, .foot, .plate {
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.eyebrow {
  font-size: .8125rem;
  color: var(--orange);
  margin-block-end: 1rem;
}

.btn {
  display: inline-block;
  padding: .95em 1.5em;
  background: var(--ink);
  color: var(--sand);
  border: 0;
  font-family: inherit;
  font-size: .8125rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transform: skewX(-10deg);
  transition: background-color .2s, color .2s, transform .25s var(--ease-out);
}
.btn:hover { background: var(--orange); color: var(--ink); transform: skewX(-10deg) translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- Barra superior ---------- */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(.75rem, 1.6vw, 1.5rem) var(--gutter);
}
.topbar__logo { display: block; flex: none; transition: transform .3s var(--ease-out); transform: rotate(-5deg); }
.topbar__logo:hover { transform: rotate(3deg) scale(1.06); }
.topbar__logo img { width: clamp(84px, 9vw, 136px); }
.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: clamp(.25rem, 1.4vw, 1.25rem);
  color: var(--ink);
  font-size: .75rem;
}
.topbar__nav a {
  padding: .75em .4em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .5em) / 0 2px no-repeat;
  transition: background-size .25s var(--ease-out);
}
.topbar__nav a:hover { background-size: 100% 2px; }

/* ---------- Hero: el cielo ---------- */
.hero {
  position: relative;
  isolation: isolate;
  --h: max(100svh, 620px);
  min-height: var(--h);
  overflow: clip;
  background: var(--grain), linear-gradient(var(--sky-1), var(--sky-2) 55%, var(--sky-3));
  color: var(--ink);
  --scroll: 0;
  --px: 0;
  --py: 0;
}
.hero__number {
  position: absolute;
  z-index: 1;
  right: -1vw;
  bottom: calc(var(--h) * .12);
  font-style: italic;
  font-weight: 900;
  font-stretch: 125%;
  font-size: min(53vw, calc(var(--h) * 1.04));
  line-height: .74;
  letter-spacing: -.045em;
  color: var(--plate);
  user-select: none;
  transform: translate3d(calc(var(--px) * -10px), calc(var(--scroll) * 9svh + var(--py) * -6px), 0);
}
.hero__ground {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: clamp(190px, calc(var(--h) * .32), 340px);
  transform: translate3d(0, calc(var(--scroll) * -3svh), 0);
}
.hero__ground::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 42%, var(--earth) 100%),
    url("/img/dirt.webp") center bottom / cover;
  -webkit-mask: url("/img/hill.svg") right bottom / max(100%, 860px) 100% no-repeat;
  mask: url("/img/hill.svg") right bottom / max(100%, 860px) 100% no-repeat;
}
.hero__roost {
  position: absolute;
  right: 0;
  bottom: 0;
  width: max(100%, 860px);
  max-width: none;
  height: 100%;
}
.hero__rider {
  position: absolute;
  z-index: 3;
  right: clamp(5vw, 11vw, 15vw);
  top: calc(var(--h) * .04);
  height: min(calc(var(--h) * .76), 54vw);
  aspect-ratio: 585 / 761;
  transform: translate3d(calc(var(--px) * 14px), calc(var(--scroll) * -16svh + var(--py) * 8px), 0);
}
.hero__rider img { width: 100%; height: 100%; }
.hero__copy {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  bottom: clamp(2rem, calc(var(--h) * .13), 8.5rem);
}
.hero__kicker { font-size: .8125rem; margin-block-end: .9rem; }
.hero__title { font-size: clamp(4rem, min(12.6vw, calc(var(--h) * .24)), 13.5rem); }
.hero__title span { display: block; }
.hero__sub { margin-block: 1rem 1.4rem; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__copy .btn--ghost:hover { box-shadow: none; }

.js .hero__number { animation: slam .9s var(--ease-out) both; }
.js .hero__rider img { animation: launch 1.2s var(--ease-out) both, hang 7s ease-in-out 1.2s infinite alternate; }
.js .hero__copy > * { animation: rise .8s var(--ease-out) both; }
.js .hero__title { animation-delay: .08s; }
.js .hero__sub { animation-delay: .16s; }
.js .hero__actions { animation-delay: .24s; }
.js .hero__roost { animation: roost 1.4s var(--ease-out) both; }

@keyframes slam { from { opacity: 0; scale: 1.1; } }
@keyframes launch { from { opacity: 0; translate: 16% 24%; rotate: 7deg; scale: .9; } }
@keyframes hang { to { translate: -.8% -1.6%; rotate: -1.1deg; } }
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes roost { from { opacity: 0; translate: -5% 9%; } }

/* ---------- Ficha ---------- */
.ficha {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(4rem, 9vw, 9rem) var(--gutter) clamp(3rem, 6vw, 6rem);
  background: var(--grain);
}
.ficha__statement { font-size: clamp(3.25rem, 8.2vw, 9rem); line-height: .9; text-wrap: balance; }
.ficha__note { margin-block-start: 1.75rem; max-width: 34ch; color: var(--sand-2); }
.spec { border-top: 2px solid var(--sand); align-self: end; }
.spec > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
  border-bottom: 1px solid rgb(239 229 211 / .25);
}
.spec dt { font-size: .75rem; color: var(--sand-2); }
.spec dd { font-weight: 800; font-style: italic; font-stretch: 100%; font-size: 1.25rem; text-align: right; }
.ficha__sticker { width: min(62vw, 300px); rotate: 7deg; justify-self: end; }

@media (min-width: 900px) {
  .ficha { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .ficha__lead { grid-column: 1 / span 8; }
  .spec { grid-column: 9 / -1; grid-row: 1; align-self: end; }
  .ficha__sticker {
    position: absolute;
    right: var(--gutter);
    top: clamp(2.5rem, 5vw, 5rem);
    width: clamp(180px, 21vw, 340px);
  }
}

/* ---------- Sectores ---------- */
.sector { position: relative; overflow-x: clip; padding: clamp(2rem, 6vw, 6rem) var(--gutter); background: var(--grain); }
.sector__title {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  gap: .08em;
  font-size: clamp(5rem, 25vw, 27rem);
  color: var(--sand);
  white-space: nowrap;
  will-change: transform;
}
.plate {
  flex: none;
  margin-block-start: .35rem;
  padding: .3em .55em;
  background: var(--plate);
  color: var(--ink);
  font-size: clamp(.8125rem, 1.2vw, 1.0625rem);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  transform: skewX(-10deg);
}
.sector__text { max-width: 30ch; font-size: clamp(1.25rem, 1.05rem + .85vw, 1.875rem); line-height: 1.22; font-weight: 500; }

.shot { position: relative; z-index: 1; display: block; align-self: start; overflow: clip; cursor: zoom-in; }
.shot img { width: 100%; transition: transform .7s var(--ease-out); }
.shot:hover img { transform: scale(1.025); }

.s1, .s2, .s3 { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(1.25rem, 3vw, 2.5rem); }
.s1__a, .s2__a, .s3__wide { margin-block-start: -7vw; }

/* En móvil la asimetría viene de anchos y alineaciones */
.s1__b { width: 72%; justify-self: end; }
.s2__b { width: 62%; }
.s2__text { justify-self: end; }
.s3__wide { margin-inline: calc(var(--gutter) * -1); }
.s3__b { width: 82%; justify-self: end; }
.s3__c { width: 82%; }

@media (min-width: 900px) {
  .s1, .s2, .s3 { grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 1.6vw, 1.5rem); }
  .sector__title { grid-column: 1 / -1; }

  .s1__a { grid-column: 1 / span 6; grid-row: 2 / span 2; }
  .s1__text { grid-column: 8 / -1; grid-row: 2; align-self: start; padding-block-start: 1rem; }
  .s1__b { grid-column: 8 / span 4; grid-row: 3; width: auto; justify-self: stretch; }

  .s2 .sector__title { grid-column: 6 / -1; grid-row: 1; justify-content: flex-end; }
  .s2__text { grid-column: 1 / span 4; grid-row: 1; justify-self: start; align-self: end; padding-block-end: 9vw; }
  .s2__a { grid-column: 1 / span 8; grid-row: 2; }
  .s2__b { grid-column: 9 / -1; grid-row: 2 / span 2; width: auto; margin-block-start: 5vw; }
  .s2__c { grid-column: 3 / span 6; grid-row: 3; }

  .s3 .sector__title { grid-column: 1 / span 9; font-size: clamp(6rem, 22vw, 24rem); }
  .s3__text { grid-column: 10 / -1; grid-row: 1; align-self: end; padding-block-end: 9vw; }
  .s3__wide { grid-column: 1 / -1; grid-row: 2; }
  .s3__wide img { max-height: 94svh; object-fit: cover; object-position: 50% 62%; }
  .s3__a { grid-column: 1 / span 4; grid-row: 3; width: auto; }
  .s3__b { grid-column: 5 / span 4; grid-row: 3; width: auto; margin-block-start: 8vw; justify-self: stretch; }
  .s3__c { grid-column: 9 / -1; grid-row: 3; width: auto; margin-block-start: -7vw; }
}

/* S4: foto a sangre con el título en el cielo */
.s4 { padding: 0; }
.s4__photo img { width: 100%; }
.s4__title {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 4vw, 3.5rem);
  left: var(--gutter);
  font-size: clamp(3.25rem, 15.5vw, 17rem);
  color: var(--ink);
  pointer-events: none;
}
.s4__text { padding: 1.75rem var(--gutter) 5.5rem; }
@media (min-width: 900px) {
  .s4__text {
    position: absolute;
    z-index: 2;
    left: var(--gutter);
    top: 20.5vw;
    max-width: 22ch;
    padding: 0;
    color: var(--ink);
    pointer-events: none;
  }
}

/* ---------- La moto: el paddock ---------- */
.moto {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(3rem, 6vw, 6rem) var(--gutter) clamp(4rem, 8vw, 8rem);
  background: var(--sand);
  color: var(--ink);
}
.moto::before {
  content: "";
  position: absolute;
  inset: auto 0 calc(100% - 1px);
  height: clamp(70px, 11vw, 170px);
  background: var(--sand);
  -webkit-mask: url("/img/hill.svg") right bottom / max(100%, 860px) 100% no-repeat;
  mask: url("/img/hill.svg") right bottom / max(100%, 860px) 100% no-repeat;
  pointer-events: none;
}
.moto .eyebrow { color: var(--blue); }
.moto__title { font-size: clamp(3.25rem, 9vw, 10rem); line-height: 1; text-wrap: balance; }
.moto__intro { margin-block-start: 1.5rem; max-width: 46ch; }

.spots { position: relative; align-self: start; }
.spots img { width: 100%; }
.spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: clamp(1.5rem, 2.5vw, 2.25rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--plate);
  color: var(--ink);
  font-size: clamp(.75rem, 1vw, .9375rem);
  font-weight: 900;
  font-style: italic;
  box-shadow: 0 0 0 2px var(--ink);
  transition: background-color .15s, scale .25s var(--ease-out);
}
.spot.is-on { background: var(--orange); scale: 1.4; z-index: 1; }

.spotlist { border-top: 2px solid var(--ink); }
.spotlist li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  padding-block: .8rem;
  border-bottom: 1px solid rgb(18 12 7 / .22);
  transition: background-color .15s;
}
.spotlist li.is-on { background: rgb(242 106 27 / .2); }
.spotlist__n {
  display: grid;
  place-items: center;
  width: 1.65rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--plate);
  font-size: .8125rem;
  font-weight: 900;
  font-style: italic;
}
.spotlist strong { display: block; font-weight: 800; line-height: 1.2; }
.spotlist div > span { display: block; font-size: .9375rem; line-height: 1.3; color: #4c3d2d; }
.spotlist b { font-size: clamp(2.25rem, 3.2vw, 3rem); font-weight: 900; font-style: italic; font-stretch: 75%; line-height: 1; }
.spotlist small { font-size: .42em; font-weight: 700; color: #4c3d2d; }
.moto__foot { margin-block: .9rem 1.5rem; font-size: .875rem; color: #4c3d2d; }

@media (min-width: 1100px) {
  .moto { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .moto__head { grid-column: 1 / -1; }
  .spots { grid-column: 1 / span 7; position: sticky; top: 1.5rem; }
  .moto__side { grid-column: 8 / -1; }
}

/* ---------- Meta ---------- */
.meta { position: relative; background: var(--orange); color: var(--ink); overflow: clip; }
.checker {
  height: clamp(48px, 6vw, 84px);
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--plate) 0 50%) 0 0 / clamp(48px, 6vw, 84px) clamp(48px, 6vw, 84px);
}
.meta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  padding: clamp(3rem, 7vw, 7rem) var(--gutter) clamp(3rem, 6vw, 6rem);
}
.meta__title { font-size: clamp(4.25rem, 20vw, 23rem); line-height: .84; }
.meta__text { margin-block-end: 1.5rem; max-width: 34ch; font-size: clamp(1.25rem, 1.05rem + .85vw, 1.875rem); line-height: 1.22; font-weight: 500; }
.meta__links { display: grid; gap: .25rem; justify-items: start; }
.meta__links a {
  font-size: clamp(1.375rem, 1.1rem + 2vw, 3rem);
  font-weight: 800;
  font-style: italic;
  font-stretch: 85%;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration-thickness: .08em;
  text-underline-offset: .14em;
}
.meta__links a:hover { color: var(--plate); }
.meta__sticker { width: min(62vw, 360px); rotate: -8deg; justify-self: end; }

/* Formulario: campos claros como una placa sobre el naranja */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-content: start; }
html:not(.js) .form { display: none; } /* sin JS queda el correo: mejor que un formulario muerto */
.field { display: grid; gap: .4rem; align-content: start; }
.field--full, .form__foot, .form__status { grid-column: 1 / -1; }
.field label {
  font-size: .75rem;
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .75em .85em;
  border: 2px solid var(--ink);
  border-radius: 0;
  background-color: var(--plate);
  color: var(--ink);
  font: inherit;
  font-size: max(1rem, 16px); /* por debajo de 16 px iOS hace zoom al enfocar */
  line-height: 1.35;
  appearance: none;
}
.field textarea { display: block; min-height: 9.5rem; resize: vertical; }
.field select {
  padding-inline-end: 2.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23120c07' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9em center;
  background-size: .8em;
  cursor: pointer;
}
.field :user-invalid { box-shadow: inset 0 0 0 2px var(--ink); background-color: #ffd9c2; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-block-start: .25rem; }
.form .btn:hover { background: var(--plate); color: var(--ink); }
.form__hint { font-size: .875rem; }
.form__status { padding: .85rem 1rem; background: var(--ink); color: var(--plate); font-size: 1rem; line-height: 1.35; }
.form__status a { color: inherit; font-weight: 700; text-underline-offset: .15em; }
.form__status :focus-visible { outline-color: var(--orange); }

@media (max-width: 480px) {
  .form { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .meta__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 1.6vw, 1.5rem); }
  .meta__title { grid-column: 1 / -1; }
  .meta__info { grid-column: 1 / span 5; }
  .form { grid-column: 7 / -1; grid-row: 2 / span 2; }
  .meta__sticker { grid-column: 1 / span 5; justify-self: start; width: clamp(200px, 23vw, 400px); }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: 1.25rem var(--gutter);
  padding-inline-end: calc(var(--gutter) + 11rem);
  background: var(--ink);
  font-size: .6875rem;
}
.foot a { text-underline-offset: .25em; }

/* ---------- Mapa de la vuelta ---------- */
.lap {
  position: fixed;
  right: clamp(.625rem, 1.5vw, 1.25rem);
  bottom: clamp(.625rem, 1.5vw, 1.25rem);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .45rem .75rem .45rem .45rem;
  background: rgb(18 12 7 / .9);
  color: var(--sand);
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: opacity .3s, translate .4s var(--ease-out);
}
.lap.is-on { opacity: 1; translate: 0; }
.lap svg { display: block; overflow: visible; }
.lap__track, .lap__done { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.lap__track { stroke: rgb(239 229 211 / .24); }
.lap__done { stroke: var(--orange); }
.lap__dot { fill: var(--plate); stroke: var(--ink); stroke-width: 2; }
.lap__label { display: grid; min-width: 4.4rem; line-height: 1.1; }
.lap__label small { font-size: .5625rem; color: var(--sand-2); }
.lap__label b { font-size: 1.125rem; font-weight: 900; font-style: italic; font-stretch: 75%; text-transform: uppercase; }

/* ---------- Visor de fotos ---------- */
.lb {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(12 8 4 / .97);
  color: var(--sand);
}
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb::backdrop { background: rgb(12 8 4 / .97); }
.lb__img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: clamp(.5rem, 2vw, 1.5rem); }
.lb__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .75rem var(--gutter); }
.lb__cap { font-size: .9375rem; line-height: 1.3; max-width: 70ch; }
.lb__nav { display: flex; align-items: center; gap: .375rem; margin-inline-start: auto; }
.lb__count { margin-inline-end: .75rem; font-size: .8125rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.lb button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: var(--sand);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.lb button:hover { background: var(--orange); }

/* ---------- Entradas al hacer scroll ---------- */
.js .reveal { opacity: 0; translate: 0 30px; transition: opacity .7s var(--ease-out), translate .9s var(--ease-out); }
.js .shot.reveal { opacity: 1; translate: 0; }
.js .shot.reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; translate: 0; }
.js .shot.reveal.is-in img { clip-path: inset(0); }

/* ---------- Móvil ---------- */
/* Pantallas bajas: el casco no debe pisar el menú */
@media (max-height: 720px) and (min-aspect-ratio: 1/1) {
  .hero__rider { top: calc(var(--h) * .09); height: min(calc(var(--h) * .7), 54vw); }
}

/* Vertical (móvil y tablet): el piloto vuela arriba y el texto va sobre tierra sólida */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .hero { --h: max(100svh, 680px); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__number { font-size: 58vw; right: -2vw; bottom: auto; top: calc(var(--h) * .15); }
  .hero__rider { right: 2vw; top: calc(var(--h) * .11); height: auto; width: min(68vw, calc(var(--h) * .4)); }
  .hero__ground { display: none; }
  .hero__copy {
    position: relative;
    left: auto;
    bottom: auto;
    padding: .25rem var(--gutter) 1.5rem;
    background: var(--earth);
    color: var(--sand);
  }
  .hero__copy::before, .hero__copy::after {
    content: "";
    position: absolute;
    inset: auto 0 calc(100% - 1px);
    height: calc(var(--h) * .24);
    pointer-events: none;
  }
  .hero__copy::before {
    background:
      linear-gradient(to bottom, transparent 45%, var(--earth) 100%),
      url("/img/dirt.webp") center bottom / cover;
    -webkit-mask: url("/img/hill.svg") right bottom / max(100%, 860px) 100% no-repeat;
    mask: url("/img/hill.svg") right bottom / max(100%, 860px) 100% no-repeat;
  }
  .hero__copy::after { background: url("/img/roost.svg") right bottom / max(100%, 860px) 100% no-repeat; }
  .hero__kicker { margin-block-end: .4rem; color: var(--orange); }
  .hero__title { font-size: 15.2vw; white-space: nowrap; }
  .hero__title span { display: inline; }
  .hero__sub { margin-block: .6rem 1rem; }
  .hero__actions { gap: .6rem; }
  .hero__copy .btn { padding-inline: 1.1em; background: var(--sand); color: var(--ink); font-stretch: 100%; }
  .hero__copy .btn:hover { background: var(--orange); }
  .hero__copy .btn--ghost { background: transparent; color: var(--sand); box-shadow: inset 0 0 0 2px var(--sand); }
}

@media (max-width: 899px) {
  .sector__title { flex-direction: column; gap: .35rem; }
  .plate { margin-block-start: 0; }
}

@media (max-width: 760px) {
  .topbar__nav { font-size: .6875rem; letter-spacing: .02em; font-stretch: 100%; column-gap: 0; }
  .foot { padding-block-end: 4.75rem; padding-inline-end: var(--gutter); }
  .lap svg { width: 54px; height: 32px; }
  .lap__label { min-width: 3.4rem; }
  .lap__label b { font-size: .9375rem; }
  body:has(.form :focus) .lap { opacity: 0; } /* no tapar el campo con el teclado abierto */
}

@media (max-width: 380px) {
  .topbar__logo img { width: 66px; }
  .topbar__nav { font-size: .625rem; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .shot.reveal { opacity: 1; translate: 0; }
  .js .shot.reveal img { clip-path: none; }
}
