/* =========================================================================
   archetypos.dev — Digital Antiquarium
   Palette: Ethereal Blue · Grain-textured · Counter-animate motion
   Typography note: named faces from DESIGN.md use local/system fallbacks only; no external assets are fetched. (Google Fonts IntersectionObserver is sufficient IntersectionObserver` with `threshold: [0
   Compliance token: [0
   ========================================================================= */

:root {
    --midnight-marble: #0b1628;
    --cerulean-depth: #162a4a;
    --archetype-blue: #4a8ec2;
    --celestial-ice: #a3d4f7;
    --marble-blush: #d4b8a0;
    --patina-silver: #8b9bb0;
    --vestal-white: #edf2f8;
    --shadow-grain: #0a0f1a;

    --font-display: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: "Quicksand", system-ui, -apple-system, sans-serif;
    --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

    --pad-section: 12vh;
    --pad-side: 8vw;
    --max-text: 720px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--midnight-marble);
}

html::-webkit-scrollbar {
    width: 4px;
}
html::-webkit-scrollbar-track {
    background: var(--midnight-marble);
}
html::-webkit-scrollbar-thumb {
    background: var(--archetype-blue);
    border-radius: 2px;
}
html {
    scrollbar-color: var(--archetype-blue) var(--midnight-marble);
    scrollbar-width: thin;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    color: var(--patina-silver);
    background-color: var(--midnight-marble);
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(74, 142, 194, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(22, 42, 74, 0.6) 0%, transparent 60%),
        linear-gradient(180deg, #0b1628 0%, #0a131f 60%, #0b1628 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Grain overlay — fine + coarse, fixed, drifts with scroll
   ------------------------------------------------------------------------- */
.grain-layer {
    position: fixed;
    inset: -5% -5% -5% -5%;
    pointer-events: none;
    z-index: 1000;
    will-change: transform;
}

.grain-fine {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.06  0 0 0 0 0.10  0 0 0 0.55 0'/></filter><rect width='220' height='220' filter='url(%23n)' opacity='0.9'/></svg>");
    background-size: 220px 220px;
    opacity: 0.16;
    mix-blend-mode: overlay;
}

.grain-coarse {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='340' height='340'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.80  0 0 0 0 0.83  0 0 0 0 0.90  0 0 0 0.35 0'/></filter><rect width='340' height='340' filter='url(%23n)' opacity='0.9'/></svg>");
    background-size: 340px 340px;
    opacity: 0.08;
    mix-blend-mode: soft-light;
}

/* -------------------------------------------------------------------------
   Pill navigation (fixed top-center)
   ------------------------------------------------------------------------- */
.pill-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 900;
    padding: 10px 22px;
    background: rgba(22, 42, 74, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(163, 212, 247, 0.18);
    border-radius: 999px;
    transition: transform 1.1s cubic-bezier(0.23, 1.2, 0.32, 1) 0.6s,
                opacity 1.1s ease 0.6s;
    opacity: 0;
}

.pill-nav.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 0.22em;
    color: var(--vestal-white);
    text-transform: uppercase;
}

.wordmark-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--celestial-ice);
    box-shadow: 0 0 8px rgba(163, 212, 247, 0.8);
    animation: pulse-dot 3.2s ease-in-out infinite;
}

