/* layer2.id — Flat-Design Civic Procession */

:root {
    --aged-parchment: #F0EAE0;
    --charcoal-slate: #2C2C34;
    --ink-walnut: #3B322A;
    --bone-linen: #E8E0D4;
    --patina-brass: #9B8B6E;
    --faded-fresco: #C4B39A;
    --slate-mauve: #6B6070;
    --venetian-terre: #A0705A;
}

/* Enforce flatness */
* {
    box-shadow: none !important;
    text-shadow: none !important;
}

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

body {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    color: var(--ink-walnut);
    background: var(--aged-parchment);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* ---- Sections ---- */
.section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ============ 1: THE SEAL ============ */
.section-seal {
    min-height: 100vh;
    background: var(--aged-parchment);
}

.logotype {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    color: var(--ink-walnut);
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 2s ease;
    margin-top: -10vh;
}

.logotype.visible {
    opacity: 1;
}

.brass-rule {
    width: 0;
    height: 1px;
    background: var(--patina-brass);
    margin-top: 2rem;
    transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.brass-rule.extended {
    width: 120px;
}

.brass-rule-centered {
    width: 120px;
    margin: 2rem auto 0;
    transition: none;
}

/* ============ 2: THE REGISTRY HALL ============ */
.section-registry {
    min-height: 100vh;
    background: var(--aged-parchment);
    padding: 0 6vw;
}

.column-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0.5px;
    background: var(--slate-mauve);
    opacity: 0.3;
}

.column-left { left: 15vw; }
.column-right { right: 15vw; }

.registry-text {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.5;
    letter-spacing: 0.12em;
    color: var(--ink-walnut);
    max-width: 520px;
    text-align: center;
}

/* ============ 3: THE ICON PROCESSION ============ */
.section-procession {
    min-height: 150vh;
    background: var(--charcoal-slate);
    padding: 15vh 0;
    gap: 20vh;
}

.icon-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.icon-pair.revealed {
    opacity: 1;
    transform: scale(1);
}

.icon-frame {
    transition: transform 0.3s ease;
}

.icon-pair:hover .icon-frame {
    transform: scale(1.12);
}

.icon-pair:hover .icon-label {
    color: var(--patina-brass);
}

.icon-label {
    font-family: 'Cormorant SC', serif;
    font-weight: 600;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bone-linen);
    transition: color 0.3s ease;
}

/* ============ 4: THE CARTOUCHE ============ */
.section-cartouche {
    min-height: 100vh;
    background: var(--charcoal-slate);
}

.sigil {
    width: 40vw;
    max-width: 400px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sigil.revealed {
    opacity: 1;
    transform: scale(1);
}

.sigil-svg {
    width: 100%;
    height: auto;
}

/* ============ 5: THE INSCRIPTION ============ */
.section-inscription {
    min-height: 80vh;
    background: var(--aged-parchment);
    text-align: center;
    padding: 0 6vw;
}

.inscription-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--venetian-terre);
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 12ch;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.inscription-text.visible {
    opacity: 1;
}

.colophon-seal {
    font-family: 'Cormorant SC', serif;
    font-weight: 600;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--patina-brass);
    margin-top: 2rem;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .section-procession {
        padding: 10vh 0;
        gap: 12vh;
    }

    .column-line {
        display: none;
    }

    .sigil {
        width: 70vw;
    }

    .logotype {
        margin-top: 0;
    }
}

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

    .logotype {
        opacity: 1;
    }

    .brass-rule {
        width: 120px;
    }

    .icon-pair {
        opacity: 1;
        transform: scale(1);
    }

    .sigil {
        opacity: 1;
        transform: scale(1);
    }

    .inscription-text {
        opacity: 1;
    }
}
