/* ============================================================
   Finding Steve — landing page
   Design: Figma "Finding Steve_test-3" (node 2:2), 1440px frame
   Fonts: Impact (display) / Gilroy → Montserrat fallback (body)
   ============================================================ */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --maxw: 1440px;
  --gutter: clamp(20px, 5.7vw, 82px);      /* 82px @1440 */
  --gutter-content: clamp(20px, 7.15vw, 103px); /* 103px @1440 */
  --radius: 20px;
  --title: "Impact", "Haettenschweiler", "Franklin Gothic Bold", "Arial Narrow Bold", sans-serif;
  --body: "Montserrat", "Gilroy", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.page { position: relative; width: 100%; overflow: hidden; }

/* ---- shared containers ---- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.wrap-content {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter-content);
  width: 100%;
}

/* ---- shared titles ---- */
.section-title {
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.6vw, 80px);
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
}
.muted-title {
  font-family: var(--title);
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block: clamp(30px, 3.2vw, 46px) clamp(20px, 3vw, 44px); }
.hero__inner {
  display: grid;
  grid-template-columns: 776fr 526fr; /* pic : copy block */
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
}
.hero__pic img { width: 100%; height: auto; }
.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__wordmark {
  width: min(100%, 506px);
  height: auto;
  opacity: 0.6;
}
.hero__logo {
  width: clamp(96px, 9.8vw, 142px);
  height: auto;
  margin-top: clamp(10px, 1.4vw, 20px); /* on its own line, below the actor names */
}

/* ============================================================
   FJ / TAGLINE
   ============================================================ */
.fj { position: relative; padding-block: clamp(30px, 4vw, 53px) clamp(20px, 3vw, 40px); }
.fj__inner { position: relative; min-height: clamp(120px, 15vw, 214px); }
.fj__text {
  font-size: clamp(1.5rem, 4.3vw, 48px);
  line-height: 1.06;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  padding-top: clamp(10px, 3.6vw, 53px);
}
.fj__car {
  position: absolute;
  right: clamp(-10px, 2vw, 31px);
  top: 50%;                       /* vertically centred; drives across the middle */
  width: clamp(220px, 34vw, 494px);
  height: auto;
  z-index: 1;
  opacity: 0.95;
}

/* ---- Drive-past intro animation ----
   When JS is present we start the car off-screen (right) and hide the copy,
   then play the sequence once the section scrolls into view. Without JS or
   with reduced-motion, the section simply shows in its resting design state. */
.js .fj__car { transform: translate(-115vw, -50%); }
.js .fj__text { opacity: 0; }

.fj.is-animated .fj__car {
  /* 20s cycle: drives across in ~1.9s, then waits off-screen and repeats */
  animation: fj-drive 20s linear infinite;
}
.fj.is-animated .fj__text {
  /* same 20s cycle, synced to the car: reveal after it passes, fade out before it returns */
  animation: fj-text-loop 20s ease infinite;
}

@keyframes fj-drive {
  0%    { transform: translate(-115vw, -50%); } /* off-screen, to the left */
  22%   { transform: translate(50vw, -50%); }   /* drives past at a natural pace (~4.4s) */
  100%  { transform: translate(50vw, -50%); }   /* stays off-screen, then loops */
}
@keyframes fj-text-loop {
  0%   { opacity: 0; transform: translateY(22px); } /* hidden as the car enters */
  15%  { opacity: 0; transform: translateY(22px); } /* still hidden while it crosses */
  22%  { opacity: 1; transform: translateY(0); }    /* reveal once the car has passed (~4.4s) */
  92%  { opacity: 1; transform: translateY(0); }    /* stays visible */
  96%  { opacity: 0; transform: translateY(0); }    /* fade out before the car returns (~19.2s) */
  100% { opacity: 0; transform: translateY(22px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .fj__car { transform: translateY(-50%); } /* stay centred, parked */
  .js .fj__text { opacity: 1; }
  .fj.is-animated .fj__car,
  .fj.is-animated .fj__text { animation: none; }
}

/* ============================================================
   TRAILER  (full-bleed parallax scene)
   ============================================================ */
.parallax-scene { position: relative; overflow: hidden; }
.parallax-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.parallax-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 102%;
  min-width: 102%;
  height: 132%;
  transform: translate3d(-50%, -50%, 0);
  object-fit: cover;
  will-change: transform;
  max-width: none;
}

.trailer {
  height: clamp(320px, 46.6vw, 672px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trailer__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.2) 45%, rgba(0,0,0,.45));
}
.trailer__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.6vw, 52px);
  width: 100%;
  padding-inline: var(--gutter);
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.trailer__word {
  font-size: clamp(2rem, 6.1vw, 72px);
  line-height: 1;
  white-space: nowrap;
}
.trailer__play {
  flex: 0 0 auto;
  width: clamp(72px, 10vw, 145px);
  height: clamp(72px, 10vw, 145px);
  display: grid;
  place-items: center;
  opacity: 0.6;
  transition: opacity .25s ease, transform .25s ease;
}
.trailer__play img { width: 100%; height: 100%; }
.trailer__inner:hover .trailer__play,
.trailer__inner:focus-visible .trailer__play { opacity: 1; transform: scale(1.06); }

