/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

:root {
    --primary: #ec7f13;
    --background-light: #f8f7f6;
    --background-dark: #221910;
    --soft-beige: #f2ece6;
    --muted-taupe: #897561;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --header-progress: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background-light);
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism system */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#navbar {
    --header-progress: 0;
    --header-ease: cubic-bezier(0.22, 1, 0.36, 1);
    padding: calc(12px * var(--header-progress)) calc(14px * var(--header-progress)) 0;
    will-change: padding;
}

.header-container {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding-top: calc(1rem - 0.2rem * var(--header-progress));
    padding-bottom: calc(1rem - 0.2rem * var(--header-progress));
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: padding 0.45s var(--header-ease);
    will-change: padding;
    transform: translateZ(0);
    isolation: isolate;
}

.header-island,
.desktop-nav {
    border-radius: 999px;
    background-color: rgba(255, 255, 255, calc(0.88 * var(--header-progress)));
    border: none !important;
    backdrop-filter: blur(calc(45px * var(--header-progress)));
    -webkit-backdrop-filter: blur(calc(40px * var(--header-progress)));
    box-shadow:
        0 calc(15px * var(--header-progress)) calc(40px * var(--header-progress)) rgba(0, 0, 0, calc(0.08 * var(--header-progress))),
        inset 1px 1px 2px rgba(255, 255, 255, calc(0.4 * var(--header-progress)));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shared Liquid Interaction Logic (iOS Fluid Style) */
.header-island,
.desktop-nav,
.liquid-click {
    transition:
        padding 0.45s var(--header-ease),
        background-color 0.45s var(--header-ease),
        border-color 0.45s var(--header-ease),
        box-shadow 0.45s var(--header-ease),
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        filter 0.3s ease;
    will-change: padding, background-color, border-color, box-shadow, transform, filter;
    transform: translateZ(0);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.header-island:active,
.desktop-nav:active,
.liquid-click:active {
    transform: scale(0.9) translateY(1px) !important;
    filter: brightness(0.9);
    transition: transform 0.1s cubic-bezier(0.2, 0, 0, 1) !important;
}

.logo-island {
    padding: calc(0.5rem * var(--header-progress)) calc(0.85rem + 0.5rem * var(--header-progress));
}

.logo-island h1 {
    transition:
        font-size 0.45s var(--header-ease),
        letter-spacing 0.45s var(--header-ease),
        transform 0.45s var(--header-ease),
        opacity 0.45s var(--header-ease);
    transform: scale(calc(1 - 0.14 * var(--header-progress)));
    transform-origin: center center;
}

.desktop-nav {
    padding: calc(0.5rem * var(--header-progress)) calc(1.65rem * var(--header-progress));
}

.menu-island {
    padding: 0 !important;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.menu-island>div:not(.hidden) {
    margin-left: 0.5rem;
}

#menu-toggle {
    background-color: transparent !important;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: transform 0.45s var(--header-ease);
}

#menu-toggle .menu-line {
    transition:
        width 0.35s var(--header-ease),
        background-color 0.35s var(--header-ease),
        opacity 0.35s var(--header-ease),
        transform 0.45s var(--header-ease);
}

#navbar[data-condensed="true"] .logo-island h1 {
    letter-spacing: 0.06em !important;
}

#navbar[data-condensed="true"] #menu-toggle {
    transform: scale(0.96);
}

.dark .glass {
    background: rgba(34, 25, 16, 0.7);
    border-color: rgba(236, 127, 19, 0.1);
}

/* Hero Section Refinements */
#hero h1 {
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

#hero .text-primary {
    color: var(--primary);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-mobile-overlay {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.44) 36%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.26) 32%, rgba(0, 0, 0, 0.04) 68%, rgba(0, 0, 0, 0) 100%);
}

.hero-copy {
    position: relative;
    max-width: 34rem;
}

.hero-copy-text {
    color: rgba(255, 255, 255, 0.96);
}

