/* ===================================================================
   ZENITH — Design System
   Brand: black + crimson, premium editorial dark UI
=================================================================== */
:root {
    --primary-red: #FF2E37;
    --red-deep: #C81E26;
    --red-glow: rgba(255, 46, 55, 0.45);

    --primary-white: #F5F3F2;
    --secondary-black: #0A0A0C;
    --surface: #111114;
    --surface-2: #18181C;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --text-grey: #B7B7BE;
    --text-mute: #74747C;
    --text-dark: #1A1A1E;

    --font-main: 'Outfit', sans-serif;
    --font-display: 'Space Grotesk', 'Outfit', sans-serif;

    --container: 1280px;
    --transition-speed: 0.3s;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--secondary-black);
    color: var(--primary-white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

::selection {
    background: var(--primary-red);
    color: #fff;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--primary-red);
    margin-bottom: 1.4rem;
}

.eyebrow.light {
    color: rgba(255, 255, 255, 0.8);
}

.accent {
    color: var(--primary-red);
}

.muted {
    color: var(--text-mute) !important;
}

/* Scroll Animation Classes (used by main.js) */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================== INTRO ====================== */
#intro-layer {
    position: fixed;
    inset: 0;
    background: var(--secondary-black);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.45s ease, visibility 0.45s;
    will-change: opacity;
}

#intro-layer::after {
    content: '';
    position: absolute;
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 65%);
    filter: blur(40px);
    opacity: 0.6;
}

.intro-logo {
    --logo-w: 460px;
    position: relative;
    z-index: 1;
    width: var(--logo-w);
    max-width: 82%;
    aspect-ratio: 2732 / 1931;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.84, 0);
    will-change: transform;
    transform: translateZ(0);
}

/* Three masked layers built from the white wordmark PNG */
.logo-outline,
.logo-core,
.logo-fill {
    position: absolute;
    inset: 0;
    -webkit-mask: url('assets/images/ZENITH_LOGO_W.png') center / contain no-repeat;
    mask: url('assets/images/ZENITH_LOGO_W.png') center / contain no-repeat;
}

/* 1. Dilated ring = the outline */
.logo-outline {
    background: rgba(255, 255, 255, 0.55);
    filter:
        drop-shadow(2px 0 0 rgba(255, 255, 255, 0.55))
        drop-shadow(-2px 0 0 rgba(255, 255, 255, 0.55))
        drop-shadow(0 2px 0 rgba(255, 255, 255, 0.55))
        drop-shadow(0 -2px 0 rgba(255, 255, 255, 0.55));
}

/* 2. Knock out the interior so it matches the background → outline only */
.logo-core {
    background: var(--secondary-black);
}

/* 3. Pantone 485 C fill that sweeps in from the left */
.logo-fill {
    background: #DA291C;
    clip-path: inset(0 100% 0 0);
}

#intro-layer.fill .logo-fill {
    animation: logoFill 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes logoFill {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* Once filled: enlarge to disappear and reveal the hero */
#intro-layer.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro-layer.done .intro-logo {
    transform: translateZ(0) scale(5);
}

/* Drop the heavy drop-shadow filter during the zoom so it doesn't jank */
#intro-layer.done .logo-outline {
    filter: none;
}

/* ====================== NAVBAR ====================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2.5rem;
    transition: background-color 0.4s, padding 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
    padding: 1rem 2.5rem;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo-container {
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.5s, transform 0.5s;
    flex-shrink: 0;
}

.navbar.scrolled .nav-logo-container {
    opacity: 1;
    transform: translateY(0);
}

.nav-logo {
    height: 38px;
    filter: invert(1) brightness(2);
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    margin-left: auto;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    color: rgba(220, 228, 255, 0.72);
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #fff;
}

/* Once the bar picks up its dark scrolled background, flip text back to light */
.navbar.scrolled .nav-links li a {
    color: var(--text-grey);
}

