/* Page openings: cinematic desktop compositions and a shared mobile grid. */
.page-home .hero {
  aspect-ratio:auto;
  height:min(56.25vw,100svh,1080px);
  min-height:560px;
}
.page-home .hero-film { overflow:hidden; }
.page-home .hero-poster,
.page-home .hero-film video {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
}
.page-home .hero-poster { z-index:0; }
/* Reveal on the first decoded frame without overlapping two moving car positions. */
.page-home .hero-film video { z-index:1; opacity:0; }
.page-home .hero-film.is-ready video { opacity:1; }
.page-home .hero-shade {
  z-index:2;
  background:
    linear-gradient(180deg,rgba(7,10,7,.74),rgba(7,10,7,.5) 11%,transparent 27%),
    linear-gradient(0deg,rgba(7,10,7,.78),transparent 52%),
    linear-gradient(90deg,rgba(7,10,7,.96),rgba(7,10,7,.88) 27%,rgba(7,10,7,.55) 42%,rgba(7,10,7,.15) 55%,transparent 67%);
}
.page-home .hero-topline { top:calc(var(--header) + 28px); font-size:10px; }
.page-home .hero-content { padding-block:150px clamp(40px,7svh,80px); }
.page-home .hero-message { width:48%; max-width:660px; }
.page-home .hero h1 {
  font-size:clamp(64px,min(6.95vw,12.5svh),114px);
  line-height:.91;
  letter-spacing:-.065em;
  white-space:normal;
  margin-left:-.025em;
}
.page-home .hero h1>.hero-title-line { position:relative; display:block; width:fit-content; color:var(--ink); white-space:nowrap; }
.page-home .hero-title-line+.hero-title-line { margin-top:8px; }
.page-home .hero h1>.hero-title-lead { font-size:.36em; line-height:1.2; letter-spacing:-.035em; word-spacing:.08em; font-weight:800; color:var(--muted); margin-bottom:.55em; }
.page-home .hero-title-lead+.hero-title-line { margin-top:0; }
.page-home .hero-title-point { color:var(--acid); }
.page-home .hero-title-sheen { display:none; }
.page-home .hero-under { display:block; margin-top:24px; }
.page-home .hero-under>p { max-width:340px; font-size:15px; line-height:1.65; }
.page-home .hero-actions { justify-content:flex-start; gap:24px; margin-top:26px; }
.page-home .hero-actions>.button { min-height:54px; padding:14px 20px; gap:24px; font-size:13px; }
.page-home .hero-actions>.button:hover { transform:translateY(-2px); }
.page-home .film-launch { min-height:48px; padding:0; gap:11px; font-size:13px; }
.page-home .film-launch-duration { color:var(--muted); font-family:var(--mono); font-size:10px; }
.page-home .play-circle { width:38px; height:38px; }
.page-home .play-circle svg { width:15px; height:15px; }
.page-home .hero-playback { top:auto; bottom:24px; right:max(var(--gutter),calc((100% - 1600px)/2)); background:rgba(16,18,17,.5); }

@media(min-width:961px) {
  .page-home .site-header {
    position:fixed;
    inset:0 0 auto;
    width:100%;
    padding-inline:max(var(--gutter),calc((100% - 1600px)/2));
    background:transparent;
    border-bottom-color:transparent;
    backdrop-filter:none;
    transition:background .2s,border-color .2s;
  }
  .page-home .site-header.is-scrolled {
    background:rgba(16,18,17,.97);
    border-bottom-color:rgba(238,240,231,.1);
    backdrop-filter:blur(16px);
  }
  .page-home .site-header:not(.is-scrolled) .header-enquire {
    background:rgba(16,18,17,.12);
    color:var(--ink);
    border:1px solid rgba(238,240,231,.5);
  }
  .page-home .site-header:not(.is-scrolled) .desktop-nav a { color:var(--ink); }
  .page-home .site-header:not(.is-scrolled) .header-enquire:hover {
    background:rgba(238,240,231,.12);
    border-color:var(--ink);
  }
}

@media(min-width:961px) and (max-width:1100px) {
  .page-home .hero-message { width:57%; }
  .page-home .hero h1 { font-size:clamp(64px,min(7.62vw,12.5svh),78px); }
  .page-home .hero-actions { gap:20px; }
  .page-home .hero-actions>.button { padding:13px 16px; gap:20px; }
  .page-home .hero-under>p { font-size:14px; }
}

@media(min-width:961px) and (max-height:600px) {
  .page-home .hero { min-height:480px; }
  .page-home .hero-content { padding-block:140px 32px; }
  .page-home .hero h1>.hero-title-lead { margin-bottom:.4em; }
  .page-home .hero-under { margin-top:16px; }
  .page-home .hero-under>p { font-size:14px; }
  .page-home .hero-actions { margin-top:18px; }
}