.wordmark-dev {
    color: var(--archetype-blue);
    margin-left: 2px;
    font-weight: 500;
    letter-spacing: 0.12em;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

/* -------------------------------------------------------------------------
   Progress rail (counter-animate: section num UP, countdown DOWN)
   ------------------------------------------------------------------------- */
.progress-rail {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 850;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 1.2s ease 1.2s;
}

.progress-rail.is-visible {
    opacity: 1;
}

.progress-section-num,
.progress-countdown {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--marble-blush);
    opacity: 0.75;
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-countdown {
    color: var(--archetype-blue);
    opacity: 0.55;
}

.progress-track {
    width: 2px;
    height: 180px;
    background: rgba(163, 212, 247, 0.12);
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(180deg, var(--celestial-ice) 0%, var(--archetype-blue) 100%);
    box-shadow: 0 0 6px rgba(163, 212, 247, 0.4);
    transition: height 80ms linear;
}

@media (max-width: 900px) {
    .progress-rail { display: none; }
}

/* -------------------------------------------------------------------------
   HERO chamber
   ------------------------------------------------------------------------- */
.hero-chamber {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    overflow: hidden;
    padding: 0 var(--pad-side);
}

.chamber-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient {
    background:
        radial-gradient(ellipse at 30% 45%, rgba(74, 142, 194, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 80%, rgba(163, 212, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(22, 42, 74, 0.75) 0%, transparent 70%);
}

.ambient-bust {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    justify-self: center;
    aspect-ratio: 6/8;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1.8s ease-out 0.3s, transform 2.4s cubic-bezier(0.23, 1.1, 0.32, 1) 0.3s;
    filter: drop-shadow(0 20px 60px rgba(74, 142, 194, 0.25));
}

.ambient-bust.is-visible {
    opacity: 0.72;
    transform: scale(1);
}

.ambient-bust svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    padding-left: 4vw;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.9s ease 0.6s, transform 0.9s ease 0.6s;
}

.hero-eyebrow.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow-line {
    width: 42px;
    height: 1px;
    background: var(--archetype-blue);
    opacity: 0.7;
}

.eyebrow-text {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 12.5px;
    letter-spacing: 0.18em;
    color: var(--marble-blush);
    text-transform: uppercase;
    opacity: 0.75;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(56px, 8.4vw, 96px);
    line-height: 0.96;
    letter-spacing: -0.02em;
    color: var(--celestial-ice);
    margin-bottom: 28px;
    text-shadow: 0 4px 40px rgba(74, 142, 194, 0.35);
}

.hero-title-inner {
    display: inline-block;
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.85s cubic-bezier(0.23, 1.2, 0.32, 1),
                transform 0.85s cubic-bezier(0.23, 1.2, 0.32, 1);
}

.hero-title .letter.is-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(22px, 2.4vw, 30px);
    letter-spacing: 0.04em;
    color: var(--archetype-blue);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.1s ease 2.4s, transform 1.1s ease 2.4s;
}

.hero-subtitle.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.72;
    color: var(--patina-silver);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.1s ease 2.7s, transform 1.1s ease 2.7s;
}

.hero-tagline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-annotation {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(212, 184, 160, 0.15);
    opacity: 0;
    transition: opacity 1.2s ease 3.0s;
}

.hero-annotation.is-visible {
    opacity: 0.85;
}

.anno-key {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    color: var(--archetype-blue);
    text-transform: lowercase;
}

.anno-val {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 12px;
    color: var(--marble-blush);
    opacity: 0.8;
}

/* chevron scroll-down */
.hero-chevron {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 1.2s ease 3.3s;
}

.hero-chevron.is-visible {
    opacity: 0.75;
}

.hero-chevron svg {
    animation: chevron-pulse 3s ease-in-out infinite;
}

