/* =====================================================================
   live-brighter-rev3-02-page-styles.css — Live Brighter (rev3)
   Target: child theme stylesheet. NOT tokens.css.
   Depends on: tokens.css -> bnl-components.css -> this file.

   Scoped to .bnl-page--live-brighter throughout, except the #nights
   rotator rules which are scoped by section ID — same convention as the
   homepage #doors rotator and the roofline #perf coverflow.

   ⚠️ BRACE DISCIPLINE (HANDOFF-STANDARD §4 / BRI-324). This file contains
   nested @media blocks around the rotator. An unclosed @media kills every
   rule after it with NO console error, and often only on one breakpoint.
   It has now been found on three surfaces. Run the depth-walk, not just a
   count, after any edit:

       assert css.count('{') == css.count('}')
       d = 0
       for ch in css:
           d += (ch == '{') - (ch == '}')
           assert d >= 0, "stray closing brace"
       assert d == 0, "unclosed block"
===================================================================== */

/* ---------------------------------------------------------------
   HERO
--------------------------------------------------------------- */
.bnl-page--live-brighter .bnl-hero {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% 12%, color-mix(in srgb, var(--color-pink) 14%, transparent), transparent 62%),
    radial-gradient(80% 55% at 50% 88%, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 62%);
}
.bnl-page--live-brighter .bnl-hero__inner { max-width: 860px; margin: 0 auto; }
.bnl-page--live-brighter .bnl-hero .bnl-kicker { justify-content: center; }
.bnl-page--live-brighter .bnl-hero__push { color: var(--color-text); margin-bottom: 0; }
.bnl-page--live-brighter .bnl-hero .bnl-btn-row { justify-content: center; }
.bnl-page--live-brighter .bnl-microproof--center { justify-content: center; }

/* ---------------------------------------------------------------
   NIGHT CARD — the carousel card.
   Named .bnl-ncard, not .bnl-dcard: the homepage door card is text-only
   and audience-routing. This one is media-led and occasion-led. Sharing
   the class would couple two components that will diverge.
--------------------------------------------------------------- */
#nights .bnl-ncard { height: 100%; transform-style: preserve-3d; }
#nights .bnl-ncard__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #101214;
  border: 1px solid var(--color-border);
  transform-style: preserve-3d;
}
#nights .bnl-ncard__inner::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none; z-index: 2;
  background: linear-gradient(158deg, rgba(255,255,255,.085) 0%, rgba(255,255,255,.02) 34%, transparent 58%);
}
#nights .bnl-ncard__media { position: relative; flex: none; }
#nights .bnl-ncard__media .bnl-slot {
  border: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}
#nights .bnl-ncard__media::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #101214 92%);
}
#nights .bnl-ncard__body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; flex: 1;
  padding: 14px 16px 16px;
  transform-style: preserve-3d;
}
#nights .bnl-ncard__when {
  margin: 0 0 6px;
  font-family: var(--font-heading-proposed);
  font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
}
#nights .bnl-ncard__verb {
  margin: 0 0 7px;
  font-family: var(--font-heading-proposed);
  font-weight: 800;
  font-size: clamp(24px, 6.2vw, 32px);
  line-height: .94;
  letter-spacing: -.055em;
  -webkit-text-fill-color: transparent;
  background-clip: text; -webkit-background-clip: text;
  background-image: linear-gradient(96deg,
    #FFFFFF 0%, #FFFFFF 26%,
    color-mix(in srgb, currentColor 62%, #FFFFFF) 48%,
    currentColor 76%,
    color-mix(in srgb, currentColor 78%, #000000) 100%);
  background-size: 190% 100%;
  filter: drop-shadow(0 1px 10px color-mix(in srgb, currentColor 34%, transparent));
}
#nights .bnl-ncard__verb span:first-child { font-weight: 500; letter-spacing: -.03em; }
#nights .bnl-ncard__verb span:last-child  { font-weight: 800; }
#nights .bnl-ncard__rule {
  height: 2.5px; width: 64px; border-radius: 2px;
  margin: 0 0 10px;
  background: linear-gradient(90deg, currentColor 0%, currentColor 42%, transparent 100%);
  box-shadow: 0 0 12px -2px currentColor;
}
#nights .bnl-ncard__hook {
  margin: 0 0 14px;
  font-family: var(--font-heading-proposed);
  font-weight: 700;
  font-size: 13.2px; line-height: 1.26; letter-spacing: -.015em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
#nights .bnl-ncard__cta {
  margin-top: auto;
  align-self: stretch;
  min-height: 44px;
  padding: 11px var(--space-md);
  font-size: 12.5px;
}

