/* ============================================
   20241204.com - Art Deco Pastoral-Romantic
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-burgundy: #4A0E2B;
    --color-burgundy-deep: #2D0819;
    --color-cream: #F5EEDD;
    --color-gold: #C9A84C;
    --color-marble-white: #FAF7F2;
    --color-onyx: #1E1A1D;
    --color-dusty-rose: #8C5068;
    --color-amber: #D4A056;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-mono: 'DM Mono', monospace;

    --margin-outer: 8vw;
}

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

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

body {
    background-color: var(--color-marble-white);
    color: var(--color-onyx);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

/* --- SVG Filters (hidden) --- */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Chevron Frieze --- */
.chevron-frieze {
    width: 100%;
    height: 12px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.chevron-frieze--top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 0;
}

.chevron-frieze--top.is-drawn {
    opacity: 1;
}

.chevron-svg {
    width: 200%;
    height: 100%;
    display: block;
}

.chevron-frieze--top .chevron-path {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    transition: stroke-dashoffset 1.2s ease-in-out;
}

.chevron-frieze--top.is-drawn .chevron-path {
    stroke-dashoffset: 0;
}

.chevron-frieze--footer {
    margin-bottom: 2rem;
}

@keyframes chevronDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.chevron-frieze .chevron-svg {
    animation: chevronDrift 60s linear infinite;
}

/* --- Navigation (Section 1) --- */
.nav {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0.75rem var(--margin-outer);
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-onyx);
}

.nav__links {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-onyx);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* --- Hero Section (Section 2) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
}

.hero__skew {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: skewY(-2deg);
    overflow: hidden;
}

.hero__marble-bg {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse 80% 60% at 30% 40%, rgba(74, 14, 43, 0.85), transparent),
        radial-gradient(ellipse 70% 50% at 70% 60%, rgba(45, 8, 25, 0.9), transparent),
        radial-gradient(circle at 50% 50%, var(--color-burgundy), var(--color-burgundy-deep));
    z-index: 1;
}

