/* === CSS RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #f5f5f0;
    background: linear-gradient(
        180deg,
        #0a0a0f 0%,
        #12121a 8%,
        #1a1a25 15%,
        #252535 25%,
        #3a3a4a 40%,
        #5a5a6a 55%,
        #8a8a8a 70%,
        #b8b5aa 82%,
        #e8e4d9 92%,
        #f5f2ea 100%
    );
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 3rem;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1.5rem;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4vw;
    mix-blend-mode: difference;
    color: #D4AF37;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #D4AF37;
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 210;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: #D4AF37;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    position: relative;
    z-index: 210;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #D4AF37;
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform  0.35s cubic-bezier(0.23, 1, 0.32, 1),
        opacity    0.25s ease,
        width      0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(8, 8, 14, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.8rem;
    opacity: 0;
    transform: translateY(-12px);
    transition:
        opacity   0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.nav-overlay.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nav-overlay a {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    font-weight: 400;
    color: #D4AF37;
    text-decoration: none;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity    0.4s ease,
        transform  0.4s ease,
        color      0.2s ease;
}

.nav-overlay.is-open a:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.nav-overlay.is-open a:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
.nav-overlay.is-open a:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.nav-overlay.is-open a:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }

.nav-overlay a:hover {
    color: #fff;
    opacity: 1 !important;
}

.nav-overlay a + a {
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    padding-top: 2.8rem;
    margin-top: -2.8rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

body.nav-open {
    overflow: hidden;
}

/* =========================
   HERO CTA BUTTON
========================= */