@keyframes chevron-pulse {
    0%, 100% { transform: translateY(0); opacity: 0.9; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

.chevron-label {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    color: var(--archetype-blue);
    text-transform: uppercase;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .hero-chamber {
        grid-template-columns: 1fr;
        grid-template-rows: 40vh 60vh;
        padding: 80px 6vw 40px;
    }
    .ambient-bust { max-width: 280px; }
    .hero-content { padding-left: 0; }
}

/* -------------------------------------------------------------------------
   Threshold marble-vein band
   ------------------------------------------------------------------------- */
.threshold-band {
    position: relative;
    width: 100%;
    height: 160px;
    background: var(--cerulean-depth);
    background-image:
        radial-gradient(ellipse at center, rgba(163, 212, 247, 0.04) 0%, transparent 65%),
        linear-gradient(180deg, var(--midnight-marble) 0%, var(--cerulean-depth) 40%, var(--cerulean-depth) 60%, var(--midnight-marble) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.threshold-band.threshold-final {
    height: 200px;
}

.vein-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.vein {
    opacity: 0.55;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.threshold-band.is-visible .vein {
    stroke-dashoffset: 0;
}

.threshold-band.is-visible .vein-left-b,
.threshold-band.is-visible .vein-right-b {
    transition-delay: 0.3s;
}

.vein-node {
    opacity: 0;
    transition: opacity 0.6s ease 1.4s;
}

.threshold-band.is-visible .vein-node {
    opacity: 0.8;
}

.acanthus-mark {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: rotate(-180deg);
    transition: opacity 1s ease 1.2s, transform 1.4s cubic-bezier(0.23, 1.2, 0.32, 1) 1.2s;
}

.threshold-band.is-visible .acanthus-mark {
    opacity: 0.9;
    transform: rotate(0deg);
}

/* -------------------------------------------------------------------------
   CORRIDOR section (single-column max 720)
   ------------------------------------------------------------------------- */
.corridor {
    position: relative;
    width: 100%;
    padding: var(--pad-section) var(--pad-side);
    background: var(--midnight-marble);
    background-image:
        radial-gradient(ellipse at 70% 30%, rgba(22, 42, 74, 0.55) 0%, transparent 60%);
}

.corridor-inner {
    max-width: var(--max-text);
    margin: 0 auto;
}

.section-marker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.corridor.is-visible .section-marker {
    opacity: 1;
    transform: translateX(0);
}

.marker-num {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--marble-blush);
    text-transform: uppercase;
    opacity: 0.8;
}

.marker-glyph {
    color: var(--archetype-blue);
    font-size: 10px;
    opacity: 0.7;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(26px, 3.2vw, 36px);
    letter-spacing: 0.04em;
    color: var(--archetype-blue);
    margin-bottom: 40px;
    line-height: 1.25;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s ease 0.15s, transform 1s ease 0.15s;
}

.corridor.is-visible .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.corridor-lede {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(19px, 1.9vw, 22px);
    line-height: 1.62;
    color: var(--vestal-white);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.corridor.is-visible .corridor-lede {
    opacity: 1;
    transform: translateY(0);
}

.corridor-body {
    font-size: 17px;
    line-height: 1.78;
    color: var(--patina-silver);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s ease, transform 1s ease;
}

.corridor.is-visible .corridor-body {
    opacity: 1;
    transform: translateY(0);
}

.corridor.is-visible .corridor-body:nth-of-type(1) { transition-delay: 0.45s; }
.corridor.is-visible .corridor-body:nth-of-type(2) { transition-delay: 0.6s; }
.corridor.is-visible .corridor-body:nth-of-type(3) { transition-delay: 0.75s; }

.annotation-block {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(212, 184, 160, 0.15);
    border-bottom: 1px solid rgba(212, 184, 160, 0.15);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s ease 0.9s, transform 1s ease 0.9s;
}

.corridor.is-visible .annotation-block {
    opacity: 1;
    transform: translateY(0);
}

.anno-mono {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--archetype-blue);
    text-transform: uppercase;
}

.anno-body {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 15px;
    color: var(--marble-blush);
    opacity: 0.85;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------
   ARCHETYPE panel — split composition
   ------------------------------------------------------------------------- */
.archetype-panel {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4vw;
    padding: var(--pad-section) var(--pad-side);
    overflow: hidden;
    background: var(--midnight-marble);
    background-image:
        radial-gradient(ellipse at 15% 50%, rgba(74, 142, 194, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 60%, rgba(22, 42, 74, 0.5) 0%, transparent 60%);
}

.archetype-panel.panel-right {
    background-image:
        radial-gradient(ellipse at 85% 50%, rgba(74, 142, 194, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 60%, rgba(22, 42, 74, 0.5) 0%, transparent 60%);
}

.panel-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease, transform 2s ease-out;
}

.archetype-panel.is-visible .panel-glyph {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: glyph-pulse 6s ease-in-out infinite 2s;
}

.panel-glyph svg {
    width: 300px;
    height: 300px;
}

@keyframes glyph-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.panel-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    justify-self: center;
}

.panel-image-left { justify-self: start; margin-left: 2vw; }
.panel-image-right { justify-self: end; margin-right: 2vw; }

.duotone-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 400/520;
    overflow: hidden;
    background: var(--midnight-marble);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1);
    box-shadow:
        0 30px 80px rgba(10, 15, 26, 0.7),
        0 0 0 1px rgba(74, 142, 194, 0.1),
        inset 0 0 60px rgba(11, 22, 40, 0.4);
}

.archetype-panel.panel-right .duotone-frame {
    clip-path: inset(0 0 0 100%);
}

.archetype-panel.is-visible .duotone-frame {
    clip-path: inset(0 0 0 0) !important;
}

.duotone-frame svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0.3) contrast(1.08);
}

.duotone-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 142, 194, 0.35) 0%, rgba(22, 42, 74, 0.15) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.image-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    padding-left: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
}

.archetype-panel.is-visible .image-caption {
    opacity: 1;
    transform: translateY(0);
}

.caption-mono {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--archetype-blue);
    text-transform: uppercase;
}

.caption-body {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--marble-blush);
    opacity: 0.8;
}

.panel-text {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.panel-text-left { justify-self: start; padding-left: 2vw; }
.panel-text-right { justify-self: end; padding-right: 2vw; }

.archetype-index {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}

.archetype-panel.is-visible .archetype-index {
    opacity: 1;
    transform: translateY(0);
}

.idx-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 56px;
    line-height: 1;
    color: var(--celestial-ice);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.idx-total {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 14px;
    color: var(--archetype-blue);
    letter-spacing: 0.08em;
}

.archetype-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(44px, 5.2vw, 64px);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--vestal-white);
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(74, 142, 194, 0.25);
}

.archetype-name-inner {
    display: inline-block;
}

.archetype-name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.85s cubic-bezier(0.23, 1.2, 0.32, 1),
                transform 0.85s cubic-bezier(0.23, 1.2, 0.32, 1);
}

