/* ============================================================
   Red Bull × Briques — landing page
   Sticky-pinned vignette stack with vertical diptych
   ============================================================ */

:root {
  --bg:        #0A0A0A;
  --paper:     #FAF6EF;
  --ink:       #FFFFFF;
  --muted:     rgba(255, 255, 255, 0.55);
  --rule:      rgba(255, 255, 255, 0.16);
  --accent-red:    #EE2122;
  --accent-cyan:   #00BFD8;
  --accent-yellow: #FFC900;

  --display: "Anton", "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  --sans:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease2: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================================
   PRE-ROLL
   ============================================================ */
.preroll {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.preroll .wordmark {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--ink);
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 56px;
  opacity: 0;
  animation: rise 1.2s var(--ease) 0.2s forwards;
  text-transform: uppercase;
}
.preroll .wordmark .x { color: var(--muted); font-weight: 400; }
.preroll .subtitle {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--ink);
  line-height: 1.25;
  max-width: 720px;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: rise 1.2s var(--ease) 0.5s forwards;
}
.preroll .scroll-prompt {
  position: absolute;
  bottom: 48px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--muted);
  opacity: 0;
  animation: rise 1.2s var(--ease) 1s forwards, gentlePulse 2.6s ease-in-out 2.4s infinite;
}

/* ============================================================
   HERO BEFORE — slow Ken Burns
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s var(--ease), transform 12s linear;
}
.hero.is-in img {
  opacity: 1;
  transform: scale(1.0);
}

/* ============================================================
   STICKY VIGNETTE STACK — five states crossfade in one frame
   ============================================================ */
.vignettes-stack {
  position: relative;
  width: 100%;
  height: 500vh;             /* 5 states × 100vh of scroll */
  background: #050505;
}
.sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #050505;
}

.state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
  background: #050505;
}
.state.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Vertical diptych — BEFORE on top, AFTER below, both full container width */
.diptych {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  background: #050505;
}
.before-pane,
.after-pane {
  position: relative;
  flex: 1 1 50%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #050505;
}
.before-pane img,
.after-pane img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.before-pane img {
  filter: saturate(0.55) brightness(0.78) contrast(0.95);
  transform: scale(1.04);
  opacity: 0;
  transition: transform 1.4s var(--ease) 0.1s, opacity 0.8s var(--ease) 0.1s, filter 1.4s var(--ease);
}
.after-pane img {
  transform: scale(1.04);
  opacity: 0;
  transition: transform 1.6s var(--ease) 0.35s, opacity 0.9s var(--ease) 0.3s;
}
.state.is-active .before-pane img,
.state.is-active .after-pane img {
  opacity: 1;
  transform: scale(1);
}

/* Hairline between the two stacked panes */
.before-pane::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

.pane-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 3;
}
.pane-tag-light {
  background: rgba(238, 33, 34, 0.92);
  border-color: rgba(238, 33, 34, 0.92);
}

/* COPY STRIP — below both images, three columns */
.copy-strip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) minmax(360px, 2.2fr);
  align-items: center;
  gap: 32px 56px;
  padding: 22px 5vw;
  background: #0A0A0A;
  color: var(--paper);
  border-top: 1px solid var(--rule);
}
.copy-strip > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.state.is-active .copy-strip > * {
  opacity: 1;
  transform: translateY(0);
}
.state.is-active .copy-strip .number     { transition-delay: 0.5s; }
.state.is-active .copy-strip h2          { transition-delay: 0.6s; }
.state.is-active .copy-strip .three-line { transition-delay: 0.75s; }

.copy-strip .number {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--accent-red);
  text-transform: uppercase;
}
.copy-strip h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 0.96;
  letter-spacing: -0.005em;
  color: var(--paper);
  text-transform: uppercase;
  margin: 0;
  max-width: 14ch;
}
.copy-strip .three-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 64ch;
}
.copy-strip .three-line p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.5;
  color: rgba(250, 246, 239, 0.86);
  margin: 0;
}
.copy-strip .three-line .label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-right: 6px;
  display: inline-block;
}

/* SIDE RAIL — vertical state indicator */
.state-rail {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
}
.state-rail .dot {
  appearance: none;
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.4s var(--ease);
}
.state-rail .dot.is-active {
  color: var(--accent-red);
}
.state-rail .dot:hover {
  color: var(--ink);
}

/* ============================================================
   HERO PAIR — macro reveal at the end (wide BEFORE → wide AFTER)
   ============================================================ */
.hero-pair {
  position: relative;
  width: 100%;
  background: #050505;
}
.hero-frame {
  position: relative;
  width: 100%;
  /* Native aspect of the wide hero images (21:9 / 2.36). Frame matches
     image so nothing is cropped on any axis. */
  aspect-ratio: 2.36 / 1;
  max-height: 100vh;
  overflow: hidden;
  background: #050505;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-frame.is-in img {
  opacity: 1;
  transform: scale(1);
}
.hero-before-frame img {
  filter: saturate(0.6) brightness(0.78);
}
.hero-pair .pane-tag {
  top: 32px;
  left: 32px;
}

/* ============================================================
   FINALE — classic typographic outro: question → brand → promise → CTA
   ============================================================ */