.hero-copy p,
.hero-copy-text {
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.hero-text-shrink {
    font-size: clamp(2.5rem, 14vw, 5rem);
}

@media (min-width: 1024px) {
    .hero-text-shrink {
        font-size: clamp(5rem, 8vw, 10rem);
    }
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Buttons for Mobile */
.btn-mobile-stack {
    width: 100%;
}

@media (min-width: 640px) {
    .btn-mobile-stack {
        width: auto;
    }
}

/* Floating Elements Animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Scroll Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.slider-arrow {
    @apply w-12 h-12 rounded-full flex items-center justify-center transition-all duration-300;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(0.9);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.reveal {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Responsive Navigation */
.mobile-menu {
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateX(100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Custom Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #ff9f43);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 0.2em;
    margin-right: -0.2em;
}

.logo-island .gradient-text {
    background: none;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
    filter: drop-shadow(0 4px 14px rgba(236, 127, 19, 0.18));
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

u {
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1px;
}

/* Portfolio Grid */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.portfolio-item img {
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Buttons */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
    transition: transform 0.6s ease;
}

.btn-premium:hover::after {
    transform: translate(-50%, -50%) rotate(45deg) translateY(-100%);
}

#mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

#mobile-menu.active #menu-close {
    opacity: 1;
}

#mobile-menu.active #menu-content {
    transform: translateX(0);
}

/* Mobile Optimizations */
@media (max-width: 640px) {

    html,
    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    .hero-text-shrink {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
    }

    .hero-copy {
        max-width: 21rem;
        padding: 0;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-copy::before {
        content: '';
        position: absolute;
        inset: -0.8rem -0.9rem 6.6rem -0.9rem;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.14) 56%, rgba(0, 0, 0, 0));
        filter: blur(20px);
        z-index: -1;
        pointer-events: none;
    }

    #hero h1 {
        font-size: clamp(3rem, 12vw, 4.4rem);
        line-height: 0.94;
        text-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
    }

    .hero-copy p,
    .hero-copy-text {
        font-size: 1.02rem;
        line-height: 1.55;
        text-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
    }

    #mobile-menu .menu-link span.text-4xl {
        font-size: 2rem !important;
    }

    .btn-mobile-stack {
        width: 100% !important;
        text-align: center;
        justify-content: center;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #navbar h1 {
        font-size: 1.15rem !important;
        letter-spacing: -0.02em !important;
    }

    #navbar {
        padding-left: calc(8px * var(--header-progress));
        padding-right: calc(8px * var(--header-progress));
        padding-top: calc(8px * var(--header-progress));
    }

    .header-container {
        padding-left: calc(1rem + 0.15rem * var(--header-progress));
        padding-right: calc(1rem + 0.15rem * var(--header-progress));
        border-radius: calc(26px * var(--header-progress));
    }

    .logo-island {
        padding-left: calc(0.15rem + 0.82rem * var(--header-progress));
        padding-right: calc(0.15rem + 0.82rem * var(--header-progress));
    }

    .menu-island {
        padding: calc(0.08rem + 0.2rem * var(--header-progress));
    }

    #menu-toggle {
        padding: calc(0.5rem + 0.18rem * var(--header-progress));
    }

    /* Full-width dark section fix */
    #pricing {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%);
    }

    #pricing .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Hero refinements */
    .hero-text-shrink br {
        display: none;
    }

    .hero-text-shrink {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

.scroll-hide::-webkit-scrollbar {
    display: none;
}

.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (prefers-reduced-motion: reduce) {

    #navbar,
    .header-container,
    .header-island,
    .desktop-nav,
    .logo-island h1,
    #menu-toggle,
    #menu-toggle .menu-line,
    .menu-island .btn-premium {
        transition: none !important;
    }
}

/* ===================================================
   INSTAGRAM STORIES PLAYER
   =================================================== */

/* === Modal overlay === */
#stories-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

#stories-modal.is-open {
    opacity: 1;
    pointer-events: all;
}

/* === Blurred backdrop === */
#stories-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* === Stories Container (phone shape) === */
#stories-container {
    position: relative;
    z-index: 1;
    width: min(420px, 100vw);
    height: min(740px, 100svh);
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#stories-modal.is-open #stories-container {
    transform: scale(1) translateY(0);
}

/* === Progress bars === */
#stories-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    gap: 3px;
    padding: 14px 12px 0;
}

.stories-seg {
    flex: 1;
    height: 2.5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.30);
    overflow: hidden;
    position: relative;
}

.stories-seg-fill {
    position: absolute;
    inset: 0;
    background: #fff;
    transform-origin: left;
    transform: scaleX(0);
    border-radius: inherit;
    transition: none;
}

.stories-seg.is-done .stories-seg-fill {
    transform: scaleX(1);
}

.stories-seg.is-active .stories-seg-fill {
    /* JS управляет прогрессом через inline transform: scaleX() */
}

/* === Header === */
#stories-header {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

#stories-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#stories-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.8);
    flex-shrink: 0;
    background: #333;
}

