/* ============================================
   MODEL PORTFOLIO - MAIN STYLESHEET
   Clean, modern, high-fashion aesthetic
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar when in portfolio slideshow view */
body.portfolio-page .portfolio-slideshow.active ~ *,
body.portfolio-page:has(.portfolio-slideshow.active) {
    overflow: hidden;
}

.portfolio-page:has(.portfolio-slideshow.active) {
    overflow: hidden;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* ============================================
   HEADER & NAVIGATION (Legacy - keeping for other pages)
   ============================================ */

.header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #e5e5e5;
    background-color: #ffffff;
    position: relative;
    z-index: 4;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Model name - elegant, modern typography */
.model-name {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: 0;
}

.model-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.model-name a:hover {
    color: #666666;
}

/* Navigation */
.navigation {
    width: 100%;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    min-height: 100vh;
    padding: 0;
    padding-bottom: 0;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
    margin-top: 100vh;
}

/* ============================================
   HOMEPAGE - HERO SECTION (Legacy - keeping for compatibility)
   ============================================ */

/* Single-line stats format - agency style */
.model-stats-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999999;
    font-weight: 300;
}

.stat-entry {
    white-space: nowrap;
}

.stat-label {
    color: #999999;
    font-weight: 300;
}

.stat-value {
    color: #1a1a1a;
    font-weight: 400;
}