/* ============================================================
   STORY
   ============================================================ */
.story { padding-block: clamp(40px, 6vw, 60px); }
.story .section-title { text-align: center; }
.story__grid {
  margin-top: clamp(24px, 3.9vw, 57px);
  display: grid;
  grid-template-columns: 541fr 551fr;
  gap: clamp(24px, 3.6vw, 52px);
  align-items: start;
}
.story__text p {
  font-size: clamp(0.95rem, 1.35vw, 18px);
  line-height: 1.44;
  margin: 0 0 1.1em;
  color: var(--fg);
}
.story__text p:last-child { margin-bottom: 0; }
.story__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 551 / 335;
}
.story__img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   BEST PICTURE
   ============================================================ */
.bestpic {
  min-height: clamp(360px, 46vw, 666px);
  display: flex;
  align-items: center;
}
.bestpic .parallax-layer { opacity: 0.9; }
.bestpic__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.62) 40%, rgba(0,0,0,.28) 60%, rgba(0,0,0,0) 82%);
}
/* Copy + laurels live in the LEFT half over the road, clear of the runner */
.bestpic__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter-content);
  display: flex;
  justify-content: flex-start;
}
.bestpic__inner {
  width: 100%;
  max-width: 709px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bestpic__nominee {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 35px);
  letter-spacing: clamp(3px, 0.6vw, 8.75px);
  line-height: 1.1;
  margin: 0;
  color: var(--fg);
}
.bestpic__year {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 35px);
  letter-spacing: clamp(5px, 0.97vw, 14px);
  line-height: 1.2;
  margin: 6px 0 0;
  color: var(--fg);
}
.bestpic__badges {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-top: clamp(20px, 2.7vw, 38px);
}
.bestpic__badges span {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(0.62rem, 1.14vw, 16.4px);
  letter-spacing: clamp(1.5px, 0.45vw, 6.55px);
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;      /* keep each line intact — 2 lines via <br>, as designed */
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(12px, 1.6vw, 24px);
}
/* thin vertical divider lines between each copy, as in the design */
.bestpic__badges span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}
.bestpic__object {
  width: clamp(110px, 10.5vw, 151px);
  height: auto;
  margin: clamp(14px, 2vw, 28px) auto 0;
}

/* ============================================================
   MEET THE BOYS
   ============================================================ */
