/* --- CORE VIBE VARIABLES --- */
:root {
    --bg-color: #f1eada;
    --text-color: #101010;
    --accent-pink: #e8465e;
    --accent-green: #10935b;
    --gutter: 10vw;
    /* Editorial breathing room */

    /* Viewport & Safe-Area Framing Custom Properties */
    --status-bar-height: 60px;
    --toolbar-bottom-clearance: calc(clamp(2rem, 5vh, 3.5rem) + env(safe-area-inset-bottom, 34px));
    --safe-viewport-height: 100svh;
}

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

html {
    background-color: #000000;
    color-scheme: dark;
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: var(--text-color);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 8vw;
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(3rem, 6vw, 8rem);
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.03em;
}


.font-mono {
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Cleanup Utilities */
.mt-small { margin-top: 1rem; }
.mt-medium { margin-top: 2rem; }
.text-muted { color: #ccc; }
.text-accent-green { color: var(--accent-green); }
.text-accent-blue { color: #3898ec; }
.hero-intro { 
    margin-top: 2rem; 
    max-width: 400px; 
    opacity: 0.8; 
}

/* --- NAVIGATION --- */
/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: calc(clamp(1.25rem, 3.5vw, 3rem) + env(safe-area-inset-top, 0px))
             calc(clamp(1.25rem, 6vw, 8vw) + env(safe-area-inset-right, 0px))
             clamp(1.25rem, 3.5vw, 3rem)
             calc(clamp(1.25rem, 6vw, 8vw) + env(safe-area-inset-left, 0px));
    z-index: 1000;
    pointer-events: none;
    /* Apply blend mode to entire nav to prevent isolation */
    mix-blend-mode: difference;
    box-sizing: border-box;
}

.nav-standard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    pointer-events: auto;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: clamp(1.15rem, 2.2vw, 2.25rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #fff;
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.4); 
    opacity: 1;
}

.logo-tagline {
    font-family: monospace; 
    font-style: normal;
    font-weight: 400;
    font-size: clamp(0.55rem, 0.9vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-top: 4px;
}

/* Isolate nav links from parent blend mode */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 3rem);
    isolation: isolate; /* Break out of parent's mix-blend-mode */
}

nav a {
    color: #fff;
    text-decoration: none;
    font-family: monospace;
    font-size: clamp(0.75rem, 0.95vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Nav links hover effect - glowing white pop */
.nav-links a:hover {
    color: #ffffff;
    opacity: 1;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.5),
        0 0 2px rgba(0, 0, 0, 0.5);
}

/* Hamburger Toggle */
.nav-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: clamp(1.25rem, 6vw, 8vw);
    width: clamp(32px, 3vw, 44px);
    height: clamp(32px, 3vw, 44px);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(4px, 0.45vw, 6px);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    isolation: isolate;
    padding: 0;
}

.nav-toggle .line,
.menu-close .line {
    width: 100%;
    height: 2px;
    background-color: #fff;
    display: block;
    transition: transform 0.3s ease;
}

.nav-toggle:hover .line {
    transform: scaleX(1.2);
}

/* Fullscreen Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #101010;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

.menu-overlay .menu-close {
    position: absolute;
    top: calc(clamp(1.25rem, 3.5vw, 3rem) + env(safe-area-inset-top, 0px));
    right: calc(clamp(1.25rem, 6vw, 8vw) + env(safe-area-inset-right, 0px));
    width: clamp(32px, 3vw, 44px);
    height: clamp(32px, 3vw, 44px);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(4px, 0.45vw, 6px);
    z-index: 2001;
    pointer-events: auto;
    padding: 0;
}

.menu-overlay .menu-close .line:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

.menu-overlay .menu-close .line:last-child {
    transform: rotate(-45deg) translate(2px, -3px);
}

.menu-overlay .menu-close:hover .line {
    opacity: 0.5;
    transform: scale(0.9) rotate(45deg) translate(2px, 2px);
}

.menu-overlay .menu-close:hover .line:last-child {
    transform: scale(0.9) rotate(-45deg) translate(2px, -3px);
}

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

.menu-links a {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 4rem);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 900;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s ease;
}


.menu-links a:hover {
    color: var(--accent-pink);
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.6), 0 0 20px rgba(233, 30, 99, 0.4); /* Pink glow */
    /* Removed -webkit-text-stroke */
}