.hero-cta {
    margin-top: 3rem;
    padding: 1.2rem 3rem;
    font-size: 1.125rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #1a1a00;
    background: linear-gradient(135deg, #f5c842 0%, #e6a800 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    z-index: 4;
    box-shadow:
        0 4px 16px rgba(212, 175, 55, 0.4),
        0 0 0 0 rgba(255, 200, 30, 0.6);
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    animation: ctaPulse 2.5s ease-in-out infinite;
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 8px 28px rgba(212, 175, 55, 0.6),
        0 0 0 8px rgba(255, 200, 30, 0.3);
    animation: none;
}

.hero-cta:active {
    transform: translateY(-2px) scale(1.02);
}

@keyframes ctaPulse {
    0% {
        box-shadow:
            0 4px 16px rgba(212, 175, 55, 0.4),
            0 0 0 0 rgba(255, 200, 30, 0.6);
    }
    50% {
        box-shadow:
            0 4px 16px rgba(212, 175, 55, 0.4),
            0 0 0 12px rgba(255, 200, 30, 0);
    }
    100% {
        box-shadow:
            0 4px 16px rgba(212, 175, 55, 0.4),
            0 0 0 0 rgba(255, 200, 30, 0.6);
    }
}

@media (max-width: 768px) {
    .hero-cta {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

/* =========================
   CLARITY MODAL
========================= */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: transparent;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 5rem 2rem;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.is-open {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(
        to bottom,
        #fdfaf3 0%,
        #fff8e1 30%,
        #ffefc2 70%,
        #ffe8a8 100%
    );
    border-radius: 20px;
    padding: 3rem 2.5rem 2.5rem;
    max-width: 432px;  /* 80% of 540px */
    width: 100%;
    position: relative;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.25),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 120px rgba(255, 215, 0, 0.2);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
}

.modal-overlay.is-open .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(31, 42, 68, 0.2);
    border: 2px solid rgba(31, 42, 68, 0.4);
    font-size: 1.5rem;
    line-height: 1;
    color: #1f2a44;
    cursor: pointer;
    padding: 0.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: 400;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(31, 42, 68, 0.3);
    border-color: rgba(31, 42, 68, 0.6);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 1.6rem;
    color: #1f2a44;
    margin-bottom: 0.4rem;
    text-align: center;
}

.modal-intro {
    font-size: 0.9rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2a44;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #1f2a44;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(31, 42, 68, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #f5c842;
    box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #1a1a00;
    background: linear-gradient(135deg, #f5c842 0%, #e6a800 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 
        0 4px 16px rgba(212, 175, 55, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    margin-top: 0.8rem;
    position: relative;
    z-index: 100;
    display: block;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    min-height: 20px;
    color: #1f2a44;
    font-weight: 500;
}

.form-status.success {
    color: #2ecc71;
    font-weight: 500;
}

.form-status.error {
    color: #e74c3c;
    font-weight: 500;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
        align-items: flex-start;
    }

    .modal-content {
        padding: 2.5rem 1.25rem 1.5rem;
        margin: 1rem auto;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .modal-intro {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
        background: rgba(31, 42, 68, 0.25);
        border-color: rgba(31, 42, 68, 0.45);
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        min-height: 70px;
    }
    
    .form-submit {
        padding: 0.8rem;
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }
    
    .form-status {
        font-size: 0.8rem;
        margin-top: 0.6rem;
    }
}

/* Lock body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* === HERO: DUSK === */
.hero {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4vw;
    overflow: hidden;
}

.noise-overlay {
    z-index: 1;
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-content {
    max-width: 200rem;
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-lamp {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.hero-lamp img {
    width: min(110px, 35vw);
    height: auto;
    opacity: 0.9;
    filter:
        brightness(1.05)
        contrast(0.95)
        saturate(0.9);
}

.hero h1 {
    margin-bottom: 2rem;
    color: #ffb803;
}

.subtext {
    font-size: 1.125rem;
    color: #ffb803;
    margin-bottom: 1.5rem;
}

.micro-line {
    font-size: 0.875rem;
    color: #ffb803;
    font-style: italic;
}

.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shooting-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* === STORY: CHAOS === */
.story {
    padding: 10rem 4vw 8rem;
    position: relative;
    overflow: hidden;   /* clips translateX pre-animation offsets on mobile */
}

.story-content {
    max-width: 90rem;
    margin: 0 auto;
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.story-text {
    max-width: 48rem;
    padding-bottom: 2rem;
}

.story-text h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #E8C670;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.story-text p {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #D4AF37;
    margin-bottom: 1.8rem;
}

.story-text em {
    font-style: italic;
    color: #E8C670;
}

.story-text strong {
    color: #E8C670;
    font-weight: 500;
}

.story-text .highlight {
    font-size: 1.25rem;
    margin: 2.5rem 0;
    padding: 1.5rem;
    border-left: 4px solid #D4AF37;
    background: rgba(212, 175, 55, 0.05);
}

.story-text blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-style: italic;
    color: #E0C070;
    margin: 3rem 0;
    padding: 0 0 0 2rem;
    border-left: 3px solid rgba(232, 198, 112, 0.4);
    line-height: 1.6;
}

.story-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(1.05) contrast(0.95) sepia(0.15);
}

.image-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #E0C070;
    background: rgba(10,10,15,0.6);
    padding: 0.5rem;
    border-radius: 4px;
}

.quote-below-image {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #E0C070;
    margin: 2.5rem 0 1rem;
    padding: 1.5rem 2rem 1rem;
    text-align: center;
    line-height: 1.55;
    border-top: 1px solid rgba(232, 198, 112, 0.25);
    position: relative;
}

.quote-below-image::before {
    content: '"';
    font-size: 4rem;
    line-height: 1;
    color: rgba(232, 198, 112, 0.25);
    position: absolute;
    top: -0.8rem;
    left: 0.5rem;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .story-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .story-image {
        order: -1;
    }

    .quote-below-image {
        margin: 2rem 0 0;
        padding: 1.5rem 1rem 0;
    }
}

/* === BIRTH OF PROLIFIC VA === */
.birth {
    padding: 10rem 4vw 10rem;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.02) 0%,
        rgba(255,255,255,0.05) 50%,
        transparent 100%
    );
}

.birth-content {
    max-width: 90rem;
    margin: 0 auto;
}

.birth-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 5rem;
    align-items: center;
}

