/* ===== Extracted from index.html inline style block 1 ===== */
        @media (max-width: 768px) {
    .hero-images {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
        padding: 0 1rem;
        max-width: 100%;
    }

    .hero-image {
        height: 260px;
        margin-bottom: 1rem;
    }

    /* On mobile, show the whole photo rather than cropping it to fill
       a fixed box — "cover" was cutting off parts of the dogs in some
       of the source photos once squeezed into a narrower frame */
    .hero-image img {
        height: 100%;
        object-fit: contain;
        background-color: rgba(0, 0, 0, 0.3);
    }
}

/* Very small phones — slightly shorter still, so all 3 hero photos
   don't take up an excessive amount of scroll before the page content */
@media (max-width: 480px) {
    .hero-image {
        height: 220px;
    }
}

/* ===== Extracted from index.html inline style block 3 ===== */
    /* Horizontal Timeline Styles */
    .horizontal-timeline {
        margin: 3rem 0;
        position: relative;
    }

    .timeline-track {
        display: flex;
        justify-content: space-between;
        position: relative;
        margin: 0 10px;
    }

    .timeline-track:before {
        content: '';
        position: absolute;
        top: 35px;
        left: 0;
        right: 0;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.2);
        z-index: 1;
    }

    .timeline-track-fill {
        position: absolute;
        top: 35px;
        left: 0;
        width: 10%;
        height: 2px;
        background-color: var(--primary-color);
        z-index: 1;
        transition: width 0.4s ease;
    }

    .timeline-item {
        position: relative;
        text-align: center;
        cursor: pointer;
        padding: 0 15px;
        z-index: 2;
        flex: 1;
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .timeline-item.active {
        opacity: 1;
    }

    .timeline-number {
        width: 70px;
        height: 70px;
        background-color: #2a2a2a;
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--text-light);
        transition: all 0.3s ease;
    }

    .timeline-item.active .timeline-number {
        background-color: var(--primary-color);
        color: #1a1a1a;
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(244, 180, 0, 0.4);
    }

    .timeline-label {
        font-weight: 600;
        font-size: 1rem;
        color: var(--text-light);
        margin-bottom: 5px;
    }

    .timeline-period {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.6);
    }

    /* Phase Content Styles */
    .phase-content-wrapper {
        margin-top: 3rem;
    }

    .phase-content {
        display: none;
        animation: fadeIn 0.4s ease forwards;
    }

    .phase-content.active {
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .phase-card {
        background: linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(30, 30, 30, 0.9));
        border: 1px solid var(--primary-color);
        border-radius: 10px;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
    }

    .phase-card::before {
        content: attr(data-phase-number);
        position: absolute;
        top: -0.5rem;
        right: 1rem;
        font-size: 8rem;
        font-weight: 800;
        line-height: 1;
        color: transparent;
        -webkit-text-stroke: 1.5px rgba(244, 180, 0, 0.18);
        pointer-events: none;
        z-index: 0;
    }

    .phase-card > * {
        position: relative;
        z-index: 1;
    }

    /* Availability status badge */
    .availability-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(244, 180, 0, 0.08);
        border: 1px solid rgba(244, 180, 0, 0.35);
        border-radius: 30px;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        color: var(--text-light);
        font-weight: 500;
    }

    .availability-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #4caf50;
        box-shadow: 0 0 6px rgba(76, 175, 80, 0.7);
        flex-shrink: 0;
    }

    /* Scroll progress bar */
    #scrollProgressBar {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        width: 0%;
        background: linear-gradient(90deg, var(--primary-color), #ffcc33);
        z-index: 2000;
        transition: width 0.1s ease-out;
    }

    /* Subtle cursor-reactive glow in hero */
    .hero {
        --glow-x: 50%;
        --glow-y: 40%;
    }

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: radial-gradient(circle 500px at var(--glow-x) var(--glow-y), rgba(244, 180, 0, 0.08), transparent 70%);
    }

    /* Pull quote */
    /* Eyebrow labels — quiet, editorial section markers */
    /* Skip-to-content link — invisible until keyboard-focused */
    /* Section dot navigation — visible on all screen sizes. The anchor
       itself is the tap target (larger, invisible) and ::before is the
       small visible dot, so mobile taps are comfortable without the
       dots looking oversized. */
    .section-dots {
        position: fixed;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1500;
    }

    .section-dot {
        position: relative;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section-dot::before {
        content: '';
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(244, 180, 0, 0.25);
        border: 1px solid rgba(244, 180, 0, 0.4);
        transition: all 0.3s ease;
    }

    .section-dot:hover::before,
    .section-dot.active::before {
        background: var(--primary-color);
        transform: scale(1.3);
        box-shadow: 0 0 8px rgba(244, 180, 0, 0.6);
    }

    .dot-tooltip {
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(13, 13, 13, 0.95);
        color: #fff;
        padding: 0.3rem 0.75rem;
        border-radius: 4px;
        font-size: 0.75rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        border: 1px solid rgba(244, 180, 0, 0.25);
    }

    .section-dot:hover .dot-tooltip {
        opacity: 1;
    }

    /* Keep dots visible on mobile, just tucked closer to the edge so they
       don't crowd narrow screens — tap target stays comfortable, the
       visible dot itself stays small and subtle */
    @media (max-width: 991px) {
        .section-dots {
            right: 6px;
            gap: 2px;
        }

        .section-dot {
            width: 30px;
            height: 26px;
        }

        .section-dot::before {
            width: 7px;
            height: 7px;
        }

        .section-dot:hover::before,
        .section-dot.active::before {
            transform: scale(1.4);
        }

        /* Hover tooltips don't work well on touch — hide them there,
           the dots still work fine as tap targets without the label */
        .dot-tooltip {
            display: none;
        }
    }

    /* Custom checkmark bullets — replace plain ✓ characters */
    .custom-check {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgba(244, 180, 0, 0.12);
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        font-size: 0.7rem;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

    /* Animated active-section underline in the nav */
    .nav-link {
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.25s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: 70%;
    }

    /* Nav bar solidifies once you scroll past the hero */
    .navbar {
        transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, top 0.3s ease;
    }

    .navbar.navbar-scrolled {
        background: rgba(13, 13, 13, 0.97) !important;
        backdrop-filter: blur(14px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
        border-bottom-color: rgba(244, 180, 0, 0.2);
    }

    /* Photo update banner */
    .photo-update-banner {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        z-index: 1600;
        background: linear-gradient(90deg, rgba(244, 180, 0, 0.14), rgba(244, 180, 0, 0.06));
        border-bottom: 1px solid rgba(244, 180, 0, 0.3);
        color: #fff;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.6rem 2.5rem 0.6rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        transform: translateY(0);
        opacity: 1;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .photo-update-banner span {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .photo-update-banner.dismissed {
        display: none;
    }

    /* Slides away once the page is scrolled, instead of staying fixed
       at the top and having page content pass underneath it — comes
       back if you scroll back up to the very top */
    .photo-update-banner.scroll-hidden {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .photo-update-dismiss {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
        padding: 0.25rem 0.5rem;
        transition: color 0.2s ease;
    }

    .photo-update-dismiss:hover {
        color: var(--primary-color);
    }

    nav.navbar.fixed-top {
        top: var(--banner-h, 0px);
    }

    @media (max-width: 576px) {
        .photo-update-banner {
            font-size: 0.75rem;
            padding: 0.5rem 2.25rem 0.5rem 0.75rem;
        }
    }

    .skip-link {
        position: absolute;
        top: -60px;
        left: 1rem;
        background: var(--primary-color);
        color: #1a1a1a;
        padding: 0.75rem 1.25rem;
        border-radius: 0.4rem;
        font-weight: 700;
        z-index: 3000;
        transition: top 0.2s ease;
        text-decoration: none;
    }

    .skip-link:focus {
        top: 1rem;
        color: #1a1a1a;
        outline: 3px solid #fff;
    }

    /* Back to top button visibility — moved to bottom-left so it never
       collides with the contact-icons stack (email/WhatsApp/Instagram)
       which lives fixed at bottom-right */
    .back-to-top {
        display: flex;
        align-items: center;
        justify-content: center;
        left: 20px;
        right: auto !important;
    }

    @media (max-width: 768px) {
        .back-to-top {
            left: 16px;
            bottom: 16px;
        }
    }

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

        .hero::after {
            background: none !important;
        }
    }

    /* Refined badge typography — small caps, tracked out, quieter than solid blocks */
    .badge.bg-warning {
        text-transform: uppercase;
        letter-spacing: 0.12em;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.4rem 0.85rem;
    }

    /* Pricing figure — treated with more care than a plain number */
    .price-figure {
        font-size: 3rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        color: var(--primary-color);
        display: inline-flex;
        align-items: baseline;
        gap: 0.4rem;
    }

    .price-figure .price-currency {
        font-size: 1.1rem;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        opacity: 0.65;
    }

    .price-rule {
        width: 48px;
        height: 1px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
        margin: 0.75rem auto;
    }

    .pull-quote {
        text-align: center;
        padding: 3rem 1rem;
    }

    .pull-quote p {
        font-size: clamp(1.75rem, 4vw, 3rem);
        line-height: 1.3;
        color: #fff;
        max-width: 900px;
        margin: 0 auto;
    }

    /* Break the flat black-on-black between sections */
    .section-dark {
        position: relative;
    }

    .section-dark::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(244, 180, 0, 0.25), transparent);
    }

    .phase-header {
        margin-bottom: 1.5rem;
        position: relative;
    }

    .phase-badge {
        display: inline-block;
        background-color: var(--primary-color);
        color: #1a1a1a;
        font-weight: bold;
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        border-radius: 30px;
        margin-bottom: 0.5rem;
    }

    .phase-timing {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 0.25rem;
    }

    .phase-features {
        margin-bottom: 1.5rem;
    }

    .feature-item {
        display: flex;
        margin-bottom: 1.5rem;
        align-items: flex-start;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        background: rgba(244, 180, 0, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        margin-right: 1rem;
        flex-shrink: 0;
        font-size: 1.2rem;
    }

    .feature-text h4 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .feature-text p {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .phase-image-container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .phase-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .phase-image-container:hover img {
        transform: scale(1.05);
    }

    /* Responsive Styles */
    @media (max-width: 991px) {
        .horizontal-timeline {
            max-width: 100%;
            overflow: hidden;
        }
        
        .timeline-track {
            overflow-x: auto;
            max-width: 100%;
            padding-bottom: 20px;
            justify-content: flex-start;
            -webkit-overflow-scrolling: touch;
        }
        
        .timeline-item {
            flex: 0 0 auto;
            width: 160px;
        }
        
        .timeline-track:before {
            left: 20px;
            right: 20px;
        }
        
        .feature-item {
            margin-bottom: 1rem;
        }
        
        .phase-image-container {
            margin-top: 1rem;
            height: 300px;
        }
    }

    @media (max-width: 767px) {
        .timeline-number {
            width: 60px;
            height: 60px;
            font-size: 1.25rem;
        }
        
        .phase-card {
            padding: 1.5rem;
        }
        
        .phase-card::before {
            font-size: 4.5rem;
        }
        
        .pull-quote p {
            font-size: 1.5rem;
        }
        
        .price-figure {
            font-size: 2.1rem;
        }
        
        .price-figure .price-currency {
            font-size: 0.85rem;
        }
        
        .feature-icon {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }
    }

/* ===== Premium touches: page fade-in, word-by-word hero reveal, magnetic buttons ===== */

/* Full-page fade-in on load — everything arrives together as one
   considered moment instead of just snapping into view */
body {
    opacity: 0;
    animation: pageArrive 0.8s ease forwards;
    animation-delay: 0.1s;
}

@keyframes pageArrive {
    to { opacity: 1; }
}

/* Hero headline: each word arrives in sequence rather than the
   whole line fading up as one block */
.word-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(16px);
    animation: wordIn 0.6s ease forwards;
}

.word-reveal span:nth-child(1)  { animation-delay: 0.15s; }
.word-reveal span:nth-child(2)  { animation-delay: 0.22s; }
.word-reveal span:nth-child(3)  { animation-delay: 0.29s; }
.word-reveal span:nth-child(4)  { animation-delay: 0.36s; }
.word-reveal span:nth-child(5)  { animation-delay: 0.43s; }
.word-reveal span:nth-child(6)  { animation-delay: 0.50s; }
.word-reveal span:nth-child(7)  { animation-delay: 0.57s; }
.word-reveal span:nth-child(8)  { animation-delay: 0.64s; }
.word-reveal span:nth-child(9)  { animation-delay: 0.71s; }
.word-reveal span:nth-child(10) { animation-delay: 0.78s; }

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

/* Magnetic button effect — primary buttons shift very slightly
   toward the cursor as it approaches, desktop/hover-capable only */
@media (hover: hover) {
    .btn-primary, .btn-warning {
        transition: transform 0.15s ease-out, background-color 0.2s ease, box-shadow 0.2s ease;
    }
}

/* Respect reduced-motion: skip all of the above entirely */
@media (prefers-reduced-motion: reduce) {
    body {
        opacity: 1;
        animation: none;
    }
    .word-reveal span {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ===== Dog profile cards ===== */
.dog-profile-card {
    border: 1px solid rgba(244, 180, 0, 0.35);
    border-radius: 12px;
    background-color: #1a1a1a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dog-profile-card:hover {
    border-color: rgba(244, 180, 0, 0.6);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    transform: translateY(-6px) scale(1.02);
}

.dog-profile-card-clickable {
    cursor: pointer;
}

.dog-profile-card-clickable:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.dog-profile-photo {
    position: relative;
    height: 340px;
    overflow: hidden;
    background-color: #111;
}

.dog-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: saturate(0.9) contrast(1.05);
}

.dog-profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #232323, #171717);
}

.dog-profile-photo-placeholder i {
    font-size: 4rem;
    color: rgba(244, 180, 0, 0.25);
}

.dog-profile-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem 1.5rem 1.1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 10%, rgba(0,0,0,0.35) 65%, transparent 100%);
}

.dog-profile-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    line-height: 1.1;
}

.dog-profile-tagline {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.2rem 0 0;
    letter-spacing: 0.02em;
}

.dog-profile-stats {
    display: flex;
    border-bottom: 1px solid rgba(244, 180, 0, 0.25);
}

.dog-stat {
    flex: 1;
    text-align: center;
    padding: 0.9rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dog-stat:not(:last-child) {
    border-right: 1px solid rgba(244, 180, 0, 0.15);
}

.dog-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.dog-stat-value {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .dog-profile-photo {
        height: 260px;
    }
    .dog-profile-name {
        font-size: 1.4rem;
    }
    .dog-stat-value {
        font-size: 0.78rem;
    }
    .dog-stat-label {
        font-size: 0.58rem;
    }
}

/* ===== Branded entrance sequence ===== */
.site-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Only actually shows for a first-time-this-session visitor —
   body.intro-active is added by the inline script before paint */
body.intro-active .site-intro {
    opacity: 1;
    visibility: visible;
}

.site-intro.site-intro-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-intro-mark {
    text-align: center;
    opacity: 0;
    animation: introMarkIn 0.7s ease 0.15s forwards;
}

.site-intro-mark span {
    display: block;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: #fff;
    font-size: 1.1rem;
}

.site-intro-gr {
    color: var(--primary-color) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5em !important;
    margin-top: 0.4rem;
}

@keyframes introMarkIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* If the intro is playing, hold the real page hidden until it clears,
   so there's no flash of content behind it */
body.intro-active > *:not(#siteIntro) {
    visibility: hidden;
}

@media (max-width: 480px) {
    .site-intro-mark span { font-size: 0.85rem; letter-spacing: 0.25em; }
    .site-intro-gr { font-size: 0.7rem !important; letter-spacing: 0.4em !important; }
}

@media (prefers-reduced-motion: reduce) {
    .site-intro { display: none; }
    body.intro-active > *:not(#siteIntro) { visibility: visible; }
}

/* ===== Custom cursor — desktop/hover-capable only ===== */
@media (hover: hover) and (pointer: fine) {
    body.custom-cursor-active,
    body.custom-cursor-active a,
    body.custom-cursor-active button {
        cursor: none;
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 1.5px solid var(--primary-color);
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
        will-change: transform;
    }

    .custom-cursor.cursor-hover {
        width: 44px;
        height: 44px;
        background-color: rgba(244, 180, 0, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-cursor { display: none; }
    body.custom-cursor-active { cursor: auto; }
}

/* ===== "Meet the dog" trigger button, on the profile card ===== */
.btn-meet-dog {
    display: inline-flex;
    align-items: center;
    background: rgba(244, 180, 0, 0.1);
    border: 1px solid rgba(244, 180, 0, 0.4);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.btn-meet-dog:hover {
    background: rgba(244, 180, 0, 0.2);
    transform: translateY(-2px);
}

/* ===== "Meet the dog" story modal — his facts play one at a time,
   like a story, with dots to track progress and click-through
   navigation. Simple state-based JS, no scroll-position math at all,
   so nothing can get stuck in place. ===== */
.story-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.story-modal.open {
    display: flex;
}

.story-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.story-modal-content {
    position: relative;
    background: #1a1a1a;
    border: 1px solid rgba(244, 180, 0, 0.35);
    border-radius: 14px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.story-modal.open .story-modal-content {
    opacity: 1;
    transform: scale(1);
}

.story-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.story-modal-close:hover {
    background: rgba(244, 180, 0, 0.5);
}

.story-photo {
    width: 42%;
    flex-shrink: 0;
}

.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.story-body {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.story-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.story-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(244, 180, 0, 0.25);
    border: 1px solid rgba(244, 180, 0, 0.4);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.story-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.story-slides {
    flex: 1;
    position: relative;
    min-height: 160px;
}

.story-slide {
    display: none;
    animation: storySlideIn 0.35s ease;
}

.story-slide.active {
    display: block;
}

@keyframes storySlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.story-slide h4 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.story-slide p {
    font-size: 1rem;
    line-height: 1.65;
}

.story-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.story-nav [data-story-prev] {
    visibility: hidden;
}

.story-nav [data-story-prev].visible {
    visibility: visible;
}

@media (max-width: 650px) {
    .story-modal-content {
        flex-direction: column;
        max-height: 92vh;
    }

    .story-photo {
        width: 100%;
        height: 200px;
    }

    .story-body {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-modal-content {
        transition: none;
    }
    .story-slide {
        animation: none;
    }
}

/* ===== Image wipe reveal — a moving mask instead of a plain fade,
   used for the training-phase photos as they scroll into view ===== */
.wipe-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.wipe-reveal.wipe-revealed {
    clip-path: inset(0 0 0% 0);
}

@media (prefers-reduced-motion: reduce) {
    .wipe-reveal {
        clip-path: inset(0 0 0% 0);
        transition: none;
    }
}