/* Velocity — hero
   Colours sampled from car.mp4 frame @6s, lifted slightly to undo the
   clip's low-bitrate dimming. */

:root {
  --ink:    #050507;   /* the clip's own background reads #010101 */
  --white:  #F2F2F3;
  --amber:  #E08128;   /* sampled #CE7521 on the headline strokes */
  --muted:  rgba(242, 242, 243, .66);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

/* ---------- stage ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.4rem, 3.2vh, 2.4rem) var(--gutter) clamp(1.4rem, 3vh, 2.2rem);
}

/* ---------- footage ---------- */

/* Two cleaned plates: car-hero.mp4 (16:9) and car-portrait-hero.mp4 (9:16).
   Both had their burnt-in text and watermark cleared in ffmpeg, so the whole
   car can sit full-bleed with nothing to hide. index.html picks between them. */
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- brand ---------- */

.brand {
  position: relative;
  z-index: 2;
  justify-self: start;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- copy ---------- */

.hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  max-width: 46rem;
  /* the block sits high in the source design (centre ≈ 37% of frame height),
     which keeps the body copy off the car — the bottom pad lifts it there */
  padding-block: 0 clamp(2rem, 22vh, 13rem);
}

.eyebrow {
  margin: 0 0 clamp(.9rem, 2vh, 1.4rem);
  font-size: clamp(.7rem, .95vw, .85rem);
  font-weight: 500;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: .82;
}

.title {
  margin: 0;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  line-height: 1.14;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.title__line { display: block; white-space: nowrap; }
.title__line--accent { color: var(--amber); }

.lede {
  max-width: 38ch;
  margin: clamp(1.1rem, 2.6vh, 1.75rem) 0 0;
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-height: 44px;      /* tap target floor, incl. the short-viewport size */
  margin-top: clamp(1.5rem, 3.4vh, 2.4rem);
  padding: 1rem 1.85rem;
  border: 1px solid rgba(224, 129, 40, .5);
  border-radius: 8px;
  background: rgba(5, 5, 7, .55);
  font-size: clamp(.72rem, .92vw, .82rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease);
}

.btn__arrow { width: 24px; height: 12px; flex: none; }

.btn:hover {
  border-color: var(--amber);
  background: var(--amber);
  color: #100A04;
}

/* ---------- scroll ---------- */

.scroll {
  position: relative;
  z-index: 2;
  justify-self: center;
  font-size: clamp(.6rem, .8vw, .7rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: rgba(242, 242, 243, .5);
  transition: color .3s var(--ease);
}

.scroll:hover { color: var(--white); }

/* ---------- narrow: stack the car above the copy ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-rows: auto auto 1fr auto;
    padding-inline: 0;
    row-gap: clamp(1.5rem, 4vh, 2.5rem);
  }

  .brand,
  .hero__copy,
  .scroll { padding-inline: var(--gutter); }

  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 34svh;
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  }

  /* frame the car, not the empty sky, in the portrait band */
  .hero__video { object-position: 58% center; }

  .brand { order: -1; }        /* logo above the car, not under it */

  .hero__copy { align-self: start; padding-block: 0; }   /* stacked: no lift needed */

  /* let the headline wrap here — there is no room to hold it on one line */
  .title {
    white-space: normal;
    font-size: clamp(1.75rem, 7.4vw, 2.6rem);
  }
  .title__line { white-space: normal; }

  .lede { max-width: 42ch; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- small phones ---------- */

@media (max-width: 360px) {
  .hero { row-gap: clamp(1rem, 2.6vh, 1.6rem); }
  .title { font-size: clamp(1.6rem, 7.6vw, 2rem); }
  .lede { font-size: .88rem; }
}

/* ---------- phones held upright ----------
   car-portrait-hero.mp4 is a native 9:16 plate, so the whole car fits with no
   crop — the clip goes full-bleed and the copy sits in its dark upper third
   (luma 34/255, steady within 1 across the whole loop), so white type clears
   contrast there with no scrim over the footage. */

@media (max-width: 560px) and (orientation: portrait) {
  .hero {
    grid-template-rows: auto 1fr auto;
    padding-inline: var(--gutter);
    row-gap: 0;
  }

  .brand { order: 0; }
  .brand, .hero__copy, .scroll { padding-inline: 0; }

  .hero__media {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .hero__video { object-position: center; }

  .hero__copy {
    align-self: start;
    padding-block: clamp(1.25rem, 5vh, 2.75rem) 0;
    /* the sky is dark but not flat — this holds the type off the embers */
    text-shadow: 0 1px 16px rgba(0, 0, 0, .6);
  }

  .lede { max-width: 32ch; }

  /* full-width reads too heavy over the footage — size it to its label,
     keeping the 44px min-height from .btn as the tap-target floor */
  .btn {
    width: auto;
    margin-top: clamp(1.25rem, 3vh, 1.9rem);
    padding: .8rem 1.4rem;
    gap: .7rem;
  }
}

/* ---------- short viewports (phone held sideways) ----------
   There is width here but almost no height, so stacking a video band on top
   of the copy does not fit — go back to the overlay layout instead. */

@media (max-height: 560px) and (min-width: 561px) {
  .hero {
    grid-template-rows: auto 1fr auto;
    padding-inline: var(--gutter);
    row-gap: 0;
  }

  .brand { order: 0; }
  .brand, .hero__copy, .scroll { padding-inline: 0; }

  .hero__media {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .hero__video { object-position: center; }

  .hero__copy {
    align-self: center;
    padding-block: 0 clamp(1rem, 8vh, 3rem);
  }

  .title { font-size: clamp(1.5rem, 4.6vw, 2.4rem); }
  .lede  { max-width: 34ch; font-size: .85rem; }
  .btn   { width: auto; padding: .8rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
