/* reasr.one - Playful Classicism */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --admiral-navy: #1B2A4A;
    --midnight-ink: #0F1A30;
    --marble-white: #F0ECE4;
    --burnished-gold: #C5A55A;
    --polished-brass: #D4B06A;
    --slate-deep: #2A2A3A;
    --rose-petal: #E88B8B;
    --marble-gray: #B8B0A4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
    background-color: var(--admiral-navy);
    color: var(--marble-white);
    overflow-x: hidden;
}

/* === Navigation Dots === */
#nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.nav-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(197, 165, 90, 0.3);
    z-index: -1;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--burnished-gold);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot.active {
    width: 10px;
    height: 10px;
    background-color: var(--burnished-gold);
}

.dot-tooltip {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-family: 'Caveat', cursive;
    font-size: 0.9rem;
    color: var(--burnished-gold);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover .dot-tooltip {
    opacity: 1;
}

/* === Golden Halo === */
#golden-halo {
    position: fixed;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(197, 165, 90, 0.08),
        transparent
    );
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    top: 50%;
    transform: translateY(-50%);
}

#golden-halo.active {
    opacity: 1;
}

/* === Page Sections === */
.page-section {
    min-height: 80vh;
    padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 5vw, 3rem);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.4s ease;
    will-change: filter;
}

.section-dark {
    background-color: var(--admiral-navy);
    color: var(--marble-white);
}

.section-light {
    background-color: var(--marble-white);
    color: var(--slate-deep);
    background-image:
        radial-gradient(ellipse at var(--vein-x, 30%) var(--vein-y, 40%), rgba(184,176,164,0.08), transparent var(--vein-scale, 60%)),
        radial-gradient(ellipse at 70% 20%, rgba(184,176,164,0.05), transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(184,176,164,0.06), transparent 45%),
        radial-gradient(ellipse at 85% 70%, rgba(184,176,164,0.04), transparent 55%);
}

.section-wide .section-content {
    max-width: 840px;
}

/* === Section Frame === */
.section-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--burnished-gold);
    pointer-events: none;
    z-index: 1;
}

.section-light .section-frame {
    border-color: rgba(197, 165, 90, 0.4);
}

/* === Corner Flourishes === */
.corner-flourish {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 2;
}

.corner-flourish svg {
    width: 100%;
    height: 100%;
}

.corner-tl {
    top: -8px;
    left: -8px;
}

.corner-tr {
    top: -8px;
    right: -8px;
}

.corner-bl {
    bottom: -8px;
    left: -8px;
}

.corner-br {
    bottom: -8px;
    right: -8px;
}

/* === Section Content === */
.section-content {
    max-width: 720px;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* === Hero === */
.hero-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-text-block {
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--marble-white);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-ext {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--burnished-gold);
    margin-top: 0.25rem;
}

/* === Typography === */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.section-heading em {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.section-light .section-heading {
    color: var(--slate-deep);
}

.section-dark .section-heading {
    color: var(--marble-white);
}

.clarity-heading {
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.35;
    color: var(--slate-deep);
}

.body-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.section-dark .body-text {
    color: var(--marble-white);
    opacity: 0.85;
}

.section-light .body-text {
    color: var(--slate-deep);
}

/* === Final Title === */
.final-title-block {
    margin: 2rem 0;
    text-align: center;
}

.final-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--marble-white);
    line-height: 1.1;
    display: inline-block;
    position: relative;
}

.final-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--rose-petal);
}

.final-dot {
    color: var(--rose-petal);
}

/* === Illustrations === */
.illustration {
    display: block;
    margin: 2rem auto;
}

.draw-illustration path,
.draw-illustration line,
.draw-illustration rect,
.draw-illustration ellipse,
.draw-illustration circle {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 1.2s ease-in-out;
}

.draw-illustration.drawn path,
.draw-illustration.drawn line,
.draw-illustration.drawn rect,
.draw-illustration.drawn ellipse,
.draw-illustration.drawn circle {
    stroke-dashoffset: 0;
}

.owl-illustration {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

/* === Annotations === */
.annotation {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--rose-petal);
    position: absolute;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.annotation-right {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.annotation-left {
    left: -40px;
    top: 40%;
    transform: translateY(-50%);
}

.annotation.visible {
    opacity: 1;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    60% {
        opacity: 1;
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce-in.visible {
    animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* === Nav Dot Pulse === */
@keyframes dotPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.nav-dot.pulse {
    animation: dotPulse 2s ease-in-out infinite;
}

/* === Responsive === */
@media (max-width: 768px) {
    #nav-dots {
        right: 10px;
        gap: 12px;
    }

    .section-frame {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .annotation-right {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -2rem;
        transform: translateX(-50%);
    }

    .annotation-left {
        left: 50%;
        top: auto;
        bottom: -2rem;
        transform: translateX(-50%);
    }

    .hero-row {
        flex-direction: column;
    }

    .corner-flourish {
        display: none;
    }
}