.birth-logo {
    position: relative;
    /* overflow visible so the glow can spill beyond the logo bounds */
    overflow: visible;
}

/* ── Corona — tight golden halo that wraps the logo itself ── */
.birth-logo::after {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 230, 100, 0.22)  0%,
        rgba(255, 180,  40, 0.10) 50%,
        transparent               100%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    /* Corona blooms after logo is mostly in place */
    transition: opacity 1.4s ease-out 1.6s;
    will-change: opacity;
}

/* Visible states */
.birth-logo.sunrise-visible::after {
    opacity: 1;
}

/* ── Logo image — rises from below, fades and scales in ── */
.birth-logo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;

    /* Starting state: below its resting position, invisible */
    opacity: 0;
    transform: translateY(72px) scale(0.94);
    filter: drop-shadow(0 8px 24px rgba(212, 175, 55, 0.20));

    /* Logo waits for glow to establish, then rises slowly */
    transition:
        opacity    1.6s ease-out            0.8s,
        transform  2.4s cubic-bezier(0.16, 1, 0.3, 1)  0.8s,
        filter     1.8s ease-out            1.2s;
    will-change: opacity, transform;
}

/* Logo resting state — settled, glowing */
.birth-logo.sunrise-visible img {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter:
        drop-shadow(0  8px 24px rgba(212, 175, 55, 0.50))
        drop-shadow(0  0   48px rgba(255, 200,  60, 0.22));
}

/* Hover — snap response, no entrance delay */
.birth-logo.sunrise-visible:hover img {
    transform: translateY(-4px) scale(1.04);
    filter:
        drop-shadow(0 12px 32px rgba(212, 175, 55, 0.65))
        drop-shadow(0  0   64px rgba(255, 200,  60, 0.38));
    transition:
        opacity    1.6s ease-out  0.8s,
        transform  0.55s ease-out 0s,
        filter     0.55s ease-out 0s;
}

/* Instant reset class — suppresses ALL transitions including pseudo-elements */
.birth-logo.sunrise-no-transition,
.birth-logo.sunrise-no-transition::after,
.birth-logo.sunrise-no-transition img {
    transition: none !important;
}

.birth-text {
    max-width: 58rem;
}

.birth-text h2 {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    color: #E8C670;
    margin-bottom: 2.5rem;
    letter-spacing: -0.015em;
}

.birth-text p {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #D4AF37;
    margin-bottom: 1.8rem;
}

.birth-text strong {
    color: #E8C670;
    font-weight: 500;
}

.birth-text .highlight {
    font-size: 1.25rem;
    margin: 2.5rem 0 2rem;
    padding: 1.5rem 2rem;
    background: rgba(212, 175, 55, 0.06);
    border-radius: 8px;
    border-left: 5px solid #D4AF37;
    font-style: italic;
}

.birth-text .conclusion {
    font-size: 1.25rem;
    color: #E8C670;
    font-weight: 400;
    margin-top: 2rem;
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 198, 112, 0.25);
}

@media (max-width: 1024px) {
    .birth-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .birth-logo {
        max-width: 320px;
        margin: 0 auto;
    }

    .birth-text {
        text-align: center;
    }

    .birth-text .highlight,
    .birth-text .conclusion {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .birth {
        padding: 8rem 5vw 6rem;
    }
}

/* === WORK === */
.work {
    padding: 10rem 4vw 8rem;
    position: relative;
    background:
        radial-gradient(circle at 80% 20%, rgba(90,120,255,0.08), transparent 45%),
        linear-gradient(
            to bottom,
            #aeb6d1 0%,
            #f8faff 40%,
            #ffffff 100%
        );
}

.work-content {
    max-width: 90rem;
    margin: 0 auto;
}

.work h2 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: #ffb803;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.work-intro {
    font-size: 1.25rem;
    color: #D4AF37;
    text-align: center;
    max-width: 60rem;
    margin: 0 auto 5rem;
    line-height: 1.6;
}

