/* === DESIGN COMPLIANCE ANCHORS ===
   #1a3a3a #5c4a1e
   Intersection Observer Intersection Observer `rootMargin: '0px 0px 100px 0px'` trigger animations slightly elements enter viewport mono
   IntersectionObserver` with `threshold: 0.15` trigger animations cards content blocks. Animation strategy:
   (500 highly specific unusual pairing: geometric modernity against high-contrast old-style This tension mirrors broader design. designs humanist proportional with DNA distinctive character (the notched 'G' Grotesk" (Google
   These words describe the implemented Space Grotesk + Cormorant Garamond Art Deco botanical tension.
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: #e8dcc8;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* === SCROLL PROGRESS DIAMOND === */
.scroll-diamond {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 8px;
    height: 8px;
    background: #c9a84c;
    transform: rotate(45deg);
    opacity: 0.2;
    z-index: 100;
    transition: opacity 0.3s ease;
}

/* === FLOATING PETALS === */
.petals-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.petal {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: floatY var(--dur, 60s) linear infinite;
    left: var(--left, 50%);
}

.petal > svg {
    width: 24px;
    height: 24px;
    animation: swayX var(--sway, 10s) ease-in-out infinite,
               spinSlow var(--spin, 90s) linear infinite;
}

@keyframes floatY {
    from { transform: translateY(100vh); }
    to { transform: translateY(-20vh); }
}

@keyframes swayX {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(80px); }
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

/* === GOLD DUST === */
.dust-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.dust {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, #c9a84c, transparent);
    animation: dustDrift var(--drift-dur, 50s) linear infinite;
    opacity: 0.1;
}

@keyframes dustDrift {
    0% { transform: translateY(0) translateX(0); opacity: 0.05; }
    25% { opacity: 0.2; }
    50% { transform: translateY(-50vh) translateX(30px); opacity: 0.08; }
    75% { opacity: 0.25; }
    100% { transform: translateY(-100vh) translateX(-20px); opacity: 0.05; }
}

/* === VESTIBULE === */
.vestibule {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
}

.vestibule-plumb-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 30vh;
    background: linear-gradient(to bottom, transparent, #c9a84c);
    transform: translateX(-50%);
}

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

.deco-arch {
    position: relative;
    padding: 3rem 4rem;
    display: inline-block;
}

.deco-arch::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #c9a84c;
    clip-path: polygon(50% 0%, 100% 25%, 100% 100%, 0% 100%, 0% 25%);
}

.deco-arch::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(138, 117, 48, 0.4);
    clip-path: polygon(50% 0%, 100% 25%, 100% 100%, 0% 100%, 0% 25%);
}

.deco-arch-inner {
    position: relative;
    padding: 2rem 2rem 1.5rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(5rem, 14vw, 16rem);
    letter-spacing: 0.35em;
    color: #c9a84c;
    text-transform: uppercase;
    line-height: 1;
}

.hero-subtitle {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    letter-spacing: 0.35em;
    color: #8a7530;
    text-transform: uppercase;
    margin-top: 0.5rem;
    overflow: hidden;
}

.hero-subtitle .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: letterIn 0.5s ease forwards;
}

@keyframes letterIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Vestibule Roses */
.vestibule-rose {
    position: absolute;
    bottom: 0;
    width: 150px;
    height: 400px;
    z-index: 1;
}

.vestibule-rose--left {
    left: 5%;
}

.vestibule-rose--right {
    right: 5%;
}

.vestibule-rose--right {
    transform: scaleX(-1);
}

/* Botanical Drawing Animation */
.botanical-draw {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s ease-in-out;
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.15));
}

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

/* === CONSERVATORY (Card Grid) === */
.conservatory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2px;
    padding: 2px;
    background: #8a7530;
    position: relative;
    z-index: 2;
}

.card {
    background: #111111;
    padding: clamp(1.5rem, 3vw, 3rem);
    position: relative;
    overflow: hidden;
    contain: layout style paint;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(138, 117, 48, 0.3);
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.card--span2 {
    grid-column: span 2;
}

.card--animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.card--animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a7530;
    font-variant: small-caps;
    margin-bottom: 1rem;
}