/* Accent per occasion. currentColor drives verb, rule, when and icon. */
#nights .bnl-ncard--warm    { color: var(--color-primary); }
#nights .bnl-ncard--team    { color: var(--color-primary); }
#nights .bnl-ncard--fall    { color: var(--color-orange); }
#nights .bnl-ncard--holiday { color: var(--color-pink); }
#nights .bnl-ncard--patriot { color: var(--color-primary); }
#nights .bnl-ncard--party   { color: var(--color-pink); }

#nights .bnl-ncard--warm    .bnl-ncard__inner { background: linear-gradient(158deg,#0b1f22 0%,#0d1a1d 46%,#101010 100%); border-color: color-mix(in srgb, var(--color-primary) 44%, var(--color-border)); }
#nights .bnl-ncard--team    .bnl-ncard__inner { background: linear-gradient(158deg,#062a30 0%,#0d1a1d 46%,#101010 100%); border-color: color-mix(in srgb, var(--color-primary) 48%, var(--color-border)); }
#nights .bnl-ncard--fall    .bnl-ncard__inner { background: linear-gradient(158deg,#331904 0%,#1f1409 46%,#101010 100%); border-color: color-mix(in srgb, var(--color-orange) 48%, var(--color-border)); }
#nights .bnl-ncard--holiday .bnl-ncard__inner { background: linear-gradient(158deg,#2e0620 0%,#1d0d16 46%,#101010 100%); border-color: color-mix(in srgb, var(--color-pink) 48%, var(--color-border)); }
#nights .bnl-ncard--patriot .bnl-ncard__inner { background: linear-gradient(158deg,#062a30 0%,#1a0d28 42%,#2b0722 72%,#101010 100%); border-color: color-mix(in srgb, var(--color-pink) 40%, var(--color-primary)); }
#nights .bnl-ncard--party   .bnl-ncard__inner { background: linear-gradient(158deg,#2e0620 0%,#141018 46%,#101010 100%); border-color: color-mix(in srgb, var(--color-pink) 44%, var(--color-border)); }

/* ---------------------------------------------------------------
   ROTATOR — 3D coverflow. Mirrors the homepage #doors rotator.
--------------------------------------------------------------- */
#nights .bnl-rot { margin: var(--space-ml) 0 0; }
#nights .bnl-rot__stage {
  position: relative;
  height: 442px;
  perspective: 1100px;
  perspective-origin: 50% 46%;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
#nights .bnl-rot__stage.is-drag { cursor: grabbing; }
#nights .bnl-rot__stage:focus-visible { outline: var(--focus-ring); outline-offset: 6px; border-radius: var(--radius-md); }

#nights .bnl-rot__glow {
  position: absolute; left: 50%; top: 8px;
  width: min(760px, 94vw); height: 300px;
  margin-left: max(-380px, -47vw);
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--color-primary) 13%, transparent) 0%, transparent 68%);
}

#nights .bnl-rot__item {
  --w: 72vw;
  position: absolute; left: 50%; top: 0;
  width: var(--w); height: 420px;
  margin-left: calc(var(--w) / -2);
  transform-style: preserve-3d;
  transition: transform .66s cubic-bezier(.22,.61,.36,1), opacity .66s ease, filter .66s ease;
  will-change: transform;
}
#nights .bnl-rot__stage.is-drag .bnl-rot__item { transition: none; }
#nights .bnl-rot__item.is-tracking { transition: transform .12s linear; }

