/* ===================================================================
   footprint.broker — Mid-century corporate retrospective museum
   Triadic palette · Timeline-vertical · Tilt-3D · Mixed-media collage
   Motion terms: IntersectionObserver exclusively for triggering animations. Each milestone has its own observer instance with appropriate thresholds. IntersectionObserver or `scroll` event with requestAnimationFrame setup and scroll-position calculation for the timeline spine. IntersectionObserver when they enter the viewport. IntersectionObserver with `threshold: 0.5`. Source Sans 3 (Google Fonts
   =================================================================== */

:root {
    --c-primary: #264653;
    --c-deep: #3d3228;
    --c-teal: #2a9d8f;
    --c-orange: #e76f51;
    --c-cream: #faf6ef;
    --c-umber: #8a7b6b;
    --c-charcoal: #1d1a16;
    --c-gold: #e9c46a;
    --c-walnut: #5b4a3f;

    --font-display: 'Nunito', system-ui, sans-serif;
    --font-body: 'Source Sans 3', 'Inter', system-ui, sans-serif;
    --font-mono: 'Courier Prime', 'space', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--c-cream);
    color: var(--c-deep);
    font-family: var(--font-body);
    line-height: 1.75;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(233,196,106,0.07), transparent 40%),
        radial-gradient(circle at 88% 78%, rgba(42,157,143,0.05), transparent 45%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(91,74,63,0.012) 2px, rgba(91,74,63,0.012) 3px);
}

/* ============== HERO ============== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0.04;
    pointer-events: none;
    animation: subtlePulse 8s ease-in-out infinite;
}

.hero-watermark .seal-text {
    font-family: var(--font-mono);
    font-size: 14px;
    fill: var(--c-deep);
    letter-spacing: 0.32em;
}

.hero-watermark .seal-monogram {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 64px;
    fill: var(--c-deep);
    letter-spacing: -0.03em;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.04; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.06; transform: translate(-50%, -50%) scale(1.02); }
}

.hero-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    width: 220px;
    height: 260px;
    opacity: 0.08;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 7rem);
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--c-primary);
    text-shadow: 2px 2px 0 rgba(42,157,143,0.18);
    opacity: 0;
    animation: fadeSlideUp 1200ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms forwards;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--c-umber);
    margin-top: 1.5rem;
    letter-spacing: 0.02em;
    font-style: italic;
    opacity: 0;
    animation: fadeSlideUp 1200ms cubic-bezier(0.22, 0.61, 0.36, 1) 600ms forwards;
}

.hero-meta {
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeSlideUp 1200ms cubic-bezier(0.22, 0.61, 0.36, 1) 1000ms forwards;
}

.hero-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-umber);
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(91,74,63,0.3);
    border-radius: 2px;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--c-umber);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    opacity: 0;
    animation: fadeSlideUp 1200ms ease 1400ms forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--c-walnut) 0%, transparent 100%);
    animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ============== TIMELINE CONTAINER ============== */
.timeline-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 0 6rem;
}

.timeline-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#spine-progress {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    pathLength: 1;
    transition: stroke-dashoffset 60ms linear;
}

/* ============== MILESTONES ============== */
.milestone {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 96px 1fr;
    gap: 0;
    align-items: center;
    min-height: 80vh;
    padding: 6rem 2rem;
}

.node-wrapper {
    position: relative;
    grid-column: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--node-color, var(--c-teal));
    border: 4px solid var(--c-cream);
    box-shadow:
        0 0 0 2px var(--node-color, var(--c-teal)),
        0 4px 14px rgba(91,74,63,0.25);
    transform: scale(0);
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 3;
}

.milestone.in-view .node { transform: scale(1); }

.footprint-icon {
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    width: 36px;
    height: 44px;
    transition: transform 600ms ease;
    filter: drop-shadow(1px 1px 2px rgba(91,74,63,0.2));
}

.footprint-icon.footprint-flip { transform: translateX(-50%) scaleX(-1) scale(0.85); }

.milestone.in-view .footprint-icon { transform: translateX(-50%) scale(1); }
.milestone.in-view .footprint-icon.footprint-flip { transform: translateX(-50%) scaleX(-1) scale(1); }

.connector {
    position: absolute;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--c-walnut) 30%, var(--c-walnut) 70%, transparent 100%);
    opacity: 0.4;
    width: 60px;
}

.connector-left { right: 50%; margin-right: 16px; }
.connector-right { left: 50%; margin-left: 16px; }

/* ============== PANELS ============== */
.panel {
    background: var(--c-cream);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(91,74,63,0.12),
        0 1px 0 rgba(91,74,63,0.08) inset;
    padding: 2.5rem 2.25rem;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    border: 1px solid rgba(91,74,63,0.08);
}

