/* ═══════════════════════════════════════
   CHERYL NAUMAN — PHOTOGRAPHY
   A cinematic scroll experience
   ═══════════════════════════════════════ */

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

:root {
    --black: #000;
    --near-black: #0a0a0a;
    --dark: #111;
    --charcoal: #1a1a1a;
    --grey: #888;
    --light-grey: #bbb;
    --off-white: #e8e4df;
    --white: #f5f2ee;
    --accent: #c8a87c;
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    --gallery-gap: 16px;
    --gallery-max: 1400px;
    --gallery-pad: 40px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--near-black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}


/* ═══════ HEADER ═══════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--white);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
}

.book-now-btn {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    color: var(--white);
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

.book-now-btn:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}


/* ═══════ APERTURE CONTAINER ═══════ */

.container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 5;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('images/megayacht-skyline.jpg');
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.aperture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    will-change: opacity;
}

.aperture-overlay svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero tagline */
.hero-tagline {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hero-tagline.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tagline-top {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    text-shadow: 0 2px 40px rgba(0,0,0,0.6);
    letter-spacing: 2px;
}

.tagline-bottom {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(40px, 6.5vw, 96px);
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 40px rgba(0,0,0,0.6);
    letter-spacing: 3px;
    margin-top: 4px;
}


/* ═══════ MAIN CONTENT ═══════ */

.content {
    position: relative;
    z-index: 10;
    background: var(--near-black);
    margin-top: 200vh; /* extra viewport of scroll to appreciate the hero before content covers it */
    padding-top: 0;
}

.section {
    position: relative;
    overflow: hidden;
}


/* ── Statement ── */

.section-statement {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 80px 40px;
    background: var(--near-black);
}

.statement-text {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
    color: var(--off-white);
    max-width: 800px;
}

.statement-text em {
    font-style: italic;
    color: var(--accent);
}


/* ── Section Labels ── */

.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 80px 40px 60px;
}

.label-line {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--grey);
}

.label-text {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--grey);
}


/* ═══════ GALLERY ═══════ */

.section-work {
    background: var(--near-black);
    padding-bottom: 40px;
}

.gallery-row {
    width: calc(100% - var(--gallery-pad) * 2);
    max-width: var(--gallery-max);
    margin: 0 auto var(--gallery-gap);
}

/* Full bleed hero images */
.gallery-full {
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.gallery-cinematic {
    aspect-ratio: 2.76 / 1;
}

/* Duo layout — golden ratio */
.gallery-duo {
    display: flex;
    gap: var(--gallery-gap);
}

.gallery-duo .gallery-tall {
    flex: 1;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.gallery-duo .gallery-wide {
    flex: 1.618;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.gallery-duo-reverse .gallery-wide {
    flex: 1.618;
    order: -1;
}

.gallery-duo-reverse .gallery-tall {
    order: 1;
}

/* Trio layout */
.gallery-trio {
    display: flex;
    gap: var(--gallery-gap);
}

.gallery-trio .gallery-item {
    flex: 1;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

/* Gallery images */
.work-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.work-image:hover {
    transform: scale(1.04);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 30px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.work-image:hover .work-overlay {
    opacity: 1;
}

.work-category {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.work-title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 300;
    color: var(--white);
    letter-spacing: 1px;
}


/* ── Quote ── */

.section-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 120px 40px;
    background: var(--dark);
}

.quote-container {
    text-align: center;
    max-width: 700px;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 120px;
    line-height: 0.6;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 20px;
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: var(--off-white);
    border: none;
}

.quote-author {
    display: block;
    margin-top: 32px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--grey);
    font-style: normal;
}


/* ── About ── */

.section-about {
    padding: 120px 40px;
    background: var(--near-black);
}

.about-layout {
    display: flex;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-images {
    flex: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-photo-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center top;
    filter: grayscale(10%) contrast(1.05);
}

.about-photo-row {
    display: flex;
    gap: 12px;
}

.about-photo-small {
    flex: 1;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    filter: grayscale(10%) contrast(1.05);
}

.about-text {
    flex: 1;
}

.about-text .label-text {
    display: block;
    margin-bottom: 24px;
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 32px;
}

.about-body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--light-grey);
    margin-bottom: 20px;
}

.about-link {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.about-link:hover {
    border-bottom-color: var(--accent);
}


/* ── CTA ── */

.section-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 120px 40px;
    background: var(--charcoal);
    text-align: center;
}

.cta-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 24px;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 96px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 48px;
}

.cta-button {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--near-black);
    background: var(--white);
    padding: 18px 48px;
    border: none;
    transition: all 0.4s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 168, 124, 0.2);
}


/* ═══════ FOOTER ═══════ */

.footer {
    position: relative;
    z-index: 10;
    background: var(--black);
    padding: 60px 40px 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copy {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.25);
}


/* ═══════ SCROLL REVEAL ANIMATIONS ═══════ */

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-scale { transform: scale(0.92); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger children in duo/trio */
.gallery-duo .reveal-right,
.gallery-trio .reveal-up { transition-delay: 0.1s; }
.gallery-trio .reveal-right { transition-delay: 0.2s; }


/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 900px) {
    :root {
        --gallery-pad: 20px;
        --gallery-gap: 10px;
    }

    .header {
        padding: 0 20px;
    }

    .header-nav {
        gap: 16px;
    }

    .nav-link {
        display: none;
    }

    .gallery-duo {
        flex-direction: column;
    }

    .gallery-duo-reverse .gallery-wide,
    .gallery-duo-reverse .gallery-tall {
        order: unset;
    }

    .gallery-duo .gallery-tall,
    .gallery-duo .gallery-wide {
        flex: none;
        aspect-ratio: 16 / 10;
    }

    .gallery-trio {
        flex-direction: column;
    }

    .gallery-trio .gallery-item {
        aspect-ratio: 16 / 10;
    }

    .gallery-full {
        aspect-ratio: 16 / 9;
    }

    .gallery-cinematic {
        aspect-ratio: 16 / 9;
    }

    .about-layout {
        flex-direction: column;
        gap: 40px;
    }

    .about-images {
        max-width: 100%;
    }

    .about-photo-main {
        aspect-ratio: 16 / 10;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    /* Show overlays by default on mobile (no hover) */
    .work-overlay {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .header-title {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .book-now-btn {
        font-size: 11px;
        padding: 8px 16px;
    }

    .section-statement {
        padding: 60px 24px;
    }

    .section-about {
        padding: 80px 24px;
    }

    .section-cta {
        padding: 80px 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}
