/* ============================================
   senggack.com — Styles
   Art Deco + Inflated 3D + Aquarium Editorial
   ============================================ */

/* Color reference: #2A5C5A (Tide Pool Teal) used in SVG markup and accents */

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

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #1A1612;
    color: #F2E8D5;
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1.85;
    overflow-x: hidden;
}

/* ---- Fixed Section Indicator ---- */
.section-indicator {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #D4A04A;
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.4s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ---- Section Base ---- */
section {
    scroll-snap-align: start;
    position: relative;
}

/* ============================================
   SECTION 1: The Aquarium Foyer (Hero)
   ============================================ */
.foyer {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: radial-gradient(ellipse at 50% 40%, #8B3A0A 0%, #5C2606 100%);
    position: relative;
    overflow: hidden;
}

.foyer-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: 'Poiret One', 'Georgia', serif;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 400;
    color: #F2E8D5;
    letter-spacing: 0.12em;
    text-shadow:
        0 2px 0 #C47832,
        0 4px 0 #B06828,
        0 6px 0 #8B3A0A,
        0 8px 15px rgba(26,22,18,0.4);
    margin-bottom: 1rem;
}

.hero-line {
    width: 1px;
    height: 60px;
    background: #D4A04A;
    margin: 0 auto 1.5rem;
    opacity: 0.6;
}

.hero-subtitle {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #F2E8D5;
    opacity: 0.7;
    letter-spacing: 0.15em;
}

/* Swimming Fish */
.fish {
    position: absolute;
    height: auto;
    z-index: 1;
    opacity: 0.6;
}

.fish-1 {
    width: 100px;
    top: 25%;
    animation: swim 18s linear infinite;
}

.fish-2 {
    width: 70px;
    top: 55%;
    animation: swim 25s linear infinite;
    animation-delay: -8s;
}

.fish-3 {
    width: 120px;
    top: 72%;
    animation: swim 32s linear infinite;
    animation-delay: -15s;
}

@keyframes swim {
    from { transform: translateX(-10vw); }
    to { transform: translateX(110vw); }
}

/* Thought Bubbles */
.thought-bubble {
    position: absolute;
    border: 1px solid #D4A04A;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
}

.tb-1 {
    width: 40px;
    height: 40px;
    top: 15%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.tb-2 {
    width: 25px;
    height: 25px;
    top: 30%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
    animation-delay: -2s;
}

.tb-3 {
    width: 55px;
    height: 55px;
    bottom: 20%;
    left: 20%;
    animation: float 10s ease-in-out infinite;
    animation-delay: -4s;
}

.tb-4 {
    width: 18px;
    height: 18px;
    bottom: 30%;
    right: 25%;
    animation: float 7s ease-in-out infinite;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   SECTION 2: The Exhibition Hall
   ============================================ */
.exhibition {
    min-height: 150vh;
    background: #F2E8D5;
    color: #2C1B0E;
    padding: 8rem 8vw;
}

.spread-grid {
    display: grid;
    grid-template-columns: 55% 5% 40%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0;
}

.section-title {
    font-family: 'Poiret One', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.12em;
    color: #2C1B0E;
    margin-bottom: 3.5rem;
    text-transform: none;
}

.body-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.85;
    max-width: 38em;
    margin-bottom: 1.75rem;
    color: #2C1B0E;
}

.body-text em {
    font-style: italic;
    color: #8B3A0A;
}

.pull-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-style: italic;
    color: #D4A04A;
    border-left: 3px solid #D4A04A;
    padding-left: 1.5rem;
    margin: 3.5rem 0;
    line-height: 1.5;
    max-width: 30em;
}

/* Art Deco Vertical Rule */
.spread-gutter {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.art-deco-rule {
    width: 2px;
    height: 80%;
    position: relative;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #D4A04A 10%,
        #D4A04A 90%,
        transparent 100%
    );
    opacity: 0.4;
}

.art-deco-rule::before,
.art-deco-rule::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid #D4A04A;
    border-radius: 50% 50% 0 0;
    opacity: 0.6;
}

.art-deco-rule::before {
    top: 0;
}

.art-deco-rule::after {
    bottom: 0;
    transform: translateX(-50%) rotate(180deg);
}

/* Illustration column */
.spread-illustration {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6rem;
    position: sticky;
    top: 4rem;
    align-self: start;
}

.lionfish-svg {
    width: 100%;
    max-width: 380px;
    height: auto;
}

/* ============================================
   SECTION 3: The Meditation Tank
   ============================================ */
