/*
 * Lord of Bugs, Main Stylesheet
 * Child theme for GeneratePress
 * Version: 2.1  WordPress layout fixes
 *
 * FIXES IN THIS VERSION:
 * - GeneratePress .site, .site-content, .content-area overflow fixes
 * - Parallax footer visible through hero (z-index + stacking context fix)
 * - main-wrapper min-height forces footer below all content
 * - Hero left column: properly centered text on desktop
 * - GP removes max-width constraints from #page, #content, .site-content
 * - Local font @font-face blocks ACTIVE 
 */


/* outfit-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/outfit-v15-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/outfit-v15-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/outfit-v15-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cormorant-garamond-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/cormorant-garamond-v21-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cormorant-garamond-300italic - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/cormorant-garamond-v21-latin-300italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cormorant-garamond-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cormorant-garamond-italic - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cormorant-garamond-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ═══════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
    --bg: #faf9f6;
    --bg2: #f2efe8;
    --bg3: #e8e4da;
    --ink: #0f0e0c;
    --ink2: #2a2620;
    --gray: #6e6a64;
    --mist: #a09890;
    --copper: #9a5f1e;
    --copper-lt: #e8b680;
    --copper-bg: rgba(154, 95, 30, 0.08);
    --rust: #7a3010;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.09);
    --red-sold: #c0392b;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-height: 70px;
    --max-width: 1300px;
    --t-fast: 0.2s ease;
    --t-base: 0.3s ease;
    --t-slow: 0.5s ease;
}

/* reduce-motion */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

/* ═══════════════════════════════════════════
   2. RESET / BASE
═══════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Prevents black flash on Android when body is position:fixed during menu-open */
    background: #faf9f6;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ── GENERATEPRESS OVERRIDES ─────────────────
   GP wraps everything in #page > .site-content > #content > .content-area
   These wrappers have their own max-width, padding, and overflow that
   clip our fixed-position footer and break the stacking context.
   We strip all of them to zero and make body the layout root.
────────────────────────────────────────────── */

/* Full-width canvas , remove ALL GP layout constraints */
.lob-front-page #page,
.lob-front-page .site,
.lob-front-page #content,
.lob-front-page .site-content,
.lob-front-page .content-area,
.lob-front-page .site-inner,
.lob-front-page #primary,
.lob-front-page .inside-site-inner,
.lob-front-page .grid-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Kill GP header/footer/nav on front page
   (Belt + suspenders alongside the PHP remove_action calls) */
.lob-front-page .site-header,
.lob-front-page .site-footer,
.lob-front-page .main-navigation,
.lob-front-page .nav-primary,
.lob-front-page .mobile-menu-control-wrap,
.lob-front-page .generate-back-to-top {
    display: none !important;
}

/* The site-main / article GP injects zero it out */
.lob-front-page .site-main,
.lob-front-page article.page,
.lob-front-page .entry-content,
.lob-front-page .entry-header,
.lob-front-page .entry-footer,
.lob-front-page .inside-article {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* ── STACKING CONTEXT FIX ──
   GP #page can create a new stacking context that traps our
   position:fixed footer inside it, making it appear inside the hero.
   We explicitly force the correct z-index layers.
─────────────────────────────────────────── */
.lob-front-page #page,
.lob-front-page .site {
    position: static !important;
    z-index: auto !important;
    isolation: auto !important;
    transform: none !important;
    overflow: visible !important;
}

/* ── MAIN WRAPPER ──
   z-index: 2 sits above the fixed footer (z-index: 1).
   The margin-bottom (set by JS) creates the scroll space
   that reveals the footer as you scroll to the bottom.
─────────────────────────────────────────── */
.main-wrapper {
    position: relative;
    z-index: 2;
    background: var(--bg);
    /* min-height ensures page is always taller than viewport
       so the footer can never bleed through top sections */
    min-height: 100vh;
}

/* ═══════════════════════════════════════════
   3. TYPOGRAPHY HELPERS
═══════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 600;
    font-style: italic;
    color: var(--ink);
    line-height: 1.1;
}

.section-title em {
    font-style: normal;
    color: var(--copper);
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
    opacity: 0.2;
}

/* ═══════════════════════════════════════════
   4. NAVIGATION
═══════════════════════════════════════════ */
nav#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 5%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--t-base), box-shadow var(--t-base);
}

