/* ==========================================================================
   IGNITION — homepage only: the pinned opening, the black show chapter and
   the pit pause. Shared parts live in ignition.css.

   THE PHOTO FIX. The concept laid a 1600×580 strip (itself an upscale of a
   1379×500 crop with the truck's roof already cut off) across a 270px-tall
   band, then clipped it to its right 44% and slid it 18% sideways. At rest
   the visitor saw a tyre and a door panel. Now the photo is a right-hand
   panel that starts at the top of the title's second line and stops at the
   invitation's baseline. Its left edge clears "FOR LOUD." by measurement
   (3.36em of Anton at the title size, so 3.4em plus a gap), and its height
   follows a 1.3 ratio until the title's second line caps it. It is never narrower than
   the photo can stand, and the source is the full 2560×1707 King Krunch frame
   with the whole truck in it. The scroll sequence settles the image instead
   of sliding it, so no frame of it ever crops the truck.
   ========================================================================== */

.opening {
  --opening-progress: 0;
  --paper-rise: 0;
  --invitation-copy: 1;
  --hint-opacity: 1;
  --photo-settle: 0;
  --title-top: clamp(144px, 17svh, 166px);
  --title-size: clamp(128px, 14.6vw, 224px);
  --photo-bottom: clamp(34px, 5svh, 58px);
  --line-two: calc(var(--title-top) + 38px + var(--title-size) * var(--essential-leading));
  position: relative;
  min-height: 100svh;
  background: var(--acid);
}

.opening__stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--acid);
}

.opening__paper {
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 47%;
  transform: translateY(calc((1 - var(--paper-rise)) * 101%));
  background: var(--paper);
  pointer-events: none;
}

.opening__title-block {
  position: absolute;
  z-index: 3;
  top: var(--title-top);
  left: var(--gutter);
  width: calc(100% - (2 * var(--gutter)));
  transform: translateY(calc(var(--opening-progress) * -7vh));
  will-change: transform;
}

