/* ============================================================
 * BBE Design Upgrades
 * 1. Gold shimmer CTA button (.btn-gold)
 * 2. Exp-tile photo zoom on hover
 * 3. Stats credibility bar (.bbe-stat-bar)
 * ============================================================ */

/* ── 0-A. SITE INTRO SPLASH (index.html) ──────────────────
   Two-sphere collision: a blue sphere (diaspora) and a green
   sphere (Brazil) charge at each other from opposite sides,
   collide at center → three shockwave rings + gold explosion
   flash → BBE wordmark and tagline glow in on the aftermath.
   "Where cultures collide."
   ──────────────────────────────────────────────────────────── */

#bbe-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, #14171f 0%, #0A0C10 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  pointer-events: all;
  overflow: hidden;
}

/* Film grain overlay — adds premium A24/editorial tactility over the whole splash */
#bbe-splash-grain {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: bbe-grain-shimmer 0.18s steps(3) infinite, bbe-grain-fade 3.4s ease-out 1.10s both;
}
@keyframes bbe-grain-shimmer {
  0%   { background-position: 0 0; }
  33%  { background-position: -40px 25px; }
  66%  { background-position: 60px -20px; }
  100% { background-position: -15px 50px; }
}
@keyframes bbe-grain-fade {
  0%, 8%   { opacity: 0; }
  18%      { opacity: 0.38; }
  72%      { opacity: 0.22; }
  100%     { opacity: 0; }
}

/* ── Sphere base: 3D shading via radial-gradient highlight ── */
.bbe-splash-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  z-index: 3;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Left sphere: diaspora / Black America (deep navy-blue) */
#bbe-splash-world-l {
  background: radial-gradient(circle at 32% 28%,
    rgba(165, 205, 255, 0.92) 0%,
    #1a46c4 22%,
    #060f3c 54%,
    #000513 100%);
  box-shadow:
    0 0 0 2px rgba(90, 140, 255, 0.18),
    0 0 64px rgba(40, 100, 240, 0.55),
    0 16px 44px rgba(0, 0, 0, 0.65),
    inset 0 -5px 22px rgba(0, 0, 0, 0.42);
  animation: bbe-sphere-l 0.82s cubic-bezier(0.16, 0.68, 0.3, 1) both;
}

/* Right sphere: Brazil (deep forest green) */
#bbe-splash-world-r {
  background: radial-gradient(circle at 32% 28%,
    rgba(100, 235, 130, 0.9) 0%,
    #0c6d34 22%,
    #021f0a 54%,
    #000503 100%);
  box-shadow:
    0 0 0 2px rgba(40, 185, 80, 0.18),
    0 0 64px rgba(0, 165, 60, 0.5),
    0 16px 44px rgba(0, 0, 0, 0.65),
    inset 0 -5px 22px rgba(0, 0, 0, 0.42);
  animation: bbe-sphere-r 0.82s cubic-bezier(0.16, 0.68, 0.3, 1) both;
}

/* Scale 0.42→1.0 with subtle Y-arc = orbital trajectory, not flat charge */
@keyframes bbe-sphere-l {
  0%   { transform: translate3d(-60vw, 0, 0) scale(0.5);  opacity: 0; }
  10%  { opacity: 1; }
  76%  { transform: translate3d(0, 0, 0)     scale(1);    opacity: 1; }
  88%  { transform: translate3d(0, 0, 0)     scale(1.18); opacity: 1; }
  100% { transform: translate3d(0, 0, 0)     scale(0);    opacity: 0; }
}
@keyframes bbe-sphere-r {
  0%   { transform: translate3d(60vw, 0, 0) scale(0.5);  opacity: 0; }
  10%  { opacity: 1; }
  76%  { transform: translate3d(0, 0, 0)    scale(1);    opacity: 1; }
  88%  { transform: translate3d(0, 0, 0)    scale(1.18); opacity: 1; }
  100% { transform: translate3d(0, 0, 0)    scale(0);    opacity: 0; }
}

/* Yellow snap-flash — a single hard frame of brand yellow at impact moment.
   Modern punch beat, then immediately yields to the bloom flash. */
#bbe-splash-snap {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #FEDF00;
  opacity: 0;
  animation: bbe-snap 0.18s steps(1) 0.78s both;
  pointer-events: none;
}
@keyframes bbe-snap {
  0%   { opacity: 0; }
  10%  { opacity: 0.92; }
  60%  { opacity: 0.32; }
  100% { opacity: 0; }
}

/* Shockwave rings — three at staggered delays for explosive depth */
.bbe-splash-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 5px solid rgba(254, 223, 0, 1);
  opacity: 0;
  z-index: 5;
  will-change: transform, opacity;
}
.bbe-splash-ring:nth-child(3) {
  animation: bbe-ring 0.62s ease-out 0.79s forwards;
}
.bbe-splash-ring:nth-child(4) {
  animation: bbe-ring 1.0s ease-out 0.87s forwards;
  border-color: rgba(254, 223, 0, 0.52);
  border-width: 4px;
}
.bbe-splash-ring:nth-child(5) {
  animation: bbe-ring 1.45s ease-out 0.96s forwards;
  border-color: rgba(254, 223, 0, 0.28);
  border-width: 3px;
}
@keyframes bbe-ring {
  0%   { transform: scale(0.22); opacity: 1; }
  100% { transform: scale(22);   opacity: 0; }
}

/* Gold explosion flash — blooms from center, holds, contracts */
#bbe-splash-flash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255, 255, 200, 1)   0%,
      rgba(254, 223, 0, 1)    18%,
      rgba(210, 150, 0, 0.92) 44%,
      rgba(254, 223, 0, 0.55) 66%,
      transparent 82%),
    #FEDF00;
  z-index: 2;
  clip-path: circle(0% at 50% 50%);
  animation: bbe-explosion 0.90s cubic-bezier(0.48, 0, 0.14, 1) 0.80s both;
}
@keyframes bbe-explosion {
  0%   { clip-path: circle(0%   at 50% 50%); }
  26%  { clip-path: circle(160% at 50% 50%); }
  60%  { clip-path: circle(160% at 50% 50%); }
  100% { clip-path: circle(0%   at 50% 50%); }
}

/* BBE wordmark — letters stagger in with crisp spring physics (Stripe/Linear pattern).
   Each <span> animates independently with an 80ms cascade for crafted entrance. */
#bbe-splash-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(80px, 16vw, 148px);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  color: #FEDF00;
  position: relative;
  z-index: 6;
  display: inline-flex;
  gap: 0;
  line-height: 1;
}
#bbe-splash-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) scale(0.78);
  animation: bbe-letter-in 0.62s cubic-bezier(0.22, 1.45, 0.36, 1) both;
}
#bbe-splash-logo span:nth-child(1) { animation-delay: 1.30s; }
#bbe-splash-logo span:nth-child(2) { animation-delay: 1.38s; }
#bbe-splash-logo span:nth-child(3) { animation-delay: 1.46s; }
@keyframes bbe-letter-in {
  0%   { opacity: 0; transform: translateY(28px) scale(0.78);
         text-shadow: 0 0 0 rgba(254,223,0,0); }
  55%  { opacity: 1; transform: translateY(-4px) scale(1.10);
         text-shadow: 0 0 80px rgba(254,223,0,1), 0 0 200px rgba(254,223,0,0.6); }
  100% { opacity: 1; transform: translateY(0) scale(1);
         text-shadow: 0 0 55px rgba(254,223,0,0.45), 0 0 150px rgba(254,223,0,0.2); }
}

/* Tagline */
#bbe-splash-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(10px, 1.6vw, 13px);
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(240, 238, 232, 0.58);
  white-space: nowrap;
  position: relative;
  z-index: 6;
  opacity: 0;
  animation: bbe-tag-in 0.45s ease 1.76s both;
}
@keyframes bbe-tag-in {
  0%   { opacity: 0; transform: translateY(7px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Exit fade */
#bbe-splash.bbe-splash-out {
  opacity: 0;
  transition: opacity 0.42s ease;
  pointer-events: none;
}

/* ── 0-B. ITINERARY PAGE ENTRANCE SPLASH ──────────────────
   Two-sphere collision sequence ("where cultures collide"):
   1) Two gold spheres rush in from opposite diagonal corners
   2) They collide at center — shockwave ring expands outward
   3) Yellow circle blooms full-screen → holds → contracts
   4) BBE letters glow in one by one
   5) Page title fades up
   All timing in CSS; JS builds the DOM.
   ──────────────────────────────────────────────────────────── */

/* ① Sphere A: charges in from top-right corner */
@keyframes iti-sphere-a {
  0%   { transform: translate(44vw, -38vh) scale(0.55); opacity: 0; }
  8%   { opacity: 1; }
  82%  { transform: translate(0, 0) scale(1.0);         opacity: 1; }
  90%  { transform: translate(0, 0) scale(1.24);        opacity: 1; }
  100% { transform: translate(0, 0) scale(0);           opacity: 0; }
}

/* ② Sphere B: charges in from bottom-left corner */
@keyframes iti-sphere-b {
  0%   { transform: translate(-44vw, 38vh) scale(0.55); opacity: 0; }
  8%   { opacity: 1; }
  82%  { transform: translate(0, 0) scale(1.0);         opacity: 1; }
  90%  { transform: translate(0, 0) scale(1.24);        opacity: 1; }
  100% { transform: translate(0, 0) scale(0);           opacity: 0; }
}

/* ③ Shockwave ring expands from impact point */
@keyframes iti-shockwave {
  0%   { transform: scale(0.25); opacity: 0.95; }
  100% { transform: scale(18);   opacity: 0;    }
}

/* ④ Yellow bloom: covers screen, holds, contracts */
@keyframes iti-circle-bloom {
  0%   { clip-path: circle(0%   at 50% 50%); }
  32%  { clip-path: circle(160% at 50% 50%); }
  58%  { clip-path: circle(160% at 50% 50%); }
  100% { clip-path: circle(0%   at 50% 50%); }
}

/* ⑤ Letter glow burst */
@keyframes iti-letter-glow {
  0%   { opacity: 0;  transform: scale(0.5);
         text-shadow: 0 0 0 rgba(254,223,0,0); }
  45%  { opacity: 1;  transform: scale(1.12);
         text-shadow: 0 0 80px rgba(254,223,0,1), 0 0 160px rgba(254,223,0,0.7),
                      0 0 260px rgba(254,223,0,0.4); }
  100% { opacity: 1;  transform: scale(1);
         text-shadow: 0 0 40px rgba(254,223,0,0.38), 0 0 100px rgba(254,223,0,0.18); }
}

/* ⑥ Title slides up */
@keyframes iti-title-in {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Overlay container */
#iti-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0C10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  pointer-events: all;
  overflow: hidden;
}

/* Both spheres — anchored at viewport center, offset by keyframe transform */
.iti-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  z-index: 3;
  /* 3D shading: bright highlight at top-left, amber at edges */
  background:
    radial-gradient(circle at 33% 28%,
      rgba(255, 255, 190, 0.92) 0%,
      #FEDF00 28%,
      #c49000 60%,
      #7a5c00 100%);
  box-shadow:
    0 0 0 2px rgba(255, 245, 120, 0.2),
    0 0 48px rgba(254, 223, 0, 0.72),
    0 10px 32px rgba(0, 0, 0, 0.52),
    inset 0 -5px 18px rgba(0, 0, 0, 0.35);
}

#iti-ball-a { animation: iti-sphere-a 0.72s cubic-bezier(0.4, 0, 0.82, 0.5) both; }
#iti-ball-b { animation: iti-sphere-b 0.72s cubic-bezier(0.4, 0, 0.82, 0.5) both; }

/* Shockwave ring */
#iti-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  border: 6px solid rgba(254, 223, 0, 1);
  opacity: 0;
  z-index: 5;
  animation: iti-shockwave 0.58s ease-out 0.63s forwards;
}

/* Yellow circle overlay — blooms behind spheres */
#iti-overlay {
  position: absolute;
  inset: 0;
  background: #FEDF00;
  z-index: 2;
  clip-path: circle(0% at 50% 50%);
  animation: iti-circle-bloom 0.72s cubic-bezier(0.76, 0, 0.24, 1) 0.66s both;
}