nav#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
}

nav#navbar.menu-open {
    background: var(--bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.logo {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1002;
    line-height: 1.1;
}

.logo span {
    color: var(--copper);
}

.logo-sub {
    display: block;
    font-family: var(--sans);
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mist);
    margin-top: 0.15rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--ink2);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--t-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--copper);
    outline: none;
}

.nav-cta {
    padding: 0.5rem 1.3rem !important;
    border: 1px solid var(--copper) !important;
    color: var(--copper) !important;
    transition: background var(--t-fast), color var(--t-fast) !important;
}

.nav-cta:hover {
    background: var(--copper) !important;
    color: #fff !important;
}

/* Hamburger uses SVG X instead of CSS transform (more reliable on Android) */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1003;
    position: relative;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

/* Three-line icon (closed state) */
.hamburger .bar {
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

.hamburger .bar span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.28s ease, opacity 0.28s ease;
    transform-origin: center;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 2px;
}

/* X state  translateY FIRST, then rotate (fixes MIUI/Android GPU compositor bug) */
.hamburger.open .bar span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .bar span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open .bar span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE NAV OVERLAY ──
   Uses visibility+opacity instead of display:none/flex.
   This avoids Android repaint bugs with display toggling.
   Touch events blocked via pointer-events when hidden.
─────────────────────────────────────────── */
@media (max-width:900px) {
    .hamburger {
        display: flex;
    }

    /* html/body background fix: prevents black flash when body is fixed */
    html {
        background: var(--bg);
    }

    .nav-links {
        /* Hidden state  no display:none, use visibility for GPU layer */
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        /* Full viewport overlay */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100%;
        min-height: 100vh;
        background: var(--bg);
        /* Center the links */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.4rem;
        /* Above everything */
        z-index: 1002;
        /* Smooth fade */
        transition: opacity 0.28s ease, visibility 0.28s ease;
        /* Android touch fix */
        -webkit-overflow-scrolling: touch;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Open state */
    .nav-links.open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        display: block;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.15rem;
        letter-spacing: 0.12em;
        color: var(--ink);
        padding: 0.6rem 2rem;
        display: block;
        /* Large tap target for mobile */
        min-height: 48px;
        line-height: 48px;
        padding: 0 2rem;
    }

    .nav-cta {
        padding: 0.8rem 2.5rem !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
        min-height: auto !important;
    }

    /* Footer links inside nav  centered */
    .nav-links .nav-footer-links {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
        width: 80%;
    }

    .nav-links .nav-footer-links a {
        font-size: 0.72rem;
        color: var(--mist);
        letter-spacing: 0.15em;
        min-height: 36px;
        line-height: 36px;
        padding: 0 0.5rem;
    }
}

/* ═══════════════════════════════════════════
   5. HERO
═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* horizontal center */
    text-align: center;
    padding: 10rem 6% 5rem;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--copper);
    opacity: 0;
    animation: fadeInRight 0.8s ease-out 0.2s forwards;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3.2rem, 6vw, 6rem);
    line-height: 1.0;
    font-weight: 300;
    font-style: italic;
    color: var(--ink);
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: fadeUp 0.9s ease-out 0.4s forwards;
}

.hero h1 em {
    font-style: normal;
    color: var(--copper);
}

.hero-sub {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.8;
    max-width: 380px;
    margin: 0 auto 2.8rem;
    opacity: 0;
    animation: fadeUp 0.9s ease-out 0.6s forwards;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.9s ease-out 0.8s forwards;
}

.hero-right {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.hero-right::before {
    content: '';
    position: absolute;
    width: 55%;
    padding-bottom: 55%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154, 95, 30, 0.07) 0%, transparent 70%);
}

.hero-right img {
    width: 80%;
    max-width: 460px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: floatBug 6s ease-in-out infinite, fadeIn 1s ease-out 0.5s both;
    filter: drop-shadow(1px 150px 18px rgb(199, 199, 199));
    -webkit-filter: drop-shadow(1px 150px 18px rgb(199, 199, 199));
}