.stat-separator {
    color: #999999;
    font-weight: 300;
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .model-stats-inline {
        gap: 1rem;
        font-size: 0.65rem;
    }
    
    .model-name {
        font-size: 1.8rem;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 480px) {
    .model-stats-inline {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-separator {
        display: none;
    }
}

/* ============================================
   HOMEPAGE - FULL-VIEWPORT HERO
   ============================================ */

.hero-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Position so top of hair touches top edge of screen */
    object-position: center 10%;
    filter: grayscale(100%) contrast(1.0) brightness(1.20) saturate(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed darkening gradient to show original bright image with sunset light */
    background: transparent;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 2rem;
    /* Prevent layout shifts from affecting positioned children */
    contain: layout;
}

.hero-first-name {
    font-family: 'Playfair Display', serif;
    font-size: 7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    /* Subtle, secondary typography - image and eyes are primary focus */
    color: rgba(255, 255, 255, 0.87);
    margin: 0;
    mix-blend-mode: normal;
    /* Very subtle shadow for contrast only - elegant and integrated */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    /* Subtle, refined animation - luxury editorial style */
    /* animation: subtleFadeIn 2s cubic-bezier(0.4, 0, 0.2, 1); */
    filter: none;
    /* Editorial placement: subtle, doesn't compete with face/eyes */
    position: absolute;
    top: 52%;
    left: calc(8% + 15px);
    transform: translateY(-50%);
    white-space: nowrap;
    /* Prevent jitter on page load - hide until font is ready */
    visibility: hidden;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Show text once font is loaded to prevent jitter */
.hero-first-name.font-loaded {
    visibility: visible;
}

/* @keyframes subtleFadeIn {
    from {
        opacity: 0;
        transform: translateY(calc(-50% + 8px));
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
} */

@media (max-width: 1024px) {
    .hero-first-name {
        font-size: 5.5rem;
        /* Maintain subtle positioning on tablet */
        top: 53%;
        left: calc(7% + 15px);
    }
}

@media (max-width: 768px) {
    .hero-first-name {
        font-size: 3.5rem;
        letter-spacing: 0.15em;
        /* Slightly lower on mobile to avoid face overlap */
        top: 55%;
        left: calc(6% + 15px);
    }
}

@media (max-width: 480px) {
    .hero-first-name {
        font-size: 2.5rem;
        /* Further adjust for small mobile */
        top: 57%;
        left: calc(5% + 15px);
    }
}

/* ============================================
   HOMEPAGE - NAVIGATION
   ============================================ */

.homepage-nav {
    padding: 1rem 0 2rem;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

.homepage-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    position: relative;
}

/* Decorative edge accent lines - anchored to nav row */
/* SAVED: Original accent line styles (commented out for easy restoration) */
/*
.homepage-nav-list::before,
.homepage-nav-list::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 1px;
    width: clamp(25px, 3.5vw, 35px);
    background: rgba(0, 0, 0, 0.70);
    border-radius: 1px;
    pointer-events: none;
    transform: translateY(calc(-50% + 1.5px));
}

.homepage-nav-list::before {
    left: calc(-50vw + 50% + 40px);
}

.homepage-nav-list::after {
    right: calc(-50vw + 50% + 40px);
}
*/

/* Initials with accent lines above and below - premium design */
.nav-initial {
    position: absolute;
    top: 50%;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    pointer-events: none;
    transform: translateY(-50%);
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-initial-left {
    left: calc(-50vw + 50% + 40px);
}

.nav-initial-right {
    right: calc(-50vw + 50% + 40px);
}

/* Accent lines above and below initials */
/* SAVED: Original full opacity version (commented out for easy restoration) */
/*
.nav-initial::before,
.nav-initial::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(25px, 3.5vw, 35px);
    height: 1px;
    background: #1a1a1a;
}
*/

/* Accent lines with reduced opacity for subtlety */
.nav-initial::before,
.nav-initial::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(25px, 3.5vw, 35px);
    height: 1px;
    background: rgba(26, 26, 26, 0.45);
}

.nav-initial::before {
    top: calc(-0.5rem - 2px);
}

.nav-initial::after {
    bottom: calc(-0.5rem - 2px);
}

.homepage-nav-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.825rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.3s ease;
}

.homepage-nav-link:hover {
    color: #1a1a1a;
}

.homepage-nav-divider {
    width: 100vw;
    height: 1px;
    margin-top: 1rem;
    margin-bottom: 0;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(
        to right,
        rgba(26, 26, 26, 0.05) 0%,
        rgba(26, 26, 26, 0.15) 20%,
        rgba(26, 26, 26, 0.25) 50%,
        rgba(26, 26, 26, 0.15) 80%,
        rgba(26, 26, 26, 0.05) 100%
    );
    position: relative;
}

/* Floating header - appears after physical header is scrolled past */
.homepage-nav-floating {
    padding: 1rem 0 0;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 350ms cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0ms 350ms;
    transform: translateY(-100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Show floating header when scrolling up (after physical header is past) */
.homepage-nav-floating.floating-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 350ms cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0ms;
}

/* Hide floating header when scrolling down */
.homepage-nav-floating.floating-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 350ms cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0ms 350ms;
}

/* ============================================
   HOMEPAGE - FULL NAME SECTION
   ============================================ */

.full-name-section {
    padding: 0.25rem 0 0.75rem;
    margin-top: 0.55rem;
    text-align: center;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

.full-name {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.15;
    letter-spacing: 0;
    /* Center adjustment for "Kausha Mohottige" - account for different letter lengths */
    transform: translateX(0.1em);
}

.full-name .first-name {
    font-weight: 600;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: -0.3em;
}

.full-name .last-name {
    font-weight: 300;
    letter-spacing: 0.12em; /* Further tightened for optical balance */
    display: block;
    /* Subtle scale adjustment for optical balance */
    transform: scale(0.98);
    transform-origin: center;
}

@media (max-width: 1024px) {
    .full-name {
        font-size: 4rem;
    }
    
    .full-name .first-name {
        letter-spacing: 0.1em;
    }
    
    .full-name .last-name {
        letter-spacing: 0.10em; /* Further tightened for optical balance */
        transform: scale(0.98);
        transform-origin: center;
    }
}

@media (max-width: 768px) {
    .full-name {
        font-size: 3rem;
    }
    
    .full-name .first-name {
        letter-spacing: 0.08em;
    }
    
    .full-name .last-name {
        letter-spacing: 0.08em; /* Further tightened for optical balance */
        transform: scale(0.98);
        transform-origin: center;
    }
    
    .homepage-nav {
        padding: 1rem 0 2rem;
    }
    
    .homepage-nav-list {
        gap: 3rem;
    }
    
    .homepage-nav-divider {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .full-name {
        font-size: 2.5rem;
    }
}

/* ============================================
   HOMEPAGE - STATS SECTION
   ============================================ */

.stats-section {
    padding: 1.5rem 0 1.5rem;
    text-align: center;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

/* ============================================
   HOMEPAGE - BIO SECTION
   ============================================ */

.bio-section {
    padding: 1.5rem 0 0.5rem;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

.bio-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

@media (max-width: 768px) {
    .bio-section {
        padding: 1.5rem 0 0.5rem;
    }
    
    .bio-text {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

/* ============================================
   HOMEPAGE - SPLIT SECTION
   ============================================ */

.split-section {
    padding: 3.5rem 0 3rem;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr minmax(520px, 580px);
    column-gap: 2.5vw;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4vw;
}

.split-links-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
}

.split-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: max-content;
}

.split-link {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 0.88;
    white-space: nowrap;
    display: block;
    width: max-content;
    text-align: center;
    letter-spacing: 0.03em;
    font-size: clamp(52px, 6vw, 88px);
}

.split-link-portfolio {
    margin-bottom: 0.12em;
}

.split-link-contact {
    /* Aligned with PORTFOLIO above - slight leftward shift for perfect centering */
    transform: translateX(-0.15em);
}

.split-link:hover {
    opacity: 0.5;
}

.split-image {
    width: 100%;
    max-width: 580px;
    min-width: 520px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background-color: #f5f5f5;
    position: relative;
    z-index: 1;
}

/* Hide container visuals before reveal */
.split-image.pre-reveal {
    background-color: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Restore container visuals when revealed */
.split-image:not(.pre-reveal) {
    background-color: #f5f5f5;
}

.split-image img {
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: cover;
    display: block;
}

/* Ensure side feature image maintains its size */
.side-feature-image {
    width: 100%;
    max-width: 580px;
    min-width: 520px;
    position: relative;
    z-index: 1;
}

.side-feature-image img {
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: cover;
    display: block;
}

/* Remove hover zoom for side feature image only */
.side-feature-image:hover img {
    transform: none !important;
}

/* Reveal animation - minimal, professional, smooth */
/* ============================================
   SCROLL REVEAL ANIMATION - EDITORIAL STYLE
   Two-phase reveal: hidden → animating
   ============================================ */

.reveal {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Phase 1: Hidden state - completely invisible before reveal */
/* No ghosting, no border, no placeholder haze */
.reveal.reveal-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    /* No transitions in hidden state to prevent any ghosting */
}

/* Phase 2: Animating state - visibility on, smooth fade and settle */
/* Transitions applied via inline styles from reveal.js */
/* Opacity: 1200ms (smooth, luxurious fade from 0 to 1) */
/* Transform: 2800ms (very slow, elegant bubble settle - dominant effect) */
.reveal.reveal-animating {
    visibility: visible;
    pointer-events: auto;
    /* Opacity and transform animated via inline styles from reveal.js */
}

/* Ensure reveal wrapper fills parent container */
.split-image .reveal,
.homepage-gallery-item .reveal {
    width: 100%;
    height: 100%;
}

/* Update split-image img to work with reveal wrapper */
.split-image .reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Hover effects remain unchanged - applied to img, not wrapper */
}

/* Veil overlay removed to prevent white wash feeling */
/* Images reveal cleanly without overlay haze */

/* Ensure parent containers have overflow hidden for scale effect */
.homepage-gallery-item,
.split-image {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .split-content {
        column-gap: 2.5vw;
        padding: 0 3vw;
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .split-section {
        padding: 0.5rem 0 3rem;
    }
    
    .split-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        column-gap: 0;
    }
    
    .split-links-wrapper {
        order: 2;
        min-height: auto;
        align-items: center;
        padding-right: 0;
    }
    
    .split-links {
        width: 100%;
        max-width: 100%;
        padding: 2rem 0;
        align-items: center;
        text-align: center;
    }
    
    .split-link {
        font-size: clamp(44px, 8vw, 72px);
        text-align: center;
    }
    
    .split-image {
        order: 1;
        max-width: 100%;
        min-width: auto;
    }
    
    .side-feature-image {
        max-width: 100%;
        min-width: auto;
    }
    
    .split-link-portfolio {
        font-size: 4rem;
    }
    
    .split-link-contact {
        font-size: 4.75rem;
    }
}

/* ============================================
   HOMEPAGE - 2-COLUMN CENTERED GALLERY
   ============================================ */

.homepage-gallery {
    padding: 5rem 0 8rem;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

.homepage-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.homepage-gallery-item {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
    /* Animation handled by .reveal wrapper inside */
}

/* Center the middle item (beanie image) below the two pictures above it */
.homepage-gallery-item-middle {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(75% - 1.25rem);
    transform: none;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.homepage-gallery-item-middle img {
    max-height: 90vh;
    width: 100%;
}

/* Center the last item (19th picture) below the two pictures above it */
.homepage-gallery-item-last {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 1.25rem);
    transform: none;
    margin-top: 3rem;
}

/* Offset/stagger effect for editorial feel - alternate items */
/* Left column: higher, Right column: lower */
/* Items 1-4: odd=left (higher), even=right (lower) */
.homepage-gallery-item:nth-child(1):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(3):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle) {
    transform: translateY(-1.5rem);
}

.homepage-gallery-item:nth-child(2):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(4):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle) {
    transform: translateY(1.5rem);
}

/* Items after middle (6th onwards): even=left (higher), odd=right (lower) */
.homepage-gallery-item:nth-child(6):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(8):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(10):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(12):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(14):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(16):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(18):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle) {
    transform: translateY(-1.5rem);
}

.homepage-gallery-item:nth-child(7):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(9):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(11):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(13):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(15):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
.homepage-gallery-item:nth-child(17):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle) {
    transform: translateY(1.5rem);
}

/* More subtle offset for larger screens */
@media (min-width: 1024px) {
    .homepage-gallery-item:nth-child(1):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(3):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle) {
        transform: translateY(-2rem);
    }
    
    .homepage-gallery-item:nth-child(2):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(4):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle) {
        transform: translateY(2rem);
    }
    
    .homepage-gallery-item:nth-child(6):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(8):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(10):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(12):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(14):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(16):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(18):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle) {
        transform: translateY(-2rem);
    }
    
    .homepage-gallery-item:nth-child(7):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(9):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(11):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(13):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(15):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle),
    .homepage-gallery-item:nth-child(17):not(.homepage-gallery-item-last):not(.homepage-gallery-item-middle) {
        transform: translateY(2rem);
    }
}