.opening__eyebrow {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.opening__eyebrow span { padding-bottom: 7px; }

.opening__title {
  width: 100%;
  font-family: var(--display);
  font-size: var(--title-size);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: var(--essential-leading);
  text-transform: uppercase;
}

.opening__title span { display: block; white-space: nowrap; }

.opening__invitation {
  position: absolute;
  z-index: 6;
  left: var(--gutter);
  bottom: var(--photo-bottom);
  width: min(300px, 24vw);
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 700;
  line-height: 1.25;
}

.opening__invitation .button { width: 100%; margin-top: 24px; }

.opening__invitation > p {
  opacity: var(--invitation-copy);
  transform: translateY(calc((1 - var(--invitation-copy)) * -10px));
  will-change: opacity, transform;
}

.opening__photo {
  --photo-left: max(52vw, calc(var(--gutter) + var(--title-size) * 3.4 + 32px));
  position: absolute;
  z-index: 5;
  right: var(--gutter);
  bottom: var(--photo-bottom);
  left: var(--photo-left);
  height: min(calc((100vw - var(--photo-left) - var(--gutter)) / 1.3),
              calc(100svh - var(--line-two) - var(--photo-bottom)));
  transform: translateY(calc(var(--opening-progress) * -7vh));
  will-change: transform;
}

.opening__photo img {
  object-position: var(--pos, 48% 34%);
  transform: scale(calc(1.08 - var(--photo-settle) * .08));
  transform-origin: 50% 40%;
  will-change: transform;
}

.opening__echo {
  position: absolute;
  z-index: 1;
  right: -1vw;
  bottom: -5vw;
  color: transparent;
  font-family: var(--display);
  font-size: 25vw;
  line-height: .75;
  -webkit-text-stroke: 2px rgba(0, 0, 0, .15);
  pointer-events: none;
  transform: translateX(calc((1 - var(--paper-rise)) * 8vw));
}

.opening__scroll {
  position: absolute;
  z-index: 6;
  right: var(--gutter);
  top: calc(var(--mast-h) + 18px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: var(--hint-opacity);
  transform: translateX(calc((1 - var(--hint-opacity)) * 18px));
}

.opening__scroll span { width: 54px; height: 1px; background: var(--ink); }

.scroll-enhanced .opening { height: 180svh; }
.scroll-enhanced .opening__stage { position: sticky; top: 0; }

.ig-motion .opening__photo { clip-path: inset(0 0 0 100%); animation: wipe-in 1200ms var(--ease) 200ms forwards; }

/* --------------------------------------------------------------------------
   The index: the mockup's paper section, with the alert box under it.
   -------------------------------------------------------------------------- */
.shows { z-index: 2; }

/* --------------------------------------------------------------------------
   The black show chapter
   -------------------------------------------------------------------------- */
.experience {
  --chapter-shift: 0;
  position: relative;
  z-index: 1;
  padding: clamp(80px, 8vw, 120px) var(--gutter) clamp(120px, 12vw, 190px);
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  --focus-ring: var(--acid);
}

.experience::before {
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(241, 238, 229, .35);
  content: "";
}

.experience__intro {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 410px);
  gap: 30px;
}

.experience__note { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.25; }

.experience__words {
  position: relative;
  z-index: 3;
  margin-top: clamp(74px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: clamp(100px, 15vw, 228px);
  letter-spacing: -.025em;
  line-height: .78;
  text-transform: uppercase;
  transform: translateY(calc(var(--chapter-shift) * -48px));
  will-change: transform;
}

.experience__words span:nth-child(2) { align-self: center; color: var(--acid); }
.experience__words span:nth-child(3) { align-self: flex-end; }

.experience__media {
  position: relative;
  z-index: 2;
  margin-top: clamp(70px, 8vw, 115px);
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 40px);
  align-items: start;
}

.experience__action { height: clamp(300px, 36vw, 560px); }
.experience__action img { filter: contrast(1.08) saturate(.9); }

.experience__tall {
  height: clamp(460px, 46vw, 760px);
  margin-top: clamp(80px, 12vw, 200px);
  transform: translateY(calc(var(--chapter-shift) * 38px));
  will-change: transform;
}

.experience__cards { position: relative; z-index: 3; margin-top: clamp(60px, 7vw, 110px); }
.experience__cards .card { border-color: var(--acid); }
.experience__cards .card__n { color: var(--acid); }

.experience__cars {
  position: absolute;
  z-index: 1;
  left: -5vw;
  bottom: -22px;
  width: 54vw;
  opacity: .22;
  filter: grayscale(1) contrast(1.35);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   The pit pause, crossing out of black
   -------------------------------------------------------------------------- */
.pit-party {
  --pit-shift: 0;
  position: relative;
  z-index: 3;
  padding: 0 var(--gutter) clamp(110px, 12vw, 180px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .85fr);
  gap: clamp(44px, 7vw, 108px);
  align-items: center;
  background: var(--paper);
}

.pit-party__photo { height: clamp(530px, 53vw, 780px); margin-top: -72px; }

.pit-party__photo img {
  height: calc(100% + 40px);
  transform: translateY(calc(var(--pit-shift) * -36px));
  will-change: transform;
}

.pit-party__copy { padding-top: 46px; }

.pit-party__copy h2 {
  margin: 28px 0 34px;
  font-family: var(--display);
  font-size: clamp(70px, 6.6vw, 104px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: var(--essential-leading);
  text-transform: uppercase;
}

.pit-party__copy h2 span { display: block; white-space: nowrap; }
.pit-party__copy > p:not(.chapter-mark) { max-width: 460px; }
.pit-party__lead { margin-bottom: 12px; font-size: clamp(21px, 2vw, 28px); font-weight: 700; line-height: 1.2; }
.pit-party__copy .actions { margin-top: 34px; }

.pit-party__inset { width: min(320px, 70%); height: 210px; margin-top: 40px; }

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .opening { --title-size: clamp(118px, 15vw, 168px); }
  .pit-party { grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); }
  .pit-party__copy h2 { font-size: clamp(66px, 7vw, 84px); }
}

@media (max-height: 880px) and (min-width: 900px) {
  .opening {
    --title-top: 130px;
    --title-size: clamp(112px, calc(54.7svh - 245px), min(13.2vw, 175px));
    --photo-bottom: 28px;
  }
  .opening__scroll { display: none; }
}

@media (max-width: 899px) {
  .opening,
  .scroll-enhanced .opening { height: auto; min-height: 0; }

  .opening__stage,
  .scroll-enhanced .opening__stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding: calc(var(--mast-h) + 34px) var(--gutter) 0;
    overflow: visible;
  }

  .opening__paper, .opening__echo, .opening__scroll { display: none; }
  .opening__title-block { position: static; width: auto; transform: none; }
  .opening__title { font-size: clamp(100px, 18vw, 155px); }
  .opening__invitation { position: static; width: min(320px, 70%); margin: 40px 0 32px; font-size: 18px; }

  .opening__photo {
    position: relative;
    inset: auto;
    width: calc(100% + (2 * var(--gutter)));
    height: clamp(250px, 64vw, 460px);
    margin-left: calc(-1 * var(--gutter));
    transform: none;
  }

  .opening__photo img { transform: none; }

  .experience__words { font-size: clamp(90px, 15vw, 140px); }
  .experience__media { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

  .pit-party { padding-top: 0; grid-template-columns: 1fr; gap: 48px; }
  .pit-party__photo { height: min(75vw, 620px); margin-top: -56px; }
  .pit-party__copy { max-width: 650px; padding-top: 0; }
  .pit-party__copy h2 { font-size: clamp(74px, 12vw, 112px); }
}

@media (max-width: 620px) {
  .opening__stage { padding-top: calc(var(--mast-h) + 28px); }
  .opening__eyebrow { font-size: 9px; }
  .opening__title { margin-top: 15px; font-size: clamp(72px, 22.4vw, 100px); line-height: .95; }
  .opening__title span:first-child { white-space: normal; }
  .opening__invitation { width: 100%; margin: 32px 0 28px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 18px; align-items: end; }
  .opening__invitation .button { margin-top: 0; }
  .opening__photo .photo__tag { min-width: 76%; font-size: 8px; }

  .experience { padding: 74px var(--gutter) 100px; }
  .experience__intro { grid-template-columns: 1fr; gap: 28px; }
  .experience__note { max-width: 320px; }
  .experience__words { margin-top: 64px; font-size: clamp(72px, 22vw, 100px); transform: none; }
  .experience__words span:nth-child(2),
  .experience__words span:nth-child(3) { align-self: flex-start; }
  .experience__words span:nth-child(2) { margin-left: 10vw; }
  .experience__media { grid-template-columns: 1fr; margin-top: 52px; }
  .experience__action { width: calc(100% + var(--gutter)); height: 270px; }
  .experience__tall { width: 62%; height: 380px; margin: -40px 0 0 auto; transform: none; }
  .experience__cars { width: 78vw; bottom: -5px; }

  .pit-party { padding-bottom: 96px; gap: 42px; }
  .pit-party__photo { height: 400px; margin-top: -38px; }
  .pit-party__photo img { transform: none; height: 100%; }
  .pit-party__copy h2 { margin: 25px 0 28px; font-size: clamp(60px, 18vw, 84px); }
  .pit-party__copy .button { width: 100%; }
}

@media (max-width: 360px) {
  .opening__title { font-size: 70px; }
  .opening__invitation { grid-template-columns: 1fr; }
  .experience__words { font-size: 68px; }
  .pit-party__copy h2 { font-size: 56px; }
  .pit-party__copy h2 span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-enhanced .opening { height: auto; }
  .scroll-enhanced .opening__stage { position: relative; }
  .opening__title-block, .opening__photo, .opening__photo img,
  .experience__words, .experience__tall, .pit-party__photo img { transform: none; }
  .opening__paper { display: none; }
}
