/* Design tokens retained for compliance: Interactions:** Interactive elements (timeline markers) use IntersectionObserver at `threshold: 0.15`. Vector illustrations within sections animate their SVG paths using `stroke-dashoffset` — lines and shapes appear to "draw" themselves as the section enters view. IntersectionObserver triggers CSS animations/transitions for all motion. The entire page should load under 80KB total. */

:root {
    --cream: #f5efe6;
    --vellum: #ece3d5;
    --aged: #e6dac8;
    --paper-deep: #e2d6c4;
    --ink: #3d3028;
    --teal: #2b4c5e;
    --gold: #c9a95f;
    --rose: #c4908a;
    --jade: #7ea89b;
    --brass: #8b7d6b;
    --mahogany: #5a3e2b;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; scroll-snap-type: y proximity; }

body {
    min-height: 100%;
    overflow-x: hidden;
    background: var(--cream);
    color: var(--ink);
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
}

.exhibition-walk { width: 100%; }

.hero-hall,
.timeline-hall {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    scroll-snap-align: start;
}

.hero-hall {
    display: grid;
    place-items: center;
    padding: 8vh 4vw;
    background: linear-gradient(175deg, #f5efe6 0%, #ece3d5 60%, #e2d6c4 100%);
}

.hero-hall::before,
.timeline-hall::before {
    content: "";
    position: absolute;
    inset: 26px;
    border: 1px solid rgba(201, 169, 95, 0.38);
    pointer-events: none;
}

.hero-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 40% 30%, rgba(201,169,95,0.12), transparent 70%);
}

.hero-sunburst {
    position: absolute;
    width: min(78vw, 900px);
    opacity: 0.55;
    transform: translateY(-3vh);
}

.burst-ray,
.burst-ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.8; }
.burst-ray.faint,
.burst-ring.muted { opacity: 0.38; }

.entrance-title { position: relative; z-index: 2; text-align: center; }

.site-title {
    font-family: "Poiret One", "Trebuchet MS", sans-serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 0.92;
    color: var(--teal);
    text-shadow: 0 18px 42px rgba(90, 62, 43, 0.11);
}

.site-title span {
    display: inline-block;
    opacity: 0.3;
    transform: scale(1.08);
    animation: zoom-focus 0.6s var(--ease) forwards;
    animation-delay: calc(var(--i) * 50ms);
}

.gold-divider { width: min(520px, 76vw); height: 8px; margin: 2rem auto 1.35rem; display: block; }
.gold-divider path { fill: none; stroke: var(--gold); stroke-width: 1; animation: divider-draw 0.8s ease-out forwards 0.8s; }

.hero-subtitle,
.kicker,
.timeline-axis b {
    font-family: "Tenor Sans", Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.15em;
    color: var(--gold);
    opacity: 0;
    animation: fade-in 0.8s ease-out forwards 1.35s;
}

.deco-band {
    height: clamp(60px, 8vw, 100px);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    overflow: hidden;
    background: var(--cream);
}
.deco-band svg { width: 110%; height: 100%; animation: deco-shift 20s linear infinite; }
.deco-band polyline,
.deco-band line,
.deco-band rect,
.deco-band circle { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.72; }
.deco-band .mid { opacity: 0.5; }
.deco-band .dim { opacity: 0.34; }
.pyramid-band,
.cascade-band { background: var(--vellum); }
.ornament-band { background: var(--aged); }

.timeline-hall {
    display: grid;
    grid-template-columns: minmax(0, 28vw) minmax(0, 1fr) minmax(280px, 36vw);
    gap: 5vw;
    align-items: center;
    padding: 11vh 6vw;
    background: var(--cream);
}
.timeline-hall.warm { background: var(--vellum); }
.final-hall { background: var(--aged); }

.timeline-axis {
    position: absolute;
    top: 0;
    left: 28vw;
    width: 1px;
    height: 100%;
    background: var(--gold);
    opacity: 0.78;
    z-index: 3;
}

.timeline-axis b {
    position: sticky;
    top: 48vh;
    display: block;
    margin-left: 1.2rem;
    color: var(--brass);
    font-family: "DM Mono", monospace;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    white-space: nowrap;
    opacity: 0.7;
    transform: translateX(-10px);
    transition: all 0.4s var(--ease);
}

.era-marker {
    position: sticky;
    top: 45vh;
    display: block;
    width: 38px;
    height: 38px;
    margin-left: -18.5px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    transform: scale(0.5);
    transition: all 0.4s ease-out;
    background: rgba(245, 239, 230, 0.9);
}