/* Hide container visuals before reveal */
.homepage-gallery-item.pre-reveal {
    background-color: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Restore container visuals when revealed */
.homepage-gallery-item:not(.pre-reveal) {
    background-color: #f5f5f5;
}

.homepage-gallery-item img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Hover effects remain unchanged */
}

/* Fix image 2 to fill container height */
.homepage-gallery-item:nth-child(2) {
    min-height: 75vh;
}

.homepage-gallery-item:nth-child(2) img {
    height: 100%;
    object-fit: cover;
}

/* Fix image 9 to fill container height like other images */
.homepage-gallery-item:nth-child(9) {
    min-height: 75vh;
}

.homepage-gallery-item:nth-child(9) img {
    height: 100%;
    object-fit: cover;
}

/* Fix image 14 (file 14 (3).jpg, which is 13th child) to fill container height like other images */
.homepage-gallery-item:nth-child(13) {
    min-height: 75vh;
}

.homepage-gallery-item:nth-child(13) img {
    height: 100%;
    object-fit: cover;
}

/* Fix image 16 (14th child after swap) to fill container height like other images */
.homepage-gallery-item:nth-child(14) {
    min-height: 75vh;
}

.homepage-gallery-item:nth-child(14) img {
    height: 100%;
    object-fit: cover;
}