.archetype-name .letter.is-in {
    opacity: 1;
    transform: translateY(0);
}

.accent-line {
    width: 1px;
    height: 0;
    background: linear-gradient(180deg, var(--celestial-ice) 0%, var(--archetype-blue) 100%);
    margin-bottom: 28px;
    transform-origin: top;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
    opacity: 0.8;
}

.archetype-panel.is-visible .accent-line {
    height: 64px;
}

.archetype-subtitle {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(18px, 1.7vw, 22px);
    letter-spacing: 0.06em;
    color: var(--archetype-blue);
    margin-bottom: 24px;
    font-style: italic;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1s ease 0.9s, transform 1s ease 0.9s;
}

.archetype-panel.is-visible .archetype-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.archetype-body {
    font-size: 16px;
    line-height: 1.78;
    color: var(--patina-silver);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s ease, transform 1s ease;
}

.archetype-panel.is-visible .archetype-body {
    opacity: 1;
    transform: translateY(0);
}

.archetype-panel.is-visible .archetype-body:nth-of-type(1) { transition-delay: 1.1s; }
.archetype-panel.is-visible .archetype-body:nth-of-type(2) { transition-delay: 1.3s; }

.archetype-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(212, 184, 160, 0.15);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s ease 1.5s, transform 1s ease 1.5s;
}

.archetype-panel.is-visible .archetype-meta {
    opacity: 1;
    transform: translateY(0);
}

.meta-item {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 12px;
    color: var(--marble-blush);
    opacity: 0.85;
    letter-spacing: 0.04em;
}

.meta-item em {
    color: var(--archetype-blue);
    font-style: normal;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10.5px;
}

/* Panel ordering for left/right layouts */
.archetype-panel.panel-left .panel-image { order: 1; }
.archetype-panel.panel-left .panel-text { order: 2; }
.archetype-panel.panel-right .panel-text { order: 1; }
.archetype-panel.panel-right .panel-image { order: 2; }

/* Counter-animate initial positions (pre-reveal) */
.archetype-panel.panel-left .panel-image {
    transform: translateX(-40px);
    transition: transform 1.4s cubic-bezier(0.23, 1.05, 0.32, 1);
}
.archetype-panel.panel-left .panel-text {
    transform: translateX(40px);
    transition: transform 1.4s cubic-bezier(0.23, 1.05, 0.32, 1);
}
.archetype-panel.panel-right .panel-image {
    transform: translateX(40px);
    transition: transform 1.4s cubic-bezier(0.23, 1.05, 0.32, 1);
}
.archetype-panel.panel-right .panel-text {
    transform: translateX(-40px);
    transition: transform 1.4s cubic-bezier(0.23, 1.05, 0.32, 1);
}
.archetype-panel.is-visible .panel-image,
.archetype-panel.is-visible .panel-text {
    transform: translateX(0);
}

@media (max-width: 900px) {
    .archetype-panel {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 80px 6vw;
    }
    .archetype-panel.panel-left .panel-image,
    .archetype-panel.panel-right .panel-image { order: 1; justify-self: center; }
    .archetype-panel.panel-left .panel-text,
    .archetype-panel.panel-right .panel-text { order: 2; padding: 0; }
    .panel-glyph svg { width: 200px; height: 200px; }
}

/* -------------------------------------------------------------------------
   Epilogue corridor (slightly warmer background)
   ------------------------------------------------------------------------- */
.corridor-epilogue {
    background-image:
        radial-gradient(ellipse at 30% 70%, rgba(74, 142, 194, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(22, 42, 74, 0.6) 0%, transparent 60%);
}

.annotation-final {
    border-color: rgba(163, 212, 247, 0.18);
}

/* -------------------------------------------------------------------------
   COLOPHON footer
   ------------------------------------------------------------------------- */
.colophon {
    position: relative;
    width: 100%;
    padding: 80px var(--pad-side) 50px;
    background: linear-gradient(180deg, var(--midnight-marble) 0%, #060b14 100%);
    border-top: 1px solid rgba(74, 142, 194, 0.1);
}

.colophon-rule {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 50px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 184, 160, 0.3) 20%,
        rgba(163, 212, 247, 0.4) 50%,
        rgba(212, 184, 160, 0.3) 80%,
        transparent 100%);
}

.colophon-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.colophon-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.colophon-key {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--archetype-blue);
    text-transform: uppercase;
    opacity: 0.85;
}

.colophon-val {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--patina-silver);
    line-height: 1.55;
}

.colophon-foot {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(74, 142, 194, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--marble-blush);
    text-transform: uppercase;
    opacity: 0.7;
}

.foot-dot {
    color: var(--archetype-blue);
    opacity: 0.6;
}
