@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary: #6246ea;
    --accent: #ff5277;
    --black: #0e0e0e;
    --paper: #f4f4f0;
    --white: #ffffff;

    --container-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--paper);
    color: var(--black);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3 {
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Floating Nav */
.floating-nav {

    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    will-change: background, padding;

    &.scrolled {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 8px 20px;
    }

    & .logo {

        font-weight: 700;
        font-family: 'Manrope';
        font-size: 1.2rem;
        color: var(--black);
        text-decoration: none;
        transition: color 0.3s;

        &:hover {
            color: var(--accent);
        }
    }

    & .menu-items {

        display: flex;
        gap: 20px;
        align-items: center;

        & a {

            font-size: 1rem;
            font-weight: 600;
            color: var(--black);
            text-decoration: none;
            position: relative;
            transition: color 0.3s;

            &::after {
                content: '';
                position: absolute;
                bottom: -5px;
                left: 0;
                width: 0;
                height: 2px;
                background: var(--accent);
                transition: width 0.3s ease;
            }

            &:hover {

                color: var(--accent);

                &::after {
                    width: 100%;
                }
            }
        }
    }

    & .cta-btn {

        background: var(--black);
        color: var(--white);
        padding: 10px 24px;
        border-radius: 20px;
        font-size: 1rem;
        cursor: pointer;
        transition: 0.3s;
        text-decoration: none;
        z-index: 1002;
        position: relative;

        &:hover {
            background: var(--accent);
            transform: rotate(-3deg) scale(1.05);
        }
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {

    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;

    & span {

        display: block;
        height: 3px;
        width: 100%;
        background: var(--black);
        border-radius: 3px;
        transition: all 0.3s ease;

        &.open:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        &.open:nth-child(2) {
            opacity: 0;
        }

        &.open:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .floating-nav {
        top: 30px;
        padding: 10px 15px;
        flex-wrap: wrap;
        transition: background 0.3s ease, padding 0.3s ease, transform 0.3s ease;
        justify-content: space-between;
    }

    .floating-nav .logo {
        order: 1;
        font-size: 1rem;
    }

    .floating-nav .cta-btn {
        display: block;
        order: 2;
        padding: 8px 16px;
        font-size: 0.8rem;
        margin: 0 10px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .floating-nav .menu-items {
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 0;
        margin-top: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);

        /* Smooth reveal */
        display: flex;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition:
            max-height 0.45s cubic-bezier(0.23, 1, 0.32, 1),
            opacity 0.35s ease,
            transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
            padding-top 0.35s ease,
            margin-top 0.35s ease;
    }

    .floating-nav.active .menu-items {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding-top: 20px;
        margin-top: 10px;
    }
}

/* Hero Editorial */
#hero-editorial {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 80px;
    /* nav space */
}

.hero-content {

    flex: 1;
    min-width: 300px;
    padding: 5%;
    position: relative;
    z-index: 2;

    & h1,
    & h2.subtitle {
        font-size: clamp(4rem, 10vw, 8rem);
        line-height: 0.9;
        letter-spacing: -2px;
    }

    & .subtitle {
        font-size: clamp(4rem, 10vw, 8rem);
        color: transparent;
        -webkit-text-stroke: 2px var(--black);
        opacity: 0.5;
    }

    & p {
        font-size: 1.2rem;
        margin-top: 30px;
        max-width: 400px;
        border-left: 3px solid var(--accent);
        padding-left: 20px;
    }
}

.hero-image-container {
    flex: 1;
    min-width: 400px;
    height: 90vh;
    position: relative;
    padding-right: 5%;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

/* Marquee */
.marquee-strip {
    background: var(--black);
    color: var(--white);
    padding: 20px 0;
    overflow: hidden;
    transform: rotate(-2deg) scale(1.05);
    margin: 50px 0;
}

/* Posters Styling */
.hero-posters {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

.posters-title {
    font-family: 'Manrope';
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeIn 1s ease-out;
}

.posters-title::after {
    content: '';
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
    flex: 1;
    opacity: 0.4;
}

.poster-card {

    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;

    &:hover {

        transform: translateX(12px) scale(1.02);
        box-shadow: 0 20px 40px rgba(98, 70, 234, 0.12);
        /* Subtle primary glow */
        border-color: rgba(98, 70, 234, 0.3);

        &::before {
            transform: scaleY(1);
        }

        & .poster-media {
            transform: rotate(-6deg) scale(1.1);
        }

        & .poster-arrow {
            transform: rotate(-45deg) scale(1.1);
            background: var(--accent);
        }
    }

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--primary);
        transform: scaleY(0);
        transition: transform 0.4s ease;
    }

    & .poster-media {

        width: 70px;
        height: 70px;
        flex-shrink: 0;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        border: 3px solid var(--paper);
        transition: transform 0.5s ease;

        & img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    & .poster-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        min-width: 0;
    }

    & .poster-name {
        font-family: 'Manrope';
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 2px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    & .poster-meta {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    & .poster-detail-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        color: var(--black);
        opacity: 0.6;
        font-weight: 500;
    }

    & .detail-icon {
        width: 14px;
        height: 14px;
        opacity: 0.8;
    }

    & .poster-arrow {
        flex-shrink: 0;
        width: 35px;
        height: 35px;
        background: var(--primary);
        color: var(--white);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
        font-weight: 700;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Course Section */
.course-section {
    padding: 100px 5%;
    background: var(--white);
}

.course-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    align-items: center;
}



.course-info {

    flex: 1;
    text-align: left;
    max-width: 800px;

    & h2 {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    & p {
        font-size: 1.2rem;
        line-height: 1.7;
        margin-bottom: 15px;
    }
}

.course-tagline {
    font-family: 'Manrope';
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.course-duration {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--paper);
    border-radius: 20px;
    width: fit-content;
}

.duration-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.duration-value {
    font-family: 'Manrope';
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.course-cta {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    padding: 18px 40px;
    background: var(--black);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-cta:hover {
    background: var(--accent);
    transform: rotate(-3deg) scale(1.05);
}

@media (max-width: 900px) {
    .course-container {
        flex-direction: column;
        gap: 40px;
    }

    .course-info h2 {
        font-size: 2rem;
    }
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-family: 'Manrope';
    font-size: 2rem;
    font-weight: 700;
    margin-right: 40px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Masonry Grid */
#gallery {
    padding: 100px 5%;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 20px;
    text-align: right;
}

/* Gallery Hint for 50+ users */
.gallery-hint {
    text-align: right;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 500;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    grid-auto-flow: dense;
}

.grid-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-tall {
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
}

/* Quote Block */
.quote-block {
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.quote-block blockquote {
    font-family: 'Manrope';
    font-size: 2rem;
    line-height: 1.2;
}

/* Hover Overlay - Title lifts up, description appears */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--white);
    transition: all 0.4s ease;
}

/* Title - always visible */
.item-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* Description - hidden initially */
.item-overlay p {
    font-size: 0.95rem;
    line-height: 1.4;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.4s ease;
}

/* "Read" button - hidden initially */
.item-overlay::after {
    content: "Читать →";
    display: inline-block;
    margin-top: 0;
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Hover state - expand everything */
.grid-item:hover .item-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding-bottom: 25px;
}

.grid-item:hover .item-overlay h3 {
    margin-bottom: 10px;
}

.grid-item:hover .item-overlay p {
    max-height: 100px;
    opacity: 0.9;
    margin-top: 5px;
}

.grid-item:hover .item-overlay::after {
    max-height: 50px;
    opacity: 1;
    margin-top: 15px;
}

/* Footer */
.big-footer {
    background: var(--black);
    color: var(--white);
    padding: 100px 5%;
    text-align: center;
}

.big-footer h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 50px;
    color: var(--paper);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.5rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-row a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.social-row a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    #hero-editorial {
        flex-direction: column;
        display: flex;
        padding-top: 100px;
    }

    .hero-content {
        display: contents;
        /* Allows children to be flex items */
    }

    h1.glitch,
    h2.subtitle,
    .hero-content>p {
        order: 0;
        margin-left: 5%;
        margin-right: 5%;
    }

    h2.subtitle {
        text-align: center;
    }

    .hero-image-container {
        height: auto;
        min-width: 0;
        width: 100%;
        order: 1;
        /* Appears after text */
        padding-left: 5%;
        padding-right: 5%;
        margin: 30px 0;
    }

    .hero-img {
        height: auto;
        /* Let video determine height */
        aspect-ratio: auto;
    }

    .hero-posters {
        order: 2;
        /* Appears after image container */
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .section-title {
        text-align: center;
        font-size: 2.5rem;
    }

    .gallery-hint {
        text-align: center;
        font-size: 1rem;
    }

    .grid-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 300px;
    }

    .item-overlay h3 {
        font-size: 1.1rem;
    }

    .item-overlay p {
        font-size: 0.85rem;
    }
}

.hidden-story {
    display: none !important;
}

.hidden-story.revealed {
    display: block !important;
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* --- Show More (Hidden Revealer) Button --- */
.hidden-revealer {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    cursor: pointer;
    color: var(--primary);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px dashed rgba(98, 70, 234, 0.3);
}

.hidden-revealer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(98, 70, 234, 0.1) 0%, rgba(22, 22, 22, 0.05) 100%);
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.hidden-revealer:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(98, 70, 234, 0.15);
    border-color: var(--primary);
    background: #fff5f7;
}

.hidden-revealer:hover::before {
    opacity: 1;
}

.revealer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hidden-revealer .plus-icon {
    font-size: 4rem;
    margin: 0;
    line-height: 1;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    display: inline-block;
}

.hidden-revealer:hover .plus-icon {
    transform: rotate(90deg) scale(1.2);
    color: var(--accent);
}

.hidden-revealer .reveal-text {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 15px 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    transition: color 0.3s ease;
}

.hidden-revealer:hover .reveal-text {
    color: var(--primary);
}

/* === MERGED ARTICLE STYLES === */
/* Hero Section */
.article-hero {

    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;

    & h1 {
        font-family: 'Manrope', sans-serif;
        font-size: clamp(2rem, 6vw, 4rem);
        text-transform: uppercase;
        line-height: 1.1;
        text-align: center;
        max-width: 1000px;
        margin: 0;
        position: relative;
        z-index: 2;
    }

    & .meta {
        position: relative;
        z-index: 2;
        font-family: 'Manrope';
        font-size: 1.2rem;
        color: var(--accent);
        margin-top: 30px;
        letter-spacing: 2px;
        text-transform: uppercase;
    }
}

/* Glitch Effect for titles */
.glitch {

    position: relative;

    &::before,
    &::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    &::before {
        color: var(--primary);
        transform: translate(-3px, -3px);
        z-index: -1;
        animation: glitch 2.5s infinite;
    }

    &::after {
        color: var(--accent);
        transform: translate(3px, 3px);
        z-index: -2;
        animation: glitch 3s infinite reverse;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    100% {
        transform: translate(0);
    }
}

/* Content Container */
.article-content {
    max-width: 1100px;
    margin: -40px auto 0;
    background: var(--white);
    padding: 60px 80px;
    border-radius: 50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
}

.article-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.article-lead {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary) !important;
    margin-bottom: 2rem;
}

/* Gallery */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 60px 0;
}

.article-gallery::before {
    content: "👆 Нажмите на фото для увеличения";
    display: block;
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.article-gallery img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    cursor: zoom-in;
}

.article-gallery img:hover {
    transform: scale(0.98);
    box-shadow: 0 20px 40px rgba(98, 70, 234, 0.2);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(98, 70, 234, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* Source Button */
.article-source-container {
    text-align: center;
    margin-top: 50px;
}

.article-source {
    display: inline-block;
    padding: 15px 40px;
    background: var(--black);
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.article-source:hover {
    background: var(--accent);
    transform: rotate(-3deg) scale(1.05);
}

/* Marquee Footer */
.marquee-footer {
    background: var(--accent);
    color: var(--white);
    padding: 30px 0;
    overflow: hidden;
    transform: rotate(2deg) scale(1.1);
    margin: 100px 0;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

.marquee-content span {
    font-family: 'Manrope';
    font-size: 3rem;
    font-weight: 700;
    margin-right: 50px;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--black);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-toggle span.open:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle span.open:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle span.open:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile */
@media (max-width: 768px) {
    .floating-nav {
        padding: 10px 15px;
        flex-wrap: wrap;
        transition: background 0.3s ease, padding 0.3s ease, transform 0.3s ease;
        justify-content: space-between;
    }

    .floating-nav .logo {
        order: 1;
        font-size: 1rem;
    }

    .floating-nav .cta-btn {
        display: block;
        order: 2;
        padding: 8px 16px;
        font-size: 0.8rem;
        margin: 0 10px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .floating-nav .menu-items {
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 0;
        margin-top: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);

        display: flex;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition:
            max-height 0.45s cubic-bezier(0.23, 1, 0.32, 1),
            opacity 0.35s ease,
            transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
            padding-top 0.35s ease,
            margin-top 0.35s ease;
    }

    .floating-nav.active .menu-items {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding-top: 20px;
        margin-top: 10px;
    }

    .article-hero {
        padding: 100px 15px 80px;
        min-height: 250px;
    }

    .article-hero h1 {
        font-size: 1.8rem;
    }

    .article-content {
        margin: -50px 15px 0;
        padding: 40px 20px;
        border-radius: 30px;
    }

    .article-content p {
        font-size: 1.1rem;
    }

    .article-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .marquee-footer {
        transform: rotate(0);
        margin: 60px 0;
    }

    .marquee-content span {
        font-size: 1.5rem;
    }
}

/* === MERGED MODEL STYLES === */
.magazine-layout {
    display: flex;
    min-height: 100vh;
}

.info-panel {
    width: 40%;
    position: sticky;
    top: 40px;
    /* Reduced gap to top for a tighter feel */
    align-self: flex-start;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.model-name h1 {
    text-transform: none;
}

.sticky-header-badge {
    position: sticky;
    top: 0;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #000;
    border-radius: 60px;
    padding: 10px 40px 10px 15px;
    gap: 25px;
    width: fit-content;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.sticky-header-badge .action-btn {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 1.8rem !important;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    color: #000 !important;
}

.sticky-header-badge .action-btn:hover {
    transform: translateX(-5px) !important;
}

.sticky-header-badge .model-name h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sticky-header-badge .model-name h1:hover {
    opacity: 0.7;
}

/* Button Highlight Pulse */
@keyframes btn-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        border-color: #000;
    }

    100% {
        transform: scale(1);
    }
}

.highlight-pulse {
    animation: btn-pulse 0.8s ease-in-out 2;
}

.model-subtitle {
    font-family: 'Manrope';
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666;
    margin-top: 10px;
    /* Removed 20vh - now tighter */
    margin-bottom: 40px;
}

.bio-text {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 40px;
}

.desktop-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 30px;
    border-radius: 50px;
    /* Round */
    text-decoration: none;
    font-family: 'Manrope';
    font-weight: 700;
    /* Bold */
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent !important;
    border: 1px solid #000;
    color: #000 !important;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
}

.btn-instagram {
    border-color: #e1306c !important;
    color: #e1306c !important;
}

.btn-instagram:hover {
    background: rgba(225, 48, 108, 0.05) !important;
}

.visuals-panel {
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: start;
}

.right-column-container {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.visual-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    /* Square images */
    cursor: zoom-in;
}

.visual-item.hero-span {
    grid-column: span 2;
}

/* Inspiration Section Global */
.inspiration-section {
    padding: 40px 0;
    background: transparent;
    text-align: left;
    /* Aligned left for side panel */
    max-width: 100%;
    margin: 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.inspiration-section .quote-header {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    /* Smaller for side panel */
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    line-height: 1.4;
}

.inspiration-section .quote-body {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    /* Match bio size */
    line-height: 1.6;
    color: #333;
    max-width: 100%;
}

.inspiration-section .quote-body p {
    margin-bottom: 15px;
}

.mobile-bottom-bar,
.floating-number-popup {
    display: none;
}

@media (max-width: 900px) {
    .mobile-bottom-bar {
        display: flex;
    }

    .floating-number-popup {
        display: block;
    }

    body.glossy-page {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .magazine-layout {
        display: flex;
        flex-direction: column;
    }

    .info-panel {
        display: contents;
    }

    .right-column-container {
        display: contents;
    }

    .model-name {
        order: 1;
        padding: 20px 20px 0;
        margin: 0 !important;
    }

    .model-name h1 {
        font-size: 2.5rem;
        margin: 0;
        font-weight: 700;
        text-transform: none;
    }

    .model-subtitle {
        order: 2;
        padding: 0 20px 0;
        margin: 0 !important;
        font-size: 1rem;
        margin-top: 0 !important;
        /* No offset on mobile */
    }

    .visuals-wrapper {
        position: relative;
        order: 3;
        width: 100%;
    }

    .inspiration-section {
        order: 5;
        padding: 40px 20px 100px;
        /* Matched to bio text padding */
        border: none;
        margin-top: -30px;
        /* Bring even closer to Bio */
    }

    .visuals-panel {
        width: 100%;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        height: 60vh;
        padding: 0;
        margin-top: 5px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.6);
        border: none;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: #000;
        z-index: 10;
        cursor: pointer;
        transition: opacity 0.3s;
        border-radius: 50%;
        /* Match round theme */
    }

    .gallery-nav-btn.prev {
        left: 10px;
    }

    .gallery-nav-btn.next {
        right: 10px;
    }

    .gallery-nav-btn:active {
        background: #fff;
    }

    .visuals-panel::-webkit-scrollbar {
        display: none;
    }

    .visual-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
        height: 100%;
    }

    .visual-item img {
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    .bio-text {
        order: 4;
        padding: 0 20px;
        /* Revert to standard padding */
        margin-bottom: 40px;
        max-width: 100%;
    }

    .sticky-header-badge {
        position: relative;
        top: 0;
        border: none;
        box-shadow: none;
        padding: 20px 20px 0;
        margin: 0;
        display: block;
    }

    .sticky-header-badge .action-btn {
        display: none;
    }

    .desktop-actions {
        display: none;
    }

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: 15px 10px;
        z-index: 100;
        gap: 12px;
        border-radius: 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    }

    .mobile-btn {
        background: transparent !important;
        border: 1px solid #000 !important;
        color: #000 !important;
        border-radius: 50px !important;
        /* Round */
        padding: 12px 10px;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        white-space: nowrap;
        font-size: 1.2rem;
        font-family: 'Manrope', sans-serif;
        font-weight: 700;
        text-align: center;
        overflow: hidden;
    }

    /* Reveal state: Bar manipulation */
    .reveal-active .mobile-btn:not(.phone-reveal-btn) {
        flex: 1.5;
        /* Grow neighbors */
    }

    .reveal-active .phone-reveal-btn {
        flex: 0 0 0px;
        opacity: 0;
        padding: 0;
        margin: 0;
        border: none !important;
        pointer-events: none;
    }

    /* The actual floating popup */
    .floating-number-popup {
        position: absolute;
        bottom: 15px;
        /* Starts inside bar */
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        background: #fff;
        color: #000;
        width: 92%;
        /* Use percentage of screen */
        max-width: 400px;
        padding: 15px 0;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
        border: 1px solid #000;
        border-radius: 50px;
        /* Round */
        z-index: 101;
        font-size: 2rem;
        /* Slight reduction for fit if needed, but still large */
        font-family: 'Manrope', sans-serif;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        opacity: 0;
        pointer-events: none;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        cursor: pointer;
        white-space: nowrap;
        /* Prevent wrapping */
    }

    .reveal-active .floating-number-popup {
        bottom: 110px;
        /* Sightly higher */
        opacity: 1;
        transform: translateX(-50%) scale(1.02);
        pointer-events: auto;
    }

    @keyframes revealPulse {
        0% {
            transform: translateX(-50%) scale(0.9);
            opacity: 0;
        }

        100% {
            transform: translateX(-50%) scale(1.05);
            opacity: 1;
        }
    }

    .mb-insta {
        border-color: #e1306c !important;
        color: #e1306c !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    z-index: 2001;
}

.lb-prev {
    left: 10px;
}

.lb-next {
    right: 10px;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2002;
}

/* Pop In Animation */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes popOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}