/* Fix image 15 (15th child after swap) to fill container height like other images */
.homepage-gallery-item:nth-child(15) {
    min-height: 75vh;
}

.homepage-gallery-item:nth-child(15) img {
    height: 100%;
    object-fit: cover;
}

/* Editorial black and white styling for image 28 */
.homepage-gallery-item-editorial {
    position: relative;
    overflow: hidden;
}

.homepage-gallery-item-editorial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0,0,0,0.02) 0px, transparent 1px, transparent 1px, rgba(0,0,0,0.02) 2px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.02) 0px, transparent 1px, transparent 1px, rgba(0,0,0,0.02) 2px);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
    opacity: 0.5;
}

.homepage-gallery-item-editorial img {
    filter: grayscale(100%) contrast(1.0) brightness(1.20) saturate(0);
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.homepage-gallery-item-editorial::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.03) 100%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
    opacity: 0.75;
}

.homepage-gallery-item-editorial:hover img {
    transform: scale(1.02);
    filter: grayscale(100%) contrast(1.02) brightness(1.22) saturate(0);
}

/* Adjust first image position to show more of the top (hair) */
.homepage-gallery-item:first-child img {
    object-position: center 20%;
}

/* Adjust third image position to show more of the top (hair) */
.homepage-gallery-item:nth-child(3) img {
    object-position: center 20%;
}

/* Adjust image 20 (8th child) position to show more of the top (hair) */
.homepage-gallery-item:nth-child(8) img {
    object-position: center 20%;
}

.homepage-gallery-item:hover img {
    transform: scale(1.02);
}

