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

:root {
    --museum-green: #1a3a2a;
    --brass-gold: #c9a84c;
    --marble-cream: #f0ece0;
    --obsidian: #12121a;
    --patina: #5a8a6a;
    --ivory: #faf8f2;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--museum-green);
    color: var(--marble-cream);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.75;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
.ornamental-label {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brass-gold);
    display: block;
    margin-bottom: 0.75rem;
}

/* === HERO === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--obsidian);
    overflow: hidden;
}

.hero-sunburst {
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(
        from 0deg at 50% 100%,
        transparent 0deg 8deg,
        rgba(201, 168, 76, 0.04) 8deg 9deg
    );
    pointer-events: none;
}

/* Art-deco arch overlay */
.hero-arch {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.arch-svg {
    width: 100%;
    max-width: 900px;
    height: 100%;
    max-height: 90vh;
    opacity: 0.5;
}

/* Path-draw animation for arch elements */
.arch-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.hero-section.arch-drawn .arch-path {
    animation: drawPath 2.5s ease forwards;
}

.hero-section.arch-drawn .arch-outer { animation-delay: 0s; }
.hero-section.arch-drawn .arch-inner { animation-delay: 0.3s; }
.hero-section.arch-drawn .arch-keystone { animation-delay: 0.6s; }
.hero-section.arch-drawn .arch-col { animation-delay: 0.9s; stroke-dasharray: 600; stroke-dashoffset: 600; }
.hero-section.arch-drawn .arch-fan { animation-delay: 1.1s; }
.hero-section.arch-drawn .arch-chevron { animation-delay: 1.3s; }
.hero-section.arch-drawn .arch-base { animation-delay: 1.5s; }

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-section.content-shown .hero-content {
    animation: fadeInUp 1s ease 2.8s forwards;
}

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

.hero-label {
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--marble-cream);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.25), 0 2px 4px rgba(0,0,0,0.5);
}

.hero-divider {
    display: flex;
    justify-content: center;
    margin: 1rem auto 1.5rem;
    width: 200px;
}

.hero-divider svg {
    width: 100%;
}

.hero-sub {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--patina);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    z-index: 2;
}

.hero-section.content-shown .hero-scroll-hint {
    animation: fadeInUp 1s ease 3.5s forwards;
}

.scroll-arrow {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--brass-gold), transparent);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--brass-gold);
    border-bottom: 1px solid var(--brass-gold);
}

/* === SECTION DIVIDERS === */
.section-divider {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.divider-ornament {
    width: 180px;
    opacity: 0.7;
}

/* === CHAPTER SECTIONS === */
.chapter-section {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* === WATERMARK SYMBOLS === */
.watermark-symbol {
    position: absolute;
    width: 280px;
    height: 280px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    top: 50%;
    transform: translateY(-50%);
    left: -80px;
}

.watermark-right {
    left: auto;
    right: -80px;
}

.watermark-symbol svg {
    width: 100%;
    height: 100%;
}

/* === ART-DECO FRAME SYSTEM === */
.deco-frame-wrapper {
    position: relative;
    width: 100%;
}

.frame-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Frame path-draw animation */
.frame-rect,
.frame-rect-inner,
.frame-corner-path,
.frame-top-orn,
.frame-bot-orn {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
}

.reveal-section.frame-drawn .frame-rect {
    animation: drawFramePath 1.5s ease forwards;
    animation-delay: 0s;
}

.reveal-section.frame-drawn .frame-rect-inner {
    animation: drawFramePath 1.5s ease forwards;
    animation-delay: 0.2s;
}

.reveal-section.frame-drawn .frame-corner-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawFramePath 0.8s ease forwards;
    animation-delay: 0.4s;
}

.reveal-section.frame-drawn .frame-top-orn {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawFramePath 0.6s ease forwards;
    animation-delay: 1s;
}

.reveal-section.frame-drawn .frame-bot-orn {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawFramePath 0.6s ease forwards;
    animation-delay: 1.1s;
}

@keyframes drawFramePath {
    to { stroke-dashoffset: 0; }
}

/* Frame content area */
.frame-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem 3rem;
    text-align: center;
    background: rgba(26, 58, 42, 0.4);
}

/* === CONTENT REVEAL === */
.content-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.reveal-section.content-visible .content-reveal {
    animation: revealContent 0.8s ease forwards;
    animation-delay: 2.1s;
}

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