.navbar.scrolled .nav-links li a:hover {
    color: var(--primary-white);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s var(--ease);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-cta {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.65rem 1.4rem;
    border-radius: 100px;
    background: var(--primary-red);
    color: #fff;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.nav-cta:hover {
    background: var(--red-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--red-glow);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 2px;
    background-color: rgba(230, 236, 255, 0.9);
    transition: 0.3s;
}

.navbar.scrolled .mobile-menu-toggle span {
    background-color: var(--primary-white);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: #070708;
    border-left: 1px solid var(--line);
    z-index: 1500;
    transition: right 0.4s var(--ease);
    padding: 6rem 2.5rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul li {
    margin-bottom: 2rem;
}

.mobile-nav ul li a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-white);
}

.mobile-nav ul li a:hover {
    color: var(--primary-red);
}

/* ====================== HERO ====================== */
/* ====================== CINEMATIC HERO ====================== */
/* Registered so the ambient hue can interpolate (plain custom props can't).
   One color drives the bloom, orb core, ASCII glow and wordmark halo. */
@property --amb {
    syntax: "<color>";
    inherits: true;
    initial-value: #7a96ff;
}

@keyframes ambientShift {
    0%   { --amb: #7a96ff; }  /* indigo blue */
    18%  { --amb: #9d7bff; }  /* violet */
    36%  { --amb: #e56aa8; }  /* magenta rose */
    54%  { --amb: #ff6f6f; }  /* warm coral */
    72%  { --amb: #4fc6d0; }  /* teal */
    90%  { --amb: #6f8dff; }  /* soft blue */
    100% { --amb: #7a96ff; }  /* back to start */
}

.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
    display: block;
    padding: 0;
    background:
        radial-gradient(120% 90% at 50% 8%, #12162b 0%, #0a0c1a 40%, #05060d 100%);
    color: var(--primary-white);
    animation: ambientShift 36s ease-in-out infinite;
}

/* Central bloom behind the orb */
.hero-bg-glow {
    position: absolute;
    top: 42%;
    left: 50%;
    width: min(90vw, 1000px);
    height: min(90vw, 1000px);
    transform: translate(-50%, -50%);
    z-index: 0;
    background:
        radial-gradient(circle at 56% 48%, color-mix(in srgb, var(--amb) 34%, transparent) 0%, transparent 46%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--amb) 16%, transparent) 0%, transparent 58%);
    filter: blur(18px);
    pointer-events: none;
}

/* Darkening vignette toward the edges + bottom */
.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(120% 120% at 50% 40%, transparent 46%, rgba(3, 4, 10, 0.72) 100%),
        linear-gradient(to bottom, transparent 55%, rgba(3, 4, 10, 0.5) 100%);
    pointer-events: none;
}

/* Subtle film grain */
.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Glowing ASCII orb --- */
.hero-orb {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(58vw, 450px);
    aspect-ratio: 1;
    z-index: 2;
    display: grid;
    place-items: center;
    animation: orbIn 1.4s var(--ease) 0.2s backwards;
}

.orb-ring {
    position: absolute;
    inset: 2%;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--amb) 26%, transparent);
    box-shadow: inset 0 0 60px color-mix(in srgb, var(--amb) 12%, transparent);
}

.orb-ascii {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: ui-monospace, "SF Mono", "Menlo", monospace;
    font-size: clamp(6px, 1.15vw, 12px);
    line-height: 1;
    letter-spacing: 0;
    color: color-mix(in srgb, var(--amb) 42%, #e2e9ff);
    text-shadow: 0 0 6px color-mix(in srgb, var(--amb) 55%, transparent);
    white-space: pre;
    user-select: none;
    pointer-events: none;
}

/* Blown-out light core sitting on the orb's right flank */
.orb-core {
    position: absolute;
    z-index: 1;
    width: 46%;
    height: 46%;
    right: 12%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle,
            #ffffff 0%,
            color-mix(in srgb, var(--amb) 22%, #ffffff) 16%,
            color-mix(in srgb, var(--amb) 55%, transparent) 42%,
            transparent 70%);
    filter: blur(2px);
    box-shadow:
        0 0 90px 30px color-mix(in srgb, var(--amb) 38%, transparent),
        0 0 180px 60px color-mix(in srgb, var(--amb) 16%, transparent);
    animation: corePulse 6s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { opacity: 0.92; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.05); }
}

/* --- Slide arrows --- */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 64px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(230, 236, 255, 0.7);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.25s;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.arrow-prev { left: 1.6rem; }
.arrow-next { right: 1.6rem; }
.arrow-prev:hover { transform: translateY(-50%) translateX(-3px); }
.arrow-next:hover { transform: translateY(-50%) translateX(3px); }

/* --- Flanking verse text --- */
.hero-verse {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    font-size: clamp(0.72rem, 0.9vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(220, 228, 255, 0.78);
    line-height: 1.4;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.verse-left {
    left: clamp(1.6rem, 5vw, 5rem);
    text-align: left;
    animation: fadeSlideUp 1s var(--ease) 0.6s backwards;
}

.verse-right {
    right: clamp(1.6rem, 5vw, 5rem);
    text-align: right;
    animation: fadeSlideUp 1s var(--ease) 0.75s backwards;
}

.hero-verse.swapping { opacity: 0; }
.verse-left.swapping { transform: translateY(-50%) translateX(-12px); }
.verse-right.swapping { transform: translateY(-50%) translateX(12px); }

/* --- Giant wordmark --- */
.hero-wordmark-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3.5vh;
    z-index: 3;
    text-align: center;
    animation: fadeSlideUp 1.1s var(--ease) 0.4s backwards;
}

.hero-eyebrow {
    display: block;
    font-size: clamp(0.65rem, 0.85vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(200, 210, 240, 0.65);
    margin-bottom: clamp(0.4rem, 1.4vh, 1rem);
    padding-left: 0.42em;
    transition: opacity 0.4s var(--ease);
}

.hero-eyebrow.swapping { opacity: 0; }

.hero-lead {
    max-width: 44ch;
    margin: 0 auto clamp(0.6rem, 1.6vh, 1.3rem);
    font-size: clamp(0.9rem, 1.05vw, 1.08rem);
    line-height: 1.6;
    color: rgba(214, 222, 245, 0.82);
    text-shadow: 0 1px 20px rgba(3, 4, 10, 0.8);
}

.hero-wordmark {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: clamp(3.4rem, 15.5vw, 15.5rem);
    line-height: 0.82;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
    text-shadow:
        0 0 40px color-mix(in srgb, var(--amb) 40%, transparent),
        0 0 120px color-mix(in srgb, var(--amb) 28%, transparent);
    -webkit-user-select: none;
    user-select: none;
}

/* --- Meta line + inline CTA --- */
.hero-meta {
    position: absolute;
    left: clamp(1.6rem, 5vw, 5rem);
    bottom: 2rem;
    z-index: 6;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200, 210, 240, 0.55);
    animation: fadeIn 1s var(--ease) 1s backwards;
}

.hero-cta-inline {
    position: absolute;
    right: clamp(1.6rem, 5vw, 5rem);
    bottom: 1.8rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(230, 236, 255, 0.85);
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 100px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
    animation: fadeIn 1s var(--ease) 1.1s backwards;
}

.hero-cta-inline svg { width: 16px; height: 16px; }
.hero-cta-inline:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: bounce 2s infinite;
    z-index: 5;
}

/* The giant wordmark owns the bottom-center, so drop the scroll cue here */
.hero-cinematic .scroll-indicator {
    display: none;
}

.scroll-indicator span {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: rgba(200, 210, 240, 0.7);
}

.arrow-down {
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(200, 210, 240, 0.7);
    border-bottom: 2px solid rgba(200, 210, 240, 0.7);
    transform: rotate(45deg);
}

/* ====================== MARQUEE ====================== */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    padding: 1.6rem 0;
    /* Breathing room so the strip floats between the hero and the gallery */
    margin: clamp(3rem, 7vh, 6rem) 0;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 26s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-grey);
    white-space: nowrap;
}

