/* =========================================================================
   gamelicensor.com — Stylesheet
   A vaporwave-tinted scholarly vertical timeline.
   Palette: sunset-warm. Typography: Space Grotesk / Libre Baskerville / IBM Plex Mono.
   ========================================================================= */

:root {
    --c-accent-amber: #f5a762;      /* Sunset Amber - primary accent */
    --c-accent-coral: #e8845a;      /* Burnt Coral - spine, links */
    --c-accent-lavender: #c8a2d4;   /* Dusk Lavender - cool accent */
    --c-bg-deep: #1e1a2e;           /* Twilight Indigo */
    --c-bg-warm: #3d2233;           /* Evening Plum */
    --c-bg-cool: #2a2640;           /* Night Violet */
    --c-text-primary: #e2d6c8;      /* Warm Parchment */
    --c-text-muted: #d4c8b8;        /* Warm cream */
    --c-meta: #a08878;              /* Dusty terracotta */

    --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --spine-x: 15%;
    --node-size: 18px;
    --node-size-active: 24px;
    --bar-height: 48px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.72;
    color: var(--c-text-primary);
    background-color: var(--c-bg-deep);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* -------------------------------------------------------------------------
   Perspective grid floor (vaporwave infinite floor)
   ------------------------------------------------------------------------- */

.grid-floor {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--c-bg-deep);
}

.grid-floor::before {
    content: "";
    position: absolute;
    inset: -10% -10% 0 -10%;
    height: 120%;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(232, 132, 90, 0.06) 0px,
            rgba(232, 132, 90, 0.06) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(232, 132, 90, 0.06) 0px,
            rgba(232, 132, 90, 0.06) 1px,
            transparent 1px,
            transparent 40px
        );
    transform: perspective(600px) rotateX(60deg);
    transform-origin: 50% 100%;
    animation: grid-drift 30s linear infinite;
}

.grid-floor::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(245, 167, 98, 0.08) 0%,
        rgba(200, 162, 212, 0.05) 25%,
        transparent 55%
    );
    pointer-events: none;
}

@keyframes grid-drift {
    0% { background-position-y: 0; }
    100% { background-position-y: 80px; }
}

/* -------------------------------------------------------------------------
   Horizon Bar
   ------------------------------------------------------------------------- */

.horizon-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--bar-height);
    background-color: rgba(245, 167, 98, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 132, 90, 0.18);
    z-index: 100;
}

.horizon-inner {
    max-width: 100%;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--c-text-primary);
}

.wordmark-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--c-accent-amber);
    box-shadow: 0 0 12px rgba(245, 167, 98, 0.6);
    animation: dot-pulse 3s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.era-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.era-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--c-meta);
    text-transform: uppercase;
}

.era-select {
    background-color: rgba(30, 26, 46, 0.5);
    color: var(--c-accent-amber);
    border: 1px solid rgba(245, 167, 98, 0.3);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 4px 10px;
    letter-spacing: 0.08em;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--c-accent-amber) 50%),
                      linear-gradient(135deg, var(--c-accent-amber) 50%, transparent 50%);
    background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 24px;
    transition: border-color 200ms ease, color 200ms ease;
}

.era-select:hover {
    border-color: var(--c-accent-amber);
}

.era-select option {
    background-color: var(--c-bg-deep);
    color: var(--c-accent-amber);
}

/* -------------------------------------------------------------------------
   Timeline stage
   ------------------------------------------------------------------------- */

.timeline-stage {
    position: relative;
    padding-top: calc(var(--bar-height) + 48px);
    padding-bottom: 240px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.timeline-spine {
    position: absolute;
    top: calc(var(--bar-height) + 120px);
    left: var(--spine-x);
    bottom: 200px;
    width: 2px;
    pointer-events: none;
    z-index: 1;
}

.spine-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--c-accent-coral) 5%,
        var(--c-accent-coral) 95%,
        transparent 100%
    );
    animation: spine-pulse 3s ease-in-out infinite;
}

@keyframes spine-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* -------------------------------------------------------------------------
   Intro block
   ------------------------------------------------------------------------- */

.intro-block {
    position: relative;
    padding: 60px 32px 80px calc(var(--spine-x) + 60px);
    max-width: 760px;
    z-index: 2;
}

.intro-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--c-meta);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.intro-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--c-accent-amber);
    margin-bottom: 28px;
}

.intro-lede {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: var(--c-text-primary);
    max-width: 62ch;
    margin-bottom: 32px;
}

.intro-lede em {
    color: var(--c-accent-lavender);
    font-style: italic;
}

.intro-footnote {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--c-meta);
    padding-top: 20px;
    border-top: 1px solid rgba(232, 132, 90, 0.15);
    max-width: 60ch;
}