/* Responsive gallery - tablet stays 2 columns, mobile becomes 1 */
@media (max-width: 768px) {
    .homepage-gallery {
        padding: 3rem 0 4rem;
    }
    
    .homepage-gallery-grid {
        gap: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .homepage-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .homepage-gallery-item-middle,
    .homepage-gallery-item-last {
        max-width: 100%;
    }
}

/* ============================================
   PORTFOLIO SECTION - CONTACT SHEET GRID
   ============================================ */

.portfolio-section {
    padding: 0;
}

/* Contact sheet - tight grid of thumbnails */
.contact-sheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    padding: 0;
}

.thumbnail-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover {
    opacity: 0.85;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive contact sheet adjustments */
@media (max-width: 768px) {
    .contact-sheet-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.4rem;
    }
    
    .portfolio-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .contact-sheet-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.3rem;
    }
}

/* ============================================
   PORTFOLIO PAGE - SLIDESHOW & GRID VIEW
   ============================================ */

/* Compact Portfolio Header */
.portfolio-page {
    overflow-x: hidden;
}

/* Hide scrollbar and prevent scrolling on contact page */
body.contact-page,
html:has(body.contact-page) {
    overflow: hidden;
    height: 100vh;
}

body.contact-page .main-content {
    height: calc(100vh - 100px); /* Header height is approximately 100px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    /* Slight upward offset for more intentional, elegant positioning */
    transform: translateY(-2%);
}

body.contact-page .contact-section {
    overflow: hidden;
}

.portfolio-page .main-content {
    margin-top: 0; /* Remove the 100vh margin on portfolio page */
}

.portfolio-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e5e5;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.portfolio-header .container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    flex-direction: column;
    padding-top: 0;
}

/* Center: Name (top) */
.portfolio-header-name {
    width: 100%;
    text-align: center;
    margin: 0 0 0.75rem 0;
    order: 1;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

/* Center: Navigation (below name) */
.portfolio-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 2;
    margin-bottom: 0;
}

/* Right: Grid Toggle - Far right edge, vertically centered in header */
.grid-toggle-btn {
    position: fixed;
    right: 1rem;
    top: calc(1rem + (1.4rem + 0.75rem + 0.75rem) / 2 + 0.5rem); /* Header top padding + half of (name height + spacing + nav height) + offset down */
    transform: translateY(-50%);
    order: 3;
    z-index: 101;
}

.portfolio-header-name {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.portfolio-header-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-header-name a:hover {
    color: #666666;
}

.portfolio-nav-list {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.portfolio-nav-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.825rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-weight: 400;
}

.portfolio-nav-link:hover,
.portfolio-nav-link.active {
    color: #1a1a1a;
}

/* Grid Toggle Button */
.grid-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1a1a1a;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.grid-toggle-btn:hover {
    opacity: 0.7;
}

.grid-toggle-btn:focus {
    outline: none;
}

.grid-toggle-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Slideshow View */
.portfolio-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: none;
    z-index: 50;
    overflow: auto; /* Allow scrolling when zoomed */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.portfolio-slideshow.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Allow scrolling when slideshow is active (for zooming) */
html:has(.portfolio-slideshow.active),
body:has(.portfolio-slideshow.active) {
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
}

.slideshow-left-zone,
.slideshow-right-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 2;
    cursor: pointer;
}

.slideshow-left-zone {
    left: 0;
    /* Custom left-pointing arrow cursor - matches permanent arrow size and style */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"><path d="M24 10L14 20L24 30" stroke="%231a1a1a" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>') 20 20, auto;
}

.slideshow-right-zone {
    right: 0;
    /* Custom right-pointing arrow cursor - matches permanent arrow size and style */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"><path d="M16 10L26 20L16 30" stroke="%231a1a1a" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>') 20 20, auto;
}

.slideshow-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* Space for compact header with breathing room */
    padding-bottom: 2rem;
}

.slideshow-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4.5rem;
    gap: 2rem;
}

.slideshow-image-container.two-images {
    gap: 1rem;
}

.slideshow-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: none; /* Hidden by default, shown via JavaScript */
}

.slideshow-image-container.two-images .slideshow-image {
    max-width: calc(50% - 0.5rem);
    width: auto;
    height: auto;
    object-fit: cover;
    flex: 0 1 auto;
}

.slideshow-image.editorial-filter {
    filter: grayscale(100%) contrast(1.0) brightness(1.20) saturate(0);
}

/* Navigation Arrows - Hidden but kept for potential future use */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 70px;
    height: 70px;
    display: none; /* Hidden - using cursor arrows instead */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1a1a1a;
    padding: 0;
}

.slideshow-nav:hover {
    color: #1a1a1a;
    transform: translateY(-50%) translateX(0);
}