.panel-left {
    grid-column: 1;
    transform: perspective(800px) rotateY(12deg) translateX(-30px);
    opacity: 0;
    transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 600ms ease;
    margin-right: 16px;
}

.panel-right {
    grid-column: 3;
    transform: perspective(800px) rotateY(-12deg) translateX(30px);
    opacity: 0;
    transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 600ms ease;
    margin-left: 16px;
}

.milestone.in-view .panel-left,
.milestone.in-view .panel-right {
    transform: perspective(800px) rotateY(0deg) translateX(0);
    opacity: 1;
}

.milestone.scrolled-past .panel-left { transform: perspective(800px) rotateY(4deg) translateX(0); }
.milestone.scrolled-past .panel-right { transform: perspective(800px) rotateY(-4deg) translateX(0); }

/* Text panel */
.panel-text {
    background:
        var(--c-cream)
        repeating-linear-gradient(
            transparent,
            transparent 28px,
            rgba(91,74,63,0.08) 28px,
            rgba(91,74,63,0.08) 29px
        );
}

.panel-meta {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-umber);
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.8rem;
    border: 1px dashed rgba(91,74,63,0.35);
    border-radius: 2px;
    background: rgba(250,246,239,0.6);
}

.panel-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--c-teal);
    margin-bottom: 1.5rem;
}

.panel-body {
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    color: var(--c-deep);
    margin-bottom: 1.1rem;
}

.panel-body em.carbon {
    font-style: italic;
    font-weight: 600;
    color: var(--c-deep);
    text-shadow: 1px 2px 0 rgba(42,157,143,0.22);
    background: linear-gradient(transparent 65%, rgba(233,196,106,0.25) 65%);
    padding: 0 2px;
}

.ledger-rule {
    margin-top: 1.5rem;
    height: 1px;
    background:
        linear-gradient(to right, transparent 0%, var(--c-walnut) 30%, var(--c-walnut) 70%, transparent 100%);
    opacity: 0.3;
    position: relative;
}

.ledger-rule::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 1px solid var(--c-orange);
    border-radius: 50%;
    background: var(--c-cream);
}

/* Collage panel */
.panel-collage {
    min-height: 380px;
    display: grid;
    place-items: center;
    background: var(--c-cream);
    overflow: hidden;
}

.panel-warm-bg {
    background:
        linear-gradient(135deg, rgba(233,196,106,0.16), rgba(231,111,81,0.06)),
        var(--c-cream);
}

/* Photo frame */
.photo-frame {
    position: relative;
    width: 70%;
    aspect-ratio: 4 / 3;
    border: 6px solid var(--c-gold);
    box-shadow:
        inset 0 0 20px rgba(91,74,63,0.15),
        0 6px 18px rgba(91,74,63,0.18);
    background:
        linear-gradient(135deg, rgba(233,196,106,0.12), rgba(231,111,81,0.06)),
        linear-gradient(180deg, #f1e6d4, #e6d8c2);
    transform: rotate(-2deg);
    margin: 1rem auto;
}

.photo-frame-warm {
    background:
        linear-gradient(135deg, rgba(231,111,81,0.18), rgba(233,196,106,0.08)),
        linear-gradient(180deg, #f1d8cc, #e8c7b6);
    transform: rotate(2deg);
}

.photo-caption {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-umber);
    white-space: nowrap;
}

.photo-silhouette {
    position: absolute;
    inset: 0;
    background: rgba(91,74,63,0.55);
    mix-blend-mode: multiply;
}

.silhouette-explorer {
    clip-path: polygon(
        45% 18%, 55% 18%, 56% 28%, 60% 32%, 62% 45%,
        58% 55%, 65% 70%, 68% 92%, 32% 92%, 36% 70%,
        42% 55%, 38% 45%, 40% 32%, 44% 28%
    );
}

.silhouette-handshake {
    clip-path: polygon(
        15% 35%, 30% 30%, 42% 35%, 50% 45%,
        58% 35%, 70% 30%, 85% 35%, 85% 60%,
        70% 65%, 60% 60%, 50% 55%, 40% 60%,
        30% 65%, 15% 60%
    );
}

.silhouette-buildings {
    clip-path: polygon(
        5% 95%, 5% 50%, 18% 50%, 18% 35%, 30% 35%,
        30% 50%, 42% 50%, 42% 25%, 56% 25%, 56% 50%,
        70% 50%, 70% 40%, 82% 40%, 82% 50%, 95% 50%,
        95% 95%
    );
}

.silhouette-machine {
    clip-path: polygon(
        20% 30%, 80% 30%, 82% 35%, 82% 70%, 78% 75%,
        70% 75%, 70% 90%, 30% 90%, 30% 75%, 22% 75%,
        18% 70%, 18% 35%
    );
}

.silhouette-archive {
    clip-path: polygon(
        10% 95%, 10% 20%, 22% 20%, 22% 95%,
        30% 95%, 30% 25%, 42% 25%, 42% 95%,
        50% 95%, 50% 20%, 62% 20%, 62% 95%,
        70% 95%, 70% 25%, 82% 25%, 82% 95%
    );
}

.silhouette-horizon {
    clip-path: polygon(
        0% 70%, 15% 60%, 30% 65%, 45% 55%,
        62% 62%, 78% 50%, 92% 58%, 100% 55%,
        100% 100%, 0% 100%
    );
}

/* Stamps */
.stamp {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stamp-color, var(--c-orange));
    border: 2.5px dashed var(--stamp-color, var(--c-orange));
    padding: 0.45rem 0.8rem;
    background: rgba(250,246,239,0.6);
    opacity: 0;
    transform: scale(1.3) rotate(-8deg);
    transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 500ms ease;
}