.boys { padding-block: clamp(50px, 7.5vw, 80px); }
.boys__grid {
  margin-top: clamp(30px, 4.2vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 58px) clamp(30px, 5.2vw, 75px);
}
.boy { text-align: left; }
.boy__photo {
  width: clamp(180px, 20.3vw, 292px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.boy__photo img { width: 100%; height: 100%; object-fit: cover; }
.boy__name {
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 60px);
  line-height: 1;
  margin: clamp(20px, 2.6vw, 38px) 0 clamp(12px, 1.5vw, 22px);
  text-transform: uppercase;
}
.boy__desc {
  font-size: clamp(0.95rem, 1.25vw, 18px);
  line-height: 1.44;
  margin: 0;
  max-width: 34ch;
}

/* ============================================================
   THE EVIDENCE
   ============================================================ */
.evidence { padding-block: clamp(40px, 6vw, 60px) clamp(60px, 9vw, 110px); }
.evidence__sub {
  text-align: center;
  font-size: clamp(0.95rem, 1.35vw, 18px);
  line-height: 1.44;
  color: var(--fg);
  max-width: 700px;
  margin: clamp(18px, 2.7vw, 38px) auto 0;
}
.ev { margin: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.ev img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}
.ev:hover img,
.ev:focus-visible img { transform: scale(1.06); filter: brightness(1.12); }
.ev:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__frame {
  position: relative;
  width: min(450px, 92vw);
  height: min(450px, 92vw);
  background: #0a0a0a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  transform: scale(0.94);
  transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox__frame { transform: scale(1); }
.lightbox__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover,
.lightbox__close:focus-visible { background: rgba(0, 0, 0, 0.85); transform: scale(1.08); }

.evidence__top {
  margin-top: clamp(24px, 3.5vw, 50px);
  display: grid;
  grid-template-columns: 559fr 332fr 332fr;
  grid-template-rows: auto auto;
  gap: clamp(14px, 2vw, 27px);
}
.ev-1 { grid-column: 1; grid-row: 1; aspect-ratio: 559 / 311; }
.ev-4 { grid-column: 1; grid-row: 2; aspect-ratio: 559 / 311; }
.ev-2 { grid-column: 2; grid-row: 1 / 3; }
.ev-3 { grid-column: 3; grid-row: 1 / 3; }
/* Luka + spade sit on the right of this shot — shift the crop right so
   they're framed, instead of the default centre (the power pole) */
.ev-2 img { object-position: 74% center; }
/* Toby's face is left-of-centre in this shot — shift the crop left so his
   face is framed (moving him rightward within the frame) */
.ev-3 img { object-position: 35% center; }

.evidence__bottom {
  margin-top: clamp(14px, 2vw, 27px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.6vw, 37px);
}
.ev--half { aspect-ratio: 620 / 349; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; padding-top: clamp(50px, 8vw, 90px); }
.footer__text {
  text-align: center;
  font-size: clamp(2.2rem, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: 0.5px;
}
.footer__car {
  margin-top: clamp(20px, 4vw, 60px);
  width: 100%;
  overflow: hidden;            /* black backdrop hides the gentle parallax drift */
}
.footer__car-img {
  width: 100%;
  height: auto;                /* full car, natural proportions, never cropped */
  display: block;
  will-change: transform;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__copy { max-width: 460px; margin-inline: auto; }

  .story__grid { grid-template-columns: 1fr; }
  .story__img { order: -1; }

  .bestpic__content { justify-content: center; }
  .bestpic__inner { margin-inline: auto; }
  .bestpic__scrim {
    background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.72));
  }
}

@media (max-width: 680px) {
  .boys__grid { grid-template-columns: 1fr; justify-items: center; }
  .boy { text-align: center; max-width: 340px; }
  .boy__desc { max-width: 42ch; margin-inline: auto; }
  .boy__photo { margin-inline: auto; }

  /* Evidence collapses to a simpler stacked layout */
  .evidence__top {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .ev-1 { grid-column: 1 / 3; grid-row: 1; }
  .ev-4 { grid-column: 1 / 3; grid-row: 4; }
  .ev-2 { grid-column: 1; grid-row: 2 / 4; }
  .ev-3 { grid-column: 2; grid-row: 2 / 4; }

  .trailer__word { font-size: clamp(1.5rem, 8vw, 40px); }
  .fj__text { text-align: left; }
}

@media (max-width: 460px) {
  .evidence__top { grid-template-columns: 1fr; }
  .ev-1, .ev-2, .ev-3, .ev-4 { grid-column: 1; grid-row: auto; }
  .ev--tall { aspect-ratio: 332 / 430; }
  .evidence__bottom { grid-template-columns: 1fr; }
  .trailer__inner { flex-direction: column; gap: 14px; }
}

/* Respect reduced-motion: JS also checks this */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax-layer { transform: translate3d(-50%, -50%, 0) !important; }
}
