/* ============================================
   HHASSL.com - Gallery White Space Design
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #FAFAF8;
    color: #2C2824;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 350;
    font-size: 1.05rem;
    line-height: 1.85;
    overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #2C2824;
}

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 3vh 4vw;
}

.brand-mark {
    display: block;
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: #AEAAA0;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 1400ms ease-out;
}

.brand-mark.visible {
    opacity: 1;
}

.nav-line {
    width: 20vw;
    height: 1px;
    background: linear-gradient(to right, #E8E4DC 60%, transparent);
    margin-top: 2vh;
    opacity: 0;
    transition: opacity 1400ms ease-out 400ms;
}

.nav-line.visible {
    opacity: 1;
}

/* ---------- Secondary Navigation ---------- */
.secondary-nav {
    position: fixed;
    bottom: 3vh;
    right: 4vw;
    z-index: 100;
    display: flex;
    gap: 2.5rem;
}

.secondary-nav-link {
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #AEAAA0;
    cursor: pointer;
    transition: color 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.secondary-nav-link:hover {
    color: #B8A88A;
}

/* ---------- Section Numbers ---------- */
.section-number {
    display: block;
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #AEAAA0;
    text-transform: uppercase;
    position: absolute;
    left: 4vw;
    top: 4vh;
}

/* ---------- Breath Sections ---------- */
.breath-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20vh 8vw;
}

.breath-section-tall {
    min-height: 120vh;
    padding: 25vh 8vw;
}

.breath-section-monumental {
    min-height: 130vh;
    padding: 15vh 6vw;
}

.breath-section-closing {
    min-height: 80vh;
}

/* Breath Element Positioning */
.breath-element {
    max-width: 50%;
}

.breath-offset-right {
    margin-left: auto;
    margin-right: 8vw;
}

.breath-offset-left {
    margin-right: auto;
    margin-left: 8vw;
}

.breath-offset-far-right {
    margin-left: auto;
    margin-right: 4vw;
}

.breath-centered {
    max-width: 70%;
    margin: 0 auto;
}

/* ---------- Hero Section ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8vw;
}

.hero-heading {
    font-size: 8vw;
    text-align: center;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1400ms ease-out, transform 1400ms ease-out;
}

.hero-heading.visible {
    opacity: 1;
    transform: scale(1);
}

/* Character animation for headings */
.hero-heading .char,
.island-heading .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 400ms ease-out;
}

.hero-heading .char.visible,
.island-heading .char.visible {
    opacity: 1;
}

/* ---------- Gallery Images ---------- */
.gallery-image {
    overflow: hidden;
    position: relative;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-image:hover {
    transform: scale(1.02);
}

.placeholder-image {
    display: block;
    object-fit: cover;
}

/* Image Aspect Ratios */
.image-portrait {
    aspect-ratio: 3 / 4;
    width: 100%;
}

.image-square {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.image-landscape {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.image-landscape-wide {
    aspect-ratio: 2.35 / 1;
    width: 100%;
}

.image-thumbnail {
    width: 8vw;
    height: 8vw;
}

.image-monumental {
    width: 100%;
    height: 70vh;
}

.image-monumental .placeholder-image {
    height: 100%;
}

/* Image overlay shadow - #1A1714 at 8% opacity for gentle depth */
.gallery-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1A1714;
    opacity: 0.08;
    pointer-events: none;
}

/* ---------- Image Captions ---------- */
.image-caption {
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #AEAAA0;
    margin-top: 1.5rem;
    transition: color 600ms cubic-bezier(0.22, 1, 0.36, 1),
                letter-spacing 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-image:hover + .image-caption,
.gallery-item:hover .image-caption {
    color: #2C2824;
    letter-spacing: 0.08em;
}

/* ---------- Section Dividers ---------- */
.section-divider {
    width: 100%;
    padding: 0 8vw;
    margin: 6vh 0;
    position: relative;
}

.section-divider::after {
    content: '';
    display: block;
    position: relative;
    left: 20%;
    width: 45%;
    height: 1px;
    background: linear-gradient(to right, #E8E4DC 70%, transparent);
}

/* ---------- Text Islands ---------- */
.text-island {
    padding: 15vh 8vw;
    max-width: 100%;
    position: relative;
}

.island-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 350;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #5A5650;
    max-width: 38ch;
    margin-left: 0;
}

.island-heading {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 300;
    font-size: 6vw;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #2C2824;
}

/* ---------- Gallery Rows ---------- */
.gallery-row {
    position: relative;
    padding: 10vh 8vw 15vh;
}

/* Trio Grid */
.gallery-grid-trio {
    display: grid;
    grid-template-columns: 45% 28% 18%;
    gap: 3vw;
    align-items: start;
}

.gallery-grid-trio .gallery-item-large {
    grid-column: 1;
    align-self: start;
}

.gallery-grid-trio .gallery-item-medium {
    grid-column: 2;
    align-self: center;
    margin-top: 6vh;
}

.gallery-grid-trio .gallery-item-small {
    grid-column: 3;
    align-self: end;
    margin-top: 4vh;
}

/* Duo Grid */
.gallery-grid-duo {
    display: grid;
    grid-template-columns: 50% 35%;
    gap: 4vw;
    align-items: start;
    justify-content: start;
}

.gallery-grid-duo .gallery-item-offset {
    margin-top: 8vh;
}

/* ---------- Gallery Items ---------- */
.gallery-item {
    position: relative;
    cursor: default;
}

/* ---------- Reveal Animation ---------- */
[data-reveal] {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

[data-reveal].revealed {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Closing Section ---------- */
.closing-mark {
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: #AEAAA0;
    text-transform: uppercase;
}

.closing-line {
    width: 12vw;
    margin-top: 2vh;
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-heading {
        font-size: 12vw;
    }

    .island-heading {
        font-size: 10vw;
    }

    .breath-element {
        max-width: 80%;
    }

    .breath-offset-right,
    .breath-offset-left,
    .breath-offset-far-right {
        margin-left: 4vw;
        margin-right: 4vw;
    }

    .breath-centered {
        max-width: 90%;
    }

    .gallery-grid-trio {
        grid-template-columns: 1fr;
        gap: 6vh;
    }

    .gallery-grid-trio .gallery-item-medium,
    .gallery-grid-trio .gallery-item-small {
        margin-top: 0;
    }

    .gallery-grid-duo {
        grid-template-columns: 1fr;
        gap: 6vh;
    }

    .gallery-grid-duo .gallery-item-offset {
        margin-top: 0;
    }

    .section-number {
        left: 4vw;
        top: 2vh;
    }

    .image-thumbnail {
        width: 20vw;
        height: 20vw;
    }

    .secondary-nav {
        display: none;
    }
}