.milestone.in-view .stamp {
    opacity: 1;
}

.stamp-circle {
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    top: 8%;
    right: 8%;
}

.milestone.in-view .stamp-circle { transform: scale(1) rotate(-6deg); }

.stamp-rect {
    border-radius: 4px;
    bottom: 12%;
    left: 8%;
}

.milestone.in-view .stamp-rect { transform: scale(1) rotate(3deg); }

/* Washi tape */
.washi-tape {
    position: absolute;
    height: 18px;
    width: 110px;
    mix-blend-mode: multiply;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(91,74,63,0.06);
}

.washi-1 {
    background: rgba(233,196,106,0.6);
    top: 5%;
    left: 12%;
    transform: rotate(-3deg);
}

.washi-2 {
    background: rgba(42,157,143,0.4);
    top: 8%;
    right: 14%;
    transform: rotate(4deg);
}

.washi-3 {
    background: rgba(231,111,81,0.45);
    bottom: 8%;
    right: 10%;
    transform: rotate(-2deg);
}

/* Postage stamp */
.postage-stamp {
    position: absolute;
    width: 56px;
    height: 70px;
    background: var(--c-cream);
    bottom: 10%;
    right: 14%;
    transform: rotate(6deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(circle 3px at 50% 0%, transparent 2px, var(--c-cream) 2.5px),
        radial-gradient(circle 3px at 50% 100%, transparent 2px, var(--c-cream) 2.5px);
    border: 1px dashed rgba(91,74,63,0.4);
    box-shadow: 0 4px 12px rgba(91,74,63,0.15);
}

.postage-stamp::before,
.postage-stamp::after {
    content: '';
    position: absolute;
    background-image: radial-gradient(circle, var(--c-cream) 2.5px, transparent 3px);
    background-size: 8px 8px;
    background-repeat: repeat-x;
    height: 6px;
    left: -3px; right: -3px;
}

.postage-stamp::before { top: -3px; }
.postage-stamp::after { bottom: -3px; }

.postage-inner { width: 30px; height: 30px; }
.postage-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--c-deep);
    margin-top: 4px;
}

/* Mini seal */
.seal-mini {
    position: absolute;
    bottom: 10%;
    right: 16%;
    width: 60px;
    height: 60px;
    transform: rotate(-6deg);
    opacity: 0.85;
}

/* Quote card */
.quote-card {
    position: absolute;
    bottom: 8%;
    left: 6%;
    width: 60%;
    background: rgba(29,26,22,0.92);
    color: var(--c-cream);
    padding: 1rem 1.1rem;
    border-radius: 4px;
    transform: rotate(-1.5deg);
    box-shadow: 0 8px 20px rgba(91,74,63,0.25);
}

.quote-mark {
    position: absolute;
    top: -16px;
    left: 12px;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--c-gold);
    line-height: 1;
}

.quote-card p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.quote-attr {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--c-gold);
    text-transform: uppercase;
}

/* Counter widget */
.counter-widget {
    position: absolute;
    top: 12%;
    left: 8%;
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.5rem 1rem;
    align-items: center;
    background: rgba(250,246,239,0.85);
    padding: 0.8rem 1rem;
    border: 1px solid rgba(91,74,63,0.2);
    border-radius: 4px;
    transform: rotate(-1deg);
}

.counter-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-umber);
}

.counter-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--c-orange);
    line-height: 1;
}

.counter-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: rgba(91,74,63,0.15);
}

/* Ledger background */
.ledger-bg {
    position: absolute;
    inset: 12% 8% 24% auto;
    width: 38%;
    background:
        repeating-linear-gradient(
            transparent,
            transparent 14px,
            rgba(91,74,63,0.18) 14px,
            rgba(91,74,63,0.18) 15px
        );
    pointer-events: none;
    opacity: 0.5;
}