.intro-footnote em {
    color: var(--c-accent-lavender);
    font-style: italic;
}

.footnote-marker {
    color: var(--c-accent-coral);
    font-size: 1.1rem;
    font-family: var(--font-serif);
}

/* -------------------------------------------------------------------------
   Era section
   ------------------------------------------------------------------------- */

.era-section {
    position: relative;
    padding: 40px 0 40px 0;
}

.era-ghost {
    position: absolute;
    top: 40px;
    left: calc(var(--spine-x) + 40px);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(6rem, 15vw, 12rem);
    letter-spacing: -0.04em;
    line-height: 0.85;
    color: rgba(245, 167, 98, 0.08);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Timeline nodes
   ------------------------------------------------------------------------- */

.timeline-node {
    position: relative;
    padding: 40px 32px 24px calc(var(--spine-x) + 60px);
    z-index: 2;
}

.node-marker {
    position: absolute;
    top: 48px;
    left: calc(var(--spine-x) - 8px);
    width: var(--node-size);
    height: var(--node-size);
    border-radius: 50%;
    background-color: var(--c-accent-amber);
    border: 2px solid var(--c-accent-coral);
    z-index: 3;
    transition: width 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 400ms ease,
                top 400ms ease,
                left 400ms ease;
}

.timeline-node.active .node-marker {
    width: var(--node-size-active);
    height: var(--node-size-active);
    box-shadow: 0 0 20px rgba(245, 167, 98, 0.6),
                0 0 40px rgba(245, 167, 98, 0.25);
    top: 45px;
    left: calc(var(--spine-x) - 11px);
}

.node-stamp {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--c-meta);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.node-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--c-accent-amber);
    max-width: 24ch;
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */

.card {
    position: relative;
    margin: 32px 32px 80px calc(var(--spine-x) + 100px);
    max-width: 420px;
    height: 520px;
    perspective: 1600px;
    z-index: 2;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.in-view {
    opacity: 1;
    transform: translateX(0);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 2px;
    padding: 32px 30px 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(245, 167, 98, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(245, 167, 98, 0.06);
}

/* Warm card (front is warm plum; back is cool) */
.warm-card .card-front {
    background-color: var(--c-bg-warm);
    color: var(--c-text-primary);
    background-image: linear-gradient(
        155deg,
        rgba(245, 167, 98, 0.06) 0%,
        rgba(61, 34, 51, 0) 40%
    );
}

.warm-card .card-back {
    background-color: var(--c-bg-cool);
    color: var(--c-text-primary);
    transform: rotateY(180deg);
}

/* Cool card (front is cool violet; back is warm) */
.cool-card .card-front {
    background-color: var(--c-bg-cool);
    color: var(--c-text-primary);
    background-image: linear-gradient(
        155deg,
        rgba(200, 162, 212, 0.06) 0%,
        rgba(42, 38, 64, 0) 40%
    );
}

.cool-card .card-back {
    background-color: var(--c-bg-warm);
    color: var(--c-text-primary);
    transform: rotateY(180deg);
}

/* Card front content */
.card-front-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--c-meta);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 167, 98, 0.12);
    text-transform: uppercase;
    gap: 16px;
}

.card-ref {
    color: var(--c-accent-coral);
}

.warm-card .card-tag {
    color: var(--c-accent-amber);
}

.cool-card .card-tag {
    color: var(--c-accent-lavender);
}

.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.warm-card .card-title {
    color: var(--c-accent-amber);
}

.cool-card .card-title {
    color: var(--c-text-primary);
}

.card-summary {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.66;
    color: var(--c-text-primary);
    flex-grow: 1;
}

.card-summary em {
    font-style: italic;
}

.warm-card .card-summary em {
    color: var(--c-accent-amber);
}

.cool-card .card-summary em {
    color: var(--c-accent-lavender);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--c-meta);
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(245, 167, 98, 0.1);
    text-transform: uppercase;
    gap: 12px;
}

.card-flip-cue {
    color: var(--c-accent-coral);
    transition: color 200ms ease;
}

.card:hover .card-flip-cue {
    color: var(--c-accent-amber);
}

.card:hover .card-front,
.card:hover .card-back {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45),
                0 0 40px rgba(245, 167, 98, 0.12),
                inset 0 1px 0 rgba(245, 167, 98, 0.12);
}

/* Card back content */
.card-back-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.card-back-content::-webkit-scrollbar {
    width: 3px;
}

.card-back-content::-webkit-scrollbar-track {
    background: transparent;
}

.card-back-content::-webkit-scrollbar-thumb {
    background-color: rgba(232, 132, 90, 0.3);
    border-radius: 2px;
}

.back-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent-amber);
    margin-bottom: 10px;
    margin-top: 18px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(245, 167, 98, 0.18);
}