.hero__marble-veins {
    position: absolute;
    inset: -10%;
    z-index: 2;
    opacity: 0.15;
    background:
        radial-gradient(ellipse 40% 20% at 25% 35%, var(--color-amber), transparent),
        radial-gradient(ellipse 30% 15% at 55% 55%, var(--color-dusty-rose), transparent),
        radial-gradient(ellipse 50% 10% at 70% 25%, var(--color-amber), transparent),
        radial-gradient(ellipse 25% 30% at 40% 70%, var(--color-dusty-rose), transparent),
        radial-gradient(ellipse 35% 8% at 15% 80%, var(--color-amber), transparent);
    filter: url(#marble-filter);
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 var(--margin-outer);
    transform: skewY(2deg);
    opacity: 0;
    transform: skewY(2deg) translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero__content.is-risen {
    opacity: 1;
    transform: skewY(2deg) translateY(0);
}

.hero__title {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.06em;
    color: var(--color-cream);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    min-height: 1.3em;
}

.hero__title.is-engraved {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: none;
}

.hero__title-typewriter {
    display: inline;
}

.hero__cursor {
    display: inline;
    color: var(--color-gold);
    animation: cursorBlink 1s step-end infinite;
}

.hero__cursor.is-hidden {
    display: none;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    color: var(--color-cream);
    opacity: 0;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    transition: opacity 0.8s ease;
}

.hero__subtitle.is-visible {
    opacity: 0.85;
}

/* --- Narrative Section (Section 3) --- */
.narrative {
    position: relative;
    padding: 8rem var(--margin-outer);
    background: var(--color-marble-white);
    scroll-snap-align: start;
}

.narrative__inner {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.narrative__text-block {
    position: relative;
}

.narrative__paragraph {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-onyx);
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.narrative__paragraph.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.narrative__paragraph--dropcap::first-letter {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4em;
    float: left;
    line-height: 0.8;
    padding-right: 0.1em;
    padding-top: 0.05em;
    color: var(--color-gold);
    margin-right: 0.05em;
}

/* --- Orb Element --- */
.narrative__orb-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.narrative__orb-frame {
    position: relative;
    width: 300px;
    height: 300px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: linear-gradient(135deg, var(--color-gold), var(--color-amber));
    padding: 3px;
    transform: scale(0.8);
    transition: transform 0.8s ease;
}

.narrative__orb-frame.is-scaled {
    transform: scale(1);
}

.narrative__orb {
    width: 100%;
    height: 100%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: radial-gradient(circle at 50% 50%, var(--color-burgundy), var(--color-burgundy-deep));
    overflow: hidden;
    position: relative;
}

.narrative__orb-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Gold Hairline Dividers --- */
.gold-hairline {
    width: 100%;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.4;
}

/* --- Stepped Borders --- */
.stepped-border {
    width: 100%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0,12 L0,8 L4,8 L4,4 L8,4 L8,0 L16,0 L16,4 L20,4 L20,8 L24,8 L24,12Z' fill='%23C9A84C'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 24px 12px;
}

.stepped-border--top {
    margin-bottom: 3rem;
}

.stepped-border--bottom {
    margin-top: 3rem;
}

/* --- Collection Section (Section 4) --- */
.collection {
    position: relative;
    padding: 6rem var(--margin-outer);
    background: var(--color-cream);
    scroll-snap-align: start;
}

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

.collection__card {
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--color-gold);
    padding: 2.5rem 2rem;
    background: var(--color-marble-white);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collection__card.is-entered {
    opacity: 1;
    transform: translateY(0);
}

.collection__card-marble {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background:
        radial-gradient(ellipse 60% 40% at 30% 30%, var(--color-amber), transparent),
        radial-gradient(ellipse 40% 50% at 70% 70%, var(--color-dusty-rose), transparent);
    filter: url(#marble-filter-2);
    pointer-events: none;
}

.collection__card-fan {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 60px;
    opacity: 0.05;
    background: radial-gradient(ellipse at 50% 100%, var(--color-gold), transparent 70%);
    pointer-events: none;
}

.collection__card-content {
    position: relative;
    z-index: 2;
}

.collection__card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.collection__card-icon svg {
    width: 100%;
    height: 100%;
}

.collection__card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-onyx);
    margin-bottom: 1rem;
}

.collection__card-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-dusty-rose);
}

/* --- Sunburst Divider --- */
.sunburst-divider {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
    background: var(--color-cream);
}

.sunburst-svg {
    width: 200px;
    height: 100px;
    transition: transform 0.3s ease;
}

/* --- Footer (Section 5) --- */
.footer {
    background: var(--color-burgundy);
    color: var(--color-cream);
    padding: 4rem var(--margin-outer) 2rem;
    text-align: center;
    scroll-snap-align: end;
}

.footer__inner {
    max-width: 800px;
    margin: 0 auto;
}

.footer__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-cream);
    margin-bottom: 0.75rem;
}

.footer__tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-dusty-rose);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.footer__contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.footer__contact-item {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--color-cream);
    opacity: 0.8;
}

.footer__contact-divider {
    color: var(--color-gold);
    opacity: 0.5;
}

.footer__bottom {
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    padding-top: 1.5rem;
}

.footer__copyright {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--color-dusty-rose);
    opacity: 0.6;
}

/* --- Gold Column Hairlines (Desktop Decorative) --- */
@media (min-width: 1024px) {
    .narrative__inner::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(7 / 12 * 100%);
        width: 1px;
        background: var(--color-gold);
        opacity: 0.15;
    }

    .narrative__inner {
        position: relative;
    }
}

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

    .narrative__orb-col {
        order: -1;
    }

    .narrative__orb-frame {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    :root {
        --margin-outer: 5vw;
    }

    .collection__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav__links {
        gap: 1rem;
    }

    .nav__link {
        font-size: 0.7rem;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .footer__contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer__contact-divider {
        display: none;
    }
}

/* --- Entry Animation Initial States --- */
.hero__content {
    opacity: 0;
}

/* --- Scroll-linked sunburst rotation --- */
.sunburst-divider.is-rotated .sunburst-svg {
    transform: rotate(15deg);
}