/* --- HERO --- */
.hero {
    width: 100%;
    height: 100vh;
    height: 100lvh;
    min-height: 100vh;
    min-height: 100lvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    background-color: #000;
    overflow: hidden;
    padding: 0 var(--gutter);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    background: transparent;
    color: #fff;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.hero-line {
    overflow: hidden;
    display: block;
    padding-bottom: 0.15em;
    color: #fff;
}

.hero-word {
    display: inline-block;
    will-change: transform, opacity;
    color: #fff;
    opacity: 0;
}

.hero-tag p,
.hero-desc p {
    will-change: transform, opacity;
    color: #fff;
    opacity: 0;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background-color: #000;
}

/* On desktop: hide ambient blur wrap, vignette overlay, and bottom blur bar completely */
.hero-video-ambient-wrap {
    display: none;
}

.hero-video-overlay {
    display: none;
}

.hero-bottom-bar {
    display: none;
}

/* Desktop foreground video: clean, full viewport fit with no distortion and no cropping */
.hero-video-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    z-index: 2;
    display: block;
    filter: none;
}


/* --- VERTICAL EDITORIAL SLIDES --- */
.slide {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-color);
}

/* Slide 1993 / About Entrance */
.slide-1993 {
    position: relative;
    background-color: var(--text-color);
}

.parallax-img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.parallax-text-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8vw;
    padding-top: 15vh;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

.parallax-title {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    text-align: left;
    mix-blend-mode: overlay;
    opacity: 0.9;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.05em;
}

/* Polaroids */
.polaroid-stack {
    position: absolute;
    top: 50%;
    left: 52vw;
    transform: translateY(-50%);
    z-index: 5;
    width: min(42vw, 540px);
    height: min(42vw, 540px);
    pointer-events: none;
    will-change: transform;
}

.polaroid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: auto;
    cursor: pointer;
    will-change: transform, opacity;
}

.polaroid img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(15px 15px 25px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    transform-origin: center center;
}

.polaroid.bath {
    z-index: 1;
}

.polaroid.crib {
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
    .polaroid:hover {
        z-index: 10 !important;
    }
    .polaroid.bath:hover img {
        transform: translateY(-16px) scale(1.05) rotate(-3deg);
        filter: drop-shadow(25px 35px 30px rgba(0, 0, 0, 0.75));
    }
    .polaroid.crib:hover img {
        transform: translateY(-16px) scale(1.05) rotate(3deg);
        filter: drop-shadow(25px 35px 30px rgba(0, 0, 0, 0.75));
    }
}

/* Editorial Slides (01, 02, 03) */
.slide-editorial {
    background-color: var(--text-color);
}

.slide-inner {
    width: 85vw;
    max-width: 1300px;
    height: 70vh;
    height: 70svh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.slide-content {
    width: 44%;
    z-index: 2;
}

.slide-content h2 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.25rem;
}

.slide-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-style: italic;
    color: var(--accent-pink);
    margin-bottom: 1.2rem;
    display: block;
}

.slide-number.text-accent-green {
    color: var(--accent-green);
}

.slide-number.text-accent-blue {
    color: #3898ec;
}

.slide-content p {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    max-width: 420px;
}

.slide-img-wrap {
    width: 48vw;
    max-width: 680px;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1a1a;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.slide-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    display: block;
}

/* --- CONTACT --- */
.contact {
    min-height: 100vh;
    min-height: 100svh;
    background-color: var(--bg-color);
    padding: 0; /* Full bleed potential */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 Split */
    width: 100%;
    height: 100vh; /* Full viewport height */
    height: 100svh;
    align-items: stretch;
}

.contact-image-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.contact-image-wrap img {
    width: 100%;
    height: 130%; /* Increased from 110% to prevent gaps */
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    will-change: transform; /* Optimize for animation */
}

.contact-image-wrap:hover img {
    filter: grayscale(0%);
}

.contact-content-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8vw; /* Matches nav padding */
}

.contact-text h2 {
    font-size: 5vw; /* Slightly larger for impact */
    line-height: 0.9;
    margin-bottom: 3rem;
    color: var(--text-color);
}