/* Scroll indicator  vertical needle, animates top→bottom */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.hero-scroll span {
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--mist);
}

.scroll-needle {
    width: 1.5px;
    height: 50px;
    background: var(--bg3);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-needle::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--copper));
    animation: scrollNeedle 1.8s ease-in-out infinite;
    border-radius: 2px;
}

@media (max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-left {
        padding: 6rem 5% 0;
        align-items: center;
        text-align: center;
    }

    .hero-right {
        min-height: 42vw;
        padding: 1rem 5% 3rem;
    }

    .hero-right img {
        width: 65%;
        max-width: 280px;
        filter: drop-shadow(1px 80px 18px rgb(199, 199, 199));
        -webkit-filter: drop-shadow(1px 80px 18px rgb(199, 199, 199));
    }
}

@media (max-width:480px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ═══════════════════════════════════════════
   6. BUTTONS
═══════════════════════════════════════════ */

/* ── Shine sweep animation ─────────────────
   A diagonal light streak sweeps across every 5s.
   Applied to .btn-copper and .footer-pill-form button.
   Works via a pseudo-element so background-color transitions
   are not disrupted.
──────────────────────────────────────────── */
@keyframes btnShine {
    0% {
        left: -120%;
    }

    30%,
    100% {
        left: 140%;
    }
}

.btn-primary,
.btn-ghost,
.btn-copper,
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background var(--t-base), color var(--t-base),
        transform var(--t-base), box-shadow var(--t-base);
}

.btn-primary {
    padding: 0.95rem 2.4rem;
    background: var(--ink);
    color: var(--bg) !important;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--copper);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(154, 95, 30, 0.22);
    outline: none;
}

.btn-ghost {
    padding: 0.95rem 2.4rem;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    color: var(--ink2) !important;
    background: transparent;
    font-weight: 300;
    text-decoration: none;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--copper);
    color: var(--copper) !important;
    outline: none;
    text-decoration: none;
}

/* Copper buttons get the shine pseudo-element */
.btn-copper {
    padding: 0.95rem 2.4rem;
    background: var(--copper);
    color: #fff !important;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(154, 95, 30, 0.22);
}

.btn-copper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.22) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    animation: btnShine 5s ease-in-out infinite;
    pointer-events: none;
}

.btn-copper:hover,
.btn-copper:focus-visible {
    background: var(--rust);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(122, 48, 16, 0.35);
    outline: none;
}

.btn-copper:hover::after {
    animation-play-state: paused;
}

.btn-pill {
    padding: 0.7rem 1.5rem;
    background: var(--ink);
    color: var(--bg) !important;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.btn-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    animation: btnShine 6s ease-in-out 1.5s infinite;
    pointer-events: none;
}

.btn-pill:hover,
.btn-pill:focus-visible {
    background: var(--copper);
    outline: none;
}

/* CTA banner pill button */
.cta-banner .btn-copper {
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 0.85rem;
    box-shadow: 0 4px 20px rgba(154, 95, 30, 0.38);
}

.cta-banner .btn-copper::after {
    animation-duration: 4s;
    /* slightly faster in CTA */
}

.cta-banner .btn-copper:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(154, 95, 30, 0.48);
}

/* Focus ring */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════
   7. COUNTER BAR
═══════════════════════════════════════════ */
.counter-bar {
    padding: 3.5rem 5%;
    background: var(--ink);
    color: var(--bg);
}

.counter-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.counter-item {
    text-align: center;
    position: relative;
}

.counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    width: 1px;
    height: 70%;
    background: rgba(154, 95, 30, 0.35);
}

.counter-number {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1;
    color: var(--copper-lt);
    margin-bottom: 0.4rem;
}

.counter-number.pop {
    animation: popEffect 0.5s ease;
}

.counter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(250, 249, 246, 0.5);
    font-weight: 300;
}

@media (max-width:640px) {
    .counter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .counter-item:not(:last-child)::after {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   9. COLLECTION / GALLERY
═══════════════════════════════════════════ */
#collection {
    padding: 7rem 5%;
    background: var(--bg);
}

@media (max-width:900px) {
    #collection {
        padding-top: 3rem;
    }
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.55rem 1.3rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--mist);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.filter-btn:hover,
.filter-btn:focus-visible {
    border-color: var(--copper);
    color: var(--copper);
    outline: none;
}