.cool-card .back-title {
    color: var(--c-accent-amber);
}

.warm-card .back-title {
    color: var(--c-accent-lavender);
}

.back-title:first-child {
    margin-top: 0;
}

.card-back-content p {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    line-height: 1.68;
    color: var(--c-text-primary);
    margin-bottom: 14px;
}

.card-back-content strong {
    color: var(--c-accent-amber);
    font-weight: 700;
}

.cool-card .card-back-content strong {
    color: var(--c-accent-lavender);
}

.card-back-content em {
    color: var(--c-accent-coral);
    font-style: italic;
}

.back-citations {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(200, 162, 212, 0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.citation {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--c-meta);
}

.back-cue {
    position: absolute;
    bottom: 4px;
    right: 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--c-accent-coral);
    text-transform: uppercase;
    padding-top: 8px;
}

/* -------------------------------------------------------------------------
   Seal collage (card back decoration)
   ------------------------------------------------------------------------- */

.seal-collage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.seal {
    position: absolute;
    width: var(--seal-size);
    height: var(--seal-size);
    left: var(--seal-x);
    top: var(--seal-y);
    transform: rotate(var(--seal-rot));
    border: 1px solid rgba(200, 162, 212, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.seal::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(200, 162, 212, 0.15);
    border-radius: 50%;
}

.seal-text {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.2em;
    color: rgba(200, 162, 212, 0.55);
    text-transform: uppercase;
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Cityscape dividers (inter-era)
   ------------------------------------------------------------------------- */

.cityscape-divider {
    position: relative;
    height: 160px;
    margin: 20px 0 40px 0;
    overflow: hidden;
    pointer-events: none;
}

.city-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(245, 167, 98, 0.1) 0%,
        rgba(232, 132, 90, 0.05) 30%,
        transparent 70%
    );
}

.city-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background-color: var(--c-bg-cool);
}

/* Each skyline uses a unique clip-path */
.akihabara .city-silhouette {
    /* dense, narrow towers evocative of Tokyo */
    clip-path: polygon(
        0% 100%, 0% 70%, 2% 70%, 2% 55%, 5% 55%, 5% 35%, 8% 35%, 8% 25%,
        11% 25%, 11% 50%, 14% 50%, 14% 20%, 17% 20%, 17% 45%, 20% 45%,
        20% 15%, 23% 15%, 23% 40%, 26% 40%, 26% 10%, 29% 10%, 29% 35%,
        32% 35%, 32% 60%, 35% 60%, 35% 25%, 38% 25%, 38% 45%, 41% 45%,
        41% 15%, 44% 15%, 44% 40%, 47% 40%, 47% 20%, 50% 20%, 50% 55%,
        53% 55%, 53% 30%, 56% 30%, 56% 10%, 59% 10%, 59% 35%, 62% 35%,
        62% 50%, 65% 50%, 65% 25%, 68% 25%, 68% 45%, 71% 45%, 71% 15%,
        74% 15%, 74% 50%, 77% 50%, 77% 30%, 80% 30%, 80% 55%, 83% 55%,
        83% 20%, 86% 20%, 86% 45%, 89% 45%, 89% 25%, 92% 25%, 92% 50%,
        95% 50%, 95% 35%, 98% 35%, 98% 65%, 100% 65%, 100% 100%
    );
}

.sf .city-silhouette {
    /* broader, mixed-height silhouette */
    clip-path: polygon(
        0% 100%, 0% 75%, 4% 75%, 4% 55%, 9% 55%, 9% 40%, 14% 40%, 14% 60%,
        18% 60%, 18% 30%, 24% 30%, 24% 15%, 30% 15%, 30% 45%, 36% 45%,
        36% 60%, 42% 60%, 42% 20%, 48% 20%, 48% 35%, 54% 35%, 54% 50%,
        60% 50%, 60% 25%, 66% 25%, 66% 55%, 72% 55%, 72% 40%, 78% 40%,
        78% 60%, 84% 60%, 84% 30%, 90% 30%, 90% 55%, 94% 55%, 94% 70%,
        100% 70%, 100% 100%
    );
}

.seoul .city-silhouette {
    /* modern hyper-dense Seoul with tall towers */
    clip-path: polygon(
        0% 100%, 0% 65%, 3% 65%, 3% 40%, 6% 40%, 6% 20%, 9% 20%, 9% 5%,
        12% 5%, 12% 35%, 16% 35%, 16% 55%, 20% 55%, 20% 10%, 24% 10%,
        24% 40%, 28% 40%, 28% 25%, 32% 25%, 32% 50%, 36% 50%, 36% 15%,
        40% 15%, 40% 35%, 44% 35%, 44% 55%, 48% 55%, 48% 8%, 52% 8%,
        52% 30%, 56% 30%, 56% 50%, 60% 50%, 60% 20%, 64% 20%, 64% 40%,
        68% 40%, 68% 12%, 72% 12%, 72% 32%, 76% 32%, 76% 55%, 80% 55%,
        80% 25%, 84% 25%, 84% 5%, 88% 5%, 88% 35%, 92% 35%, 92% 50%,
        96% 50%, 96% 20%, 100% 20%, 100% 100%
    );
}