#stories-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#stories-username {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

#stories-timestamp {
    color: rgba(255,255,255,0.65);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

#stories-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

#stories-controls button {
    color: #fff;
}

#stories-mute-btn,
#stories-close-btn {
    background: rgba(15, 15, 15, 0.36);
    border: none;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

#stories-mute-btn:hover,
#stories-close-btn:hover {
    background: rgba(15, 15, 15, 0.52);
    transform: scale(1.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

#stories-mute-btn:active,
#stories-close-btn:active {
    transform: scale(0.9);
}

.stories-control-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.stories-control-icon[hidden] {
    display: none;
}

/* === Media area === */
#stories-media-area {
    position: absolute;
    inset: 0;
}

#stories-video,
#stories-fallback-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

#stories-fallback-img {
    display: none;
}

/* === Tap zones === */
#stories-tap-prev,
#stories-tap-pause,
#stories-tap-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    cursor: pointer;
}

#stories-tap-prev {
    left: 0;
    width: 30%;
}

#stories-tap-pause {
    left: 30%;
    width: 40%;
}

#stories-tap-next {
    right: 0;
    width: 30%;
}

/* === Loading spinner === */
#stories-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#stories-spinner.is-visible {
    opacity: 1;
}

.stories-spinner-ring {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: storiesSpin 0.75s linear infinite;
}

@keyframes storiesSpin {
    to { transform: rotate(360deg); }
}

/* === Category label === */
#stories-category-label {
    position: absolute;
    bottom: 110px;
    left: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.stories-category-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.stories-category-title {
    display: block;
    max-width: min(300px, 78vw);
    color: #fff;
    font-size: clamp(26px, 4.2vw, 32px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.02;
    text-shadow: 0 4px 18px rgba(0,0,0,0.42);
}

/* === CTA button === */
#stories-cta {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

#stories-cta:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 12px 40px rgba(236,127,19,0.5);
}

#stories-cta:active {
    transform: translateX(-50%) scale(0.97);
}

/* === Nav arrows (outside container) === */
#stories-nav-prev,
#stories-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.15s;
    display: none; /* shown on desktop */
}

#stories-nav-prev {
    left: max(8px, calc(50% - 240px));
}

#stories-nav-next {
    right: max(8px, calc(50% - 240px));
}

@media (min-width: 768px) {
    #stories-nav-prev,
    #stories-nav-next {
        display: flex;
    }
}

#stories-nav-prev:hover,
#stories-nav-next:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-50%) scale(1.1);
}

#stories-nav-prev:active,
#stories-nav-next:active {
    transform: translateY(-50%) scale(0.93);
}

/* === Story bubble "viewed" state === */
.story-bubble.is-viewed .story-ring {
    background: #ccc !important;
    background-image: none !important;
}

/* === Story bubble open animation === */
.story-bubble {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    transform-origin: center top;
}

.story-bubble:active {
    transform: scale(0.9);
}

.story-ring {
    position: relative;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.story-ring::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.story-bubble:hover {
    transform: translateY(-3px);
    filter: saturate(1.06);
}

.story-bubble-title {
    display: -webkit-box;
    max-width: 88px;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.story-bubble.is-viewed .story-bubble-title {
    opacity: 0.72;
}

/* === Bottom gradient on video for readability === */
#stories-media-area::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65) 0%,
        transparent 45%,
        rgba(0,0,0,0.25) 100%
    );
    pointer-events: none;
    z-index: 5;
}

#stories-media-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.38) 0%,
        rgba(0, 0, 0, 0.1) 18%,
        transparent 32%
    );
    pointer-events: none;
    z-index: 5;
}

/* === Pause visual indicator === */
#stories-container.is-paused::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    z-index: 18;
    pointer-events: none;
    border-radius: inherit;
}

/* === Swipe hint on mobile === */
@media (max-width: 767px) {
    #stories-container {
        border-radius: 0;
        width: 100vw;
        height: 100svh;
    }

    #stories-modal.is-open #stories-container {
        transform: scale(1) translateY(0);
    }

    #stories-nav-prev,
    #stories-nav-next {
        display: none !important;
    }

    .story-bubble-title {
        font-size: 10px;
        max-width: 80px;
    }

    .stories-category-title {
        max-width: min(280px, 84vw);
        font-size: clamp(24px, 8vw, 30px);
    }

    .stories-category-kicker {
        min-height: 26px;
        font-size: 9px;
        letter-spacing: 0.2em;
    }
}