/* BBE wordmark */
#iti-splash-bbe {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(72px, 14vw, 136px);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  color: #FEDF00;
  display: flex;
  position: relative;
  z-index: 4;
}

.iti-splash-letter {
  display: inline-block;
  opacity: 0;
  animation: iti-letter-glow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.iti-splash-letter:nth-child(1) { animation-delay: 1.26s; }
.iti-splash-letter:nth-child(2) { animation-delay: 1.46s; }
.iti-splash-letter:nth-child(3) { animation-delay: 1.66s; }

/* Page title */
#iti-splash-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 3vw, 30px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 238, 232, 0.60);
  opacity: 0;
  animation: iti-title-in 0.45s ease 1.98s both;
  position: relative;
  z-index: 4;
}

#iti-splash.iti-splash-out {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Reduced-motion: skip sphere/bloom animations; show BBE text immediately */
@media (prefers-reduced-motion: reduce) {
  .iti-sphere,
  #iti-ring  { display: none !important; }
  #iti-overlay { display: none !important; }
  .iti-splash-letter {
    opacity: 1 !important;
    animation: none !important;
  }
  #iti-splash-title {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ── 1. GOLD SHIMMER BUTTON ─────────────────────────────── */

@keyframes bbe-shimmer-sweep {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(250%) skewX(-15deg); }
}

.btn-gold {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a1c20 0%, #0A0C10 100%);
  border: 2px solid #d4af37;
  color: #d4af37;
  font-family: 'JetBrains Mono', 'Barlow Condensed', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 40px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1),
              color 0.4s cubic-bezier(0.4,0,0.2,1),
              border-color 0.4s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.4s cubic-bezier(0.4,0,0.2,1),
              transform 0.3s ease;
  border-radius: 4px;
  -webkit-font-smoothing: antialiased;
}

/* shimmer sweep */
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,175,55,0.28) 50%,
    transparent 100%
  );
  animation: bbe-shimmer-sweep 3s infinite;
  pointer-events: none;
}

/* ambient glow layer (behind button) */
.btn-gold::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #d4af37, #f4d03f, #d4af37);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.4s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d4af37 0%, #c9a332 100%);
  color: #0A0C10;
  border-color: #f4d03f;
  box-shadow:
    0 0 30px rgba(212,175,55,0.5),
    0 0 60px rgba(212,175,55,0.3),
    inset 0 0 20px rgba(244,208,63,0.15);
  transform: translateY(-2px);
}

.btn-gold:hover::after {
  opacity: 1;
}

.btn-gold:hover::before {
  animation-duration: 1.5s;
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow:
    0 0 20px rgba(212,175,55,0.4),
    0 0 40px rgba(212,175,55,0.2);
}

/* arrow slides right on hover */
.btn-gold .btn-gold-arrow {
  display: inline-flex;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}
.btn-gold:hover .btn-gold-arrow {
  transform: translateX(4px);
}
.btn-gold span {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .btn-gold::before { animation: none; }
  .btn-gold,
  .btn-gold:hover { transform: none; }
}


/* ── 2. EXP-TILE PHOTO ZOOM ON HOVER ────────────────────── */

/* The photo div needs its own transition so only the bg zooms,
   not the whole card. The card already handles translateY. */
.exp-tile-photo {
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1) !important;
  transform-origin: center center;
}

.exp-tile:hover .exp-tile-photo {
  transform: scale(1.06) !important;
}

/* Deepen the bottom scrim on hover so the title reads better */
.exp-tile-photo::after {
  transition: opacity 0.4s ease !important;
}

.exp-tile:hover .exp-tile-photo::after {
  opacity: 1.5 !important; /* browser clamps to 1, just signals intent */
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(10,12,16,0.65) 100%
  ) !important;
}

/* Smooth title color nudge on hover */
.exp-tile:hover h4 {
  color: var(--yellow) !important;
  transition: color 0.25s ease;
}


/* ── 3. STATS CREDIBILITY BAR ───────────────────────────── */

.bbe-stat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 36px 5%;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.bbe-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
  min-width: 140px;
}

.bbe-stat:last-child {
  border-right: none;
}

.bbe-stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bbe-stat-shimmer 4s linear infinite;
}

@keyframes bbe-stat-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

.bbe-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted, #7A8190);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 680px) {
  .bbe-stat-bar {
    gap: 0;
    padding: 24px 5%;
  }
  .bbe-stat {
    padding: 16px 24px;
    min-width: 110px;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .bbe-stat:nth-child(2n) {
    border-right: none;
  }
  .bbe-stat-number {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbe-stat-number { animation: none; }
}


/* ── 4. SCROLL REVEAL ────────────────────────────────────── */

.bbe-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  /* stagger: each item delays by index × 70ms */
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

.bbe-reveal.bbe-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Section titles get a slightly longer, more dramatic reveal */
.section-title.bbe-reveal,
.ex-section-title.bbe-reveal,
.ex-hero-inner.bbe-reveal {
  transition-duration: 0.7s;
  transform: translateY(16px);
}

/* Stat bar fades in as one block — no stagger needed */
.bbe-stat-bar.bbe-reveal {
  transition-delay: 0ms;
  transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  .bbe-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ── 5. GOLD BUTTON ROLLOUT — override existing CTA classes ─ */

/* Main yellow CTA buttons → gold shimmer */
.btn-cta-primary,
.ex-cta.primary,
.ex-cta.big.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1c20 0%, #0A0C10 100%) !important;
  border: 2px solid #d4af37 !important;
  color: #d4af37 !important;
  font-family: 'JetBrains Mono', 'Barlow Condensed', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1),
              color 0.4s cubic-bezier(0.4,0,0.2,1),
              border-color 0.4s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.4s cubic-bezier(0.4,0,0.2,1),
              transform 0.3s ease !important;
}

.btn-cta-primary::before,
.ex-cta.primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,175,55,0.28) 50%,
    transparent 100%
  );
  animation: bbe-shimmer-sweep 3s infinite;
  pointer-events: none;
  z-index: 0;
}

.btn-cta-primary:hover,
.ex-cta.primary:hover {
  background: linear-gradient(135deg, #d4af37 0%, #c9a332 100%) !important;
  color: #0A0C10 !important;
  border-color: #f4d03f !important;
  box-shadow:
    0 0 28px rgba(212,175,55,0.45),
    0 0 56px rgba(212,175,55,0.25) !important;
  transform: translateY(-2px) !important;
}

/* Ensure text stays above shimmer pseudo-element */
.btn-cta-primary > *,
.ex-cta.primary > * {
  position: relative;
  z-index: 1;
}


/* ── 6. DARK BENTO GRID ─────────────────────────────────── */

.bbe-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px 210px 260px 260px 280px;
  grid-template-areas:
    "hero1 hero1 c1"
    "hero1 hero1 c2"
    "c3    c4    c5"
    "c6    hero2 hero2"
    "c7    hero2 hero2"
    "c8    wide  wide";
  gap: 10px;
}

/* ── Card base ── */
.bbe-bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  /* subtle border that glows on hover */
  border: 1.5px solid rgba(255,255,255,0.06);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.bbe-bento-card:hover {
  border-color: rgba(212,175,55,0.55);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.2),
    0 20px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(212,175,55,0.12);
  transform: translateY(-3px);
  z-index: 2;
}

/* ── Photo (background image layer) ── */
.bbe-bento-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bbe-bento-card:hover .bbe-bento-photo {
  transform: scale(1.07);
}

/* ── Overlay gradient ── */
.bbe-bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,12,16,0.97) 0%,
    rgba(10,12,16,0.65) 38%,
    rgba(10,12,16,0.2)  65%,
    transparent         100%
  );
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.bbe-bento-card:hover::after {
  opacity: 0.85;
}

/* ── Content (sits above overlay) ── */
.bbe-bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 22px 20px;
  z-index: 1;
}

.bbe-bento-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Was #3D9970 (forest-green) — too dark against mid-tone photos.
     Switched to a lighter mint that reads on both bright and dark photo areas. */
  color: rgba(118, 230, 174, 0.95);
  text-shadow: 0 1px 5px rgba(0,0,0,0.85), 0 0 12px rgba(0,0,0,0.5);
  margin-bottom: 6px;
  display: block;
}

.bbe-bento-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #F2EFE6;
  margin-bottom: 10px;
}

.bbe-bento-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

@keyframes bbe-price-cycle {
  0%          { background-position: 200% 50%; opacity: 1; }
  75%         { background-position: -100% 50%; opacity: 1; }
  88%         { opacity: 0.45; }
  100%        { background-position: -100% 50%; opacity: 1; }
}

.bbe-bento-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 60%, #d4af37 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bbe-price-cycle 5s ease-in-out infinite;
}

.bbe-bento-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  line-height: 1.2;
}

.bbe-bento-days {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Hero cards — larger title, show tagline ── */
.bbe-bento-card.b-hero .bbe-bento-title {
  font-size: clamp(28px, 3.2vw, 42px);
  margin-bottom: 8px;
}

.bbe-bento-card.b-hero .bbe-bento-tagline {
  font-size: 13.5px;
  color: rgba(242,239,230,0.72);
  line-height: 1.45;
  margin-bottom: 14px;
  max-width: 380px;
  display: block;
}

/* Standard cards hide tagline to keep things tight */
.bbe-bento-card:not(.b-hero) .bbe-bento-tagline {
  display: none;
}

/* Wide card (full-width closer) */
.bbe-bento-card.b-wide .bbe-bento-title {
  font-size: clamp(26px, 3vw, 38px);
}

/* Ken Burns: pan top-to-bottom over 26s, starting ~20% below the top of the image.
   CSS animations override inline background-position per the cascade spec. */
@keyframes bbe-wide-pan-down {
  0%   { background-position: center 20%; }
  100% { background-position: center 65%; }
}

.bbe-bento-card.b-wide .bbe-bento-photo {
  animation: bbe-wide-pan-down 26s ease-in-out infinite alternate;
}

/* Pause the pan while the card is hovered (hover already scales it) */
.bbe-bento-card.b-wide:hover .bbe-bento-photo {
  animation-play-state: paused;
}

/* ── Arrow badge — top right corner ── */
.bbe-bento-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10,12,16,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.bbe-bento-card:hover .bbe-bento-arrow {
  opacity: 1;
  transform: scale(1);
  background: rgba(212,175,55,0.9);
  border-color: transparent;
}

.bbe-bento-arrow svg {
  color: #0A0C10;
}

/* ── Named grid areas ── */
.b-hero1 { grid-area: hero1; }
.b-c1    { grid-area: c1; }
.b-c2    { grid-area: c2; }
.b-c3    { grid-area: c3; }
.b-c4    { grid-area: c4; }
.b-c5    { grid-area: c5; }
.b-c6    { grid-area: c6; }
.b-hero2 { grid-area: hero2; }
.b-c7    { grid-area: c7; }
.b-wide  { grid-area: wide; }
.b-c8    { grid-area: c8; }

/* ── Mobile: single column stack ── */
@media (max-width: 900px) {
  .bbe-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
  }
  .b-hero1, .b-hero2, .b-wide,
  .b-c1, .b-c2, .b-c3, .b-c4,
  .b-c5, .b-c6, .b-c7, .b-c8 {
    grid-area: auto;
    height: 240px;
  }
  .b-hero1, .b-hero2 {
    grid-column: span 2;
    height: 300px;
  }
  .b-wide {
    grid-column: span 2;
    height: 220px;
  }
  .bbe-bento-card.b-hero .bbe-bento-title {
    font-size: 26px;
  }
  .bbe-bento-card:not(.b-hero) .bbe-bento-tagline {
    display: none;
  }
}