form {
    width: 100%;
    max-width: 500px; /* Prevent it from getting too wide */
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-family: monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    opacity: 0.4;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem; /* Reduced from 1rem */
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem; /* Reduced from 1.5rem */
    outline: none;
    transition: border-color 0.4s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--text-color);
}

button[type="submit"] {
    cursor: pointer;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 1rem 3rem; /* Reduced padding */
    font-family: monospace;
    text-transform: uppercase;
    font-size: 0.75rem; /* Slightly smaller */
    letter-spacing: 0.2em;
    align-self: flex-start;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    background: var(--accent-pink);
    transform: translateY(-3px); /* Subtle lift */
}

/* --- CURSOR --- */
.cursor {
    width: 40px;  /* Adjusted to 40px */
    height: 40px; /* Adjusted to 40px */
    border-radius: 50%;
    background-color: var(--accent-pink);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%); /* Center on mouse interaction point */
    display: none; /* Hidden by default for touch screens and mobile devices */
}

/* Only enable custom cursor on devices that support hover with a fine pointer (mouse / trackpad) */
@media (hover: hover) and (pointer: fine) {
    .cursor {
        display: block;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Complete suppression of cursor on touch/mobile */
    .cursor {
        display: none !important;
    }

    /* Mobile nav padding respecting Dynamic Island / Notch safe area */
    nav {
        padding-top: calc(clamp(1rem, 3.5vw, 1.5rem) + env(safe-area-inset-top, 0px));
        padding-bottom: clamp(1rem, 3.5vw, 1.5rem);
        padding-left: calc(clamp(1.25rem, 6vw, 8vw) + env(safe-area-inset-left, 0px));
        padding-right: calc(clamp(1.25rem, 6vw, 8vw) + env(safe-area-inset-right, 0px));
        mix-blend-mode: normal !important;
    }

    /* Mobile Navigation Toggle: Instant 0ms render without waiting for JS or window.load */
    .nav-toggle {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .nav-links {
        display: none !important;
    }

    /* --- MOBILE HERO: Real Viewheight Backdrop Bleed + 100svh Content Frame --- */
    .hero {
        height: 100vh;
        height: var(--real-hero-height, calc(100lvh + env(safe-area-inset-bottom, 34px)));
        min-height: 100vh;
        min-height: var(--real-hero-height, calc(100lvh + env(safe-area-inset-bottom, 34px)));
        position: relative;
        overflow: hidden;
        padding: 0;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    /* Ambient blurry video background displayed exclusively on mobile */
    .hero-video-ambient-wrap {
        display: block;
        position: absolute;
        inset: -10%;
        width: 120%;
        height: 120%;
        overflow: hidden;
        pointer-events: none;
        z-index: 1;
    }

    .hero-video-ambient {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 25%;
        filter: blur(28px) brightness(0.92) saturate(1.3);
        -webkit-filter: blur(28px) brightness(0.92) saturate(1.3);
        -webkit-transform: scale(1.1) translate3d(0, 0, 0);
        transform: scale(1.1) translate3d(0, 0, 0);
        will-change: transform, filter;
        display: block;
        opacity: 0.95;
    }

    /* Atmospheric gradient overlay on mobile */
    .hero-video-overlay {
        display: block;
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            transparent 20%,
            transparent 65%,
            rgba(0, 0, 0, 0.65) 100%
        );
        z-index: 2;
        pointer-events: none;
    }

    /* Reposition sharp main video into upper golden-ratio zone, freeing lower zone for text */
    .hero-video-main {
        position: relative;
        object-position: center 25%;
        z-index: 3;
        filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.9));
    }

    .hero-bottom-bar {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(85px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(
            to top,
            #000000 0%,
            rgba(0, 0, 0, 0.95) 40%,
            rgba(0, 0, 0, 0.5) 75%,
            transparent 100%
        );
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        pointer-events: none;
        z-index: 5;
    }

    /* Mobile hero content framed strictly to standard visible browsing height (100svh), decoupled from extended bleed */
    .hero-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        padding-top: calc(clamp(1rem, 3.5vw, 1.5rem) + env(safe-area-inset-top, 0px));
        padding-left: calc(clamp(1.25rem, 6vw, 8vw) + env(safe-area-inset-left, 0px));
        padding-right: calc(clamp(1.25rem, 6vw, 8vw) + env(safe-area-inset-right, 0px));
        /* Sits comfortably above Safari's floating URL pill with safe-area padding */
        padding-bottom: calc(clamp(2rem, 5vh, 3.5rem) + env(safe-area-inset-bottom, 0px));
        z-index: 10;
        pointer-events: none;
        max-width: none;
        margin-top: 0;
    }

    .hero-content > * {
        pointer-events: auto;
    }

    .hero-title {
        align-items: flex-start;
        text-align: left;
        font-size: clamp(2.1rem, 8.5vw, 3rem);
        line-height: 0.92;
        letter-spacing: -0.04em;
        margin-top: 0.35rem;
    }

    .hero-line {
        text-align: left;
        display: block;
    }

    .hero-tag {
        margin-bottom: 0.25rem;
    }

    .hero-tag p {
        letter-spacing: 0.2em;
        font-size: clamp(0.62rem, 1.9vw, 0.7rem);
    }

    .hero-intro {
        margin-top: 0.65rem;
        font-size: clamp(0.75rem, 2.5vw, 0.88rem);
        line-height: 1.35;
        max-width: 310px;
        opacity: 0.75;
    }

    /* On mobile, standard inline nav-links are hidden so header doesn't crowd or collide; hamburger is the navigation mode */
    .nav-links {
        display: none;
    }

    /* Keep logo crisp, pure white, and prominent on mobile */
    .logo {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        color: #ffffff !important;
        mix-blend-mode: normal !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    }

    .logo-tagline {
        font-size: clamp(0.55rem, 2vw, 0.65rem);
        color: #ffffff !important;
        mix-blend-mode: normal !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    }

    /* --- MOBILE GESTURE ENGINE: Touch Action Standard (Fishfinger Architecture) --- */
    html, body {
        touch-action: none;
        overscroll-behavior: none;
    }

    .hero,
    .slide,
    #about,
    #slide-01,
    #slide-02,
    #slide-03,
    .contact,
    #contact {
        touch-action: none;
    }

    /* Preserve form interactivity inside Contact section */
    .contact form,
    .contact input,
    .contact textarea,
    .contact button {
        touch-action: auto;
    }

    /* --- MOBILE VERTICAL SLIDES: Modern Viewport & Safe-Area Standard --- */
    .slide {
        height: 100vh;
        height: var(--real-hero-height, calc(100lvh + env(safe-area-inset-bottom, 34px)));
        min-height: 100vh;
    }

    /* Slide 1993 Mobile Framing */
    .slide-1993 .parallax-text-wrap {
        height: 100vh;
        height: 100svh;
        padding-top: calc(clamp(1rem, 3.5vw, 1.5rem) + env(safe-area-inset-top, 0px) + 2.5rem);
        padding-bottom: calc(clamp(2rem, 5vh, 3.5rem) + env(safe-area-inset-bottom, 0px));
    }

    .slide-1993 .polaroid-stack {
        top: 54%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(80vw, 340px);
        height: min(80vw, 340px);
    }

    /* Editorial Slides (01, 02, 03) Mobile Framing */
    .slide-editorial .slide-inner {
        width: 90vw;
        height: auto;
        max-height: 85svh;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: flex-start;
        gap: 1.25rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    .slide-editorial .slide-content {
        width: 100%;
    }

    .slide-editorial .slide-content h2 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 0.4rem;
    }

    .slide-editorial .slide-number {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.4rem;
    }

    .slide-editorial .slide-content p {
        font-size: clamp(0.82rem, 3.2vw, 0.95rem);
        max-width: 100%;
    }

    .slide-editorial .slide-img-wrap {
        width: 100%;
        height: 35vh;
        max-height: 280px;
        border-radius: 6px;
    }

    /* --- MOBILE CONTACT: Modern Viewport & Safe-Area Standard --- */
    .contact {
        min-height: 100vh;
        min-height: 100svh;
        background-color: var(--bg-color);
        position: relative;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .contact-image-wrap {
        height: 35vh;
        order: -1;
    }

    .contact-content-wrap {
        padding: 2.5rem 8vw calc(clamp(3.5rem, 8vh, 5.5rem) + env(safe-area-inset-bottom, 0px)) 8vw;
    }

    .contact-text h2 {
        font-size: 12vw;
    }

    button[type="submit"] {
        margin-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
}