/* licensor.directory — Retro-Futuristic Registry */

:root {
    --color-foundation: #0B1D3A;
    --color-primary: #122848;
    --color-warm-dark: #1A2D4A;
    --color-deepest: #081428;
    --color-accent: #D4845A;
    --color-accent-light: #E8B796;
    --color-text-secondary: #B8C4D8;
    --color-text-primary: #EDF1F7;
    --color-divider: rgba(255, 255, 255, 0.12);
    --color-hover-glow: rgba(212, 132, 90, 0.15);
    --radius-card: 16px;
    --radius-gallery: 12px;
    --shadow-rest: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);
    --transition-lift: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    color: var(--color-text-secondary);
    background: var(--color-foundation);
    line-height: 1.85;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* ---- Scenes ---- */
.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px clamp(2rem, 4vw, 6rem);
}

/* ---- Section dividers ---- */
.section-divider {
    width: 100%;
    height: 1px;
    background: var(--color-divider);
}

/* ---- Reveal ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Scene headings ---- */
.scene-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* ---- Body text ---- */
.body-text {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    color: rgba(184, 196, 216, 0.9);
    margin-bottom: 1.5rem;
    max-width: 42em;
}

/* ============ VESTIBULE ============ */
.scene-vestibule {
    background: linear-gradient(175deg, #0B1D3A 0%, #122848 55%, #1A2D4A 100%);
    flex-direction: column;
    text-align: center;
}

.drift-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.drift-ellipse {
    position: absolute;
    animation: drift 30s ease-in-out infinite;
}

.drift-ellipse:nth-child(1) { top: 20%; left: 30%; }
.drift-ellipse:nth-child(2) { top: 50%; left: 55%; animation-duration: 25s; animation-delay: -8s; }
.drift-ellipse:nth-child(3) { top: 35%; left: 15%; animation-duration: 35s; animation-delay: -15s; }

@keyframes drift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(20px, -15px); }
    50%  { transform: translate(-10px, 10px); }
    75%  { transform: translate(15px, 20px); }
    100% { transform: translate(0, 0); }
}

.vestibule-content {
    position: relative;
    z-index: 1;
}

.vestibule-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 7vw + 0.5rem, 6rem);
    letter-spacing: 0.04em;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.vestibule-desc {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: var(--color-text-secondary);
    opacity: 0.8;
}

.chevron-wrap {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chevron {
    animation: chevronBreathe 2.4s ease-in-out infinite;
}

.chevron:hover {
    animation-play-state: paused;
}

@keyframes chevronBreathe {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

.chevron-label {
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0.5;
}

/* ============ INDEX HALL ============ */
.scene-index {
    background: var(--color-primary);
}

.index-layout {
    display: flex;
    gap: 3rem;
    max-width: 900px;
    align-items: center;
}

.index-emblem {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

.seal-rotate {
    animation: sealSpin 67s linear infinite;
}

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

.index-text {
    flex: 1;
}

/* ============ RECORD VAULT ============ */
.scene-vault {
    background: var(--color-primary);
}

.vault-content {
    max-width: 1000px;
    width: 100%;
}

.record-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(180deg, rgba(212, 132, 90, 0.03) 0%, rgba(212, 132, 90, 0) 100%);
    border: 1px solid rgba(212, 132, 90, 0.2);
    border-radius: var(--radius-card);
    padding: 2rem;
    margin-bottom: 48px;
    box-shadow: var(--shadow-rest);
    transition: transform var(--transition-lift), box-shadow var(--transition-lift), background var(--transition-lift);
    box-shadow: inset 0 0 60px rgba(212, 132, 90, 0.04);
}

.record-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover), inset 0 0 60px rgba(212, 132, 90, 0.04);
    background: linear-gradient(180deg, rgba(212, 132, 90, 0.06) 0%, rgba(212, 132, 90, 0) 100%);
}

.card-emblem {
    flex-shrink: 0;
}

.card-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============ READING ROOM ============ */
.scene-reading {
    background: var(--color-warm-dark);
}

.reading-content {
    max-width: 720px;
    width: 100%;
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 64px;
    align-items: flex-start;
}

.step-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 4rem);
    color: var(--color-accent);
    line-height: 1;
    flex-shrink: 0;
    min-width: 60px;
}

.step-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

/* ============ ARCHIVE GALLERY ============ */
.scene-gallery {
    background: radial-gradient(ellipse at 50% 30%, #122848 0%, #081428 70%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 700px;
}

.gallery-piece {
    border-radius: var(--radius-gallery);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-piece:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.gallery-piece:hover .seal-rotate,
.gallery-piece:hover .seal-rotate-slow {
    animation-duration: 30s;
}

.seal-rotate-slow {
    animation: sealSpin 90s linear infinite;
}

.gallery-piece svg {
    width: 100%;
    height: 100%;
}

/* ============ INSCRIPTION ============ */
.scene-inscription {
    background: var(--color-foundation);
    flex-direction: column;
    text-align: center;
    padding-bottom: 120px;
}

.inscription-content {
    max-width: 500px;
}

.inscription-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.inscription-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.emblem-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.micro-emblem {
    opacity: 0.6;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease;
}

.micro-emblem:hover {
    transform: translateY(-3px);
    opacity: 1;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .index-layout {
        flex-direction: column;
    }

    .index-emblem {
        flex-basis: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .record-card {
        flex-direction: column;
        text-align: center;
    }

    .step {
        flex-direction: column;
        gap: 8px;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .drift-ellipse {
        animation: none;
    }

    .seal-rotate,
    .seal-rotate-slow {
        animation: none;
    }

    .chevron {
        animation: none;
        opacity: 0.6;
    }
}