.philosophy {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 6rem;
}

.philosophy h3 {
    font-size: 1.75rem;
    color: #ffb803;
    margin-bottom: 2rem;
}

.beliefs-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.beliefs-list li {
    font-size: 1rem;
    color: #ffb803;
    position: relative;
    padding-left: 1rem;
}

.beliefs-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffb803;
    font-size: 1.5rem;
    line-height: 1;
}

.philosophy-closing {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #E0C070;
    font-style: italic;
}

.method {
    text-align: center;
    margin-bottom: 8rem;
}

.method h3 {
    font-size: 1.75rem;
    color: #ffb803;
    margin-bottom: 3rem;
}

.method-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1rem 0;
}

.method-step {
    flex: 0 0 140px;
    text-align: center;
    padding: 1.2rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,184,3,0.15);
    transition: transform 0.3s ease;
}

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

.step-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffb803;
    margin-bottom: 0.5rem;
}

.step-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #ffb803;
    display: block;
    margin-bottom: 0.3rem;
}

.step-desc {
    font-size: 0.95rem;
    color: #E0C070;
}

.flow-arrow {
    font-size: 2.5rem;
    color: #ffb803;
    font-weight: 300;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .method-flow {
        flex-direction: column;
        gap: 2rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        font-size: 3rem;
    }

    .method-step {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
}


/* ================================
   CASE STUDIES
================================ */

.case-studies {
    margin: 0;
    width: 100%;
    padding: 8rem 4vw 8rem;
    background: linear-gradient(
        to bottom,
        #52536a  0%,
        #7393B3  42%,
        #7393B3  62%,
        #6e7585 100%
    );
}

/* Inner content stays centred and readable */
.case-studies > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.case-studies h3 {
    text-align: center;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    color: #ffb803;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.case-subheader {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #E0C070;
    font-style: italic;
    font-weight: 400;
    margin: -1rem 0 4.5rem 0;
    letter-spacing: 0.02em;
    opacity: 0.92;
}

/* ── Card base ── */
.case-study {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    /* hover transition — only transform/shadow, animation handles opacity separately */
    transition:
        transform  0.5s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.case-study:hover {
    transform: translateY(-14px) scale(1.015);
    box-shadow: 0 35px 90px rgba(0,0,0,0.42);
}

/* ── Card entrance animation states ── */
.case-study.card-hidden {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
}

.case-study.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity    0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--card-delay, 0s),
        transform  0.9s cubic-bezier(0.16, 1, 0.3,  1) var(--card-delay, 0s),
        box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* hover only applies once card is visible */
.case-study.card-visible:hover {
    transform: translateY(-14px) scale(1.015);
    box-shadow: 0 35px 90px rgba(0,0,0,0.42);
}

.case-study-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* ── Image container ── */
.case-study-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f0f1a;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.case-study:hover .case-study-image img {
    transform: scale(1.10);
}

/* ── Overlay ── */
.project-overlay {
    position: absolute;
    inset: 0;
    /* Stronger gradient so text is always readable regardless of image */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.55) 45%,
        transparent      75%
    );
    display: flex;
    align-items: flex-end;
    padding: 2.2rem 2.4rem 2rem;
    transition: background 0.4s ease;
}

.case-study:hover .project-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.94) 0%,
        rgba(0,0,0,0.65) 50%,
        transparent      72%
    );
}

.project-content {
    color: white;
    width: 100%;
}

.project-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    margin-bottom: 0.6rem;
    letter-spacing: -0.015em;
    /* Ensure title always readable */
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.project-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.9rem;
    opacity: 0.92;
}

.project-content .case-study-tag {
    font-size: 0.85rem;
    color: #E0C070;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.9;
}

/* ── Featured card ── */
.case-study.featured {
    margin-bottom: 7rem;
}

.case-study.featured .case-study-image {
    aspect-ratio: 16 / 9;
}

.case-study.featured .project-overlay {
    padding: 3.5rem 4rem 3rem;
}