@media (max-width: 540px) {
  .bbe-bento {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .b-hero1, .b-hero2 {
    grid-column: span 1;
    height: 420px;
  }
  .b-c1, .b-c2, .b-c3, .b-c4,
  .b-c5, .b-c6, .b-c7, .b-c8 {
    height: 300px;
  }
  .b-wide {
    grid-column: span 1;
    height: 300px;
  }
  /* MOBILE HANDOFF POLISH (UX audit step 4) — bigger hero titles on phones
     where the photo crops tighter and the title needs to anchor the card. */
  .bbe-bento-card.b-hero .bbe-bento-title {
    font-size: clamp(28px, 7.5vw, 34px);
  }
  /* Tactile press feedback — mobile users have no hover so they get no signal
     that a tap registered. Active state gives instant visual confirmation. */
  .bbe-bento-card:active {
    transform: scale(0.985);
    border-color: rgba(212,175,55,0.6);
    box-shadow: 0 0 0 1px rgba(212,175,55,0.3), 0 10px 30px rgba(0,0,0,0.55);
    transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  }
  .bbe-bento-card:active::after {
    opacity: 0.85;
  }
  /* Defer offscreen card rendering — cuts initial paint cost.
     Browser only paints these cards when they scroll into viewport. */
  .b-c3, .b-c4, .b-c5, .b-c6, .b-c7, .b-wide {
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
  }
  .bbe-bento-card.b-hero .bbe-bento-title {
    font-size: 30px;
    line-height: 1;
  }
  .bbe-bento-card:not(.b-hero) .bbe-bento-tagline {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbe-bento-photo { transition: none; }
  .bbe-bento-price { animation: none; }
}


/* ── 7. TEAM PAGE COLOR SOFTENING ─────────────────────────── */

/* Keep the green/yellow palette identity but ease eye strain.
   Full #FEDF00 on every label/strong/em in theme-green sections
   reads as aggressive at scale. Pulling opacity to ~80% preserves
   brand pop while giving the eye somewhere to rest. */

section.theme-green em,
section.theme-green .section-label,
section.theme-green .sec-eyebrow,
section.theme-green .eyebrow,
section.theme-green .featured-pages-eyebrow {
  color: rgba(254, 223, 0, 0.80) !important;
}

section.theme-green strong {
  color: rgba(254, 223, 0, 0.85) !important;
}

/* Member tagline — italic byline right under the big name */
.member-tagline {
  color: rgba(254, 223, 0, 0.74) !important;
}

/* Experience Concierge corner decorative accents */
.em-corner-eyebrow {
  color: rgba(254, 223, 0, 0.80) !important;
}
.em-corner-title em {
  color: rgba(254, 223, 0, 0.88) !important;
}
.em-corner-role-card h3 {
  color: rgba(254, 223, 0, 0.82) !important;
}
.em-corner-role-card {
  border-left-color: rgba(254, 223, 0, 0.55) !important;
}

/* theme-yellow: gradient so it's not a flat neon slab */
section.theme-yellow {
  background: linear-gradient(165deg, #FEDF00 0%, #F6D520 65%, #EECB18 100%) !important;
}

/* FAQ yellow gap fix: trim bottom padding so yellow doesn't create a slab before dark sections */
section.theme-yellow.faq-section {
  padding-bottom: 40px !important;
}

/* CTA strip: add warmth + depth to the flat two-tone green */
.cta-strip {
  background: linear-gradient(155deg, #1C4535 0%, #2B6347 50%, #214D3B 100%) !important;
  position: relative;
}
.cta-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% -10%,
    rgba(254, 223, 0, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Restore theme-yellow member-tagline override (dark green on yellow bg) */
section.theme-yellow .member-tagline {
  color: #1E4D38 !important;
}


/* ── 8. FULL-SCREEN EDITORIAL SHOWCASE ────────────────────── */

.bbe-showcase {
  position: relative;
  width: 100%;
  height: 68vh;
  min-height: 448px;
  overflow: hidden;
  background: #0A0C10;
}

.bbe-showcase-track {
  position: absolute;
  inset: 0;
}

.bbe-showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Fade out smoothly when leaving; incoming slide uses TV-on animation */
  transition: opacity 0.4s ease;
  will-change: opacity, clip-path, filter;
  z-index: 0;
}

.bbe-showcase-slide.sc-active {
  opacity: 1;
  z-index: 1;
  /* Linear timing is key — a CRT deflects at constant speed, no easing */
  animation: bbe-tv-on 0.42s linear forwards;
}

/* CRT-on keyframe (softened 2026-05-28: reduced brightness peak 3.5→1.6,
   started saturate at 0.3 instead of 0, shortened white-line phase from
   14%→8%. Removes the harsh flash that read as a glitch on slower devices
   while keeping the CRT-bloom cinematic feel.) */
@keyframes bbe-tv-on {
  /* Phase 1 (0–34ms): Bright phosphor line at center, softer peak. */
  0%    { opacity: 1; clip-path: inset(49.5% 0 49.5% 0); filter: brightness(1.6) saturate(0.3); }
  8%    { opacity: 1; clip-path: inset(48%   0 48%   0); filter: brightness(1.45) saturate(0.45); }
  /* Phase 2 (34–336ms): Uniform expansion, linear rate. */
  80%   { opacity: 1; clip-path: inset(0%    0 0%    0); filter: brightness(1.10) saturate(0.85); }
  /* Phase 3 (336–420ms): Phosphors warm to full color. */
  100%  { opacity: 1; clip-path: inset(0%    0 0%    0); filter: brightness(1)    saturate(1); }
}

/* Reduced-motion fallback: skip CRT effect entirely for accessibility +
   low-end devices. Slides cross-fade only. */
@media (prefers-reduced-motion: reduce) {
  .bbe-showcase-slide.sc-active {
    animation: none;
  }
  .bbe-showcase-slide {
    transition: opacity 0.25s ease;
  }
}

/* Photo layer. ALL motion lives in ONE place: @keyframes bbe-sc-kb (search this
   file). That animation ENDS at scale(1), so each slide's resting frame is exactly
   its inline background-position from index.html. transform-origin is top so the
   subject's head stays anchored while the zoom settles. To reframe a slide, edit
   its background-position in index.html, NOT a transform/transition here. */
.bbe-sc-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center top;
  will-change: transform;
  /* Retro film grade: warm Kodak tones, subtle sepia, slightly lifted blacks */
  filter: sepia(0.22) contrast(1.08) saturate(0.82) brightness(1.04);
}

/* active-slide motion is the bbe-sc-kb settle-in zoom (defined near end of file) */

/* Video inside a photo slot: fill + cover, same as background-image approach */
.bbe-sc-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cinematic vignette: heavier on the left (where text lives) */
.bbe-showcase-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(10,12,16,0.88) 0%,
      rgba(10,12,16,0.48) 50%,
      rgba(10,12,16,0.10) 100%),
    linear-gradient(to top,
      rgba(10,12,16,0.75) 0%,
      transparent 42%);
  z-index: 1;
}

/* Content block: fade+slide in when slide activates */
.bbe-showcase-content {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(calc(-50% + 18px));
  z-index: 2;
  max-width: 600px;
  opacity: 0;
  transition: opacity 0.75s ease 0.35s,
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}

.bbe-showcase-slide.sc-active .bbe-showcase-content {
  opacity: 1;
  transform: translateY(-50%);
}

.bbe-sc-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.90);
  margin-bottom: 14px;
}

.bbe-sc-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(58px, 7.8vw, 112px);
  line-height: 0.91;
  letter-spacing: 0.01em;
  color: #F2EFE6;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.bbe-sc-tagline {
  font-size: 16.5px;
  color: rgba(242, 239, 230, 0.74);
  line-height: 1.55;
  max-width: 400px;
  margin-bottom: 28px;
}

.bbe-sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  color: #d4af37;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 4px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}

.bbe-sc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.18), transparent);
  transform: translateX(-100%) skewX(-15deg);
  animation: bbe-shimmer-sweep 2.8s 1s infinite;
}

.bbe-sc-btn:hover {
  background: #d4af37;
  color: #0A0C10;
  border-color: #d4af37;
  transform: translateY(-2px);
}

.bbe-sc-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.bbe-sc-btn:hover svg {
  transform: translateX(4px);
}

/* Slide counter top-right */
.bbe-sc-counter {
  position: absolute;
  top: 24px;
  right: 5%;
  z-index: 10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bbe-sc-counter .sc-cur {
  font-size: 14px;
  color: rgba(255,255,255,0.80);
}

/* Navigation arrows */
.bbe-sc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10,12,16,0.52);
  border: 1px solid rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.bbe-sc-arrow:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-50%) scale(1.08);
}

.bbe-sc-prev { left: 22px; }
.bbe-sc-next { right: 22px; }

/* Dot navigation */
.bbe-sc-dots {
  position: absolute;
  bottom: 32px;
  left: 6%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bbe-sc-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bbe-sc-dot.sc-dot-active {
  background: #d4af37;
  width: 48px;
}

/* Progress bar at very bottom */
.bbe-sc-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 10;
}

.bbe-sc-bar {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f4d03f);
  width: 0%;
}

@keyframes bbe-sc-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

.bbe-sc-bar.sc-running {
  animation: bbe-sc-fill 6s linear forwards;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .bbe-showcase {
    height: 72vh;
    min-height: 460px;
  }
  .bbe-showcase-content {
    left: 5%;
    max-width: calc(100% - 10%);
  }
  .bbe-sc-headline {
    font-size: clamp(44px, 12vw, 68px);
  }
  .bbe-sc-tagline {
    font-size: 14.5px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }
  .bbe-sc-arrow { width: 40px; height: 40px; }
  .bbe-sc-prev { left: 10px; }
  .bbe-sc-next { right: 10px; }
}

@media (max-width: 480px) {
  .bbe-showcase { height: 65vh; min-height: 400px; }
  .bbe-sc-btn { padding: 12px 20px; font-size: 10.5px; }
  .bbe-sc-label { font-size: 9.5px; letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  .bbe-showcase-slide { transition: opacity 0.2s; }
  .bbe-sc-photo { transition: none !important; transform: scale(1) !important; }
  .bbe-showcase-content { transition: opacity 0.2s !important; transform: translateY(-50%) !important; }
  .bbe-sc-btn::before { animation: none; }
  .bbe-sc-bar.sc-running { animation: none; width: 100%; }
}

/* ── 8b. SHOWCASE — RETRO CAMERA TREATMENT (all slides) ────────
   Film grade on photos, amber light leak, elliptical edge-burn,
   and a flash that fires as the transition between every slide.
   ─────────────────────────────────────────────────────────────── */

/* Amber light leak from top-right corner on every slide */
.bbe-showcase-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 62% 52% at 94% 4%,
    rgba(255, 148, 28, 0.28)  0%,
    rgba(255,  94, 14, 0.10) 50%,
    transparent               72%
  );
}

