/* ===========================================================================
   The Big Plate — motion add-on styles
   Only supports motion.js. Does not change the design: with motion.js off
   (or "Reduce motion"), nothing here has any visible effect.
   =========================================================================== */

/* Lenis smooth wheel scrolling (recommended base styles for lenis 1.3) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* GSAP drives reveals, so the CSS fade-in transition must not fight it */
.has-motion .reveal, .has-motion .reveal.is-in { transition: none !important; }

/* Never let a reveal widen the page */
html.has-motion, html.has-motion body { overflow-x: clip; }

/* Masked words: rise from below their own baseline.
   clip-path (not overflow) so the blue 3D lettering shadow is never cut off. */
.m-w { display: inline-block; clip-path: inset(-0.15em -0.4em -0.45em -0.15em); vertical-align: top; }
.m-wi { display: inline-block; will-change: transform; }
.m-word { display: inline-block; }

/* ---------------------------------------------------------------- Intro --- */
html.intro-pending body::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; background: #3D0606;
}
.m-intro { position: fixed; inset: 0; z-index: 9999; cursor: pointer; }
/* Two panels (top / bottom) that part like doors at the end */
.m-intro__half {
  position: absolute; left: 0; right: 0; height: 50.2%;
  background: #3D0606; will-change: transform;
}
.m-intro__half--top { top: 0; }
.m-intro__half--bot { bottom: 0; }
/* A soft warm light behind the logo */
.m-intro__glow {
  position: absolute; left: 50%; top: 50%; width: min(90vmin, 760px); aspect-ratio: 1;
  margin: calc(min(90vmin, 760px) / -2) 0 0 calc(min(90vmin, 760px) / -2);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(168, 18, 18, .55), rgba(168, 18, 18, 0));
  will-change: transform, opacity;
}
.m-intro__stage { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.m-intro__col { display: grid; justify-items: center; }
/* Gold hairlines that draw out and open a window for the logo */
.m-intro__rule { display: block; width: clamp(160px, 26vw, 340px); height: 1px; background: var(--gold, #E5B120); transform-origin: center; will-change: transform; }
.m-intro__window { overflow: hidden; padding: clamp(16px, 2.4vw, 26px) 10px; }
.m-intro__logo { display: block; width: clamp(130px, 15vw, 190px); height: auto; will-change: transform, opacity; }
.m-intro__line {
  margin: clamp(18px, 2.4vw, 26px) 0 0; font-family: var(--body, "Poppins", sans-serif);
  font-size: clamp(.66rem, 1vw, .76rem); font-weight: 600; letter-spacing: .38em; text-transform: uppercase;
  color: rgba(248, 243, 231, .88); white-space: nowrap;
}
.m-intro__line span { display: inline-block; white-space: pre; will-change: transform, opacity; }
.m-intro__skip {
  position: absolute; right: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 32px);
  font: 600 .64rem/1 var(--body, sans-serif); letter-spacing: .3em; text-transform: uppercase;
  color: rgba(248, 243, 231, .45); background: none; border: 0; padding: .5rem; cursor: pointer;
}
.m-intro__skip:hover { color: var(--gold, #E5B120); }

/* Header settles into a slimmer bar once you scroll */
.nav .nav__inner { transition: padding .35s cubic-bezier(.22, .61, .36, 1); }
.nav .nav__brand img { transition: width .35s cubic-bezier(.22, .61, .36, 1); }
.nav.is-condensed .nav__inner { padding: .4rem 0; }
.nav.is-condensed .nav__brand img { width: 46px; }

/* Ticker is driven by GSAP so it can respond to scroll speed */
.m-ticker .ticker__track { animation: none; }