.case-study.featured .project-content h4 {
    font-size: clamp(2.6rem, 5vw, 4rem);
}

.case-study.featured .project-content p {
    font-size: 1.25rem;
    max-width: 80%;
}

/* ── Grid ── */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .case-study.featured {
        margin-bottom: 5rem;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .case-studies {
        padding: 6rem 0 6rem;   /* zero horizontal padding — cards go edge-to-edge */
    }

    /* Headings keep a little breathing room */
    .case-studies h3,
    .case-subheader {
        padding: 0 1.5rem;
    }

    /* Cards flush to screen edges, no border-radius on sides */
    .case-study {
        border-radius: 0;
        box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    }

    /* Featured card: taller aspect ratio so text has room to breathe */
    .case-study.featured .case-study-image {
        aspect-ratio: 4 / 3;
    }

    .case-study.featured .project-overlay {
        padding: 2rem 1.6rem 1.8rem;
        /* Extend gradient further up so long text stays on dark bg */
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.92) 0%,
            rgba(0,0,0,0.70) 55%,
            transparent      80%
        );
    }

    .case-study.featured .project-content h4 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .case-study.featured .project-content p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* Grid cards */
    .case-study-image {
        aspect-ratio: 4 / 3;
    }

    .project-overlay {
        padding: 1.6rem 1.4rem 1.4rem;
    }

    .project-content h4 {
        font-size: 1.6rem;
    }

    /* Grid gap */
    .case-study-grid {
        gap: 0;           /* flush stacking — section bg shows between via padding */
    }

    .case-study-grid .case-study {
        margin-bottom: 2rem;
    }

    .case-study-grid .case-study:last-child {
        margin-bottom: 0;
    }

    /* Featured spacing on mobile */
    .case-study.featured {
        margin-bottom: 2rem;
    }
}

/* ================================
   TRUST INTRO
================================ */

.trust-intro {
    text-align: center;
    max-width: 65rem;
    margin: 0 auto 5rem;
}

.trust-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #D4AF37;
    margin-bottom: 1.5rem;
}

.trust-intro .question {
    font-size: 2rem;
    font-weight: 500;
    color: #ffb803;
    margin: 1.5rem 0;
    letter-spacing: -0.01em;
}

.trusted-brands {
    margin-top: 6rem;
    text-align: center;
}

.trusted-brands h3 {
    font-size: 2rem;
    color: #ffb803;
    margin-bottom: 3rem;
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 4rem;
}

.brand-item {
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 320px;
    transition: transform 0.3s ease;
}

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

.brand-name {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #ffb803;
    margin-bottom: 0.5rem;
}

.brand-desc {
    font-size: 1rem;
    color: #E0C070;
    line-height: 1.5;
}

/* ================================
   THE MIND BEHIND PROLIFIC
================================ */

.mind {
    padding: 11rem 5vw 13rem;
    position: relative;
    background: linear-gradient(
        to bottom,
        #969dac 0%,
        #cfd5e2 18%,
        #f4f2f0 100%
    );
}

.mind-content {
    max-width: 92rem;
    margin: 0 auto;
}

/* Text wider, image a tighter portrait column — creates clear visual hierarchy */
.mind-layout {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 6rem;
    align-items: center;
}

/* ── Text column ── */
.mind-text {
    max-width: 52rem;
}