@media(max-width:960px) {
  .page-home .hero { display:grid; grid-template-columns:minmax(0,1fr); height:auto; min-height:0; overflow:visible; }
  .page-home .hero-film { grid-area:1/1; position:relative; inset:auto; z-index:0; width:100%; aspect-ratio:16/9; }
  .page-home .hero-poster,
  .page-home .hero-film video { object-fit:contain; }
  .page-home .hero-shade { background:linear-gradient(180deg,rgba(7,10,7,.36),transparent 30%,transparent 80%,rgba(7,10,7,.15)); }
  .page-home .hero-topline { grid-area:1/1; position:relative; inset:auto; align-self:start; margin-top:16px; z-index:2; font-size:9px; }
  .page-home .hero-topline>span:last-child { display:none; }
  .page-home .hero-content { grid-area:2/1; position:relative; padding-block:26px 16px; }
  .page-home .hero-message { width:100%; max-width:600px; }
  .page-home .hero h1 { font-size:clamp(52px,13.4vw,86px); line-height:.93; }
  .page-home .hero-title-line+.hero-title-line { margin-top:3px; }
  .page-home .hero h1>.hero-title-lead { font-size:.4em; margin-bottom:.7em; }
  .page-home .hero-title-lead+.hero-title-line { margin-top:0; }
  .page-home .hero-under { margin-top:18px; }
  .page-home .hero-under>p { font-size:15px; line-height:1.6; }
  .page-home .hero-actions { flex-wrap:wrap; gap:12px 22px; margin-top:20px; }
  .page-home .hero-actions>.button { padding:13px 16px; min-height:50px; font-size:12px; gap:20px; }
  .page-home .film-launch { font-size:12px; gap:9px; min-height:44px; }
  .page-home .film-launch-duration { font-size:10px; }
  .page-home .play-circle { width:32px; height:32px; }
  .page-home .hero-playback { grid-area:1/1; position:relative; inset:auto; align-self:end; justify-self:end; margin:0 var(--gutter) 16px 0; }
}

/* Keep both mobile openings on the header's gutter, with deliberate action rows. */
@media(max-width:760px) {
  .page-home .hero-content,
  .page-training .training-hero-content { padding-block:28px 36px; }
  .page-home .hero-message { max-width:none; }
  .page-home .hero h1 {
    margin-left:0;
    font-size:clamp(40px,13.4vw,78px);
    line-height:.98;
    letter-spacing:-.055em;
  }
  .page-home .hero h1>.hero-title-lead { margin-bottom:16px; font-size:.4em; }
  .page-home .hero-title-line+.hero-title-line { margin-top:2px; }
  .page-home .hero-title-lead+.hero-title-line { margin-top:0; }
  .page-home .hero-under { margin-top:20px; }
  .page-home .hero-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin-top:22px; }
  .page-home .hero-actions>.button { width:100%; min-height:52px; padding-inline:18px; font-size:13px; }
  .page-home .film-launch { width:100%; justify-content:flex-start; min-height:44px; }

  .page-training .training-hero { min-height:0; }
  .page-training .training-hero-image { aspect-ratio:16/9; overflow:hidden; }
  /* The car's centre is at 41% of the original photo: frame that point at 50%. */
  .page-training .training-hero-image img { position:absolute; inset:0 auto 0 -1.25%; width:125%; max-width:none; height:100%; object-fit:cover; object-position:50% 50%; }
  .page-training .training-hero-content>.eyebrow { margin-bottom:18px; font-size:10px; }
  .page-training .training-hero h1 { font-size:clamp(36px,10.8vw,64px); line-height:1.06; letter-spacing:-.05em; }
  .page-training .training-hero h1>.training-title-last { display:inline-block; margin-left:.12em; white-space:nowrap; }
  .page-training .training-hero-content>div { margin-top:20px; }
  .page-training .training-hero-content>div>p { line-height:1.6; }
  .page-training .training-hero-content .text-link { display:flex; width:100%; min-height:52px; margin-top:22px; padding-block:10px; }
}

@media(max-width:360px) {
  .page-home .hero-topline { font-size:8px; }
  .page-home .hero-under>p,
  .page-training .training-hero-content>div>p { font-size:14px; }
}

@keyframes hero-title-enter {
  from { opacity:0; transform:translateY(16px); }
  to { opacity:1; transform:translateY(0); }
}
/* The bone text stays readable underneath; only the highlight moves. */
@keyframes hero-light-pass {
  0%,8% { background-position:125% 0; opacity:0; }
  10% { opacity:1; }
  36% { background-position:-25% 0; opacity:1; }
  40%,100% { background-position:-25% 0; opacity:0; }
}
@media(prefers-reduced-motion:no-preference) {
  .page-home .hero h1 { animation:hero-title-enter .55s cubic-bezier(.2,.7,.2,1) both; }
  @supports ((background-clip:text) or (-webkit-background-clip:text)) {
    .page-home .hero-title-sheen {
      display:block;
      position:absolute;
      inset:0;
      pointer-events:none;
      user-select:none;
      color:transparent;
      -webkit-text-fill-color:transparent;
      background-image:linear-gradient(110deg,transparent 38%,rgba(200,245,66,.18) 43%,rgba(200,245,66,.9) 47%,#fff 50%,rgba(229,255,181,.95) 53%,rgba(200,245,66,.18) 57%,transparent 62%);
      background-size:300% 100%;
      background-repeat:no-repeat;
      background-clip:text;
      -webkit-background-clip:text;
      opacity:0;
      animation:hero-light-pass 8.8s cubic-bezier(.3,.1,.3,1) 1s infinite both paused;
    }
    .page-home .hero-title-line:nth-child(2) .hero-title-sheen { animation-delay:1.18s; }
    .page-home .hero-title-line:nth-child(3) .hero-title-sheen { animation-delay:1.4s; }
    .page-home .hero.is-playing .hero-title-sheen { animation-play-state:running; }
  }
}
@media(prefers-reduced-motion:reduce) {
  .page-home .hero-film video,.page-home .site-header { transition:none; }
  .page-home .hero-actions>.button:hover { transform:none; }
}