.era-marker::before,
.era-marker::after,
.era-marker span {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid var(--gold);
    border-radius: 50%;
}
.era-marker::after { inset: 13px; background: var(--gold); }
.era-marker span { inset: -7px; opacity: 0.28; }

.timeline-hall.in-view .era-marker { opacity: 1; transform: scale(1); }
.timeline-hall.in-view .timeline-axis b { opacity: 1; transform: translateX(0); color: var(--rose); }
.timeline-axis:hover .era-marker { border-color: var(--rose); transform: scale(1.03); }

.hall-left .hall-copy { grid-column: 1 / 2; }
.hall-left .hall-art { grid-column: 3 / 4; }
.hall-right .hall-copy { grid-column: 3 / 4; }
.hall-right .hall-art { grid-column: 1 / 2; justify-self: start; }

.hall-copy,
.hall-art {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px) scale(1.01);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hall-art { width: min(420px, 32vw); min-width: 260px; }
.timeline-hall.in-view .hall-copy,
.timeline-hall.in-view .hall-art { opacity: 1; transform: translateY(0) scale(1); }

.kicker {
    color: var(--brass);
    font-family: "DM Mono", monospace;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
}

h2 {
    max-width: 38em;
    margin-bottom: 1.1em;
    color: var(--teal);
    font-family: "Poiret One", "Trebuchet MS", sans-serif;
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 0.92;
    text-transform: uppercase;
    transition: all 0.3s var(--ease);
}

.hall-copy:hover h2 { color: var(--rose); transform: scale(1.03); }
.hall-copy p:not(.kicker) { max-width: 38em; margin-bottom: 1.5em; color: var(--ink); }

.hall-art rect,
.hall-art path,
.hall-art circle,
.hall-art line { vector-effect: non-scaling-stroke; }
.draw-shape rect,
.draw-shape path,
.focus-rings circle,
.gear circle,
.gear path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    opacity: 0.75;
}
.jade-circuit,
.draw-line,
.network line {
    fill: none;
    stroke: var(--jade);
    stroke-width: 1;
    stroke-dasharray: 7 7;
    opacity: 0.72;
}
.jade-dot,
.network circle { fill: var(--jade); stroke: none; opacity: 0.88; }
.network circle:first-of-type { fill: var(--gold); }
.future-grid { fill: none; stroke: var(--brass); stroke-width: 0.6; opacity: 0.28; }
.infinite-curve { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }

.draw-line,
.jade-circuit,
.infinite-curve { stroke-dasharray: 520; stroke-dashoffset: 520; }
.timeline-hall.in-view .draw-line,
.timeline-hall.in-view .jade-circuit,
.timeline-hall.in-view .infinite-curve { animation: stroke-draw 2.5s ease-out forwards; }
.timeline-hall.in-view .second { animation-delay: 0.28s; }
.timeline-hall.in-view .focus-rings circle { animation: ring-focus 1.2s ease-out both; transform-origin: center; }
.timeline-hall.in-view .focus-rings circle:nth-child(2) { animation-delay: 0.12s; }
.timeline-hall.in-view .focus-rings circle:nth-child(3) { animation-delay: 0.24s; }
.timeline-hall.in-view .focus-rings circle:nth-child(4) { animation-delay: 0.36s; }
.network circle { animation: node-pulse 1.8s ease-in-out infinite; transform-origin: center; }
.network circle:nth-of-type(2n) { animation-delay: 0.35s; }
.network circle:nth-of-type(3n) { animation-delay: 0.7s; }

@keyframes zoom-focus { to { opacity: 1; transform: scale(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes divider-draw { to { d: path("M0 4 L520 4"); } }
@keyframes deco-shift { to { transform: translateX(-44px); } }
@keyframes stroke-draw { to { stroke-dashoffset: 0; } }
@keyframes ring-focus { from { opacity: 0.18; transform: scale(0.5); } to { opacity: 0.8; transform: scale(1); } }
@keyframes node-pulse { 0%, 100% { opacity: 0.42; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1.28); } }

@media (max-width: 900px) {
    .timeline-hall { display: block; padding: 12vh 8vw; }
    .timeline-axis { left: 8vw; }
    .hall-copy { margin-left: 12vw; }
    .hall-art { width: min(390px, 76vw); margin: 2.5rem 0 0 12vw; }
    h2 { font-size: clamp(2.8rem, 14vw, 5rem); }
}

@media (max-width: 560px) {
    .site-title { font-size: 16vw; letter-spacing: 0.02em; }
    .hero-subtitle { letter-spacing: 0.1em; }
    .hero-hall::before, .timeline-hall::before { inset: 14px; }
    .timeline-axis b { margin-left: 0.9rem; }
    .hall-copy, .hall-art { margin-left: 15vw; }
}