#nights .bnl-rot__item[data-pos="0"] {
  transform: translateX(0) translateZ(0)
             rotateY(calc(-9deg + var(--bnl-ry, 0deg)))
             rotateX(calc(3.5deg + var(--bnl-rx, 0deg)))
             scale(1);
  opacity: 1; filter: none; z-index: 5;
}
#nights .bnl-rot__item[data-pos="1"] {
  transform: translateX(70%) translateZ(-140px) rotateY(-46deg) rotateX(5deg) scale(.9);
  opacity: .6; filter: blur(.8px); z-index: 3;
}
#nights .bnl-rot__item[data-pos="-1"] {
  transform: translateX(-70%) translateZ(-140px) rotateY(32deg) rotateX(5deg) scale(.9);
  opacity: .6; filter: blur(.8px); z-index: 3;
}
#nights .bnl-rot__item[data-pos="2"],
#nights .bnl-rot__item[data-pos="-2"],
#nights .bnl-rot__item[data-pos="3"],
#nights .bnl-rot__item[data-pos="-3"] {
  transform: translateX(0) translateZ(-360px) rotateY(-9deg) rotateX(3.5deg) scale(.82);
  opacity: .14; filter: blur(2.5px); z-index: 1;
}

#nights .bnl-rot__item[data-pos="0"] .bnl-ncard__inner { pointer-events: auto; }
#nights .bnl-rot__item:not([data-pos="0"]) .bnl-ncard__inner { pointer-events: none; }

#nights .bnl-rot__item[data-pos="0"] .bnl-ncard__inner {
  box-shadow: -16px 28px 48px -20px rgba(0,0,0,.9), 0 0 48px -12px currentColor;
}

/* parallax lift on the front card only */
#nights .bnl-rot__item[data-pos="0"] .bnl-ncard__when { transform: translateZ(30px); }
#nights .bnl-rot__item[data-pos="0"] .bnl-ncard__verb { transform: translateZ(24px); }
#nights .bnl-rot__item[data-pos="0"] .bnl-ncard__rule { transform: translateZ(18px); }
#nights .bnl-rot__item[data-pos="0"] .bnl-ncard__hook { transform: translateZ(13px); }
#nights .bnl-rot__item[data-pos="0"] .bnl-ncard__cta  { transform: translateZ(20px); }

/* specular glare, fine pointers only — JS sets --bnl-mx / --bnl-my */
#nights .bnl-rot__item[data-pos="0"] .bnl-ncard__inner::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(240px circle at var(--bnl-mx, 50%) var(--bnl-my, 26%),
    rgba(255,255,255,.16), rgba(255,255,255,.05) 38%, transparent 64%);
  opacity: 0;
  transition: opacity .32s ease;
  mix-blend-mode: screen;
}
#nights .bnl-rot__item[data-pos="0"].is-tracking .bnl-ncard__inner::after { opacity: 1; }

#nights .bnl-rot__shadow {
  position: absolute; left: 50%; top: 420px;
  width: min(340px, 50vw); height: 24px;
  margin-left: max(-178px, -26vw);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.82) 0%, rgba(0,0,0,.34) 46%, transparent 74%);
  filter: blur(9px);
  transition: transform .66s cubic-bezier(.22,.61,.36,1), opacity .66s ease;
}
#nights .bnl-rot__stage.is-drag .bnl-rot__shadow { transition: none; }