.marquee-track .sep {
    color: var(--primary-red);
    font-size: 1rem;
}

/* ====================== SECTIONS ====================== */
.section {
    padding: 8rem 2.5rem;
    position: relative;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.2rem;
    background-color: var(--primary-red);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}

.btn-primary:hover {
    background-color: var(--red-deep);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px var(--red-glow);
    color: #fff;
}

.btn-primary.lg {
    padding: 1.2rem 3rem;
    font-size: 1rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    border: 1px solid var(--line-strong);
    color: var(--primary-white);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: border-color 0.3s, background 0.3s, gap 0.3s var(--ease);
}

.btn-ghost svg {
    width: 18px;
    height: 18px;
}

.btn-ghost:hover {
    border-color: var(--primary-red);
    background: rgba(255, 46, 55, 0.08);
    gap: 0.9rem;
}

.btn-ghost.dark {
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-ghost.dark:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

/* ====================== ABOUT ====================== */
.about-section {
    background: var(--secondary-black);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.4rem;
    font-size: 1.08rem;
    color: var(--text-grey);
    max-width: 34em;
}

.about-pillars {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.pillar {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}

.pillar:hover {
    border-color: var(--line-strong);
    transform: translateX(6px);
}

.pillar svg {
    width: 26px;
    height: 26px;
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.pillar h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.pillar p {
    font-size: 0.92rem;
    color: var(--text-mute);
    margin: 0;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s var(--ease);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.about-badge {
    position: absolute;
    bottom: -28px;
    left: -28px;
    z-index: 3;
    background: var(--primary-red);
    color: #fff;
    padding: 1.4rem 1.6rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 20px 40px var(--red-glow);
}

.badge-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ====================== DYNAMIC BANNERS ====================== */
.dynamic-banners-section {
    padding: 2rem 2.5rem 4rem;
}

.banner-top {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
}

.banner-top:empty {
    display: none;
}

.banner-top img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.banner-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.banner-item {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ====================== COLLECTION ====================== */
.shop-section {
    background: var(--primary-white);
    color: var(--text-dark);
    border-radius: 40px 40px 0 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.shop-section .eyebrow {
    color: var(--primary-red);
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
    color: var(--text-dark);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 240px;
    width: 100%;
    background: linear-gradient(160deg, #f3f3f5, #e7e7ea);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px;
    position: relative;
}

.product-image img {
    max-height: 184px;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.6s var(--ease);
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.14));
    mix-blend-mode: multiply;
}

.product-card:hover .product-image img {
    transform: scale(1.06) rotate(-2deg);
}

.product-info {
    padding: 1.6rem 1.8rem 1.8rem;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-index {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-red);
    letter-spacing: 0.05em;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-info p {
    color: #6a6a72;
    font-size: 0.98rem;
    margin-bottom: 1.3rem;
    max-width: 32em;
}

.card-link {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-red);
}

/* ====================== DISTRIBUTOR ====================== */
.distributor-section {
    position: relative;
    text-align: center;
    padding: 9rem 2.5rem;
    background: #050506;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

/* Breathing red-glow backdrop */
.distributor-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(58% 78% at 50% 46%, rgba(216, 41, 28, 0.32), transparent 68%),
        radial-gradient(120% 95% at 50% 0%, rgba(120, 18, 22, 0.5), transparent 62%),
        radial-gradient(120% 95% at 50% 100%, rgba(120, 18, 22, 0.35), transparent 60%);
    animation: distributorGlow 9s ease-in-out infinite alternate;
}

/* Soft diagonal light sweeps for texture (no grid) */
.distributor-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, 0.04) 50%, transparent 62%),
        linear-gradient(62deg, transparent 60%, rgba(255, 46, 55, 0.05) 74%, transparent 86%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 82%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 82%);
    pointer-events: none;
}

@keyframes distributorGlow {
    from { opacity: 0.75; transform: scale(1); }
    to { opacity: 1; transform: scale(1.06); }
}

.distributor-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.distributor-content .eyebrow {
    color: #ff7a70;
    margin-bottom: 1.6rem;
}

.distributor-content h2 {
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    color: #fff;
    text-shadow: 0 10px 60px rgba(216, 41, 28, 0.55);
}

.distributor-content p {
    font-size: 1.18rem;
    line-height: 1.65;
    color: var(--text-grey);
    max-width: 32em;
    margin: 0 auto 2.8rem;
}

.distributor-content .btn-primary {
    box-shadow: 0 14px 40px rgba(216, 41, 28, 0.45);
}

/* ====================== CONTACT ====================== */
.contact-section {
    background: var(--secondary-black);
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 1.5rem;
}

.contact-loc {
    font-size: 1.1rem;
    color: var(--text-grey);
}

.follow-label {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-white);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-strong);
    color: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s var(--ease);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--surface);
}