/* Elliptical edge-burn vignette — overrides the default left-biased gradient on all slides */
.bbe-showcase-slide::after {
  background:
    radial-gradient(ellipse 90% 84% at 50% 52%,
      transparent           24%,
      rgba(5, 2, 0, 0.68)   76%,
      rgba(5, 2, 0, 0.90)  100%),
    linear-gradient(to right,
      rgba(10, 8, 4, 0.82)   0%,
      rgba(10, 8, 4, 0.42)  50%,
      rgba(10, 8, 4, 0.06) 100%);
  /* z-index: 1 inherited from the base rule above */
}

/* Flash overlay on the showcase container — fires between every slide transition */
@keyframes bbe-retro-flash {
  0%   { opacity: 0;    }
  6%   { opacity: 1;    }   /* shutter: first pop */
  16%  { opacity: 0.04; }   /* shutter closes (slide swaps here, ~105ms) */
  27%  { opacity: 0.95; }   /* second pop reveals the new slide */
  46%  { opacity: 0.38; }
  100% { opacity: 0;    }
}

.bbe-sc-flash {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: radial-gradient(
    ellipse 115% 100% at 50% 48%,
    rgba(255, 255, 255, 1)    0%,
    rgba(255, 251, 224, 0.96) 42%,
    rgba(255, 255, 255, 0.90) 100%
  );
  opacity: 0;
}

.bbe-sc-flash.sc-flash-active {
  animation: bbe-retro-flash 0.66s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .bbe-sc-flash.sc-flash-active { animation: none; }
}


/* ── 9. TRIP PLANNER ───────────────────────────────────────── */

/* Floating trigger */
.bbe-tp-trigger {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #1a1c20 0%, #0A0C10 100%);
  border: 1.5px solid #d4af37;
  color: #d4af37;
  font-family: 'JetBrains Mono', 'Barlow Condensed', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.bbe-tp-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), transparent);
  transform: translateX(-100%) skewX(-15deg);
  animation: bbe-shimmer-sweep 3s infinite;
}

.bbe-tp-trigger:hover {
  background: linear-gradient(135deg, #d4af37 0%, #c9a332 100%);
  color: #0A0C10;
  border-color: #f4d03f;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(212,175,55,0.28);
}

@keyframes bbe-tp-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 0 rgba(212,175,55,0.5); }
  50%       { box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 12px rgba(212,175,55,0); }
}

.bbe-tp-trigger.bbe-tp-pulse {
  animation: bbe-tp-pulse 2.2s ease 2s 2;
}

/* Overlay */
.bbe-tp-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bbe-tp-overlay.bbe-tp-open {
  opacity: 1;
  visibility: visible;
}

/* Modal */
.bbe-tp-modal {
  background: linear-gradient(180deg, #14171E 0%, #0F1218 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.75),
              0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
}

.bbe-tp-overlay.bbe-tp-open .bbe-tp-modal {
  transform: translateY(0) scale(1);
}

/* Close */
.bbe-tp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.bbe-tp-close:hover {
  background: rgba(255,255,255,0.11);
  color: #fff;
}

/* Progress pips */
.bbe-tp-progress {
  display: flex;
  gap: 5px;
  padding: 18px 56px 0 22px; /* right gap keeps pips clear of the ✕ button */
}

.bbe-tp-pip {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.09);
  transition: background 0.3s;
}

.bbe-tp-pip.active { background: rgba(212,175,55,0.50); }
.bbe-tp-pip.done   { background: #d4af37; }

/* Step panels */
.bbe-tp-step-content {
  padding: 22px 22px 26px;
  display: none;
}

.bbe-tp-step-content.bbe-tp-step-active {
  display: block;
}

.bbe-tp-step-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.65);
  margin-bottom: 6px;
}

.bbe-tp-question {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.0;
  color: #F2EFE6;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

/* Choice cards grid */
.bbe-tp-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.bbe-tp-card {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 15px 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.bbe-tp-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(212,175,55,0.30);
  transform: translateY(-2px);
}

.bbe-tp-card.bbe-tp-selected {
  background: rgba(212,175,55,0.10);
  border-color: rgba(212,175,55,0.65);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.12);
}

.bbe-tp-card-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 3px;
  display: block;
}

.bbe-tp-card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #F2EFE6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  line-height: 1.1;
}

.bbe-tp-card-desc {
  font-size: 11.5px;
  color: rgba(197,202,212,0.60);
  line-height: 1.3;
  display: block;
}

/* Single-column layout for timing step */
.bbe-tp-choices.bbe-tp-3col {
  grid-template-columns: 1fr;
  gap: 7px;
}

.bbe-tp-choices.bbe-tp-3col .bbe-tp-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
}

.bbe-tp-choices.bbe-tp-3col .bbe-tp-card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Result screen */
.bbe-tp-result {
  display: none;
}

.bbe-tp-result.bbe-tp-step-active {
  display: block;
}

.bbe-tp-result-photo {
  width: 100%;
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.bbe-tp-result-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10,12,16,0.92) 0%,
    rgba(10,12,16,0.30) 55%,
    transparent 100%);
}

.bbe-tp-result-label-wrap {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.bbe-tp-match-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 4px;
}

.bbe-tp-match-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.0;
  color: #F2EFE6;
  text-transform: uppercase;
}

.bbe-tp-result-body {
  padding: 18px 20px 4px;
}

.bbe-tp-result-desc {
  font-size: 13.5px;
  color: rgba(197,202,212,0.82);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bbe-tp-result-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.bbe-tp-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bbe-tp-meta-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bbe-tp-meta-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(197,202,212,0.45);
}

.bbe-tp-result-actions {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
}

.bbe-tp-btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #d4af37 0%, #c9a332 100%);
  color: #0A0C10;
  border: none;
  border-radius: 7px;
  padding: 13px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter 0.2s, transform 0.15s;
}

.bbe-tp-btn-primary:hover {
  filter: brightness(1.10);
  transform: translateY(-1px);
}

.bbe-tp-btn-secondary {
  background: transparent;
  color: rgba(197,202,212,0.65);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 7px;
  padding: 13px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.bbe-tp-btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(197,202,212,0.90);
}

.bbe-tp-restart {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: rgba(212,175,55,0.45);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  padding: 8px 20px 18px;
  transition: color 0.2s;
}

.bbe-tp-restart:hover { color: rgba(212,175,55,0.80); }

@media (max-width: 540px) {
  .bbe-tp-trigger .bbe-tp-label { display: none; }
  .bbe-tp-trigger {
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbe-tp-overlay,
  .bbe-tp-modal,
  .bbe-tp-card { transition-duration: 0.1s; }
  .bbe-tp-trigger::before { animation: none; }
  .bbe-tp-trigger.bbe-tp-pulse { animation: none; }
}


/* ── 10. WHY-CARD GRID (global — reusable across experience pages) ─── */
/* Originally inline-only on rasta-beach.html; promoted here so carnival,
   casa-black, and future pages can use the same pattern without inline CSS. */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green-bright);
  border-radius: 6px;
  padding: 32px 28px;
}
.why-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.why-card p {
  font-size: 14px;
  color: var(--light);
  line-height: 1.65;
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .why-card { padding: 22px 20px; }
  .why-card h3 { font-size: 19px; }
}


/* ── 11. LAZY BUTTON UPGRADES ────────────────────────────── */
/* Elevate plain-text .cta-card-arrow elements to pill CTAs so they read
   as buttons, not trailing text. Applied globally via CSS — no HTML edits needed.
   The card hover already lifts the card; this pill joins that motion. */

.cta-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 10px;
  border: 1.5px solid rgba(61, 153, 112, 0.28);
  border-radius: 30px;
  background: rgba(61, 153, 112, 0.04);
  font-size: 12px !important;
  transition: border-color 0.22s, background 0.22s, gap 0.2s;
  align-self: flex-start;
  margin-top: auto;
}
.cta-card:hover .cta-card-arrow {
  border-color: rgba(61, 153, 112, 0.65);
  background: rgba(61, 153, 112, 0.09);
  gap: 11px;
}
.cta-card.primary .cta-card-arrow {
  border-color: rgba(254, 223, 0, 0.32);
  background: rgba(254, 223, 0, 0.04);
}
.cta-card.primary:hover .cta-card-arrow {
  border-color: rgba(254, 223, 0, 0.70);
  background: rgba(254, 223, 0, 0.08);
}


/* ── 12. ITINERARY CARD GRID ─────────────────────────────── */
/* Photo-first cards for itineraries.html. 3-col → 2-col → 1-col responsive.
   Filter bar hides/shows cards by data-season attribute via inline JS. */

/* ── Section header: 2-col split ── */
.itin-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;        /* vertically center the tall heading vs right text */
  max-width: 1200px;
  margin: 0 auto 56px;
}
.itin-head-right { padding-top: 0; }    /* let grid centering handle vertical offset */

/* Lock filter + grid to the same max-width so nothing sticks out wider than the header */
.itin-filter {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.itin-head-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.itin-head-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.itin-head-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: #FEDF00;
}
.itin-head-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200,205,216,0.55);
}

@media (max-width: 820px) {
  .itin-section-head {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }
}

/* ── Filter bar ── */
.itin-filter {
  display: flex;
  gap: 6px;
  margin: 0 0 44px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: center;
}
.itin-filter-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-right: 6px;
  flex-shrink: 0;
}
.itin-filter-btn {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(200,205,216,0.75);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.itin-filter-btn .itin-filter-count {
  font-size: 10px;
  opacity: 0.6;
  margin-left: 4px;
}
.itin-filter-btn.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}
.itin-filter-btn.active .itin-filter-count { opacity: 0.55; }
.itin-filter-btn:not(.active):hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}

/* ── Card grid ── */
.itin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.itin-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  cursor: pointer;
}
.itin-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 18px 52px rgba(0,0,0,0.5);
}
/* Carnival cards: subtle gold accent at rest, glow on hover */
.itin-card[data-season="jan-mar"] {
  border-color: rgba(254,223,0,0.18);
}
.itin-card[data-season="jan-mar"]:hover {
  border-color: rgba(254,223,0,0.55);
  box-shadow: 0 18px 52px rgba(0,0,0,0.5), 0 0 32px rgba(254,223,0,0.12);
}