/* === COLUMN CAPITALS === */
.column-capital {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.capital-chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.chev {
    border-style: solid;
    border-color: var(--brass-gold);
    border-width: 0 0 1px 0;
}

.chev-1 { width: 20px; opacity: 0.5; }
.chev-2 { width: 34px; opacity: 0.7; }
.chev-3 { width: 48px; opacity: 1; border-width: 0 0 2px 0; }

/* === SECTION TITLES with sunburst === */
.section-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--marble-cream);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding: 1.5rem 2rem;
}

.sunburst-header {
    background: repeating-conic-gradient(
        from 0deg at 50% 100%,
        transparent 0deg 8deg,
        rgba(201, 168, 76, 0.05) 8deg 9deg
    );
}

/* === SPLIT CONTENT === */
.split-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    text-align: left;
    margin-top: 1.5rem;
}

.split-left,
.split-right {
    flex: 1;
}

.split-heading {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-gold);
    margin-bottom: 1rem;
}

.split-content p {
    color: var(--marble-cream);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.split-accent {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem !important;
    color: var(--patina) !important;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-top: 1rem !important;
}

/* Central axis ornament */
.split-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
    min-width: 40px;
}

.axis-line {
    width: 1px;
    flex: 1;
    min-height: 40px;
    background: linear-gradient(to bottom, transparent, var(--brass-gold), transparent);
}

.axis-ornament svg {
    width: 20px;
    height: 80px;
}

/* === BODY TEXT === */
.body-text {
    color: var(--marble-cream);
    font-size: 1rem;
    line-height: 1.85;
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

/* === HYPOTHESIS PILLARS === */
.hypothesis-pillars {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.pillar {
    flex: 1;
    text-align: center;
}

.pillar-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.pillar-icon svg {
    width: 48px;
    height: 48px;
}

.pillar-text {
    font-size: 0.875rem;
    color: var(--marble-cream);
    line-height: 1.6;
    opacity: 0.85;
}

.pillar-sep {
    width: 1px;
    min-height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.4), transparent);
    flex-shrink: 0;
}

/* === DISCOVERY SECTION === */
.discovery-text {
    font-size: 1.05rem;
    font-weight: 300;
}

.discovery-quote {
    position: relative;
    margin: 2.5rem auto;
    max-width: 600px;
    padding: 2rem 2.5rem;
    border-left: 2px solid var(--brass-gold);
    border-right: 2px solid var(--brass-gold);
    background: rgba(201, 168, 76, 0.04);
    text-align: center;
}

.quote-mark {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--brass-gold);
    opacity: 0.3;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
}

.quote-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ivory);
    margin-bottom: 0.75rem;
}

.quote-cite {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--brass-gold);
    font-style: normal;
}

/* === FOOTER === */
.site-footer {
    background: var(--obsidian);
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    padding: 5rem 2rem 4rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.footer-arch-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-arch-ornament svg {
    width: 360px;
    max-width: 100%;
}

.footer-label {
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.footer-domain {
    font-family: 'Poiret One', cursive;
    font-size: 2rem;
    letter-spacing: 0.15em;
    color: var(--brass-gold);
    margin-bottom: 1rem;
}

.footer-divider-line {
    display: flex;
    justify-content: center;
    margin: 1rem auto;
    width: 200px;
}

.footer-divider-line svg {
    width: 100%;
}

.footer-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: var(--patina);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .arch-path,
    .frame-rect,
    .frame-rect-inner,
    .frame-corner-path,
    .frame-top-orn,
    .frame-bot-orn {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        animation: none !important;
    }

    .hero-section.arch-drawn .arch-path,
    .reveal-section.frame-drawn .frame-rect,
    .reveal-section.frame-drawn .frame-rect-inner,
    .reveal-section.frame-drawn .frame-corner-path,
    .reveal-section.frame-drawn .frame-top-orn,
    .reveal-section.frame-drawn .frame-bot-orn {
        stroke-dashoffset: 0;
    }

    .hero-content,
    .content-reveal,
    .hero-scroll-hint {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .chapter-section {
        padding: 2rem 1rem;
    }

    .frame-content {
        padding: 2.5rem 1.5rem;
    }

    .split-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .split-axis {
        display: none;
    }

    .hypothesis-pillars {
        flex-direction: column;
    }

    .pillar-sep {
        width: 100%;
        min-height: 1px;
        background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.4), transparent);
    }

    .watermark-symbol {
        display: none;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}

@media (max-width: 480px) {
    .frame-content {
        padding: 2rem 1rem;
    }

    .discovery-quote {
        padding: 1.5rem;
    }
}