.slideshow-nav-prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.slideshow-nav-next:hover {
    transform: translateY(-50%) translateX(4px);
}

.slideshow-nav:focus {
    outline: none;
    color: #1a1a1a;
}

.slideshow-nav-prev {
    left: 2rem;
}

.slideshow-nav-next {
    right: 2rem;
}

.slideshow-nav svg {
    width: 40px;
    height: 40px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grid View */
.portfolio-grid-view {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 0 2rem;
    margin-top: 0; /* No top margin - starts right after header */
    padding-top: calc(100px + 1.5rem); /* Header height + small gap */
}

.portfolio-grid-view.active {
    display: grid;
}

.grid-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background-color: #f5f5f5;
    cursor: pointer;
    /* No transitions or hover effects - clean, fast browsing */
}

.grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-thumbnail.editorial-thumbnail img {
    filter: grayscale(100%) contrast(1.0) brightness(1.20) saturate(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .slideshow-image-container {
        padding: 0 3.5rem;
    }
    
    .slideshow-nav-prev {
        left: 1rem;
    }
    
    .slideshow-nav-next {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .portfolio-header {
        padding: 1.25rem 1.5rem;
    }
    
    .portfolio-header .container {
        gap: 0;
        padding-top: 0;
    }
    
    .portfolio-header-name {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
        margin-bottom: 1.75rem;
    }
    
    .portfolio-nav {
        margin-bottom: 0;
    }
    
    .grid-toggle-btn {
        right: 1rem;
        top: calc(1.25rem + (1.2rem + 1.75rem + 0.75rem) / 2 + 0.4rem); /* Header top padding + half of content height + offset down */
        transform: translateY(-50%);
    }
    
    .portfolio-nav-list {
        gap: 1.5rem;
    }
    
    .portfolio-nav-link {
        font-size: 0.77rem;
    }
    
    .slideshow-image-container.two-images {
        flex-direction: column;
        gap: 2rem;
    }
    
    .slideshow-image-container.two-images .slideshow-image {
        max-width: 100%;
        flex: none;
    }
    
    .slideshow-content {
        padding-top: 110px;
    }
    
    .slideshow-image-container {
        padding: 0 3rem;
    }
    
    .slideshow-nav {
        width: 60px;
        height: 60px;
    }
    
    .slideshow-nav svg {
        width: 36px;
        height: 36px;
    }
    
    .slideshow-nav-prev {
        left: 0.75rem;
    }
    
    .slideshow-nav-next {
        right: 0.75rem;
    }
    
    .portfolio-grid-view {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
        margin-top: 0;
        padding-top: calc(110px + 1.5rem); /* Header height + small gap */
    }
}

@media (max-width: 480px) {
    .portfolio-header {
        padding: 0.75rem 1rem;
    }
    
    .portfolio-header .container {
        gap: 0;
        padding-top: 0;
    }
    
    .portfolio-header-name {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-nav {
        margin-bottom: 0;
    }
    
    .grid-toggle-btn {
        width: 36px;
        height: 36px;
        right: 0.75rem;
        top: calc(0.75rem + (0.85rem + 0.5rem + 0.75rem) / 2 + 0.3rem); /* Header top padding + half of content height + offset down */
        transform: translateY(-50%);
    }
    
    .portfolio-nav-list {
        gap: 1rem;
    }
    
    .slideshow-content {
        padding-top: 100px;
    }
    
    .slideshow-image-container {
        padding: 0 2.5rem;
    }
    
    .slideshow-nav {
        width: 54px;
        height: 54px;
    }
    
    .slideshow-nav svg {
        width: 32px;
        height: 32px;
    }
    
    .slideshow-nav-prev {
        left: 0.5rem;
    }
    
    .slideshow-nav-next {
        right: 0.5rem;
    }
    
    .portfolio-grid-view {
        margin-top: 0;
        padding-top: calc(100px + 1.5rem); /* Header height + small gap */
    }
    
    .slideshow-nav {
        width: 36px;
        height: 36px;
    }
    
    .slideshow-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .portfolio-grid-view {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 0;
    text-align: center;
    width: 100%;
    position: relative;
}

/* Layout: one large image left, contact text right with space */
.contact-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem; /* Space between image and text */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-image-wrapper {
    flex: 0 0 52%; /* Large left column */
    max-width: 52%;
    height: 75vh;
    min-height: 400px;
    overflow: hidden;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full photo – head and feet with natural spacing */
    object-position: center center;
    display: block;
}

.contact-layout .contact-info {
    flex: 0 1 auto;
    max-width: 380px;
    margin: 0;
    text-align: left;
    align-items: flex-start;
    gap: 3rem;
    padding: 0;
}

.contact-layout .contact-item {
    align-items: flex-start;
}

.contact-layout .contact-phone .contact-link,
.contact-layout .contact-instagram-link,
.contact-layout .contact-location-text {
    text-align: left;
}

/* Removed divider lines - cleaner, more minimal look */

.contact-info {
    max-width: 500px; /* Slightly narrower for more refined feel */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem; /* More generous, intentional spacing */
    padding: 0 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

/* Phone number - primary focus, elegant and prominent */
.contact-phone .contact-link {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem; /* More prominent, elegant size */
    font-weight: 400;
    letter-spacing: 0.08em; /* Slightly more refined spacing */
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.3; /* Tighter line height for elegance */
    text-align: center;
    display: block;
    /* Non-clickable on desktop - looks like plain text */
    cursor: default;
    pointer-events: none;
}

/* Make phone clickable on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .contact-phone .contact-link {
        cursor: pointer;
        pointer-events: auto;
    }
    
    .contact-phone .contact-link:hover,
    .contact-phone .contact-link:active {
        color: #666666;
    }
}

/* Also enable on smaller screens where mobile users might be */
@media (max-width: 768px) {
    .contact-phone .contact-link {
        cursor: pointer;
        pointer-events: auto;
    }
    
    .contact-phone .contact-link:active {
        color: #666666;
    }
}

/* Instagram link - secondary, refined */
.contact-instagram-link {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; /* Refined secondary size */
    font-weight: 400;
    letter-spacing: 0.06em; /* Refined letter spacing */
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 1.4;
    text-align: center;
}

.contact-instagram-link:hover {
    opacity: 0.7;
}

/* Location - subtle supporting information */
.contact-location-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.875rem; /* Refined smaller size */
    font-weight: 300;
    letter-spacing: 0.15em; /* More refined spacing for small text */
    color: #999999;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 768px) {
    body.contact-page .main-content {
        transform: translateY(-1.5%); /* Slightly less offset on tablet */
    }
    
    .contact-layout {
        flex-direction: column;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }
    
    .contact-image-wrapper {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        height: 55vh;
        min-height: 320px;
    }
    
    .contact-layout .contact-info {
        max-width: 450px;
        text-align: center;
        align-items: center;
    }
    
    .contact-layout .contact-item {
        align-items: center;
    }
    
    .contact-layout .contact-phone .contact-link,
    .contact-layout .contact-instagram-link,
    .contact-layout .contact-location-text {
        text-align: center;
    }
    
    .contact-info {
        max-width: 450px; /* Slightly narrower on tablet */
        gap: 3.5rem; /* Maintain generous spacing */
        padding: 0 1.5rem;
    }
    
    .contact-phone .contact-link {
        font-size: 1.9rem; /* Maintains elegant hierarchy */
        letter-spacing: 0.07em;
    }
    
    .contact-instagram-link {
        font-size: 1.3rem; /* Maintains refined secondary size */
        letter-spacing: 0.05em;
    }
    
    .contact-location-text {
        font-size: 0.85rem;
        letter-spacing: 0.12em;
    }
}

@media (max-width: 480px) {
    body.contact-page .main-content {
        transform: translateY(-1%); /* Minimal offset on mobile */
    }
    
    .contact-layout {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-image-wrapper {
        height: 50vh;
        min-height: 280px;
    }
    
    .contact-info {
        max-width: 100%;
        gap: 3rem; /* Slightly tighter on mobile but still generous */
        padding: 0 1rem;
    }
    
    .contact-phone .contact-link {
        font-size: 1.65rem; /* Maintains elegant hierarchy */
        letter-spacing: 0.06em;
    }
    
    .contact-instagram-link {
        font-size: 1.15rem; /* Maintains refined secondary size */
        letter-spacing: 0.04em;
    }
    
    .contact-location-text {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }
}

/* ============================================
   BOTTOM SLIT REVEAL SECTION
   ============================================ */

.bottom-slit-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    background-color: #ffffff;
    padding: 12rem 0 20rem;
    overflow: hidden;
    z-index: 10;
}

.slit-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* White overlay with subtle transparent cutout - very soft fade */
.slit-mask {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 680px; /* Increased width for better breathing room */
    height: 100%;
    background-color: #ffffff;
    /* Very subtle fade - white fades away softly at top/bottom edges */
    /* Cutout area (39.8-60.2%) is transparent, revealing hero behind - shows about half of top serif */
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 35.8%,
        rgba(0, 0, 0, 0.95) 37.8%,
        rgba(0, 0, 0, 0.7) 38.8%,
        rgba(0, 0, 0, 0.2) 39.6%,
        transparent 39.8%,
        transparent 60.2%,
        rgba(0, 0, 0, 0.2) 60.4%,
        rgba(0, 0, 0, 0.7) 61.2%,
        rgba(0, 0, 0, 0.95) 62.2%,
        black 64.2%,
        black 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 35.8%,
        rgba(0, 0, 0, 0.95) 37.8%,
        rgba(0, 0, 0, 0.7) 38.8%,
        rgba(0, 0, 0, 0.2) 39.6%,
        transparent 39.8%,
        transparent 60.2%,
        rgba(0, 0, 0, 0.2) 60.4%,
        rgba(0, 0, 0, 0.7) 61.2%,
        rgba(0, 0, 0, 0.95) 62.2%,
        black 64.2%,
        black 100%
    );
    filter: none;
    z-index: 2;
    pointer-events: none;
}

/* Container for hero name text - positioned to align with cutout */
.slit-reveal-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 680px; /* Match slit width */
    height: 100%;
    z-index: 1.5; /* Above hero image, below white mask */
    pointer-events: none;
    /* No background, no overlays - clean and minimal */
    background: none;
    overflow: visible;
    /* Subtle mask to match the soft cutout fade - no dark overlays */
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 35.8%,
        rgba(0, 0, 0, 0.05) 37.8%,
        rgba(0, 0, 0, 0.3) 38.8%,
        rgba(0, 0, 0, 0.8) 39.6%,
        black 39.8%,
        black 60.2%,
        rgba(0, 0, 0, 0.8) 60.4%,
        rgba(0, 0, 0, 0.3) 61.2%,
        rgba(0, 0, 0, 0.05) 62.2%,
        transparent 64.2%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 35.8%,
        rgba(0, 0, 0, 0.05) 37.8%,
        rgba(0, 0, 0, 0.3) 38.8%,
        rgba(0, 0, 0, 0.8) 39.6%,
        black 39.8%,
        black 60.2%,
        rgba(0, 0, 0, 0.8) 60.4%,
        rgba(0, 0, 0, 0.3) 61.2%,
        rgba(0, 0, 0, 0.05) 62.2%,
        transparent 64.2%,
        transparent 100%
    );
    filter: none;
}

/* Hero name for slit reveal - clean, editorial black text */
.slit-hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a; /* Solid near-black */
    margin: 0;
    /* Remove all effects - crisp and fully opaque */
    mix-blend-mode: normal;
    text-shadow: none;
    filter: none;
    position: absolute;
    top: 50%;
    left: 50%;
    /* Start from above (like scrolling down on hero image) - will be adjusted by JS */
    transform: translate(-50%, -50%) translateY(-200px);
    opacity: 1; /* Always fully opaque - no fade animation */
    white-space: nowrap;
    text-align: center;
    will-change: transform;
}