.social-icon:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--red-glow);
    color: #fff;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    background: var(--surface);
    padding: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.1rem 1.2rem;
    background-color: var(--secondary-black);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--primary-white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-mute);
}

.contact-form textarea,
.contact-form button {
    grid-column: span 2;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background-color: #0c0c0f;
}

.contact-form button {
    margin-top: 0.5rem;
    width: 100%;
    padding: 1.15rem;
    font-size: 1rem;
}

/* ====================== FOOTER ====================== */
footer {
    padding: 2.5rem 2.5rem;
    background: #050506;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--text-mute);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-mute);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.footer-links a:hover {
    color: var(--primary-white);
}

/* ====================== KEYFRAMES ====================== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Orb entrance keeps its centering translate intact */
@keyframes orbIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes spinSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatProduct {
    0%, 100% { transform: translateY(0) rotate(-12deg); }
    50% { transform: translateY(-22px) rotate(-9deg); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 var(--red-glow); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes pulseGradient {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ====================== RESPONSIVE ====================== */
/* Side rails only have clearance on very wide screens; hide them before
   the centered content column can collide with them. */
@media (max-width: 1024px) {
    .hero-orb { top: 40%; width: min(80vw, 480px); }

    .about-grid { gap: 3rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-toggle { display: flex; }
    .navbar { padding: 1.2rem 1.5rem; }

    .section { padding: 5rem 1.5rem; }

    /* Tuck the verses closer in so they don't crowd the orb */
    .hero-verse { font-size: 0.66rem; top: 34%; }
    .hero-arrow { width: 38px; height: 54px; }

    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .about-badge { bottom: -20px; left: 16px; }

    .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .contact-form { grid-template-columns: 1fr; padding: 1.8rem; }
    .contact-form textarea, .contact-form button { grid-column: span 1; }

    footer .container { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-width: 640px) {
    /* Verses and arrows crowd the orb on phones — drop to a clean orb + wordmark */
    .hero-verse, .hero-arrow, .scroll-indicator { display: none; }
    .hero-orb { top: 42%; width: min(86vw, 400px); }
    .hero-cta-inline { display: none; }
    .hero-wordmark-wrap { bottom: 6vh; padding: 0 1.4rem; }
    .hero-lead { font-size: 0.88rem; line-height: 1.55; }
    .hero-meta {
        left: 0; right: 0; bottom: 1.6rem;
        text-align: center;
        font-size: 0.62rem;
    }
    .marquee-track span { font-size: 1.2rem; }
    .intro-logo { --logo-w: 300px; }
    .shop-section { border-radius: 28px 28px 0 0; }
    .product-grid { grid-template-columns: 1fr; }
    .product-image { height: 220px; }
}

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

    .orb-core,
    .hero-orb,
    .hero-section,
    .scroll-indicator,
    .marquee-track {
        animation: none !important;
    }

    /* Intro: skip the fill/zoom, show the filled logo, then the JS hides it */
    .logo-fill {
        clip-path: inset(0 0 0 0) !important;
        animation: none !important;
    }

    #intro-layer.done .intro-logo {
        transform: none !important;
    }
}