.meditation {
    height: 100vh;
    background: #1A1612;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.morph-glyph {
    width: clamp(200px, 35vw, 400px);
    height: clamp(200px, 35vw, 400px);
    background: linear-gradient(135deg, #E8945A, #C47832);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morph 12s ease-in-out infinite;
    box-shadow:
        0 0 0 2px #D4A04A,
        0 10px 30px rgba(26,22,18,0.3),
        0 20px 60px rgba(26,22,18,0.2),
        inset 0 -10px 30px rgba(26,22,18,0.15);
}

.morph-char {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: #F2E8D5;
    letter-spacing: 0.05em;
    text-shadow:
        0 2px 4px rgba(26,22,18,0.3),
        0 4px 8px rgba(26,22,18,0.2);
}

@keyframes morph {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25%  { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
    50%  { border-radius: 40% 60% 70% 30% / 70% 30% 50% 50%; }
    75%  { border-radius: 70% 30% 50% 50% / 40% 60% 70% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* ============================================
   SECTION 4: The Specimen Gallery
   ============================================ */
.gallery {
    min-height: 120vh;
    background: #F2E8D5;
    color: #2C1B0E;
    padding: 8rem 8vw;
}

.gallery-title {
    text-align: center;
    margin-bottom: 5.25rem;
}

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

.specimen {
    border: 1px solid #D4A04A;
    padding: 2rem;
    position: relative;
    background: rgba(242, 232, 213, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.specimen.visible {
    opacity: 1;
    transform: translateY(0);
}

.specimen-tall {
    grid-row: span 1;
}

/* Corner ornaments */
.specimen-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #D4A04A;
    border-style: solid;
    border-width: 0;
}

.specimen-corner.tl {
    top: -1px;
    left: -1px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.specimen-corner.tr {
    top: -1px;
    right: -1px;
    border-top-width: 2px;
    border-right-width: 2px;
}

.specimen-corner.bl {
    bottom: -1px;
    left: -1px;
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.specimen-corner.br {
    bottom: -1px;
    right: -1px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.specimen-fish {
    width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    margin: 0 auto 1.5rem;
}

.specimen-term {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C1B0E;
    margin-bottom: 0.25rem;
    text-align: center;
}

.specimen-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8B3A0A;
    text-align: center;
    margin-bottom: 1.25rem;
}

.specimen:hover {
    border-color: #2A5C5A;
    transition: border-color 0.4s ease;
}

.specimen-desc {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #2C1B0E;
}

/* ============================================
   SECTION 5: The Archive Colophon
   ============================================ */
.colophon {
    min-height: 50vh;
    background: radial-gradient(ellipse at 50% 40%, #8B3A0A 0%, #5C2606 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

.colophon-content {
    text-align: center;
    max-width: 500px;
}

.colophon-ornament {
    margin-bottom: 3rem;
}

.deco-tailpiece {
    width: 180px;
    height: auto;
    opacity: 0.7;
}

.colophon-domain {
    font-family: 'Poiret One', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.12em;
    color: #F2E8D5;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 0 #C47832, 0 4px 8px rgba(26,22,18,0.3);
}

.colophon-description {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #F2E8D5;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.colophon-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #D4A04A;
    margin-bottom: 3rem;
}

.colophon-end {
    margin-top: 2rem;
}

.end-char {
    font-family: 'Noto Serif KR', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F2E8D5;
    opacity: 0.5;
}

/* ============================================
   Entry Animations
   ============================================ */
.spread-text,
.spread-illustration {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.spread-text.visible,
.spread-illustration.visible {
    opacity: 1;
    transform: translateY(0);
}

.colophon-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.colophon-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Art Deco Fan Divider
   ============================================ */
.gallery::before {
    content: '';
    display: block;
    width: 100%;
    max-width: 600px;
    height: 60px;
    margin: 0 auto 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: repeating-conic-gradient(
        from 0deg at 50% 100%,
        #D4A04A 0deg 15deg,
        transparent 15deg 30deg
    );
    opacity: 0.1;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .spread-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .spread-gutter {
        display: none;
    }

    .spread-illustration {
        position: static;
        padding-top: 0;
    }

    .lionfish-svg {
        max-width: 300px;
        margin: 0 auto;
    }

    .specimen-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-indicator {
        writing-mode: horizontal-tb;
        top: 1rem;
        right: 1rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 600px) {
    .specimen-grid {
        grid-template-columns: 1fr;
    }

    .morph-glyph {
        width: 60vw;
        height: 60vw;
    }

    .exhibition,
    .gallery {
        padding: 5rem 5vw;
    }

    .section-indicator {
        display: none;
    }
}