@media (max-width: 1024px) {
    .slit-mask {
        width: 540px; /* Increased for breathing room */
    }
    
    .slit-reveal-content {
        width: 540px;
    }
    
    .slit-hero-name {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .bottom-slit-section {
        min-height: 40vh;
        padding: 8rem 0 12rem;
    }
    
    .slit-container {
        height: 240px;
    }
    
    .slit-mask {
        width: 420px; /* Increased for breathing room */
    }
    
    .slit-reveal-content {
        width: 420px;
    }
    
    .slit-hero-name {
        font-size: 4rem;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 480px) {
    .bottom-slit-section {
        min-height: 35vh;
        padding: 6rem 0 10rem;
    }
    
    .slit-container {
        height: 200px;
    }
    
    .slit-mask {
        width: 320px; /* Increased for breathing room */
    }
    
    .slit-reveal-content {
        width: 320px;
    }
    
    .slit-hero-name {
        font-size: 3rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 3rem 0 4rem;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    background-color: #ffffff;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.footer-instagram {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-instagram:hover {
    opacity: 0.6;
}

.footer-instagram svg {
    display: block;
    width: 24px;
    height: 24px;
}

.footer p {
    font-size: 0.75rem;
    color: #999999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Image loading states */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: fadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 85vh;
    }
}