/* Medal */
.ribbon-medal {
    position: absolute;
    bottom: 8%;
    left: 10%;
    width: 70px;
    height: 110px;
    transform: rotate(-4deg);
}

.medal-circle {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background: var(--c-gold);
    border-radius: 50%;
    border: 3px solid var(--c-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(91,74,63,0.2);
    position: relative;
    z-index: 2;
}

.medal-ribbon {
    position: absolute;
    bottom: 0;
    width: 18px;
    height: 60px;
    background: var(--c-orange);
    z-index: 1;
}

.medal-ribbon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 8px solid var(--c-orange);
}

.ribbon-left { left: 18px; transform: rotate(8deg); transform-origin: top center; }
.ribbon-right { right: 18px; background: var(--c-teal); transform: rotate(-8deg); transform-origin: top center; }
.ribbon-right::after { border-top-color: var(--c-teal); }

/* Future card */
.future-card {
    position: absolute;
    top: 10%;
    right: 8%;
    background: var(--c-cream);
    padding: 1rem 1.2rem;
    border: 2px dashed var(--c-teal);
    border-radius: 4px;
    transform: rotate(2deg);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.future-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-umber);
}

.future-coord {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-teal);
}

/* Typewriter reveal */
.typewriter {
    position: relative;
}

.typewriter .char {
    opacity: 0;
    display: inline-block;
    transition: opacity 200ms ease;
    transition-delay: calc(var(--i, 0) * 30ms);
}

.milestone.in-view .typewriter .char { opacity: 1; }

/* ============== HORIZON / CLOSING ============== */
.horizon {
    background: var(--c-charcoal);
    color: var(--c-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.horizon::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(233,196,106,0.06), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(42,157,143,0.05), transparent 45%);
    pointer-events: none;
}

.compass-rose {
    width: 240px;
    height: 240px;
    margin-bottom: 3rem;
    animation: compassSpin 30s linear infinite;
}

@keyframes compassSpin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

.horizon-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: -0.01em;
    color: var(--c-cream);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.ellipsis {
    display: inline-block;
    animation: ellipsisPulse 2s ease-in-out infinite;
}

.ellipsis:nth-child(1) { animation-delay: 0s; }
.ellipsis:nth-child(2) { animation-delay: 0.4s; }
.ellipsis:nth-child(3) { animation-delay: 0.8s; }

@keyframes ellipsisPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.horizon-sub {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-umber);
    margin-bottom: 4rem;
    text-align: center;
}

.horizon-footer {
    margin-top: auto;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.horizon-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(250,246,239,0.4);
    padding: 0.4rem 1rem;
    border: 1px solid rgba(250,246,239,0.15);
    border-radius: 2px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
    .timeline-container { padding: 2rem 0 4rem; }

    .milestone {
        grid-template-columns: 48px 1fr;
        padding: 3rem 1.25rem;
        min-height: auto;
        gap: 1rem;
    }

    .node-wrapper {
        grid-column: 1;
        align-items: flex-start;
        height: 100%;
    }

    .connector { display: none; }

    .panel-left, .panel-right {
        grid-column: 2;
        margin: 0;
        transform: perspective(800px) rotateY(6deg) translateX(0);
    }

    .milestone.in-view .panel-left,
    .milestone.in-view .panel-right {
        transform: perspective(800px) rotateY(0deg) translateX(0);
    }

    .panel { padding: 1.75rem 1.5rem; }
    .panel-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
    .panel-collage { min-height: 320px; }

    .timeline-spine line { x1: 24px !important; x2: 24px !important; }
    #spine-line, #spine-progress { transform: translateX(-50%); }

    .stamp-circle { width: 88px; height: 88px; font-size: 0.6rem; }
    .quote-card { width: 80%; left: 8%; }
    .counter-widget { padding: 0.6rem 0.8rem; }
    .future-card { right: 4%; }

    .hero-stamp { width: 160px; height: 200px; }
    .hero-watermark { width: 280px; height: 280px; }
}

@media (max-width: 540px) {
    .panel-meta { font-size: 0.7rem; }
    .panel-body { font-size: 0.95rem; }
    .photo-frame { width: 84%; }
    .stamp-circle { right: 4%; top: 4%; }
    .stamp-rect { left: 4%; bottom: 6%; }
    .quote-card { width: 86%; left: 4%; }
    .ledger-bg { width: 40%; }
    .ribbon-medal { left: 6%; transform: rotate(-4deg) scale(0.85); }
    .future-card { right: 4%; transform: rotate(2deg) scale(0.92); }
    .hero-watermark { width: 220px; height: 220px; }
    .compass-rose { width: 180px; height: 180px; }
}