/* ── Photo area ── */
.itin-photo {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
/* Subtle zoom-in on hover for depth (overridden in itin-grid by Ken Burns below) */
.itin-card:hover .itin-photo {
  transform: scale(1.03);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── TETRIS RISE: itin-grid cards rise from below and snap into place ── */
/* Pure translateY — no scale (scale on wide cards creates false horizontal motion) */
.itin-grid .itin-card.bbe-reveal {
  transform: translateY(56px);
  opacity: 0;
  transition:
    opacity 0.32s ease,
    transform 0.52s cubic-bezier(0.22, 1.6, 0.36, 1); /* hard spring: overshoots + snaps */
  transition-delay: calc(var(--reveal-i, 0) * 100ms);
}
.itin-grid .itin-card.bbe-revealed {
  transform: translateY(0);
  opacity: 1;
}

/* ── KEN BURNS: itin-photos slowly zoom while the card is in view ── */
@keyframes bbe-ken-burns {
  from { transform: scale(1.00); }
  to   { transform: scale(1.10); }
}
/* Disable the separate hover zoom for itin-grid photos; Ken Burns handles it */
.itin-grid .itin-card:hover .itin-photo {
  transform: none;
  transition: none;
}
/* Start Ken Burns once the card has revealed */
.itin-grid .itin-card.bbe-revealed .itin-photo {
  animation: bbe-ken-burns 13s ease-in-out infinite alternate;
  will-change: transform;
}

/* Reduced motion: skip both effects */
@media (prefers-reduced-motion: reduce) {
  .itin-grid .itin-card.bbe-reveal,
  .bbe-bento .bbe-bento-card.bbe-reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }
  .itin-grid .itin-card.bbe-revealed .itin-photo,
  .bbe-bento .bbe-bento-card.bbe-revealed .bbe-bento-photo {
    animation: none;
  }
}

/* ── TETRIS RISE + KEN BURNS: bento grid (index.html) ──────────────── */
.bbe-bento .bbe-bento-card.bbe-reveal {
  transform: translateY(56px);
  opacity: 0;
  transition:
    opacity 0.32s ease,
    transform 0.52s cubic-bezier(0.22, 1.6, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 100ms);
}
.bbe-bento .bbe-bento-card.bbe-revealed {
  transform: translateY(0);
  opacity: 1;
}
/* Ken Burns on bento photo backgrounds */
.bbe-bento .bbe-bento-card.bbe-revealed .bbe-bento-photo {
  animation: bbe-ken-burns 14s ease-in-out infinite alternate;
  will-change: transform;
}
/* Disable separate hover zoom so it doesn't conflict */
.bbe-bento .bbe-bento-card:hover .bbe-bento-photo {
  transform: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .bbe-bento .bbe-bento-card.bbe-reveal { transform: none; opacity: 1; transition: none; }
  .bbe-bento .bbe-bento-card.bbe-revealed .bbe-bento-photo { animation: none; }
}

.itin-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(0,0,0,0.35) 70%,
    rgba(0,0,0,0.72) 100%
  );
  pointer-events: none;
}

/* ── Tier badge ── */
.itin-tier-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.itin-tier-badge.tier-taste {
  background: rgba(45, 106, 79, 0.72);
  color: #a0ffcf;
  border: 1px solid rgba(61,153,112,0.45);
}
.itin-tier-badge.tier-pordentro {
  background: rgba(15, 18, 24, 0.72);
  color: rgba(240,238,232,0.92);
  border: 1px solid rgba(255,255,255,0.2);
}
.itin-tier-badge.tier-fullaccess {
  background: rgba(120, 90, 0, 0.72);
  color: #FEDF00;
  border: 1px solid rgba(254,223,0,0.4);
}

/* ── Card body ── */
.itin-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Title in brand condensed font for visual punch */
.itin-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.0;
  margin: 0 0 10px;
}

.itin-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.itin-meta .itin-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--yellow);
}
.itin-meta .itin-days {
  opacity: 0.7;
}
.itin-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.45;
  flex-shrink: 0;
}

.itin-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
}
.itin-highlights li {
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 0 6px 16px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.itin-highlights li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.itin-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-light, #34D399);
  opacity: 0.75;
}

.itin-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.itin-btn-details {
  display: block;
  text-align: center;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--light);
  transition: border-color 0.18s, color 0.18s;
  font-family: inherit;
}
.itin-btn-details:hover {
  border-color: rgba(255,255,255,0.38);
  color: #fff;
}
.itin-btn-book {
  display: block;
  text-align: center;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: var(--yellow);
  color: #000 !important; /* theme-green forces all non-.btn links yellow; override */
  transition: opacity 0.18s;
  font-family: inherit;
}
.itin-btn-book:hover {
  opacity: 0.85;
}

/* Responsive grid breakpoints */
@media (max-width: 1080px) {
  .itin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .itin-grid { grid-template-columns: 1fr; gap: 16px; }
  .itin-filter { flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
  .itin-filter-label { display: none; }
  .itin-filter-btn { padding: 7px 14px; font-size: 12px; }
  .itin-photo { height: 220px; }
}

/* ── 13. TIERS SECTION REVAMP ───────────────────────────────── */
/* Replaces the old .packages-grid / .pkg-card layout inside
   section.theme-green.tiers-section. Uses new class names to
   avoid collision with the heavy section.theme-green overrides. */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 48px auto 0;
}

.tier-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* Colored accent stripe at top */
.tier-accent-bar {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}
.tier-taste-card .tier-accent-bar  { background: #3D9970; }
.tier-pd-card    .tier-accent-bar  { background: #FEDF00; }
.tier-fa-card    .tier-accent-bar  {
  background: linear-gradient(90deg, #c8a227 0%, #FEDF00 50%, #c8a227 100%);
}

/* Card body */
.tier-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Popular badge (Por Dentro) */
.tier-popular-badge {
  display: inline-block;
  background: #FEDF00;
  color: #0A0C10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  width: fit-content;
}

/* Tier rank label */
.tier-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.tier-taste-card .tier-rank { color: #3D9970; }
.tier-pd-card    .tier-rank { color: rgba(254, 223, 0, 0.75); }
.tier-fa-card    .tier-rank { color: #c8a227; }

/* Tier name */
.tier-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 4.5vw, 54px);
  line-height: 0.9;
  color: #F0EEE8;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

/* Hook tagline */
.tier-hook {
  font-size: 13.5px;
  color: rgba(200, 205, 216, 0.78);
  line-height: 1.55;
  margin-bottom: 22px;
  flex-shrink: 0;
}

/* Pricing */
.tier-price-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.tier-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: #FEDF00;
}
.tier-price-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(200, 205, 216, 0.48);
}

/* Feature list */
.tier-features {
  list-style: none;
  flex: 1;
  margin-bottom: 26px;
}
.tier-features li {
  font-size: 13.5px;
  color: rgba(200, 205, 216, 0.88);
  padding: 8px 0;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  line-height: 1.4;
}
.tier-features li:last-child { border-bottom: none; }
.tier-taste-card .tier-features li::before { content: '→'; color: #3D9970; flex-shrink: 0; }
.tier-pd-card    .tier-features li::before { content: '→'; color: #FEDF00; flex-shrink: 0; }
.tier-fa-card    .tier-features li::before { content: '→'; color: #c8a227; flex-shrink: 0; }

/* CTA buttons inside tier cards */
.tier-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  flex-shrink: 0;
}
.tier-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F0EEE8 !important;
}
.tier-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
}
.tier-btn-primary {
  background: #FEDF00;
  border: 1px solid #FEDF00;
  color: #0A0C10 !important;
}
.tier-btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: #0A0C10 !important;
}

/* Por Dentro: yellow glow treatment */
.tier-pd-card {
  border-color: rgba(254, 223, 0, 0.35);
  box-shadow: 0 0 40px rgba(254, 223, 0, 0.07), inset 0 0 60px rgba(254, 223, 0, 0.02);
}
.tier-pd-card:hover {
  border-color: rgba(254, 223, 0, 0.65);
  box-shadow: 0 0 60px rgba(254, 223, 0, 0.15), 0 20px 50px rgba(0, 0, 0, 0.55) !important;
}

/* Full Access: subtle gold treatment */
.tier-fa-card {
  border-color: rgba(200, 162, 39, 0.2);
}
.tier-fa-card:hover {
  border-color: rgba(200, 162, 39, 0.5);
}

@media (max-width: 960px) {
  .tiers-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 560px) {
  .tier-card-body { padding: 22px 22px 26px; }
  .tier-name { font-size: 42px; }
}

/* ============================================================
   Section 14 — Itinerary Detail Page Revamp
   Applies to all 10 itinerary pages via .iti-page body class.
   Loads after page <style> blocks so uses higher-specificity
   selectors (.iti-page prefix) to win the cascade cleanly.
   ============================================================ */

/* ── Hero: taller, Ken Burns zoom ─────────────────────────── */
.iti-page .iti-hero {
  min-height: clamp(660px, 82vh, 940px) !important;
  padding-bottom: 80px !important;
}

@keyframes iti-ken-burns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.09); }
}

.iti-page .iti-hero::before {
  animation: iti-ken-burns 24s ease-in-out infinite alternate;
  transform-origin: center 45%;
}

/* Hero H1 — more cinematic */
.iti-page .iti-hero h1 {
  font-size: clamp(64px, 13vw, 152px) !important;
  letter-spacing: -0.015em !important;
  line-height: 0.88 !important;
  margin-bottom: 28px !important;
}

/* Tagline — bigger */
.iti-page .iti-tagline {
  font-size: clamp(18px, 2.2vw, 24px) !important;
  margin-bottom: 40px !important;
}

/* Stats bar — taller numbers, stronger visual presence */
.iti-page .iti-stats {
  border-top-width: 2px !important;
  border-bottom-width: 2px !important;
  padding: 22px 0 !important;
  gap: 0 !important;
  margin-bottom: 40px !important;
}

.iti-page .iti-stat-val {
  font-size: clamp(22px, 2.8vw, 34px) !important;
  letter-spacing: 0.01em !important;
}

.iti-page .iti-stat-label {
  font-size: 9.5px !important;
  letter-spacing: 0.22em !important;
  margin-bottom: 8px !important;
}

/* ── Section headers — bigger, more dramatic ──────────────── */
.iti-page .iti-sec-title {
  font-size: clamp(42px, 7vw, 84px) !important;
  line-height: 0.94 !important;
  margin-bottom: 18px !important;
}

.iti-page .iti-sec-lead {
  font-size: 17px;
  line-height: 1.78;
  margin-bottom: 56px !important;
}

/* ── Day rows: wider photos, bigger layout, ghost numbers ─── */

/* Counter setup on the wrapper */
.iti-page .iti-section-inner {
  counter-reset: iti-day;
}

.iti-page .day-row {
  grid-template-columns: 420px 1fr !important;
  gap: 64px !important;
  padding: 72px 0 !important;
  position: relative;
  counter-increment: iti-day;
  overflow: visible;
}

.iti-page .day-row:first-of-type {
  padding-top: 0 !important;
}

/* Ghost day number — sits behind text column */
.iti-page .day-row::before {
  content: counter(iti-day, decimal-leading-zero);
  position: absolute;
  right: -8px;
  top: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 200px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.024);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

/* ── Alternating layout: even days (child 5,7,9) = photo RIGHT */
/* Structure: .iti-section-inner > span + h2 + p + day-row, day-row...
   Day 1 = 4th child (even), Day 2 = 5th child (odd), etc.
   :nth-child(odd) catches Days 2, 4, 6, 8 → flip photo to right  */
.iti-page .iti-section-inner > .day-row:nth-child(odd) {
  grid-template-columns: 1fr 420px !important;
}
.iti-page .iti-section-inner > .day-row:nth-child(odd) .day-photo {
  grid-column: 2;
  grid-row: 1;
}
.iti-page .iti-section-inner > .day-row:nth-child(odd) .day-content {
  grid-column: 1;
  grid-row: 1;
}
/* Ghost number on left side for photo-right rows */
.iti-page .iti-section-inner > .day-row:nth-child(odd)::before {
  right: auto;
  left: -8px;
}

/* ── Day photo: larger, hover zoom ───────────────────────────*/
.iti-page .day-photo {
  aspect-ratio: 5 / 4 !important;
  border-radius: 10px !important;
  overflow: hidden;
}

.iti-page .day-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.iti-page .day-row:hover .day-photo img {
  transform: scale(1.04);
}

/* ── Day meta: pill badge ─────────────────────────────────── */
.iti-page .day-meta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(254, 223, 0, 0.07);
  border: 1px solid rgba(254, 223, 0, 0.3);
  padding: 7px 16px !important;
  border-radius: 30px;
  font-size: 10.5px !important;
  letter-spacing: 0.22em !important;
  margin-bottom: 20px !important;
}