.filter-btn.active {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    font-weight: 500;
}

.gallery-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width:900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:540px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.mobile-hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* SOLD ribbon badge */
.sold-badge {
    position: absolute;
    top: 16px;
    left: -28px;
    width: 115px;
    text-align: center;
    background: var(--red-sold);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 0;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(192, 57, 43, 0.4);
    pointer-events: none;
}

/* Gallery media  image or video */
.gallery-media,
.gallery-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--bg2);
}

.gallery-media video,
.gallery-media img,
.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-slow);
}

.gallery-item:hover .gallery-media video,
.gallery-item:hover .gallery-media img,
.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 14, 12, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
}

.gallery-item:hover .gallery-image-overlay {
    opacity: 1;
}

.gallery-image-cta {
    padding: 0.65rem 1.8rem;
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: translateY(8px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image-cta {
    transform: translateY(0);
}

.gallery-info {
    padding: 1.4rem 1.5rem 1.6rem;
}

.gallery-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: var(--ink);
}

.gallery-meta {
    font-size: 0.75rem;
    color: var(--copper);
    letter-spacing: 0.07em;
    margin-bottom: 0.6rem;
}

.gallery-description {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1rem;
}

.gallery-link {
    font-size: 0.72rem;
    color: var(--copper);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--t-fast);
}

.gallery-link:hover {
    color: var(--rust);
}

/* ═══════════════════════════════════════════
   10. SCROLL REVEAL
═══════════════════════════════════════════ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.antHand {
    max-width: 650px;
    text-align: center;
    position: absolute;
    left: 0;
}

.antHand.scroll-reveal {
    transform: translateX(-5rem);
}

.antHand.scroll-reveal.visible {
    transform: translateX(0);
}

/* ═══════════════════════════════════════════
   11. SPECIES
═══════════════════════════════════════════ */
#species {
    padding: 7rem 5% 10rem;
    background: var(--bg2);
    position: relative;
}

@media (max-width:900px) {
    #species {
        padding-top: 3rem;
    }
}

.species-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width:900px) {
    .species-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.species-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s;
}

.species-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

.species-img-wrap {
    aspect-ratio: 1;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.species-img-wrap img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(1px 64px 18px rgb(199, 199, 199));
    -webkit-filter: drop-shadow(1px 64px 18px rgb(199, 199, 199));
}

.species-card:hover .species-img-wrap img {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(1px 70px 18px rgb(199, 199, 199));
    -webkit-filter: drop-shadow(1px 70px 18px rgb(199, 199, 199));
}

.species-info {
    padding: 1.4rem;
}

.species-name {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 0.9rem;
    color: var(--ink);
}

.species-stats {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.species-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--bg2);
}

.species-stat:last-child {
    border: none;
}

.stat-label {
    color: var(--mist);
    font-weight: 300;
}

.stat-value {
    color: var(--copper);
    font-weight: 400;
}

/* ═══════════════════════════════════════════
   12. PROCESS
═══════════════════════════════════════════ */
#process {
    padding: 7rem 5%;
    background: var(--bg);
    margin-top: 2rem;
}

@media (max-width:900px) {
    #process {
        margin-top: 1rem;
        padding-top: 3rem;
    }
}

.process-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.process-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