.finale {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 32px 64px;
  overflow-x: hidden;
}
.finale-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.finale-eyebrow {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 24px);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: -0.005em;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.finale.is-in .finale-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.finale-mark {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--ink);
  text-transform: uppercase;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s;
}
.finale-mark .x {
  color: var(--muted);
  font-weight: 400;
}
.finale.is-in .finale-mark {
  opacity: 1;
  transform: translateY(0);
}

.finale-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 56px;
  display: flex;
  flex-direction: column;
  gap: 0.04em;
}
.finale-headline .line {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.finale-headline .line:nth-child(1) { transition-delay: 0.35s; }
.finale-headline .line:nth-child(2) { transition-delay: 0.55s; }
.finale-headline .line.accent { color: var(--accent-red); }
.finale.is-in .finale-headline .line {
  opacity: 1;
  transform: translateY(0);
}

/* Illustration sits between the headline and the rule */
.finale-illustration {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 56px;
  opacity: 0;
  transform: translateY(16px) scale(1.02);
  transition: opacity 1.2s var(--ease) 0.7s, transform 1.4s var(--ease) 0.7s;
}
.finale-illustration img {
  width: 100%;
  height: auto;
  display: block;
}
.finale.is-in .finale-illustration {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.finale-rule {
  width: 64px;
  height: 2px;
  background: var(--accent-red);
  border: 0;
  margin: 0 auto 56px;
  opacity: 0;
  transition: opacity 0.9s var(--ease) 0.95s;
}
.finale.is-in .finale-rule { opacity: 1; }

/* THE RED CTA — Red Bull-grade button */
.finale-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 320px;
  padding: 24px 44px;
  background: var(--accent-red);
  color: var(--paper);
  text-decoration: none;
  border: 2px solid var(--accent-red);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.9s var(--ease) 1.1s,
    transform 0.9s var(--ease) 1.1s,
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.finale.is-in .finale-cta {
  opacity: 1;
  transform: translateY(0);
}
.finale-cta:hover {
  background: #FF2D2E;
  border-color: #FF2D2E;
  box-shadow: 0 8px 32px rgba(238, 33, 34, 0.35);
}
.finale-cta-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.finale-cta-arrow {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.finale-cta:hover .finale-cta-arrow {
  transform: translateX(8px);
}

.finale-footnote {
  margin-top: 96px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.9s var(--ease) 1.5s;
}
.finale.is-in .finale-footnote { opacity: 1; }

@media (max-width: 720px) {
  .finale { padding: 64px 24px 48px; }
  .finale-eyebrow { font-size: 16px; margin-bottom: 40px; }
  .finale-mark { font-size: 10px; gap: 10px; margin-bottom: 28px; }
  .finale-headline { font-size: clamp(40px, 11vw, 72px); margin-bottom: 40px; }
  .finale-rule { margin-bottom: 40px; }
  .finale-cta {
    min-width: 0;
    width: 100%;
    padding: 20px 24px;
    gap: 16px;
  }
  .finale-cta-label { font-size: 12px; letter-spacing: 0.24em; }
  .finale-footnote { margin-top: 56px; font-size: 9px; letter-spacing: 0.24em; }
}

/* ============================================================
   STICKY TOP "RÉSERVER" CTA
   ============================================================ */
.top-cta {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 20px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--rule);
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.top-cta:hover {
  background: var(--accent-red);
  color: var(--paper);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}
.top-cta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  display: inline-block;
  animation: gentlePulseDot 2s ease-in-out infinite;
}
.top-cta:hover .dot { background: var(--paper); }

@keyframes gentlePulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gentlePulse {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(6px); opacity: 0.85; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .copy-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 24px;
  }
  .copy-strip h2 { font-size: clamp(22px, 6vw, 32px); }
  .pane-tag { top: 14px; left: 14px; padding: 5px 10px; font-size: 8px; }
  .state-rail { right: 8px; gap: 10px; }
  .state-rail .dot { font-size: 9px; padding: 2px 6px; }
  .top-cta { padding: 8px 14px; font-size: 10px; letter-spacing: 0.28em; gap: 8px; }
  .preroll .wordmark { font-size: 10px; gap: 10px; }
  .preroll .scroll-prompt { font-size: 9px; }
}

/* ============================================================
   HERO PAIR — mobile: same aspect, no crop
   ============================================================ */
@media (max-width: 720px) {
  .hero-frame {
    aspect-ratio: 2.36 / 1;
    max-height: 70vh;
  }
  .hero-pair .pane-tag {
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    font-size: 8px;
    letter-spacing: 0.36em;
  }
}

/* ============================================================
   FINALE — mobile: illustration displayed larger via scale
   ============================================================ */
@media (max-width: 720px) {
  .finale {
    padding: 32px 0 40px;
    overflow-x: hidden;
  }
  /* The illustration is wide horizontal; on narrow viewports the
     characters get tiny. Scale it up and let it overflow horizontally
     with smooth horizontal scroll so it stays readable. */
  .finale-illustration {
    width: 200%;
    margin-left: -50%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .finale-illustration img {
    width: 100%;
    min-width: 720px;
  }
}

/* For very narrow phones — tighten further */
@media (max-width: 480px) {
  .copy-strip h2 { font-size: clamp(20px, 5.4vw, 28px); }
  .copy-strip .three-line p { font-size: 12px; line-height: 1.45; }
  .copy-strip .number { font-size: 9px; letter-spacing: 0.28em; }
  .hero-frame { min-height: 44vh; }
  .finale-illustration img { min-width: 640px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