.iti-page .day-meta::after {
  content: '';
  width: 5px;
  height: 5px;
  background: #FEDF00;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.7;
  margin-left: 2px;
}

/* ── Day title: bigger, more presence ────────────────────────*/
.iti-page .day-title {
  font-size: clamp(30px, 3.8vw, 46px) !important;
  line-height: 1.04 !important;
  margin-bottom: 18px !important;
}

/* ── Day body: slightly looser ────────────────────────────── */
.iti-page .day-body {
  font-size: 16px !important;
  line-height: 1.78 !important;
}

.iti-page .day-body p { margin-bottom: 16px !important; }

/* ── Info cards: lift on hover ────────────────────────────── */
.iti-page .info-card {
  border-left-width: 4px !important;
  padding: 32px 32px !important;
  transition: opacity 0.55s ease, transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease !important;
}

.iti-page .info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border-left-color: #3D9970 !important;
}

.iti-page .info-card.danger:hover {
  border-left-color: #E62B1E !important;
}

.iti-page .info-card h3 {
  font-size: 24px !important;
  letter-spacing: 0.06em !important;
}

.iti-page .info-card li {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

/* ── Pricing block: 3D glossy dark ───────────────────────── */
.iti-page .pricing-block {
  /* Multi-stop dark gradient: slight brightness at top edge → deep black at base */
  background: linear-gradient(170deg,
    #252930 0%,
    #1a1e26 35%,
    #111418 100%) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-top: 1px solid rgba(255,255,255,0.20) !important; /* bright top edge = light catch */
  border-radius: 16px !important;
  padding: 60px 5% 56px !important;
  position: relative;
  overflow: hidden;
  /* Layered shadows: inner gloss + deep lift */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.11),   /* top specular line */
    inset 0 -3px 14px rgba(0,0,0,0.40),     /* bottom inner shadow — 3D curve */
    0 28px 72px rgba(0,0,0,0.58),
    0 10px 28px rgba(0,0,0,0.38),
    0 2px 6px  rgba(0,0,0,0.52) !important;
}
/* Kill the page-level gradient overlay */
.iti-page .pricing-block::before {
  display: none !important;
}
/* "Starts at" badge: solid chip instead of floating text */
.iti-page .pricing-from {
  display: inline-block !important;
  background: #FEDF00 !important;
  color: #0A0C10 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  padding: 5px 14px !important;
  border-radius: 2px !important;
  margin-bottom: 22px !important;
}
/* Watermark: bolder opacity — graphic element not afterthought */
.iti-page .pricing-block::after {
  content: 'RIO';
  position: absolute;
  right: 2%;
  bottom: -24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 220px;
  line-height: 1;
  color: rgba(254,223,0,0.055);  /* yellow-tinted instead of white */
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}
.iti-page .pricing-amount {
  font-size: clamp(72px, 12vw, 144px) !important;
  color: #F0EEE8 !important;
}
/* Clean separator line above the detail text */
.iti-page .pricing-detail {
  border-top: 1px solid rgba(254,223,0,0.14) !important;
  padding-top: 22px !important;
  margin-top: 8px !important;
}

/* ── CTA cards: enhanced ──────────────────────────────────── */
.iti-page .cta-card {
  border-radius: 10px !important;
  padding: 40px 32px !important;
}

.iti-page .cta-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.iti-page .cta-card h3 {
  font-size: 26px !important;
}

/* ── Scroll-reveal base states ────────────────────────────── */
.iti-page .day-row {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease !important;
}

.iti-page .info-card {
  opacity: 0;
  transform: translateY(22px);
}

.iti-page .info-card:nth-child(2) {
  transition-delay: 0.14s;
}

.iti-page .pricing-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.iti-page .cta-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

.iti-page .cta-card:nth-child(2) { transition-delay: 0.12s; }
.iti-page .cta-card:nth-child(3) { transition-delay: 0.24s; }

/* Revealed state (added by iti-revamp.js IntersectionObserver).
   opacity uses !important to beat any cascade conflicts.
   transform does NOT use !important so hover transitions can override cleanly. */
.iti-page .day-row.iti-vis,
.iti-page .info-card.iti-vis,
.iti-page .pricing-block.iti-vis,
.iti-page .cta-card.iti-vis {
  opacity: 1 !important;
  transform: translateY(0);
}

/* ── Floating day pill (injected by JS) ───────────────────── */
.iti-day-pill {
  position: fixed;
  bottom: 28px;
  right: 24px;
  background: rgba(10, 12, 16, 0.9);
  border: 1px solid rgba(254, 223, 0, 0.45);
  color: #FEDF00;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 20px 10px 16px;
  border-radius: 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 48;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iti-day-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #FEDF00;
  border-radius: 50%;
  flex-shrink: 0;
  animation: iti-pill-pulse 2s ease-in-out infinite;
}

@keyframes iti-pill-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.iti-day-pill--on {
  opacity: 1;
  transform: translateX(0);
}

/* ── Mobile responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .iti-page .day-row {
    grid-template-columns: 360px 1fr !important;
    gap: 44px !important;
  }
  .iti-page .iti-section-inner > .day-row:nth-child(odd) {
    grid-template-columns: 1fr 360px !important;
  }
}

@media (max-width: 760px) {
  .iti-page .iti-hero h1 { font-size: clamp(52px, 13vw, 90px) !important; }
  .iti-page .iti-sec-title { font-size: clamp(36px, 9vw, 60px) !important; }

  /* Reset alternating layout on mobile — photo always stacks on top */
  .iti-page .day-row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 40px 0 !important;
  }
  .iti-page .iti-section-inner > .day-row:nth-child(odd) {
    grid-template-columns: 1fr !important;
  }
  .iti-page .iti-section-inner > .day-row:nth-child(odd) .day-photo {
    grid-column: 1;
    grid-row: 1;
  }
  .iti-page .iti-section-inner > .day-row:nth-child(odd) .day-content {
    grid-column: 1;
    grid-row: 2;
  }

  /* Hide ghost numbers on mobile */
  .iti-page .day-row::before { display: none !important; }

  /* Smaller pill on mobile */
  .iti-day-pill { font-size: 9.5px; padding: 8px 14px 8px 12px; bottom: 20px; right: 16px; }
}

/* ============================================================
   Section 15 — itineraries.html Color Revamp
   Targeted by unique class combos so changes are page-specific.
   Uses higher-specificity selectors + !important to override
   the theme-green/yellow/black rules in the page <style> block.
   ============================================================ */

/* ──────────────────────────────────────────────────────────────
   1. TIERS SECTION — deep forest emerald replaces flat lime-green
   Adds a radial glow behind the card grid for depth + drama.
   ────────────────────────────────────────────────────────────── */