@media (max-width:900px) {
    .process-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.process-text .section-title {
    text-align: left;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.process-text p {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.9;
    margin-top: 1.2rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: 2rem;
}

.process-step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.step-num {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--copper);
    opacity: 0.35;
    line-height: 1;
    flex-shrink: 0;
    width: 2.2rem;
}

.step-text {
    font-size: 0.92rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.75;
    padding-top: 0.2rem;
}

.process-image img,
.process-filmstrip img {
    width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════
   13. ABOUT
═══════════════════════════════════════════ */
#about {
    padding: 7rem 5%;
    background: var(--bg2);
    position: relative;
    overflow: hidden;
}

.about-half-ant {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(80px, 12vw, 190px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.about-half-ant img {
    width: 100%;
    height: auto;
}

@media (max-width:900px) {
    .about-half-ant {
        display: none;
    }
}

.about-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width:900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.about-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.about-content h3 {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 1.8rem;
    font-weight: 300;
}

.about-content p {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.about-content p strong {
    color: var(--ink2);
    font-weight: 500;
}

.about-quote {
    border-left: 2px solid var(--copper);
    padding: 1rem 0 1rem 1.8rem;
    margin: 1.8rem 0;
}

.about-quote p {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--ink2) !important;
    margin: 0 !important;
    line-height: 1.55 !important;
}

/* ═══════════════════════════════════════════
   14. FAQ
═══════════════════════════════════════════ */
#faq {
    padding: 7rem 5%;
    background: var(--bg);
}

@media (max-width:900px) {
    #faq {
        padding-top: 3rem;
    }
}

.faq-inner {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    padding: 1.6rem 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 2rem;
    transition: color var(--t-fast);
    user-select: none;
}

.faq-question:hover {
    color: var(--copper);
}

.faq-toggle {
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--copper);
    transition: all 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: var(--copper);
    color: #fff;
    border-color: var(--copper);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-bottom: 1.6rem;
}

/* ═══════════════════════════════════════════
   15. NEWSLETTER
═══════════════════════════════════════════ */
#newsletter {
    padding: 7rem 5%;
    background: var(--bg2);
    text-align: center;
}

@media (max-width:900px) {
    #newsletter {
        padding-top: 3rem;
    }
}

.newsletter-inner {
    max-width: 580px;
    margin: 0 auto;
}

.newsletter-inner>p {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 300;
    margin: 0.8rem 0 2.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Pill-style email row  matches footer form */
.email-pill-row {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.email-pill-row input[type="email"] {
    width: 100%;
    padding: 1rem 8rem 1rem 1.6rem;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: var(--white);
    font-size: 0.9rem;
    font-family: var(--sans);
    font-weight: 300;
    color: var(--ink);
    outline: none;
    transition: border-color var(--t-fast);
    /* Prevent iOS zoom on focus (font-size >= 16px equivalent) */
    font-size: max(16px, 0.9rem);
}

.email-pill-row input[type="email"]:focus {
    border-color: var(--copper);
}

.email-pill-row input[type="email"]::placeholder {
    color: var(--mist);
}

.email-pill-row button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 50px;
    padding: 0 1.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: var(--sans);
    cursor: pointer;
    transition: background var(--t-fast);
    white-space: nowrap;
    overflow: hidden;
}

/* Shine on Subscribe button */
.email-pill-row button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.18) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    animation: btnShine 5s ease-in-out 1s infinite;
    pointer-events: none;
}

.email-pill-row button:hover::after {
    animation-play-state: paused;
}

.email-pill-row button:hover:not(:disabled) {
    background: var(--copper);
}

.email-pill-row button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Marketing consent  shared by both forms */
.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    text-align: left;
    max-width: 420px;
    width: 100%;
}

/* Real checkbox  large tap target for Android */
.privacy-row input[type="checkbox"] {
    /* Show the native checkbox  do NOT hide it, do NOT use opacity:0 */
    -webkit-appearance: checkbox;
    appearance: checkbox;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-top: 0.15rem;
    accent-color: var(--copper);
    flex-shrink: 0;
    cursor: pointer;
    /* Ensure visibility on all Android browsers */
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    clip: auto !important;
}

.privacy-row label {
    font-size: 0.8rem;
    color: var(--mist);
    font-weight: 300;
    line-height: 1.6;
    cursor: pointer;
}

.privacy-row a {
    color: var(--copper);
    text-decoration: underline;
}

/* Footer marketing consent  same fix */
.footer-privacy input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--copper);
    flex-shrink: 0;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    display: inline-block !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Status messages */
.form-status {
    display: none;
    padding: 0.9rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 300;
    border-radius: 3px;
}

.form-status--success {
    background: var(--copper-bg);
    border: 1px solid rgba(154, 95, 30, 0.3);
    color: var(--copper);
}

.form-status--error {
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: var(--red-sold);
}

