@font-face {
    font-family: 'Madani';
    src: url('../fonts/Madani/Madani Arabic Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani';
    src: url('../fonts/Madani/Madani Arabic Extra Light.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani';
    src: url('../fonts/Madani/Madani Arabic Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani';
    src: url('../fonts/Madani/Madani Arabic Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani';
    src: url('../fonts/Madani/Madani Arabic Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani';
    src: url('../fonts/Madani/Madani Arabic Semi Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani';
    src: url('../fonts/Madani/Madani Arabic Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani';
    src: url('../fonts/Madani/Madani Arabic Extra Bold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Madani';
    src: url('../fonts/Madani/Madani Arabic Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/* Global Root Configuration Array variables */
:root {
    --primary: #232A42;
    --secondary: #F4B223;
    --dark: #0A0F1C;
    --background: #000000;
    --background-alt: #0A0F1C;
    --text-light: #F3F4F6;
    --accent-teal: #0F766E;
}

/* Base Framework Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html {
    scroll-behavior: smooth;
}

.lang-en, .lang-ar {
    display: none;
}

[dir="ltr"] .lang-en {
    display: inline-block;
}

[dir="rtl"] .lang-ar {
    display: inline-block;
}

body {
    font-family: 'Madani', sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-alexandria {
    font-family: 'Madani', sans-serif;
}

/* RTL / Arabic Layout Directional Adjustments */
.margin-start { margin-left: 2rem; }
html[dir="rtl"] .margin-start { margin-left: 0; margin-right: 2rem; }

.padding-start { padding-left: 1.5rem; }
html[dir="rtl"] .padding-start { padding-left: 0; padding-right: 1.5rem; }

/* html[dir="rtl"] .font-alexandria { line-height: 1.9; } */

 .stroke-text { -webkit-text-stroke: 1px white; }


/* Reusable Cinematic Reveal Animation Systems */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Responsive Scrollbar Configuration Rules */
@media (min-width: 768px) {
    .responsive-scroll-behavior { scrollbar-width: none; -ms-overflow-style: none; }
    .responsive-scroll-behavior::-webkit-scrollbar { display: none; }
}
@media (max-width: 767px) {
    .responsive-scroll-behavior { scrollbar-width: auto; -ms-overflow-style: auto; }
    .responsive-scroll-behavior::-webkit-scrollbar { height: 5px; display: block; }
    .responsive-scroll-behavior::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 99px; }
    .responsive-scroll-behavior::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 99px; }
}

.sponsor-logo-render, .thumbnail-target {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

#categories-scroll-track {
    /* Prevents the scrollbar from appearing while the JS is moving it */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#categories-scroll-track::-webkit-scrollbar {
    display: none;
}

/* Ensure cards don't wrap and are tightly aligned */
#categories-scroll-track.flex {
    display: flex;
    flex-wrap: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL FLOATING WHATSAPP BUTTON — ADD TO global.css
   ═══════════════════════════════════════════════════════════
   Glass effect adapts automatically to dark/light backgrounds
   via backdrop-filter — no page-specific overrides needed.
   ═══════════════════════════════════════════════════════════ */
 
.global-whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998; 
 
    width: 56px;
    height: 56px;
    border-radius: 50%;
 
    display: flex;
    align-items: center;
    justify-content: center;
 
    /* True glass — transparent base, blur picks up whatever's behind */
    background: rgba(37, 211, 102, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
 
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(37, 211, 102, 0.08) inset;
 
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s ease,
                background 0.3s ease;
}
 
.global-whatsapp-fab:hover {
    transform: scale(1.08) translateY(-2px);
    background: rgba(37, 211, 102, 0.22);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(37, 211, 102, 0.15) inset;
}
 
.global-whatsapp-fab svg {
    width: 26px;
    height: 26px;
    fill: #25D366;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}
 
/* Pulse ring — subtle, doesn't compete with page content */
.global-whatsapp-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: wa-fab-pulse 2.8s ease-out infinite;
    z-index: 1;
    pointer-events: none;
}
 
@keyframes wa-fab-pulse {
    0%   { transform: scale(1);    opacity: 0.55; }
    100% { transform: scale(1.65); opacity: 0; }
}
 
/* RTL — move to bottom-left instead of bottom-right */
html[dir="rtl"] .global-whatsapp-fab {
    right: auto;
    left: 24px;
}
 
/* Mobile — slightly smaller, tighter margin */
@media (max-width: 640px) {
    .global-whatsapp-fab {
        width: 50px;
        height: 50px;
        bottom: 18px;
        right: 18px;
    }
    html[dir="rtl"] .global-whatsapp-fab {
        right: auto;
        left: 18px;
    }
    .global-whatsapp-fab svg {
        width: 23px;
        height: 23px;
    }
}
 
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .global-whatsapp-fab-pulse { animation: none; }
    .global-whatsapp-fab:hover { transform: none; }
}
 

/* ==========================================================================
   ADVANCED ARCHITECTURAL DESIGN CORE BLUEPRINT ENGINE
   ========================================================================== */

/* High-Definition Engineering Blueprint Grid Background Blueprint Pattern */
.blueprint-grid-matrix {
    background-size: 20px 20px, 100px 100px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 50%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 95%);
}
/* Target the SVG paths directly */
.blueprint-svg {
    /* Default stroke width */
    stroke-width: 2.5; 
    transition: stroke-width 0.5s ease, color 0.5s ease;
}

/* When the parent card is hovered, increase the boldness */
.blueprint-metric-card:hover .blueprint-svg {
    stroke-width: 2.2; /* Adjust this value to make it as bold as you like */
}

/* Axis Styling Defaults */
.blueprint-axis-line {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-dasharray: 4 3;
}

/* High-Performance SVG Self-Drawing Path System */
.blueprint-draw-trace {
    /* 1500 is safer for longer, complex paths */
    stroke-dasharray: 1500; 
    stroke-dashoffset: 1500;
    
    /* 10s duration for a slow, premium feel */
    transition: stroke-dashoffset 10s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.6s ease;
    will-change: stroke-dashoffset;
}

/* Triggered once the section is in view */
#expo-metrics-blueprint.is-visible .blueprint-draw-trace {
    stroke-dashoffset: 0;
}

/* Staggered Execution - Using 1.5s steps for a clean, sequential reveal */
.draw-stagger-1 { transition-delay: 0.2s; }
.draw-stagger-2 { transition-delay: 1.7s; }
.draw-stagger-3 { transition-delay: 3.2s; }
.draw-stagger-4 { transition-delay: 4.7s; }

/* Optional: Subtle pulse on hover for UX feedback */
.blueprint-metric-card:hover .blueprint-draw-trace {
    stroke: rgba(255, 255, 255, 0.8);
}

/* Micro-Interaction Scale Physics */
.blueprint-metric-card svg {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.blueprint-metric-card:hover svg {
    transform: scale(1.05);
}

/* Precision 90-Degree Rotated Custom Typography Mechanical Framework */
.vertical-arabic-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    letter-spacing: 0.05em;
    line-height: 1 !important;
}

/* Safe Mode Layout Flip Adjustment rules when main direction shifts to native RTL */
html[dir="rtl"] .vertical-arabic-label {
    transform: rotate(0deg);
}

/* ==========================================================================
   PRODUCTION ENGINE FOR DYNAMIC EDITORIAL SLIDER
   ========================================================================== */

/* Slide Base Structural Default Layers */
.editorial-slider-container .editorial-slide {
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Crystal-Clear Sharp Image Configuration Rules */
.editorial-slider-container .editorial-slide img {
    transform: scale(1.01);
    filter: blur(0px);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active Visibility Layout Rules */
.editorial-slider-container .editorial-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 15;
}

.editorial-slider-container .editorial-slide.is-active img {
    transform: scale(1.00);
}

/* Text Element Subtle Fade Entrance Transitions */
.editorial-slider-container .editorial-slide .flex {
    opacity: 0;
    transform: translateY(5px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.editorial-slider-container .editorial-slide.is-active .flex {
    opacity: 1;
    transform: translateY(0);
}

/* Standard Static Flat Pill Indicators (No Growth or Resize Animations) */
.editorial-slider-container .editorial-pill-indicator {
    width: 32px;
    height: 3px;
    border-radius: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    display: block;
    transition: background-color 0.3s ease-in-out;
}

/* Hover Interaction Style */
.editorial-slider-container .editorial-pill-indicator:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Clean Active State Indicator Visibility Rule */
.editorial-slider-container .editorial-pill-indicator.is-active {
    background-color: rgba(255, 255, 255, 1);
}

/* Mobile Component Responsive Adjustment Rules */
@media (max-width: 640px) {
    .editorial-slider-container .editorial-pill-indicator {
        width: 24px;
        height: 3px;
    }
}

/* Mobile Component Responsive Adjustment Rules */
    /* Force hide scrollbars everywhere */
    .scroll-container::-webkit-scrollbar { display: none; }
    .scroll-container { scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }

@keyframes sharp-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.4), 0 0 10px var(--glow-color); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px var(--glow-color); }
}

.sharp-glow {
    animation: sharp-pulse 2s infinite ease-in-out;
}

.wv-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.1s ease-out, transform 1.1s ease-out;
    will-change: opacity, transform;
}
.wv-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}
 
.wv-grid-texture {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .wv-reveal,
    .blueprint-draw-trace,
    .editorial-slider-container .editorial-slide,
    .editorial-slider-container .editorial-slide .flex,
    .blueprint-metric-card svg {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    .sharp-glow { animation: none !important; }
    .blueprint-draw-trace { stroke-dashoffset: 0 !important; }
}


.line-reveal-wrap.wv-reveal {
    overflow: hidden;
    display: block;
    /* Neutralise wv-reveal's own opacity + translateY — wrapper must stay
       fully visible; only the inner .line-reveal moves */
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
    /* Slight extra height so descenders don't clip */
    padding-bottom: 0.06em;
}
 
.line-reveal {
    display: block;
    transform: translateY(110%);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
 
/* Triggered when main.js IntersectionObserver adds .is-in */
.line-reveal-wrap.wv-reveal.is-in .line-reveal {
    transform: translateY(0);
}
[dir="rtl"] .line-reveal-wrap.wv-reveal {
    line-height: 1em;
    padding-bottom: 0.20em; /* more than Latin's 0.06em */
}
 
/* Reduced motion — skip animation entirely */
@media (prefers-reduced-motion: reduce) {
    .line-reveal {
        transform: none !important;
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   REVIEWS SECTION — ADD TO global.css
   ═══════════════════════════════════════════════════════════ */

/* Featured carousel slides — all stacked, only active visible */
.reviews-featured-slider .reviews-slide {
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.reviews-featured-slider .reviews-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

/* Dot indicators — flat pills, inactive dim, active wider + brighter */
.reviews-dot {
    width: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0;
    outline: none;
    cursor: pointer;
}

.reviews-dot:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.reviews-dot.is-active {
    width: 36px;
    background-color: var(--secondary);
}

/* Reduced motion — instant swap */
@media (prefers-reduced-motion: reduce) {
    .reviews-featured-slider .reviews-slide {
        transition: none;
    }
}

/* ── B: Ken Burns slow zoom on active image ───────────────
   Image starts at scale(1.0). When parent .editorial-slide
   becomes .is-active, image zooms slowly to scale(1.08) over 8s.
*/
.moments-slider .editorial-slide .moments-kenburns {
    transform: scale(1.0);
    transition: transform 0s linear;
    will-change: transform;
}
.moments-slider .editorial-slide.is-active .moments-kenburns {
    transform: scale(1.08);
    transition: transform 8s linear;
}
 
/* ── E + M: Title slides up from below AND tilts -1.5deg → 0
   Tilt is barely perceptible — adds editorial off-axis feel
   without looking broken.
*/
.moments-slider .moments-title,
.moments-slider .moments-sub,
.moments-slider .moments-year {
    transform: translateY(20px) rotate(-1.5deg);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
                opacity   0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
 
.moments-slider .editorial-slide.is-active .moments-title {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.15s;
}
.moments-slider .editorial-slide.is-active .moments-sub {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.30s;
}
.moments-slider .editorial-slide.is-active .moments-year {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.45s;
}
 
/* ── L: Letterbox bars — animate in from 0 → 4px once
   the slider scrolls into view. We use the existing
   wv-reveal class to detect viewport entry, but apply it
   to the slider container itself.
*/
.moments-slider .moments-letterbox-top,
.moments-slider .moments-letterbox-bottom {
    transition: height 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}
 
/* When the slider enters the viewport, expand bars to 4px */
.moments-slider.in-view .moments-letterbox-top,
.moments-slider.in-view .moments-letterbox-bottom {
    height: 4px;
}
 
/* ── Reduced motion — strip everything ──────────────────── */
@media (prefers-reduced-motion: reduce) {
    .moments-slider .editorial-slide .moments-kenburns,
    .moments-slider .moments-title,
    .moments-slider .moments-sub,
    .moments-slider .moments-year {
        transform: none !important;
        transition: none !important;
    }
    .moments-slider.in-view .moments-letterbox-top,
    .moments-slider.in-view .moments-letterbox-bottom {
        height: 0;
    }
}/* ── B: Ken Burns slow zoom on active image ───────────────
   Image starts at scale(1.0). When parent .editorial-slide
   becomes .is-active, image zooms slowly to scale(1.08) over 8s.
*/
.moments-slider .editorial-slide .moments-kenburns {
    transform: scale(1.0);
    transition: transform 0s linear;
    will-change: transform;
}
.moments-slider .editorial-slide.is-active .moments-kenburns {
    transform: scale(1.08);
    transition: transform 8s linear;
}
 
/* ── E + M: Title slides up from below AND tilts -1.5deg → 0
   Tilt is barely perceptible — adds editorial off-axis feel
   without looking broken.
*/
.moments-slider .moments-title,
.moments-slider .moments-sub,
.moments-slider .moments-year {
    transform: translateY(20px) rotate(-1.5deg);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
                opacity   0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
 
.moments-slider .editorial-slide.is-active .moments-title {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.15s;
}
.moments-slider .editorial-slide.is-active .moments-sub {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.30s;
}
.moments-slider .editorial-slide.is-active .moments-year {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.45s;
}
 
/* ── L: Letterbox bars — animate in from 0 → 4px once
   the slider scrolls into view. We use the existing
   wv-reveal class to detect viewport entry, but apply it
   to the slider container itself.
*/
.moments-slider .moments-letterbox-top,
.moments-slider .moments-letterbox-bottom {
    transition: height 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}
 
/* When the slider enters the viewport, expand bars to 4px */
.moments-slider.in-view .moments-letterbox-top,
.moments-slider.in-view .moments-letterbox-bottom {
    height: 4px;
}
 
/* ── Reduced motion — strip everything ──────────────────── */
@media (prefers-reduced-motion: reduce) {
    .moments-slider .editorial-slide .moments-kenburns,
    .moments-slider .moments-title,
    .moments-slider .moments-sub,
    .moments-slider .moments-year {
        transform: none !important;
        transition: none !important;
    }
    .moments-slider.in-view .moments-letterbox-top,
    .moments-slider.in-view .moments-letterbox-bottom {
        height: 0;
    }
}/* ── B: Ken Burns slow zoom on active image ───────────────
   Image starts at scale(1.0). When parent .editorial-slide
   becomes .is-active, image zooms slowly to scale(1.08) over 8s.
*/
.moments-slider .editorial-slide .moments-kenburns {
    transform: scale(1.0);
    transition: transform 0s linear;
    will-change: transform;
}
.moments-slider .editorial-slide.is-active .moments-kenburns {
    transform: scale(1.08);
    transition: transform 8s linear;
}
 
/* ── E + M: Title slides up from below AND tilts -1.5deg → 0
   Tilt is barely perceptible — adds editorial off-axis feel
   without looking broken.
*/
.moments-slider .moments-title,
.moments-slider .moments-sub,
.moments-slider .moments-year {
    transform: translateY(20px) rotate(-1.5deg);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
                opacity   0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
 
.moments-slider .editorial-slide.is-active .moments-title {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.15s;
}
.moments-slider .editorial-slide.is-active .moments-sub {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.30s;
}
.moments-slider .editorial-slide.is-active .moments-year {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.45s;
}
 
/* ── L: Letterbox bars — animate in from 0 → 4px once
   the slider scrolls into view. We use the existing
   wv-reveal class to detect viewport entry, but apply it
   to the slider container itself.
*/
.moments-slider .moments-letterbox-top,
.moments-slider .moments-letterbox-bottom {
    transition: height 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}
 
/* When the slider enters the viewport, expand bars to 4px */
.moments-slider.in-view .moments-letterbox-top,
.moments-slider.in-view .moments-letterbox-bottom {
    height: 4px;
}
 
/* ── Reduced motion — strip everything ──────────────────── */
@media (prefers-reduced-motion: reduce) {
    .moments-slider .editorial-slide .moments-kenburns,
    .moments-slider .moments-title,
    .moments-slider .moments-sub,
    .moments-slider .moments-year {
        transform: none !important;
        transition: none !important;
    }
    .moments-slider.in-view .moments-letterbox-top,
    .moments-slider.in-view .moments-letterbox-bottom {
        height: 0;
    }
}/* ── B: Ken Burns slow zoom on active image ───────────────
   Image starts at scale(1.0). When parent .editorial-slide
   becomes .is-active, image zooms slowly to scale(1.08) over 8s.
*/
.moments-slider .editorial-slide .moments-kenburns {
    transform: scale(1.0);
    transition: transform 0s linear;
    will-change: transform;
}
.moments-slider .editorial-slide.is-active .moments-kenburns {
    transform: scale(1.08);
    transition: transform 8s linear;
}
 
/* ── E + M: Title slides up from below AND tilts -1.5deg → 0
   Tilt is barely perceptible — adds editorial off-axis feel
   without looking broken.
*/
.moments-slider .moments-title,
.moments-slider .moments-sub,
.moments-slider .moments-year {
    transform: translateY(20px) rotate(-1.5deg);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
                opacity   0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
 
.moments-slider .editorial-slide.is-active .moments-title {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.15s;
}
.moments-slider .editorial-slide.is-active .moments-sub {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.30s;
}
.moments-slider .editorial-slide.is-active .moments-year {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.45s;
}
 
/* ── L: Letterbox bars — animate in from 0 → 4px once
   the slider scrolls into view. We use the existing
   wv-reveal class to detect viewport entry, but apply it
   to the slider container itself.
*/
.moments-slider .moments-letterbox-top,
.moments-slider .moments-letterbox-bottom {
    transition: height 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}
 
/* When the slider enters the viewport, expand bars to 4px */
.moments-slider.in-view .moments-letterbox-top,
.moments-slider.in-view .moments-letterbox-bottom {
    height: 4px;
}
 
/* ── Reduced motion — strip everything ──────────────────── */
@media (prefers-reduced-motion: reduce) {
    .moments-slider .editorial-slide .moments-kenburns,
    .moments-slider .moments-title,
    .moments-slider .moments-sub,
    .moments-slider .moments-year {
        transform: none !important;
        transition: none !important;
    }
    .moments-slider.in-view .moments-letterbox-top,
    .moments-slider.in-view .moments-letterbox-bottom {
        height: 0;
    }
}/* ── B: Ken Burns slow zoom on active image ───────────────
   Image starts at scale(1.0). When parent .editorial-slide
   becomes .is-active, image zooms slowly to scale(1.08) over 8s.
*/
.moments-slider .editorial-slide .moments-kenburns {
    transform: scale(1.0);
    transition: transform 0s linear;
    will-change: transform;
}
.moments-slider .editorial-slide.is-active .moments-kenburns {
    transform: scale(1.08);
    transition: transform 8s linear;
}
 
/* ── E + M: Title slides up from below AND tilts -1.5deg → 0
   Tilt is barely perceptible — adds editorial off-axis feel
   without looking broken.
*/
.moments-slider .moments-title,
.moments-slider .moments-sub,
.moments-slider .moments-year {
    transform: translateY(20px) rotate(-1.5deg);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
                opacity   0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
 
.moments-slider .editorial-slide.is-active .moments-title {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.15s;
}
.moments-slider .editorial-slide.is-active .moments-sub {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.30s;
}
.moments-slider .editorial-slide.is-active .moments-year {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition-delay: 0.45s;
}
 
/* ── L: Letterbox bars — animate in from 0 → 4px once
   the slider scrolls into view. We use the existing
   wv-reveal class to detect viewport entry, but apply it
   to the slider container itself.
*/
.moments-slider .moments-letterbox-top,
.moments-slider .moments-letterbox-bottom {
    transition: height 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}
 
/* When the slider enters the viewport, expand bars to 4px */
.moments-slider.in-view .moments-letterbox-top,
.moments-slider.in-view .moments-letterbox-bottom {
    height: 4px;
}
 
/* ── Reduced motion — strip everything ──────────────────── */
@media (prefers-reduced-motion: reduce) {
    .moments-slider .editorial-slide .moments-kenburns,
    .moments-slider .moments-title,
    .moments-slider .moments-sub,
    .moments-slider .moments-year {
        transform: none !important;
        transition: none !important;
    }
    .moments-slider.in-view .moments-letterbox-top,
    .moments-slider.in-view .moments-letterbox-bottom {
        height: 0;
    }
}

.newsletter-input:focus + .newsletter-underline,
.newsletter-input:not(:placeholder-shown) + .newsletter-underline {
    width: 100%;
}
 
/* Hide [x-cloak] elements until Alpine boots (prevents flash) */
[x-cloak] { display: none !important; }
 
.app-bot-bubble {
    animation: bot-float 3s ease-in-out infinite;
}
@keyframes bot-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}

#app-bot-canvas {
    mix-blend-mode: screen;
    background: transparent;
}