/* ---------------------------------------------------------------
   ROTATOR NAV
--------------------------------------------------------------- */
#nights .bnl-rot__nav {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin-top: var(--space-md);
}
#nights .bnl-rot__arrows { display: flex; align-items: center; justify-content: center; gap: 10px; }
#nights .bnl-rot__arrow {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #EDEFEF; font-size: 16px; line-height: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#nights .bnl-rot__arrow--prev {
  border-color: color-mix(in srgb, var(--color-pink) 70%, transparent);
  color: #fff; box-shadow: var(--glow-ambient-pink);
}
#nights .bnl-rot__arrow--prev:hover {
  box-shadow: var(--hglow-pink-hi);
  background: color-mix(in srgb, var(--color-pink) 14%, transparent);
}
#nights .bnl-rot__arrow--next {
  border-color: color-mix(in srgb, var(--color-primary) 70%, transparent);
  color: #fff; box-shadow: var(--glow-ambient-teal);
}
#nights .bnl-rot__arrow--next:hover {
  box-shadow: var(--hglow-teal-hi);
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
}

#nights .bnl-rot__dots { display: flex; align-items: center; gap: 6px; }
#nights .bnl-rot__dot {
  width: 30px; height: 30px; padding: 0;
  border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
#nights .bnl-rot__dot::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.26);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
#nights .bnl-rot__dot[aria-selected="true"]::before {
  background: var(--color-primary);
  box-shadow: var(--hglow-teal);
  transform: scale(1.35);
}
#nights .bnl-rot__hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--color-text-muted);
  font-family: var(--font-heading-proposed);
  letter-spacing: .06em;
}
#nights .bnl-rot.is-manual .bnl-rot__hint { opacity: 0; transition: opacity .4s ease; }

/* ---------------------------------------------------------------
   MISC
--------------------------------------------------------------- */
.bnl-page--live-brighter .bnl-btn-row--center { justify-content: center; }
.bnl-page--live-brighter .bnl-ownership__fine { margin: 0; }

/* ---------------------------------------------------------------
   BREAKPOINTS — rotator sizing only
--------------------------------------------------------------- */
@media (min-width: 560px) {
  #nights .bnl-rot__item { --w: 62vw; height: 452px; }
  #nights .bnl-rot__stage { height: 474px; }
  #nights .bnl-rot__shadow { top: 452px; }
  #nights .bnl-ncard__body { padding: 18px 20px 20px; }
  #nights .bnl-ncard__when { font-size: 11px; }
  #nights .bnl-ncard__hook { font-size: 14px; }
}

@media (min-width: 900px) {
  #nights .bnl-rot__item { --w: 420px; height: 500px; margin-left: -210px; }
  #nights .bnl-rot__stage { height: 524px; }
  #nights .bnl-rot__shadow { top: 500px; }
  #nights .bnl-ncard__body { padding: 22px 24px 22px; }
  #nights .bnl-ncard__verb { font-size: 34px; }
  #nights .bnl-ncard__hook { font-size: 15px; margin-bottom: 16px; }
  #nights .bnl-ncard__cta { font-size: 13px; }
}

/* ---------------------------------------------------------------
   MOTION
   Idle float is gated ON, matching rev34 policy. The rotator's own
   autoplay is disabled in JS when reduce is set — CSS cannot do that.
--------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  #nights .bnl-rot__item[data-pos="0"] { animation: bnl-card-float 7s ease-in-out infinite; }
  #nights .bnl-rot__shadow { animation: bnl-card-shadow 9s ease-in-out infinite; }
  #nights .bnl-rot__item[data-pos="0"] .bnl-ncard__verb { animation: bnl-grad-drift 11s ease-in-out infinite; }
}

@keyframes bnl-card-float {
  0%, 100% { --bnl-ry: -3.5deg; --bnl-rx: 2.2deg; }
  50%      { --bnl-ry:  3.5deg; --bnl-rx: 4.8deg; }
}
@keyframes bnl-card-shadow {
  0%, 100% { transform: scaleX(.96) scaleY(.9); opacity: .78; }
  58%      { transform: scaleX(1.06) scaleY(1.1); opacity: .62; }
}