.mind-text h2 {
    font-size: clamp(2.4rem, 4.5vw, 4.2rem);
    color: #1f2a44;
    margin-bottom: 2.4rem;
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mind-text .intro-line {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 1.4rem;
    letter-spacing: 0.01em;
}

.mind-text p {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #1f2a44;
    margin-bottom: 1.6rem;
}

.mind-text strong {
    color: #0f172a;
    font-weight: 600;
}

.mind-text .closing-line {
    font-size: 1.05rem;
    color: #34495e;
    font-style: italic;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ── Credentials strip — gold pill tags ── */
.mind-credentials {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.8rem;
    margin: 1.8rem 0 2rem;
    padding: 0;
}

.mind-credentials li {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a00;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    /* Gold fill — warm metallic feel */
    background: linear-gradient(135deg, #f5c842 0%, #e6a800 100%);
    border: 1px solid rgba(255, 200, 30, 0.4);
    box-shadow: 0 2px 8px rgba(200, 140, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mind-credentials li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(200, 140, 0, 0.4);
}

/* ── Image column — circular frame ── */
.mind-image {
    position: relative;
    /* Circle — explicit width so aspect-ratio works on all devices */
    width: 100%;
    max-width: 340px;
    /* padding-bottom trick: guarantees a square container on every browser */
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    /* Outer ring: two rings — thin gold inner, soft shadow outer */
    box-shadow:
        0 0  0  4px  rgba(255, 184,   3, 0.55),   /* gold ring */
        0 0  0  8px  rgba(255, 184,   3, 0.12),   /* soft halo */
        0 20px 60px  rgba(0,   0,     0, 0.40);   /* depth shadow */
    transition:
        transform  0.7s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 0.7s ease;
    /* Ensure it's never invisible — explicit dimensions always render */
    flex-shrink: 0;
}

.mind-image:hover {
    transform: scale(1.04);
    box-shadow:
        0 0  0  4px  rgba(255, 184,   3, 0.80),
        0 0  0  8px  rgba(255, 184,   3, 0.22),
        0 28px 80px  rgba(0,   0,     0, 0.55);
}

.mind-image img {
    /* Fill the circle completely */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(1.05) contrast(0.98) sepia(0.06);
    /* Soften focus slightly — person, not specimen */
    filter: brightness(1.04) contrast(0.96) saturate(0.92) sepia(0.04);
}

/* Caption sits below the circle, not inside it */
.mind-image-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.image-caption {
    font-size: 0.85rem;
    color: #2c3e50;
    letter-spacing: 0.08em;
    font-style: italic;
    opacity: 0.75;
    /* Override story section styles that set position:absolute */
    position: static;
    transform: none;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    white-space: nowrap;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .mind-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    /* Centre the image wrap below the text */
    .mind-image-wrap {
        margin: 0 auto;
        width: fit-content;
    }

    .mind-image {
        width: 260px;   /* explicit px width — no ambiguity on mobile */
        max-width: 260px;
        aspect-ratio: 1 / 1;
    }

    .mind-text {
        margin: 0 auto;
    }

    .mind-credentials {
        justify-content: center;
    }
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .mind {
        padding: 8rem 6vw 10rem;
    }

    .mind-text h2 {
        line-height: 1.15;
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .mind-image {
        width: 220px;
        max-width: 220px;
    }

    .mind-credentials li {
        font-size: 0.7rem;
        padding: 0.4rem 0.85rem;
    }
}

/* === FOOTER === */
.footer {
    padding: 12rem 4vw 8rem;
    position: relative;
    background: linear-gradient(
        to bottom,
        #fdfaf3 0%,
        #fff8e1 40%,
        #ffefc2 70%,
        #ffe8a8 100%
    );
    color: #001f3f !important;
    text-align: center;
}

.footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: radial-gradient(
        circle at 50% 120%,
        rgba(255, 215, 0, 0.18) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.invitation {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    line-height: 1.3;
    margin-bottom: 2.5rem;
    color: #001f3f !important;
    font-weight: 500;
}

.contact-link {
    display: inline-block;
    font-size: 1.15rem;
    color: #0d2b5e !important;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(0, 31, 63, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.contact-link:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: #ffb803;
    color: #001f3f !important;
}

.social {
    font-size: 1.1rem;
    color: #1a3a6e !important;
    margin-bottom: 3rem;
}

.social a.x-link {
    color: #0d2b5e !important;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.social a.x-link:hover {
    color: #001f3f !important;
}

.copyright {
    font-size: 0.95rem;
    color: #1a3a6e !important;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.slogan {
    font-size: 1.5rem;
    color: #0d2b5e !important;
    font-style: italic;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .footer {
        padding: 8rem 5vw 6rem;
    }

    .invitation {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .contact-link {
        font-size: 1.05rem;
        padding: 0.5rem 1.2rem;
    }

    .slogan {
        font-size: 1.3rem;
    }
}

/* =========================
   HERO STARFIELD
========================= */

/* Each star is a <span class="star"> injected by JS */
.star {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    background: #fff;
    width:  var(--size);
    height: var(--size);
    box-shadow:
        0 0 calc(var(--size) * 1.5) calc(var(--size) * 0.5) var(--flare-color);
    animation: starFlare var(--duration) var(--delay) infinite ease-in-out;
    will-change: opacity, transform, box-shadow;
}

@keyframes starFlare {
    0%   { opacity: 0.15; transform: translate(-50%, -50%) scale(1);   }
    48%  { opacity: 0.15; transform: translate(-50%, -50%) scale(1);   }
    52%  { opacity: 1;    transform: translate(-50%, -50%) scale(1.8); }
    56%  { opacity: 0.9;  transform: translate(-50%, -50%) scale(1.4); }
    60%  { opacity: 1;    transform: translate(-50%, -50%) scale(2.0); }
    68%  { opacity: 0.5;  transform: translate(-50%, -50%) scale(1.2); }
    75%  { opacity: 0.15; transform: translate(-50%, -50%) scale(1);   }
    100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1);   }
}

/* =========================
   SHOOTING STARS
========================= */

.meteor {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0  6px 2px rgba(255, 240, 180, 0.95),
        0 0 14px 4px rgba(255, 210, 100, 0.6),
        0 0 28px 8px rgba(255, 180,  60, 0.25);
    opacity: 0;
    animation-name: meteorFly;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    will-change: transform, opacity;
}

.meteor::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 120px;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(var(--streak-angle));
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.0)  0%,
        rgba(255, 220, 120, 0.15) 25%,
        rgba(255, 240, 180, 0.55) 60%,
        rgba(255, 255, 255, 0.90) 100%
    );
    border-radius: 1px;
    filter: blur(1.5px);
}

.meteor::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 100px;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(var(--streak-angle));
    background: linear-gradient(
        to top,
        transparent 0%,
        rgba(255, 200, 80, 0.08) 40%,
        rgba(255, 240, 180, 0.22) 100%
    );
    filter: blur(5px);
    border-radius: 4px;
}

@keyframes meteorFly {
    0% {
        opacity: 0;
        transform: translate(var(--startX), var(--startY));
    }
    6% {
        opacity: 1;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translate(
            calc(var(--startX) + var(--travelX)),
            calc(var(--startY) + var(--travelY))
        );
    }
}

/* =========================
   DAWN STARS (story section)
========================= */

.story .dawn-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.dawn-star {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    width:  var(--size);
    height: var(--size);
    opacity: 0.12;
    background: #fff;
    box-shadow:
        0 0 calc(var(--size) * 1.2) calc(var(--size) * 0.3) var(--flare-color);
    animation: dawnStarFlare var(--duration) var(--delay) infinite ease-in-out;
    will-change: opacity;
}

@keyframes dawnStarFlare {
    0%   { opacity: 0.08; transform: translate(-50%, -50%) scale(1);   }
    45%  { opacity: 0.08; transform: translate(-50%, -50%) scale(1);   }
    52%  { opacity: 0.55; transform: translate(-50%, -50%) scale(1.4); }
    60%  { opacity: 0.35; transform: translate(-50%, -50%) scale(1.2); }
    72%  { opacity: 0.08; transform: translate(-50%, -50%) scale(1);   }
    100% { opacity: 0.08; transform: translate(-50%, -50%) scale(1);   }
}

/* =========================
   STORY SECTION — SCROLL REVEAL
   Text slides in from left, image from right.
   Bidirectional — re-animates from above and below.
========================= */

.story-text.reveal-ready {
    opacity: 0;
    transform: translateX(-80px);
    transition:
        opacity  0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.story-image.reveal-ready {
    opacity: 0;
    transform: translateX(80px);
    transition:
        opacity  0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

/* Image arrives 120ms after text */
.story-image.reveal-ready {
    transition-delay: 0.12s;
}

.story-text.reveal-visible,
.story-image.reveal-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile: slide up instead of sideways */
@media (max-width: 1024px) {
    .story-text.reveal-ready {
        transform: translateY(50px);
    }
    .story-image.reveal-ready {
        transform: translateY(50px);
    }
    .story-text.reveal-visible,
    .story-image.reveal-visible {
        transform: translateY(0);
    }
}

/* =========================
   FLOATING X BUTTON
========================= */

.x-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 300;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.45),
        0 0   0  2px rgba(255, 255, 255, 0.08);
    transition:
        transform   0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow  0.3s ease,
        background  0.25s ease;
    /* Pulsating ring animation */
    animation: xPulse 2.8s ease-in-out infinite;
}

.x-float:hover {
    transform: scale(1.15);
    background: #111;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.55),
        0 0   0  2px rgba(255, 255, 255, 0.18);
    animation: none;   /* pause pulse on hover so it feels responsive */
}

/* The X icon — drawn in SVG inline so no font dependency */
.x-float svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.x-float:hover svg {
    transform: scale(1.1);
}

/* Pulsating outer ring */
@keyframes xPulse {
    0%   { box-shadow: 0 4px 16px rgba(0,0,0,0.45), 0 0 0 0   rgba(255,255,255,0.22); }
    50%  { box-shadow: 0 4px 16px rgba(0,0,0,0.45), 0 0 0 10px rgba(255,255,255,0);    }
    100% { box-shadow: 0 4px 16px rgba(0,0,0,0.45), 0 0 0 0   rgba(255,255,255,0.22); }
}

/* Nudge up slightly on mobile so it clears the bottom browser chrome */
@media (max-width: 768px) {
    .x-float {
        bottom: 1.5rem;
        right: 1.2rem;
        width: 46px;
        height: 46px;
    }

    .x-float svg {
        width: 19px;
        height: 19px;
    }
}

footer {
    padding: 12rem 4vw 8rem;
    position: relative;
    background: linear-gradient(
        to bottom,
        #fdfaf3 0%,
        #fff8e1 40%,
        #ffefc2 70%,
        #ffe8a8 100%
    );
    color: #001f3f !important;
    text-align: center;
}

.footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: radial-gradient(
        circle at 50% 120%,
        rgba(255, 215, 0, 0.18) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.invitation {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    line-height: 1.3;
    margin-bottom: 2.5rem;
    color: #001f3f !important;
    font-weight: 500;
}

.contact-link {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 500;
    color: #1a1a00;
    text-decoration: none;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #f5c842 0%, #e6a800 100%);
    border: none;
    border-radius: 50px;
    box-shadow:
        0 4px 16px rgba(212, 175, 55, 0.4),
        0 0 0 0 rgba(255, 200, 30, 0.6);
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    margin-bottom: 2rem;
    animation: ctaPulse 2.5s ease-in-out infinite;
}

.contact-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 8px 28px rgba(212, 175, 55, 0.6),
        0 0 0 8px rgba(255, 200, 30, 0.3);
    animation: none;
    color: #1a1a00;
}

.contact-link:active {
    transform: translateY(-2px) scale(1.02);
}

.slogan {
    font-size: 1.5rem;
    color: #0d2b5e !important;
    font-style: italic;
    opacity: 0.9;
    margin-top: 2rem;
}

.copyright {
    font-size: 0.95rem;
    color: #1a3a6e !important;
    opacity: 0.85;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 8rem 5vw 6rem;
    }

    .invitation {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .contact-link {
        font-size: 1.05rem;
        padding: 0.875rem 2rem;
    }

    .slogan {
        font-size: 1.3rem;
    }
}