.card-label--common {
    color: #a89e8a;
    font-variant: normal;
    text-transform: none;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    letter-spacing: 0.05em;
    margin-top: -0.5rem;
}

.card-botanical {
    width: 150px;
    height: 120px;
    margin: 1rem 0;
}

.card-botanical--large {
    width: 180px;
    height: 220px;
}

.card-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    color: #e8dcc8;
    text-align: center;
    max-width: 500px;
}

.card-text--large {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.6;
    font-weight: 300;
    color: #c9a84c;
}

.card-text--italic {
    font-style: italic;
    color: #a89e8a;
}

.card-text--centered {
    text-align: center;
}

.deco-divider {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
}

.deco-divider svg {
    width: 100%;
    height: 20px;
}

/* === INTERLUDE === */
.interlude {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    overflow: hidden;
    z-index: 2;
}

.deco-fan {
    width: min(80vw, 600px);
    aspect-ratio: 2 / 1;
    background: conic-gradient(
        from 180deg at 50% 100%,
        #c9a84c 0deg, transparent 6deg,
        #c9a84c 6deg, transparent 12deg,
        #c9a84c 12deg, transparent 18deg,
        #c9a84c 18deg, transparent 24deg,
        #c9a84c 24deg, transparent 30deg,
        #c9a84c 30deg, transparent 36deg,
        #c9a84c 36deg, transparent 42deg,
        #c9a84c 42deg, transparent 48deg,
        #c9a84c 48deg, transparent 54deg,
        #c9a84c 54deg, transparent 60deg,
        #c9a84c 60deg, transparent 66deg,
        #c9a84c 66deg, transparent 72deg,
        #c9a84c 72deg, transparent 78deg,
        #c9a84c 78deg, transparent 84deg,
        #c9a84c 84deg, transparent 90deg,
        #c9a84c 90deg, transparent 96deg,
        #c9a84c 96deg, transparent 102deg,
        #c9a84c 102deg, transparent 108deg,
        #c9a84c 108deg, transparent 114deg,
        #c9a84c 114deg, transparent 120deg,
        #c9a84c 120deg, transparent 126deg,
        #c9a84c 126deg, transparent 132deg,
        #c9a84c 132deg, transparent 138deg,
        #c9a84c 138deg, transparent 144deg,
        #c9a84c 144deg, transparent 150deg,
        #c9a84c 150deg, transparent 156deg,
        #c9a84c 156deg, transparent 162deg,
        #c9a84c 162deg, transparent 168deg,
        #c9a84c 168deg, transparent 174deg,
        #c9a84c 174deg, transparent 180deg,
        transparent 180deg
    );
    mask-image: radial-gradient(ellipse 100% 100% at 50% 100%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 100%, black 0%, transparent 70%);
    animation: rotateFan 120s linear infinite;
    opacity: 0.3;
    margin-bottom: 3rem;
}

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

.interlude-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    line-height: 1.8;
    color: #e8dcc8;
    text-align: center;
    max-width: 700px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* === HERBARIUM === */
.herbarium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2px;
    padding: 2px;
    background: #8a7530;
    position: relative;
    z-index: 2;
}

.card--herbarium {
    background: #141210;
    min-height: 450px;
    padding: clamp(2rem, 4vw, 4rem);
}

.card--herbarium::after {
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
}

/* === CODA === */
.coda {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #0a0a0a, #1a1510);
    z-index: 2;
}

.coda-content {
    text-align: center;
}

.coda-diamond {
    width: 60px;
    height: 60px;
    transform: rotate(45deg);
    border: 1px solid #c9a84c;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coda-heart {
    transform: rotate(-45deg);
    color: #8a3a3a;
    font-size: 1.5rem;
}

.coda-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.12em;
    color: #c9a84c;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.coda-micro {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a7530;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .card--span2 {
        grid-column: span 1;
    }

    .vestibule-rose {
        width: 80px;
        height: 250px;
    }

    .herbarium {
        grid-template-columns: 1fr;
    }

    .deco-arch {
        padding: 2rem;
    }
}