/* ═══════════════════════════════════════════
   16. CTA BANNER
═══════════════════════════════════════════ */
.cta-banner {
    padding: 6rem 5%;
    background: var(--ink);
    color: var(--bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(154, 95, 30, 0.04) 20px, rgba(154, 95, 30, 0.04) 21px);
    pointer-events: none;
}

.cta-banner h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 0.8rem;
    color: var(--bg);
    position: relative;
}

.cta-banner p {
    font-size: 1rem;
    color: rgba(250, 249, 246, 0.6);
    font-weight: 300;
    margin-bottom: 2.5rem;
    position: relative;
}

/* ═══════════════════════════════════════════
   17. PARALLAX FOOTER
   
   KEY FIX: The footer must be position:fixed at z-index:1.
   The .main-wrapper sits above it at z-index:2.
   JS sets margin-bottom on .main-wrapper = footer height,
   creating the scroll space that reveals the footer.
   
   The GP stacking-context fix above (.lob-front-page #page)
   ensures the fixed footer is relative to the viewport,
   NOT trapped inside any GP wrapper.
═══════════════════════════════════════════ */
.parallax-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background: var(--bg2);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 5% 90px;
    overflow: hidden;
}

.parallax-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
    opacity: 0.35;
}

/* Bug slider */
.bug-slider-wrap {
    width: 100%;
    max-width: 680px;
    margin-bottom: 2rem;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}

.bug-slider-track {
    display: flex;
    animation: bugScroll 22s linear infinite;
    width: max-content;
}

.bug-slide {
    width: 110px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.bug-slide img {
    max-width: 75px;
    max-height: 65px;
    object-fit: contain;
    filter: drop-shadow(1px 12px 5px rgb(199, 199, 199));
    -webkit-filter: drop-shadow(1px 12px 5px rgb(199, 199, 199));
}

.footer-headline {
    font-family: var(--serif);
    font-size: clamp(2.3rem, 5.5vw, 5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--ink);
    margin-bottom: 0.4rem;
    line-height: 1.05;
}

.footer-headline em {
    color: var(--copper);
}

.footer-sub {
    font-size: 0.9rem;
    color: var(--mist);
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Pill form */
.footer-pill-form {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 0.9rem;
}

.footer-pill-form input[type="email"] {
    width: 100%;
    padding: 1rem 7rem 1rem 1.6rem;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: var(--white);
    font-size: 0.9rem;
    font-family: var(--sans);
    font-weight: 300;
    color: var(--ink);
    outline: none;
    transition: border-color var(--t-fast);
}

.footer-pill-form input[type="email"]:focus {
    border-color: var(--copper);
}

.footer-pill-form input[type="email"]::placeholder {
    color: var(--mist);
}

.footer-pill-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 50px;
    padding: 0 1.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: var(--sans);
    cursor: pointer;
    transition: background var(--t-fast);
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
}

/* Shine on footer Sign Up button */
.footer-pill-form button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.18) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    animation: btnShine 5s ease-in-out 2.5s infinite;
    pointer-events: none;
}

.footer-pill-form button:hover {
    background: var(--copper);
}

.footer-pill-form button:hover::after {
    animation-play-state: paused;
}

/* Footer marketing consent */
.footer-privacy {
    max-width: 400px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.footer-privacy input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--copper);
    flex-shrink: 0;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    display: inline-block !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
}

.footer-privacy label {
    font-size: 0.73rem;
    color: var(--mist);
    font-weight: 300;
    line-height: 1.55;
    cursor: pointer;
}

.footer-privacy a {
    color: var(--copper);
    text-decoration: underline;
}

#footer-status {
    max-width: 400px;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Footer bottom bar */
.footer-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 1.1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    background: var(--bg2);
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--mist);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.footer-nav-links {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    flex-wrap: wrap;
}

.footer-nav-links a {
    font-size: 0.7rem;
    color: var(--mist);
    text-decoration: none;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: color var(--t-fast);
}

.footer-nav-links a:hover {
    color: var(--copper);
}

.footer-socials {
    display: flex;
    gap: 0.7rem;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
    text-decoration: none;
}

.footer-socials a:hover {
    border-color: var(--copper);
    transform: scale(1.15);
    background: var(--copper-bg);
}

.footer-socials img {
    width: 15px;
    height: 15px;
}

