/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    color: #3d3629;
    background: #f4ede4;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, blockquote {
    font-family: 'Cormorant Garamond', serif;
}

/* ===== NAV LEAF ===== */
.nav-leaf {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #6b7a52;
}

/* Accent palette refs: #6b7a52 #b8856c #6e7b8a #000 */

.nav-leaf:hover {
    transform: scale(1.15);
}

/* ===== SECTIONS ===== */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
}

/* ===== SECTION 1: TITLE PLATE ===== */
.section-title {
    background: #f4ede4;
    flex-direction: column;
}

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

.studio-name {
    font-weight: 600;
    font-size: clamp(3rem, 6vw, 5rem);
    color: #3d3629;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.studio-subtitle {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: #7a7264;
    margin-top: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Wreath */
.wreath {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.wreath-leaf {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
    transform-origin: center center;
}

.wreath-leaf.visible {
    opacity: 1;
}

/* ===== SECTION 2: OBSERVATION CHAMBER ===== */
.section-observation {
    background: #ede6da;
}

.observation-layout {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 5vw;
    gap: 4vw;
}

.observation-illustration {
    flex: 0 0 55%;
    max-width: 55%;
    transition: transform 0.1s linear;
}

.observation-illustration svg {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.observation-text {
    flex: 1;
}

.section-title {
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #3d3629;
}

.observation-text p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    margin-bottom: 1.2rem;
    color: #3d3629;
}

.observation-text p em {
    font-style: italic;
}

/* SVG draw animation */
.draw-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.draw-path.drawn {
    stroke-dashoffset: 0;
}

/* ===== SECTION 3: COLLECTION WALL ===== */
.section-collection {
    background: #f4ede4;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 0;
}

.collection-title {
    text-align: center;
    margin-bottom: 1rem;
}

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

.specimen-card {
    background: #faf6f0;
    border: 1px solid #d4cdc2;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
    padding: 1.8rem 2rem 2.2rem;
    width: clamp(280px, 50vw, 380px);
    position: relative;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    cursor: default;
}

.specimen-card:nth-child(1) {
    transform: perspective(800px) rotateY(-3deg) translateX(-4vw);
}
.specimen-card:nth-child(2) {
    transform: perspective(800px) rotateY(2deg) translateX(3vw);
}
.specimen-card:nth-child(3) {
    transform: perspective(800px) rotateY(-1.5deg) translateX(-2vw);
}

.specimen-card:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.04) !important;
    box-shadow: 0 12px 40px rgba(61, 54, 41, 0.12);
}

.specimen-illustration {
    margin-bottom: 1rem;
}

.specimen-illustration svg {
    width: 80px;
    height: 60px;
}

.specimen-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: #3d3629;
}

.specimen-desc {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: #7a7264;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.specimen-label {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a7264;
}

/* ===== SECTION 4: ANNOTATION PAGE ===== */
.section-annotation {
    background: #f7f0e6;
    flex-direction: column;
}

.tendril-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
}

.tendril-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.2s ease-in-out;
}

.tendril-path.drawn {
    stroke-dashoffset: 0;
}

.annotation-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    padding: 0 4vw;
    width: 100%;
}

.annotation-quote blockquote {
    font-weight: 700;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: #3d3629;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.annotation-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobius-leaf {
    width: clamp(180px, 22vw, 300px);
    height: auto;
    animation: gentleSpin 20s linear infinite;
}

@keyframes gentleSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.annotation-body {
    position: relative;
}

.annotation-body p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    color: #3d3629;
}

.annotation-note {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    letter-spacing: 0.04em;
    color: #7a7264;
    margin-top: 1rem;
}

.note-2 {
    margin-top: 0.5rem;
}

/* ===== SECTION 5: COLOPHON ===== */
.section-colophon {
    background: #ede6da;
}

.colophon-block {
    text-align: center;
    max-width: 480px;
    transform: perspective(1000px) rotateX(2deg) rotateY(-1deg);
    transition: transform 0.8s ease;
}

.colophon-name {
    font-weight: 700;
    font-size: 2.4rem;
    color: #3d3629;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.colophon-rule {
    width: 120px;
    height: 1px;
    background: #d4cdc2;
    margin: 0 auto 1.5rem;
}

.colophon-contact p {
    font-size: 1rem;
    line-height: 2.0;
    color: #3d3629;
}

.colophon-ornament {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .observation-layout {
        flex-direction: column;
        padding: 4rem 6vw;
    }

    .observation-illustration {
        flex: none;
        max-width: 100%;
    }

    .annotation-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .specimen-card:nth-child(1),
    .specimen-card:nth-child(2),
    .specimen-card:nth-child(3) {
        transform: none !important;
    }
}