.city-windows {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
}

.city-window {
    position: absolute;
    width: 3px;
    height: 4px;
    background-color: var(--c-accent-amber);
    animation-name: window-twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes window-twinkle {
    0%, 100% { opacity: var(--twinkle-min, 0.2); }
    50% { opacity: var(--twinkle-max, 0.65); }
}

/* -------------------------------------------------------------------------
   Colophon
   ------------------------------------------------------------------------- */

.colophon {
    position: relative;
    margin-top: 120px;
    padding: 60px 32px 40px calc(var(--spine-x) + 60px);
    max-width: 700px;
    z-index: 2;
}

.colophon-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--c-accent-coral);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.colophon-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--c-text-primary);
    margin-bottom: 24px;
}

.colophon-text em {
    color: var(--c-accent-lavender);
    font-style: italic;
}

.colophon-cite {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--c-meta);
    padding-top: 18px;
    border-top: 1px solid rgba(232, 132, 90, 0.15);
}

/* -------------------------------------------------------------------------
   Cityscape footer (permanent bottom decoration)
   ------------------------------------------------------------------------- */

.cityscape-footer {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    margin-top: 60px;
}

.skyline-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(245, 167, 98, 0.18) 0%,
        rgba(232, 132, 90, 0.08) 30%,
        rgba(200, 162, 212, 0.04) 60%,
        transparent 100%
    );
}

.skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
}

.skyline-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-color: var(--c-bg-cool);
    /* Composite full-horizon skyline with 24 building peaks */
    clip-path: polygon(
        0% 100%, 0% 70%, 2% 70%, 2% 55%, 4% 55%, 4% 45%, 6% 45%, 6% 60%,
        8% 60%, 8% 30%, 11% 30%, 11% 50%, 14% 50%, 14% 20%, 17% 20%,
        17% 40%, 20% 40%, 20% 55%, 23% 55%, 23% 25%, 26% 25%, 26% 10%,
        29% 10%, 29% 35%, 32% 35%, 32% 50%, 35% 50%, 35% 20%, 38% 20%,
        38% 45%, 41% 45%, 41% 60%, 44% 60%, 44% 28%, 47% 28%, 47% 15%,
        50% 15%, 50% 40%, 53% 40%, 53% 55%, 56% 55%, 56% 22%, 59% 22%,
        59% 45%, 62% 45%, 62% 58%, 65% 58%, 65% 30%, 68% 30%, 68% 12%,
        71% 12%, 71% 38%, 74% 38%, 74% 55%, 77% 55%, 77% 22%, 80% 22%,
        80% 48%, 83% 48%, 83% 60%, 86% 60%, 86% 28%, 89% 28%, 89% 15%,
        92% 15%, 92% 42%, 95% 42%, 95% 58%, 98% 58%, 98% 32%, 100% 32%,
        100% 100%
    );
}

.skyline-windows {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
}

.skyline-windows .city-window {
    position: absolute;
    width: 3px;
    height: 4px;
    background-color: var(--c-accent-amber);
    animation-name: window-twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

/* -------------------------------------------------------------------------
   Mobile adjustments
   ------------------------------------------------------------------------- */

@media (max-width: 760px) {
    :root {
        --spine-x: 8%;
    }

    .intro-block,
    .timeline-node {
        padding-left: calc(var(--spine-x) + 30px);
        padding-right: 20px;
    }

    .card {
        margin: 24px 20px 60px calc(var(--spine-x) + 30px);
        max-width: calc(100vw - var(--spine-x) - 60px);
        height: 560px;
    }

    .era-ghost {
        left: calc(var(--spine-x) + 20px);
        font-size: clamp(4rem, 22vw, 8rem);
    }

    .colophon {
        padding-left: calc(var(--spine-x) + 30px);
    }

    .horizon-inner {
        padding: 0 14px;
    }

    .era-label {
        display: none;
    }

    .wordmark {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .card {
        height: 600px;
    }

    .card-front,
    .card-back {
        padding: 24px 22px;
    }

    .node-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .grid-floor::before,
    .spine-line,
    .wordmark-dot,
    .city-window,
    .skyline-windows .city-window {
        animation: none;
    }
    .card {
        transition: opacity 200ms ease;
    }
}