/* Mobile footer Xiaomi X3 and small screens overlap fix */
@media (max-width:640px) {

    /* Let footer grow with content  no clipping */
    .parallax-footer {
        height: auto !important;
        min-height: 80vh;
        justify-content: flex-end;
        padding: 3.5rem 5% 0 !important;
    }

    .bug-slider-wrap {
        margin-bottom: 1.2rem;
    }

    .footer-headline {
        font-size: clamp(2.8rem, 9vw, 3.5rem);
        margin-bottom: 0.8rem;
    }

    /* Form wrap: no extra padding needed once footer-bottom is flow */
    #footer-form-wrap {
        padding-bottom: 0 !important;
        margin-bottom: 1rem;
    }

    /* Bottom bar flows below content  not absolute-positioned */
    .footer-bottom {
        position: relative !important;
        bottom: auto !important;
        width: 100%;
        margin-top: 1.5rem;
        background: var(--bg2);
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 5% 1.5rem;
        gap: 0.7rem;
    }

    .footer-nav-links {
        justify-content: center;
        gap: 1rem;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .footer-copy {
        width: 100%;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-privacy {
        margin-bottom: 1.5rem;
    }
}

/* ═══════════════════════════════════════════
   18. ACCESSIBILITY
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ═══════════════════════════════════════════
   19. KEYFRAMES
═══════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(3rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatBug {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(1.5deg);
    }
}

@keyframes scrollNeedle {
    0% {
        top: -100%;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes popEffect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
        color: #fff;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bugScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-110px * 7));
    }
}

/* ═══════════════════════════════════════════
   19. ROAMING ANT
═══════════════════════════════════════════ */

/* Canvas: fixed, full-viewport, never intercepts clicks */
#antCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

@media (max-width: 767px) {
    #antCanvas {
        /* JS sets explicit pixel width/height  override the 100% to
           prevent CSS from stretching the canvas when the mobile
           URL bar hides/shows and changes the viewport height. */
        width: auto;
        height: auto;
    }
}

/* Thought bubble */
.ant-thought-bubble {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    font-family: var(--sans);
    pointer-events: none;
    z-index: 51;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 180px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.ant-thought-bubble.show {
    opacity: 1;
}

.ant-thought-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 30px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    transform: rotate(45deg);
}

.ant-thought-bubble::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 30px;
    width: 4px;
    height: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════
   ANT TOGGLE BUTTONS
   Desktop: #ant-toggle  (fixed bottom-right)
   Mobile:  .nav-ant-btn (in navbar)
   The copper "on" state is set via JS inline style  not CSS
   selectors  because Android :focus overrides :not(.ant-off)
   until the user taps elsewhere.
═══════════════════════════════════════════════════════════════ */

@keyframes antBtnPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.32);
    }

    70% {
        transform: scale(0.90);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Desktop toggle ── */
#ant-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#ant-toggle:hover {
    transform: scale(1.10);
}

#ant-toggle:focus,
#ant-toggle:focus-visible,
#ant-toggle:active {
    outline: none !important;
    background: #ffffff !important;
}

#ant-toggle.ant-off {
    opacity: 0.42;
    filter: grayscale(0.6);
}

#ant-toggle.ant-btn-pop {
    animation: antBtnPop 0.4s ease forwards;
}

/* ── Mobile nav button ── */
.nav-ant-btn {
    display: none;
    /* enabled in @media below */
    -webkit-appearance: none;
    appearance: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    background: #ffffff;
    /* solid  MIUI ignores transparent */
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    margin-right: 4px;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
    /* kill grey lingering :focus state on Android */
    -webkit-focus-ring-color: transparent;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-ant-btn:focus,
.nav-ant-btn:focus-visible,
.nav-ant-btn:active {
    outline: none !important;
    background: #ffffff !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
    /* prevent UA blue/grey focus ring */
}

.nav-ant-btn.ant-off {
    opacity: 0.42;
    filter: grayscale(0.6);
}

.nav-ant-btn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-ant-btn.ant-btn-pop {
    animation: antBtnPop 0.4s ease forwards;
}

@media (max-width: 900px) {
    #ant-toggle {
        display: none !important;
    }

    .nav-ant-btn {
        display: flex;
    }
}