section.theme-green.tiers-section {
  background:
    radial-gradient(ellipse 80% 55% at 65% 15%, rgba(45,106,79,0.22) 0%, transparent 60%),
    linear-gradient(172deg, #060E09 0%, #0C1D13 28%, #112618 55%, #162D21 100%) !important;
  position: relative;
}

/* Soft glow at the bottom of the tiers section — stays within bounds, eases the transition */
section.theme-green.tiers-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 220px;
  background: radial-gradient(ellipse at center bottom, rgba(45,106,79,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.tiers-grid,
section.theme-green.tiers-section .tiers-header { position: relative; z-index: 1; }

/* Taste (green): lush deep-green gradient card */
.tier-taste-card {
  background: linear-gradient(145deg,
    rgba(28,72,52,0.62) 0%,
    rgba(12,18,14,0.88) 60%,
    rgba(0,0,0,0.90) 100%) !important;
  border-color: rgba(61,153,112,0.38) !important;
}
.tier-taste-card:hover {
  border-color: rgba(61,153,112,0.75) !important;
  box-shadow: 0 22px 65px rgba(0,0,0,0.65), 0 0 70px rgba(45,106,79,0.22) !important;
}

/* Por Dentro (yellow): midnight with warm gold glow base */
.tier-pd-card {
  background: linear-gradient(145deg,
    rgba(20,16,3,0.92) 0%,
    rgba(14,12,2,0.96) 55%,
    rgba(254,223,0,0.05) 100%) !important;
}
.tier-pd-card:hover {
  border-color: rgba(254,223,0,0.80) !important;
  box-shadow: 0 0 80px rgba(254,223,0,0.18), 0 22px 65px rgba(0,0,0,0.65) !important;
}

/* Full Access (gold): dark amber warmth */
.tier-fa-card {
  background: linear-gradient(145deg,
    rgba(28,18,3,0.92) 0%,
    rgba(18,13,2,0.96) 55%,
    rgba(200,162,39,0.07) 100%) !important;
}
.tier-fa-card:hover {
  border-color: rgba(200,162,39,0.65) !important;
  box-shadow: 0 0 70px rgba(200,162,39,0.14), 0 22px 65px rgba(0,0,0,0.65) !important;
}

/* ──────────────────────────────────────────────────────────────
   2. PIX CALLOUT — warm dark teal separates tiers from itin grid
   ────────────────────────────────────────────────────────────── */
section.theme-green.tiers-section + section {
  background: linear-gradient(180deg, #080E0A 0%, #0A0C10 100%) !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* ──────────────────────────────────────────────────────────────
   3. ITINERARIES SECTION — deep ink, not green
   Fixes the double-green run; photo cards pop off the dark bg.
   ────────────────────────────────────────────────────────────── */
section.theme-green.itineraries-section {
  background: linear-gradient(180deg, #0A0C10 0%, #0D1016 100%) !important;
  border-top: 2px solid rgba(45,106,79,0.3) !important;
  border-bottom: 2px solid rgba(45,106,79,0.3) !important;
}

/* Cards: lift from invisible dark-on-green to visible dark-on-darker */
.itineraries-section .itin-card {
  background: rgba(18,21,28,0.98) !important;
  border-color: rgba(255,255,255,0.09) !important;
}
.itineraries-section .itin-card:hover {
  background: rgba(22,26,34,1) !important;
  border-color: rgba(255,255,255,0.28) !important;
  box-shadow: 0 20px 56px rgba(0,0,0,0.55) !important;
}
.itineraries-section .itin-card[data-season="jan-mar"] {
  border-color: rgba(254,223,0,0.22) !important;
}
.itineraries-section .itin-card[data-season="jan-mar"]:hover {
  border-color: rgba(254,223,0,0.58) !important;
  box-shadow: 0 20px 56px rgba(0,0,0,0.55), 0 0 44px rgba(254,223,0,0.1) !important;
}

/* Callout box at bottom of section */
.itineraries-section .callout {
  background: rgba(12,14,18,0.88) !important;
  border-color: rgba(45,106,79,0.28) !important;
  border-left-color: #3D9970 !important;
}

/* Stats row separator */
.itineraries-section .itin-head-stats {
  border-bottom-color: rgba(255,255,255,0.07) !important;
}

/* Filter bar separator */
.itineraries-section .itin-filter {
  border-bottom-color: rgba(255,255,255,0.07) !important;
}

/* ──────────────────────────────────────────────────────────────
   4. HOW TO BOOK SECTION — richer yellow + diagonal stripe texture
   Step numbers get the yellow accent they deserve.
   ────────────────────────────────────────────────────────────── */
section.theme-yellow.how-section {
  background:
    repeating-linear-gradient(
      -48deg,
      transparent,
      transparent 52px,
      rgba(0,0,0,0.022) 52px,
      rgba(0,0,0,0.022) 104px
    ),
    linear-gradient(158deg, #FFE94A 0%, #FEDF00 45%, #F8D500 100%) !important;
}

/* Step cards: richer dark base */
section.theme-yellow.how-section .how-step-card {
  background: rgba(7,9,13,0.94) !important;
  border: 2px solid rgba(8,10,14,0.90) !important;
}

/* Step numbers: restore yellow accent (theme-yellow * forces cream) */
section.theme-yellow.how-section .how-step-card .step-num {
  color: #FEDF00 !important;
  font-size: 52px !important;
  line-height: 0.88 !important;
}

/* ──────────────────────────────────────────────────────────────
   5. FAQ SECTION — dark with a warm forest undertone
   ────────────────────────────────────────────────────────────── */
section.theme-black.faq-section {
  background: linear-gradient(180deg, #0B0E08 0%, #0A0C10 55%, #0A0C10 100%) !important;
}

.faq-section .faq-item {
  border-color: rgba(45,106,79,0.16) !important;
}
.faq-section .faq-item[open] {
  border-color: rgba(61,153,112,0.38) !important;
  background: rgba(12,18,12,0.55) !important;
}


/* ===================================================================
   SECTION 16 · EXPERIENCE DETAIL PAGES
   body.exp-page  shared base (rasta-beach / casa-black / pedra-do-sal)
   body.exp-rasta / body.exp-casa / body.exp-pedra for per-page color
   =================================================================== */

/* ----------------------------------------------------------------
   16-A. Hero portrait frame · pulsing accent glow
   Each page gets its own colour-matched keyframe so the animation
   is pure CSS and never flickers on tab return.
   ---------------------------------------------------------------- */
@keyframes exp-pulse-rasta {
  0%,100% { box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 44px rgba(76,175,80,0.20); }
  50%     { box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 88px rgba(76,175,80,0.40); }
}
@keyframes exp-pulse-casa {
  0%,100% { box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 44px rgba(230,43,30,0.20); }
  50%     { box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 88px rgba(230,43,30,0.38); }
}
@keyframes exp-pulse-pedra {
  0%,100% { box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 48px rgba(212,160,23,0.22); }
  50%     { box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 96px rgba(212,160,23,0.42); }
}
body.exp-rasta .page-hero-photo { animation: exp-pulse-rasta 4.5s ease-in-out infinite; }
body.exp-casa  .page-hero-photo { animation: exp-pulse-casa  4.5s ease-in-out infinite; }
body.exp-pedra .page-hero-photo { animation: exp-pulse-pedra 4.5s ease-in-out infinite; }

/* Hover: pause glow, subtle scale */
body.exp-page .page-hero-photo {
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}
body.exp-page .page-hero-photo:hover {
  transform: translateY(-50%) scale(1.026) !important;
  animation-play-state: paused !important;
}

/* Rasta Beach portrait is a static <img> — give it a slow Ken Burns pan */
@keyframes rasta-ken {
  0%   { transform: scale(1.00) translate(0%, 0%); }
  100% { transform: scale(1.06) translate(-2%, -2%); }
}
body.exp-rasta .page-hero-photo img {
  animation: rasta-ken 18s ease-in-out infinite alternate;
}


/* ----------------------------------------------------------------
   16-B. Hero background atmosphere · richer radial overlays
   ---------------------------------------------------------------- */
body.exp-rasta .page-hero-bg {
  background:
    radial-gradient(ellipse 65% 80% at 80% 45%, rgba(76,175,80,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 42% 42% at 8%  94%, rgba(45,106,79,0.22) 0%, transparent 45%),
    radial-gradient(ellipse 70% 50% at 50%  -5%, rgba(254,223,0,0.08) 0%, transparent 50%) !important;
}
body.exp-casa .page-hero-bg {
  background:
    radial-gradient(ellipse 68% 76% at 80% 48%, rgba(230,43,30,0.34) 0%, transparent 58%),
    radial-gradient(ellipse 50% 50% at 10% 100%, rgba(212,160,23,0.28) 0%, transparent 50%),
    linear-gradient(90deg, rgba(10,12,16,0.78) 0%, rgba(10,12,16,0.40) 46%, rgba(10,12,16,0.14) 100%) !important;
}
body.exp-pedra .page-hero-bg {
  background:
    radial-gradient(ellipse 65% 76% at 80% 50%, rgba(212,160,23,0.32) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 8%  94%, rgba(0,39,118,0.48)  0%, transparent 50%),
    radial-gradient(ellipse 70% 42% at 50%  0%,  rgba(0,39,118,0.22)  0%, transparent 55%),
    linear-gradient(180deg, rgba(0,10,30,0.42) 0%, transparent 38%) !important;
}


/* ----------------------------------------------------------------
   16-C. Why-cards · richer dark gradient base + hover lift
   Border-top is set explicitly per-page below (after the hover rules)
   to fix a var(--green-bright) fallback bug in the global .why-card rule.
   Casa Black gold cards (inline border-top-color:var(--gold)) are preserved
   via the attribute-selector rule at higher specificity (0,3,1 vs 0,2,1).
   ---------------------------------------------------------------- */
body.exp-page .why-card {
  background: linear-gradient(160deg,
    rgba(22,26,34,0.97) 0%,
    rgba(14,17,22,0.99) 100%) !important;
  border-color: rgba(255,255,255,0.08) !important;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease !important;
  position: relative !important;
  overflow: hidden !important;
}
/* Faint top-edge inner shine */
body.exp-page .why-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
  pointer-events: none;
}
body.exp-page .why-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(255,255,255,0.16) !important;
}
body.exp-rasta .why-card:hover {
  box-shadow: 0 22px 55px rgba(0,0,0,0.58), 0 0 46px rgba(76,175,80,0.14) !important;
}
body.exp-casa .why-card:hover {
  box-shadow: 0 22px 55px rgba(0,0,0,0.58), 0 0 46px rgba(230,43,30,0.14) !important;
}
body.exp-pedra .why-card:hover {
  box-shadow: 0 22px 55px rgba(0,0,0,0.58), 0 0 46px rgba(212,160,23,0.14) !important;
}
/* Fix: global .why-card rule at line ~1657 uses var(--green-bright) which is only defined
   on rasta-beach — invalid var() makes border-top revert to initial (none) on casa + pedra.
   These explicit rules restore the correct per-page accent border. */
body.exp-rasta .why-card { border-top: 3px solid rgba(76,175,80,0.65) !important; }
body.exp-casa  .why-card { border-top: 3px solid rgba(230,43,30,0.65) !important; }
body.exp-casa  .why-card[style*="border-top-color:var(--gold)"] { border-top-color: rgba(212,160,23,0.75) !important; }
body.exp-pedra .why-card { border-top: 3px solid rgba(212,160,23,0.65) !important; }


/* ----------------------------------------------------------------
   16-D. Timeline items · card-style blocks with left accent border
   The doom-scroll fix already gives them padding:16px 18px.
   We add a visible card background + left accent stripe.
   Dots (::before) at left:-34px still float outside the card, on
   the vertical line — that's intentional; they visually tie the
   card row to the timeline track.
   ---------------------------------------------------------------- */
body.exp-page .timeline-item {
  background: rgba(18,22,30,0.88) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-left-width: 3px !important;
  border-radius: 6px !important;
  transition: transform 0.22s ease, background 0.22s ease, border-left-color 0.22s ease !important;
}
body.exp-page .timeline-item:hover {
  transform: translateX(5px) !important;
  background: rgba(22,26,36,0.95) !important;
}
body.exp-rasta .timeline-item       { border-left-color: rgba(76,175,80,0.40) !important; }
body.exp-rasta .timeline-item:hover { border-left-color: rgba(76,175,80,0.90) !important; }

body.exp-casa  .timeline-item                { border-left-color: rgba(230,43,30,0.40) !important; }
body.exp-casa  .timeline-item.charm-phase    { border-left-color: rgba(212,160,23,0.50) !important; }
body.exp-casa  .timeline-item:hover          { border-left-color: rgba(230,43,30,0.90) !important; }
body.exp-casa  .timeline-item.charm-phase:hover { border-left-color: rgba(212,160,23,0.95) !important; }

body.exp-pedra .timeline-item       { border-left-color: rgba(212,160,23,0.40) !important; }
body.exp-pedra .timeline-item:hover { border-left-color: rgba(212,160,23,0.90) !important; }


/* ----------------------------------------------------------------
   16-E. Included list · subtle row hover
   ---------------------------------------------------------------- */
body.exp-page .included-list li {
  border-bottom-color: rgba(255,255,255,0.06) !important;
  border-radius: 3px !important;
  transition: background 0.2s ease !important;
}
body.exp-page .included-list li:hover {
  background: rgba(255,255,255,0.04) !important;
}


/* ----------------------------------------------------------------
   16-F. Chaos photos (Casa Black + Pedra) · hover frame + lift
   We use filter+shadow rather than transform to avoid fighting the
   per-photo inline rotate() values.
   ---------------------------------------------------------------- */
body.exp-page .chaos-photo {
  transition:
    box-shadow 0.38s ease,
    opacity    0.38s ease,
    filter     0.38s ease !important;
  cursor: pointer !important;
}
body.exp-page .chaos-photo:hover {
  opacity: 1 !important;
  z-index: 10 !important;
  filter: brightness(1.08) contrast(1.04) !important;
  box-shadow:
    0 22px 60px rgba(0,0,0,0.75),
    0 0 0 4px rgba(255,255,255,0.88) !important;
}


/* ----------------------------------------------------------------
   16-G. Venue cards (Casa Black) · photo zoom + card lift
   ---------------------------------------------------------------- */
body.exp-casa .venue-card {
  transition: transform 0.30s ease, box-shadow 0.30s ease !important;
}
body.exp-casa .venue-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 28px 65px rgba(0,0,0,0.65) !important;
}
body.exp-casa .venue-photo {
  transition: transform 0.60s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}
body.exp-casa .venue-card:hover .venue-photo {
  transform: scale(1.05) !important;
}


/* ----------------------------------------------------------------
   16-H. Three-ways options (Casa Black) · slide-right hover
   ---------------------------------------------------------------- */
body.exp-casa .tw-option {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
  cursor: pointer !important;
}
body.exp-casa .tw-option:hover {
  transform: translateX(3px) !important;
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.22) !important;
}
body.exp-casa .tw-option.tw-popular:hover {
  background: rgba(230,43,30,0.24) !important;
  border-color: rgba(230,43,30,0.75) !important;
}


/* ----------------------------------------------------------------
   16-I. Pricing cards · richer dark base + accent glow
   ---------------------------------------------------------------- */
body.exp-rasta .pricing-card {
  background: linear-gradient(145deg,
    rgba(10,20,14,0.97) 0%,
    rgba(8,14,10,0.99)  60%,
    rgba(76,175,80,0.06) 100%) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.52), 0 0 65px rgba(76,175,80,0.10) !important;
}
body.exp-pedra .pricing-card {
  background: linear-gradient(145deg,
    rgba(20,18,8,0.97)  0%,
    rgba(14,13,7,0.99)  60%,
    rgba(212,160,23,0.07) 100%) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.52), 0 0 65px rgba(212,160,23,0.12) !important;
}


/* ----------------------------------------------------------------
   16-J. CTA section (Rasta Beach uses theme-black; enhance it)
   ---------------------------------------------------------------- */
body.exp-rasta .cta-section {
  background: linear-gradient(135deg,
    #0D2010 0%,
    #0F2516 50%,
    #0A0C10 100%) !important;
  border-top: 1px solid rgba(76,175,80,0.30) !important;
  border-bottom: none !important;
}


/* ----------------------------------------------------------------
   16-K. FAQ items · open-state highlight
   ---------------------------------------------------------------- */
body.exp-page .faq-list .faq-item:hover {
  background: rgba(255,255,255,0.025) !important;
}
body.exp-page .faq-list .faq-item.faq-open {
  background: rgba(255,255,255,0.04) !important;
}


/* ----------------------------------------------------------------
   16-L. Section borders · faint accent top-line between sections
   ---------------------------------------------------------------- */
body.exp-rasta section { border-top: 1px solid rgba(76,175,80,0.09) !important; }
body.exp-rasta section.page-hero { border-top: none !important; }

body.exp-casa  section { border-top: 1px solid rgba(230,43,30,0.09) !important; }
body.exp-casa  section.page-hero { border-top: none !important; }

body.exp-pedra section { border-top: 1px solid rgba(212,160,23,0.09) !important; }
body.exp-pedra section.page-hero { border-top: none !important; }


/* ----------------------------------------------------------------
   16-M. Mobile: disable the photo Ken Burns + reduce glow
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  body.exp-rasta .page-hero-photo img { animation: none !important; }
  body.exp-rasta .page-hero-photo,
  body.exp-casa  .page-hero-photo,
  body.exp-pedra .page-hero-photo {
    animation: none !important;
  }
  body.exp-page .page-hero-photo:hover { transform: none !important; }
  body.exp-page .chaos-photo:hover { filter: none !important; box-shadow: none !important; }
  body.exp-page .timeline-item:hover { transform: none !important; }
  body.exp-page .why-card:hover { transform: none !important; box-shadow: none !important; }
}


/* ===================================================================
   SECTION 17 · BOOK PAGE  (body.book-page)
   UX polish: flat 2D cards, tighter hero glow, accent borders.
   =================================================================== */

/* 17-A. Hero: kill the fading gradient overlay, let the photo show more */
body.book-page .book-hero-bg {
  background:
    linear-gradient(180deg, rgba(10,12,16,0.42) 0%, rgba(10,12,16,0.82) 100%),
    url('assets/hero-book.jpg') center 30% / cover no-repeat,
    #0A0C10 !important;
}
body.book-page .book-hero {
  border-bottom: 4px solid #FEDF00 !important;
}

/* 17-B. Book cards: flat dark glass, yellow left-border accent */
body.book-page .book-card {
  background: #0D1015 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-left: 4px solid #FEDF00 !important;
  border-radius: 4px !important;
  transition: border-left-color 0.25s ease !important;
}
body.book-page .book-card:hover {
  border-left-color: #fff !important;
}
body.book-page .book-card-head {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

/* 17-C. Calendar CTA wrap: flat black, remove the subtle gradient */
body.book-page .calendar-cta-wrap {
  background: #0A0C10 !important;
  border-top: 1px solid rgba(254,223,0,0.18) !important;
}
/* CTA button: flat 2D — kill the gradient, solid yellow */
body.book-page .cal-cta-button {
  background: #FEDF00 !important;
  box-shadow: none !important;
  border-radius: 2px !important;  /* flat corners = 2D */
  border: 2px solid #FEDF00 !important;
}
body.book-page .cal-cta-button:hover,
body.book-page .cal-cta-button:focus-visible {
  background: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

/* 17-D. Expect cards: flat dark, yellow accent on hover */
body.book-page .expect-card {
  background: #0D1015 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-top: 2px solid rgba(254,223,0,0.18) !important;
  border-radius: 2px !important;
  transition: border-top-color 0.22s ease, transform 0.22s ease !important;
}
body.book-page .expect-card:hover {
  border-top-color: #FEDF00 !important;
  transform: translateY(-3px) !important;
}

/* 17-E. Deposit card: flat black, yellow border */
body.book-page .deposit-card {
  background: #0A0C10 !important;
  border: 1px solid rgba(254,223,0,0.30) !important;
  border-top: 4px solid #FEDF00 !important;
  border-radius: 3px !important;
}
/* Deposit tier rows */
body.book-page .deposit-tier {
  background: rgba(254,223,0,0.04) !important;
  border: 1px solid rgba(254,223,0,0.14) !important;
  border-radius: 2px !important;
  transition: background 0.2s ease !important;
}
body.book-page .deposit-tier:hover {
  background: rgba(254,223,0,0.09) !important;
}
/* Deposit button: flat 2D */
body.book-page .deposit-stripe-btn {
  border-radius: 2px !important;
}

/* 17-F. FAQ section: flat cards with accent */
body.book-page .book-faq {
  background: #0D1015 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-top: 2px solid rgba(254,223,0,0.25) !important;
  border-radius: 3px !important;
}
body.book-page .book-faq details {
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 2px !important;
  transition: background 0.18s ease !important;
  padding-left: 4px !important;
}
body.book-page .book-faq details[open] {
  background: rgba(254,223,0,0.03) !important;
}

/* 17-G. Trust card */
body.book-page .book-trust {
  background: #0D1015 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-top: 2px solid rgba(45,106,79,0.55) !important;
  border-radius: 3px !important;
}

/* 17-H. Stats strip in hero: flat separators */
body.book-page .bh-stat {
  position: relative !important;
}
body.book-page .bh-stat + .bh-stat::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.10);
}

/* 17-I. Mobile */
@media (max-width: 768px) {
  body.book-page .book-card:hover,
  body.book-page .expect-card:hover { transform: none !important; }
}
/* 17-J. Mobile hero: MOBILE-TRIM-SHARED collapses all <section> padding-top to 40px, which
   puts book-hero content behind the 72px fixed nav. Override here with higher specificity
   (body.book-page .book-hero beats the generic `section` rule). */
@media (max-width: 680px) {
  body.book-page .book-hero { padding-top: 92px !important; }
}


/* ===== BBE A11Y LAYER ===== */
.bbe-skip{position:fixed;top:-64px;left:8px;z-index:100000;background:#FEDF00;color:#0A0C10;font-family:'JetBrains Mono',monospace;font-weight:700;font-size:13px;letter-spacing:.04em;padding:11px 16px;border-radius:0 0 7px 7px;text-decoration:none;transition:top .18s ease}
.bbe-skip:focus{top:0}
.bbe-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:2px solid #FEDF00;outline-offset:2px;border-radius:3px}
[tabindex="-1"]:focus{outline:none}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .reveal,.bbe-reveal{opacity:1!important;transform:none!important}
}
/* Itinerary page entrance: hero content fades + rises on load (reduced-motion guarded above) */
@keyframes bbe-iti-enter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
.iti-hero-inner{animation:bbe-iti-enter .8s cubic-bezier(.22,1,.36,1) both}
/* Reusable show-more expander for word-heavy areas (accessible <details>/<summary>, no JS) */
details.bbe-more{margin-top:6px}
details.bbe-more>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:var(--yellow,#FEDF00);padding:6px 0;transition:opacity .2s}
details.bbe-more>summary:hover{opacity:.75}
details.bbe-more>summary::-webkit-details-marker{display:none}
details.bbe-more>summary::after{content:'+';font-size:16px;line-height:1;font-weight:700}
details.bbe-more[open]>summary::after{content:'\2013'}
details.bbe-more[open]>summary{margin-bottom:10px}
details.bbe-more .bbe-more-body{line-height:1.65}


/* ===== BBE FLAG PAGE TRANSITION (navigation between pages) ===== */
#bbe-pt{position:fixed;inset:0;z-index:99990;pointer-events:none;display:flex;align-items:center;justify-content:center;overflow:hidden;clip-path:polygon(0 0,0 0,-40% 100%,-40% 100%);background:linear-gradient(116deg,#2D6A4F 0 28%,#16348C 40%,#1E5AE8 50%,#FEDF00 64% 100%)}
#bbe-pt::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(116deg,transparent 38%,rgba(255,255,255,.5) 50%,transparent 62%);transform:translateX(-130%)}
#bbe-pt::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(circle at 50% 50%,#fff 0%,rgba(255,255,255,.7) 38%,transparent 72%);opacity:0}
#bbe-pt .bbe-pt-name{position:relative;z-index:3;font-family:'Barlow Condensed',sans-serif;font-weight:900;font-size:clamp(40px,9vw,120px);line-height:.9;text-transform:uppercase;letter-spacing:.01em;color:#0A0C10;opacity:0;transform:translateY(16px) scale(.9);filter:blur(7px);text-align:center;padding:0 6%;text-shadow:0 2px 20px rgba(255,255,255,.45),0 0 44px rgba(254,223,0,.30)}
/* SINGLE transition (#8, simplified): no cover on the old page. The new page arrives
   already covered, the name snaps in with a flash, then a slow graceful uncover reveals it. */
#bbe-pt.bbe-pt-reveal{clip-path:polygon(0 0,170% 0,210% 100%,0 100%);animation:bbe-pt-uncover 1s cubic-bezier(.72,0,.24,1) .55s forwards}
#bbe-pt.bbe-pt-reveal::after{animation:bbe-pt-flash .55s ease .05s forwards}
#bbe-pt.bbe-pt-reveal::before{animation:bbe-pt-shine 1.1s ease .55s forwards}
#bbe-pt.bbe-pt-reveal .bbe-pt-name{animation:bbe-pt-name .5s cubic-bezier(.2,.9,.25,1.35) .06s forwards}
#bbe-pt.bbe-pt-cover{animation:bbe-pt-coverkf .6s cubic-bezier(.72,0,.24,1) forwards}
#bbe-pt.bbe-pt-cover::after{animation:bbe-pt-flash .5s ease .12s forwards}
#bbe-pt.bbe-pt-cover::before{animation:bbe-pt-shine 1s ease forwards}
#bbe-pt.bbe-pt-cover .bbe-pt-name{animation:bbe-pt-name .45s cubic-bezier(.2,.9,.25,1.35) .1s forwards}
@keyframes bbe-pt-coverkf{from{clip-path:polygon(0 0,0 0,-40% 100%,-40% 100%)}to{clip-path:polygon(0 0,170% 0,210% 100%,0 100%)}}
@keyframes bbe-pt-shine{to{transform:translateX(130%)}}
@keyframes bbe-pt-flash{0%{opacity:0}42%{opacity:.9}100%{opacity:0}}
@keyframes bbe-pt-name{0%{opacity:0;transform:translateY(16px) scale(.9);filter:blur(7px)}65%{opacity:1;transform:translateY(0) scale(1.05);filter:blur(0)}100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes bbe-pt-uncover{from{clip-path:polygon(0 0,170% 0,210% 100%,0 100%)}to{clip-path:polygon(170% 0,170% 0,210% 100%,210% 100%)}}
@media(prefers-reduced-motion:reduce){#bbe-pt{display:none!important}}

/* ===== showcase ken burns =====
   Settle-IN zoom: starts slightly zoomed, eases to scale(1). It MUST end at
   scale(1) so the resting frame == each slide's inline background-position.
   Do NOT make the 'to' scale exceed 1 (that drifts the subject, e.g. the
   capoeira head, out of frame and makes background-position edits stop sticking). */
@keyframes bbe-sc-kb{from{transform:scale(1.05)}to{transform:scale(1)}}
.bbe-showcase-slide.sc-active .bbe-sc-photo{animation:bbe-sc-kb 16s ease-out both}
@media(prefers-reduced-motion:reduce){.bbe-showcase-slide.sc-active .bbe-sc-photo{animation:none}}
