/* =====================================================================
   The Historical Hall — Styles
   Mood: a Skadoodle discovery room — deep purple/violet magic, ancient
   ink-black stone, and warm gold kept as the accent for artifact/history
   value (torches, buttons, age markers). Ancient, but signature-Skadoodle
   and a little magical, not a formal museum lesson.
   Kid-friendly but not babyish. Respectful of the history.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --stone-900: #180f28;
  --stone-800: #221639;
  --stone-700: #31204e;
  --stone-600: #453163;
  --stone-300: #c9b8e8;
  --stone-100: #f2ecfb;

  --violet: #8b5cf6;
  --violet-soft: #c9b6fb;
  --violet-deep: #4c2d8f;

  --ochre: #c76b2a;
  --ochre-deep: #9e4e18;
  --charcoal: #140c22;
  --brown-deep: #3a2a5c;
  --gold: #e9b949;
  --gold-soft: #f4d58d;

  --ink: #f1ecfb;          /* main light text on stone */
  --ink-dim: #c2b3e0;      /* dimmer captions / meta text */
  --plaque-bg: #efe6f8;
  --plaque-ink: #2c2140;

  --debate-red: #b23b2e;
  --science-blue: #6d5aa8;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-plaque: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);

  --font-body: "Georgia", "Iowan Old Style", "Palatino", serif;
  --font-head: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  /* playful, hand-drawn-feeling display font for headings only — system
     fonts only, no external dependency. Falls through actual handwriting
     styles on Mac/Windows before landing on the original clean sans-serif
     stack for any platform that has none of them. */
  --font-display: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --maxw: 1100px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.05rem;
  background-color: var(--stone-900);
  /* layered "stone wall" feel, now with a signature Skadoodle violet glow
     and a small warm gold glow kept for torchlight/artifact warmth */
  background-image:
    radial-gradient(1200px 500px at 50% -10%, rgba(139, 92, 246, 0.20), transparent 60%),
    radial-gradient(800px 400px at 10% 20%, rgba(76, 45, 143, 0.16), transparent 60%),
    radial-gradient(800px 400px at 90% 30%, rgba(233, 185, 73, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, var(--stone-800), var(--stone-900));
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-soft); }

/* ---------- Accessibility: focus + skip link ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-family: var(--font-head);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

section { padding-block: clamp(2.5rem, 6vw, 5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.btn:disabled:active { transform: none; }

.btn--primary {
  background: linear-gradient(180deg, var(--gold), var(--ochre));
  color: #2a1c08;
  box-shadow: 0 6px 18px rgba(233, 185, 73, 0.35);
}
.btn--primary:hover { box-shadow: 0 8px 24px rgba(233, 185, 73, 0.55); }

.btn--secondary {
  background: transparent;
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}
.btn--secondary:hover { background: rgba(244, 213, 141, 0.12); }

.btn--ghost {
  background: rgba(0,0,0,0.25);
  color: var(--ink);
  border-color: rgba(233, 185, 73, 0.4);
}
.btn--ghost:hover { background: rgba(0,0,0,0.4); }

/* ===================================================================
   HERO / ENTRANCE
   =================================================================== */
.hero {
  position: relative;
  text-align: center;
  padding-top: clamp(3rem, 9vw, 6.5rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
  overflow: hidden;
}
/* tighten the gap into the first section — the hero already carries its
   own bottom padding, so the welcome section doesn't need a full helping too */
.hero + main > section:first-of-type { padding-top: clamp(1rem, 3vw, 2rem); }

/* stone doorway arch behind the hero title */
.hero__doorway {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}
.hero__doorway svg { width: min(94%, 660px); height: auto; }
/* a Skadoodle-violet glow layered over the stone doorway so it reads as
   magical rather than a flat museum arch — CSS-only, the doorway artwork
   itself is untouched. (Plain opacity, not mix-blend-mode: blend modes
   here triggered a scroll/compositing paint bug combined with the fixed
   body background in some browsers.) */
.hero__doorway::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px 340px at 50% 34%, rgba(139, 92, 246, 0.4), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

/* a few quiet twinkling sparks around the doorway */
.hero__sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d8, var(--gold) 60%, transparent 75%);
  box-shadow: 0 0 8px 2px rgba(233, 185, 73, 0.55);
  animation: spark-twinkle 3.4s ease-in-out infinite;
}
/* alternate sparks between gold (artifact) and violet (Skadoodle magic) */
.spark.s2, .spark.s4 {
  background: radial-gradient(circle, #ece2ff, var(--violet) 60%, transparent 75%);
  box-shadow: 0 0 8px 2px rgba(139, 92, 246, 0.55);
}
.spark.s1 { top: 20%; left: 12%; animation-delay: 0s; }
.spark.s2 { top: 32%; left: 85%; animation-delay: 0.7s; }
.spark.s3 { top: 62%; left: 7%; animation-delay: 1.3s; }
.spark.s4 { top: 70%; left: 91%; animation-delay: 1.9s; }
.spark.s5 { top: 10%; left: 50%; animation-delay: 2.4s; }
@keyframes spark-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50%      { opacity: 1; transform: scale(1.15); }
}

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
  font-family: var(--font-head);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold-soft);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0;
  color: var(--stone-100);
  text-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 0 40px rgba(139, 92, 246, 0.35), 0 0 70px rgba(233, 185, 73, 0.15);
}
.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-soft);
  margin: 0.5rem 0 1.75rem;
  font-style: italic;
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* torch flames flanking the doorway */
.torch {
  position: relative;
  width: 26px; height: 40px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 70%, var(--gold-soft), var(--ochre) 55%, var(--ochre-deep) 80%);
  filter: blur(1px);
  transform-origin: bottom center;
  animation: flicker 2.2s ease-in-out infinite;
}
/* a richer soft halo behind each torch flame */
.torch::before {
  content: "";
  position: absolute;
  left: 50%; top: 45%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 213, 141, 0.5), rgba(139, 92, 246, 0.22) 55%, transparent 75%);
  filter: blur(5px);
  z-index: -1;
  animation: torch-glow 2.2s ease-in-out infinite;
}
@keyframes torch-glow {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.92); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes flicker {
  0%, 100% { transform: scaleY(1) rotate(-1deg); opacity: 0.95; }
  50%      { transform: scaleY(1.12) rotate(1.5deg); opacity: 1; }
}

/* ===================================================================
   GUIDE CHARACTERS (Chatty + Curator)
   =================================================================== */
.guides {
  position: relative;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) { .guides { grid-template-columns: 1fr; } }
/* a quiet warm glow behind the guide cards, so Chatty and the Curator
   feel like they're arriving under torchlight rather than sitting in a plain box */
.guides::before {
  content: "";
  position: absolute;
  inset: -24px -12px;
  background: radial-gradient(560px 260px at 50% 0%, rgba(233, 185, 73, 0.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.guide-card {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
/* a few faint ink flecks — quiet doodle texture, not clutter */
.guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 90% 18%, rgba(139, 92, 246, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 68%, rgba(233, 185, 73, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 14% 88%, rgba(139, 92, 246, 0.3), transparent 60%);
  pointer-events: none;
}
.guide-card__avatar {
  flex: 0 0 auto;
  width: clamp(78px, 9vw, 100px);
  height: clamp(78px, 9vw, 100px);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(233, 185, 73, 0.5);
  overflow: hidden;
  display: grid; place-items: center;
}
/* contain (not cover) so the full character — scroll, ears, hair — always
   stays inside the circular frame instead of being cropped at the edges */
.guide-card__avatar img { width: 100%; height: 100%; object-fit: contain; }
/* a slow "breathing" idle motion so the guides read as present, not framed portraits */
.guide-card__avatar,
.speech__badge {
  animation: guide-breathe 3.6s ease-in-out infinite;
}
.guide-card--curator .guide-card__avatar,
.speech--curator .speech__badge {
  animation-delay: 0.6s; /* out of phase with Chatty so they don't move in lockstep */
}
@keyframes guide-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.guide-card__name {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--gold-soft);
  font-size: 1.25rem;
}
/* a hand-drawn dotted "scribble" underline, colored to match the name above it */
.guide-card__name::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: -5px;
  height: 4px;
  background-image: radial-gradient(circle, currentColor 1px, transparent 1.4px);
  background-size: 7px 4px;
  background-repeat: repeat-x;
  opacity: 0.55;
}
.guide-card__role {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin: 0 0 0.5rem;
  font-style: italic;
}
.guide-card__line { margin: 0; }

/* Chatty vs Curator accent — Chatty energetic gold+violet, Curator calmer
   but still clearly part of the same purple Doodle Troll world */
.guide-card--chatty {
  border-color: rgba(233, 185, 73, 0.55);
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.14), rgba(233, 185, 73, 0.08) 60%), rgba(0, 0, 0, 0.28);
}
.guide-card--curator {
  border-color: rgba(139, 92, 246, 0.55);
  background: linear-gradient(150deg, rgba(76, 45, 143, 0.22), rgba(0, 0, 0, 0.28) 60%);
}
.guide-card--curator .guide-card__name { color: var(--violet-soft); }

/* ===================================================================
   TIMELINE NAVIGATION
   =================================================================== */
.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--stone-100);
  margin: 0 0 0.35rem;
}
.section-sub {
  color: var(--ink-dim);
  margin: 0 0 1.75rem;
}

.timeline {
  position: relative;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1.25rem 0.25rem 1.5rem;
  scroll-snap-type: x proximity;
}
/* the "path on the floor" line behind the dots */
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 42px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--violet) 0 14px, transparent 14px 26px);
  opacity: 0.55;
  z-index: 0;
}

.timeline__item {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 120px;
  scroll-snap-align: start;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  padding: 0;
}
.timeline__dot {
  width: 22px; height: 22px;
  margin: 20px auto 0.5rem;
  border-radius: 50%;
  background: var(--stone-300);
  border: 3px solid var(--stone-900);
  box-shadow: 0 0 0 2px var(--violet);
  transition: transform 0.15s ease, background 0.15s ease;
}
.timeline__item:hover .timeline__dot,
.timeline__item:focus-visible .timeline__dot { transform: scale(1.2); background: var(--gold); }
.timeline__item[aria-current="true"] .timeline__dot {
  background: var(--gold);
  transform: scale(1.25);
  animation: dot-glow 2.4s ease-in-out infinite;
}
/* pulses between the Skadoodle violet and warm gold — magic + artifact */
@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--violet), 0 0 6px 2px rgba(139, 92, 246, 0.4); }
  50%      { box-shadow: 0 0 0 2px var(--gold), 0 0 14px 5px rgba(233, 185, 73, 0.6); }
}

.timeline__age {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gold-soft);
}
.timeline__label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-dim);
  line-height: 1.25;
  margin-top: 0.15rem;
}

/* progress bar */
.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ochre), var(--gold));
  transition: width 0.35s ease;
}
.progress__label {
  font-size: 0.8rem;
  color: var(--ink-dim);
  font-family: var(--font-head);
  margin-top: 0.4rem;
}

/* ===================================================================
   EXHIBIT ROOM
   =================================================================== */
.exhibit-stage { padding-top: 0; }

.exhibit {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.32)),
    linear-gradient(180deg, var(--stone-700), var(--stone-800));
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: room-enter-forward 0.45s ease both;
}
/* Walking through the hallway: Next slides in from the right,
   Previous slides in from the left, timeline jumps default forward. */
.exhibit--forward  { animation-name: room-enter-forward; }
.exhibit--backward { animation-name: room-enter-backward; }
@keyframes room-enter-forward {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes room-enter-backward {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.exhibit__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
}
@media (max-width: 820px) { .exhibit__grid { grid-template-columns: 1fr; } }

/* image side */
.exhibit__figure {
  margin: 0;
  position: relative;
  background: var(--charcoal);
  /* stacks the main image block above the gallery thumbnail row */
  display: flex;
  flex-direction: column;
}
.exhibit__mainimage {
  /* flex column so the enlarge hint can overlay the image via negative
     margins instead of being absolutely positioned a fixed distance from
     this block's bottom edge — that fixed distance used to assume a
     short, single-line caption and overlapped once credit text grew to
     two lines (or a status badge / per-image caption was added).
     Negative top/bottom margins net to zero, so anything below the hint
     is unaffected no matter how many lines it wraps to. */
  display: flex;
  flex-direction: column;
}
.exhibit__imgbtn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.exhibit__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.exhibit__enlarge-hint {
  align-self: flex-end;
  margin: -2.2rem 0.75rem 0.7rem 0;
  background: rgba(0,0,0,0.6);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  pointer-events: none;
}
.exhibit__credit {
  margin: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  color: var(--stone-300);
  background: rgba(0,0,0,0.45);
}
.exhibit__credit .lic { display: block; opacity: 0.85; }

/* per-image caption, shown only when a gallery item has one */
.exhibit__image-caption {
  margin: 0;
  padding: 0.5rem 0.9rem 0;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--stone-300);
  background: rgba(0, 0, 0, 0.3);
}

/* small badge marking whether an image is an exact artifact photo, a site
   photo, a representative stand-in, or still pending review */
.exhibit__image-status { padding: 0.5rem 0.9rem 0; background: rgba(0, 0, 0, 0.3); }
.image-status {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.image-status--exact { background: rgba(90, 168, 90, 0.22); color: #a7d9a7; border: 1px solid rgba(90, 168, 90, 0.45); }
.image-status--site-photo { background: rgba(139, 92, 246, 0.2); color: var(--violet-soft); border: 1px solid rgba(139, 92, 246, 0.5); }
.image-status--representative { background: rgba(233, 185, 73, 0.18); color: var(--gold-soft); border: 1px solid rgba(233, 185, 73, 0.4); }
.image-status--pending-review { background: rgba(178, 59, 46, 0.16); color: #eaa39a; border: 1px solid rgba(178, 59, 46, 0.5); }

/* thumbnail row — extra images for an exhibit, below the main photo */
.exhibit__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
}
.exhibit__gallery-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  overflow: hidden;
  cursor: pointer;
  background: var(--charcoal);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.exhibit__gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exhibit__gallery-thumb:hover { border-color: rgba(139, 92, 246, 0.65); }
.exhibit__gallery-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(233, 185, 73, 0.35);
}

/* text side */
.exhibit__body { padding: clamp(1.25rem, 3vw, 2rem); }

.exhibit__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.chip {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--violet-soft);
  border: 1px solid rgba(139, 92, 246, 0.4);
}
/* age chip keeps gold — the artifact/history-value accent */
.chip--age {
  background: rgba(233, 185, 73, 0.2);
  color: var(--gold-soft);
  border-color: rgba(233, 185, 73, 0.4);
}

.exhibit__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0.25rem 0 0.15rem;
  color: var(--stone-100);
}
.exhibit__site {
  font-size: 1rem;
  color: var(--gold-soft);
  margin: 0 0 1rem;
  font-style: italic;
}

/* museum plaque */
.plaque {
  background: var(--plaque-bg);
  color: var(--plaque-ink);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-plaque);
  margin: 0 0 1rem;
  position: relative;
  font-size: 0.98rem;
}
.plaque::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 5px;
  border-radius: 3px;
  background: rgba(0,0,0,0.15);
}
.plaque__label {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c3f8f;
  margin: 0.4rem 0 0.35rem;
}

/* guide speech inside exhibit */
.speech {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin: 0 0 0.9rem;
  animation: speech-in 0.4s ease both;
}
/* Chatty speaks first, then the Curator's plaque follows a beat later —
   reinforces "emotional reaction, then fact" without extra markup. */
.speech--chatty { animation-delay: 0.15s; }
.plaque { animation: speech-in 0.4s ease both; animation-delay: 0.35s; }
@keyframes speech-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.speech__badge {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.1rem;
  overflow: hidden;
}
/* real character art in the exhibit rooms — contain (not cover) so Chatty's
   and the Curator's full portraits never crop badly at this small size */
.speech__badge--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.speech__text { margin: 0; }
.speech__who {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}
.speech--chatty {
  background: rgba(233, 185, 73, 0.12);
  border: 1px solid rgba(233, 185, 73, 0.3);
}
.speech--chatty .speech__badge { background: rgba(233,185,73,0.3); }
.speech--chatty .speech__who { color: var(--gold-soft); }

.speech--curator {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.speech--curator .speech__badge { background: rgba(139, 92, 246, 0.32); }
.speech--curator .speech__who { color: var(--violet-soft); }

/* "what you're looking at" — a short story/fact block, sits above
   "why it matters" so the artifact's context comes before its meaning */
.looking-at {
  border-left: 4px solid var(--violet);
  padding: 0.5rem 0 0.5rem 0.9rem;
  margin: 0 0 1rem;
}
.looking-at strong {
  font-family: var(--font-head);
  color: var(--violet-soft);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.exhibit--finale .looking-at strong { color: var(--violet-deep); }

/* why it matters */
.why {
  border-left: 4px solid var(--ochre);
  padding: 0.5rem 0 0.5rem 0.9rem;
  margin: 0 0 1rem;
}
.why strong {
  font-family: var(--font-head);
  color: var(--gold-soft);
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* science note / disputed box */
.science-note {
  display: flex;
  gap: 0.7rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.science-note__icon { flex: 0 0 auto; font-size: 1.1rem; }
.science-note__label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet-soft);
  display: block;
  margin-bottom: 0.15rem;
}
.science-note--disputed {
  background: rgba(178, 59, 46, 0.16);
  border-color: rgba(178, 59, 46, 0.6);
}
.science-note--disputed .science-note__label { color: #eaa39a; }

/* exhibit navigation */
.exhibit__nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}
.exhibit__nav .btn { flex: 0 0 auto; }
.exhibit__counter {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-align: center;
  flex: 1 1 auto;
}

/* finale room — bright & modern */
.exhibit--finale {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(244, 213, 141, 0.35), transparent 70%),
    radial-gradient(500px 260px at 85% 100%, rgba(139, 92, 246, 0.12), transparent 70%),
    linear-gradient(180deg, #f6efdd 0%, #efe3cb 100%);
  background-color: #efe3cb;
  color: var(--plaque-ink);
  border-color: var(--gold);
}
.exhibit--finale .exhibit__title { color: #40320f; text-shadow: none; }
.exhibit--finale .exhibit__site { color: var(--ochre-deep); }
.exhibit--finale .plaque { background: #fffaf0; }
.exhibit--finale .why strong { color: var(--ochre-deep); }
.exhibit--finale .exhibit__counter { color: #6a5836; }
.exhibit--finale .exhibit__figure { background: #fffaf0; }
.exhibit--finale .chip {
  background: rgba(199, 107, 42, 0.14);
  color: #7a4a1a;
  border-color: rgba(199, 107, 42, 0.4);
}
.exhibit--finale .btn--secondary {
  color: var(--ochre-deep);
  border-color: var(--ochre-deep);
}
.exhibit--finale .btn--secondary:hover { background: rgba(158, 78, 24, 0.1); }

.finale-frame {
  aspect-ratio: 4 / 3;
  margin: 0;
  display: grid;
  place-items: center;
  border: 12px solid var(--gold);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(233,185,73,0.08) 0 12px, transparent 12px 24px),
    #fffdf6;
  box-shadow: inset 0 0 40px rgba(233,185,73,0.35);
  color: #8a7444;
  text-align: center;
  padding: 1.5rem;
  animation: frame-glow 3.2s ease-in-out infinite;
}
@keyframes frame-glow {
  0%, 100% { box-shadow: inset 0 0 40px rgba(233,185,73,0.35), 0 0 0 rgba(233,185,73,0); }
  50%      { box-shadow: inset 0 0 55px rgba(233,185,73,0.5), 0 0 26px rgba(233,185,73,0.35); }
}
.finale-frame__plaque {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* the emotional payoff line — bigger and quieter than the plaque text */
.finale-statement {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: #40320f;
  text-align: center;
  margin: 1.5rem 0;
  padding: 0 0.5rem;
}

/* ===================================================================
   FAST-FORWARD HALLWAY
   =================================================================== */
.fastforward {
  text-align: center;
}
.fastforward__bridge {
  max-width: 62ch;
  margin: 0.5rem auto 1.75rem;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  font-style: italic;
  color: var(--stone-300);
}

/* "tools through time" story cards — informational, not buttons */
.fastforward__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  text-align: left;
  margin: 0 0 1.5rem;
}
.fastforward__card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.fastforward__icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.fastforward__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  color: var(--gold-soft);
}
.fastforward__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-dim);
  line-height: 1.5;
}
.fastforward__note {
  max-width: 62ch;
  margin: 0 auto 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.fastforward__note strong {
  font-family: var(--font-head);
  color: var(--gold-soft);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ===================================================================
   YOUNG ARTISTS / ART CHALLENGE CONNECTION
   =================================================================== */
.young-artists {
  text-align: center;
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%);
  border-top: 1px solid rgba(139, 92, 246, 0.25);
  border-bottom: 1px solid rgba(139, 92, 246, 0.25);
}
.young-artists p.lead {
  max-width: 62ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}
.young-artists__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================================================
   SOURCES / DISCLAIMER
   =================================================================== */
.disclaimer {
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.disclaimer h2 { color: var(--stone-100); }
.disclaimer ul { padding-left: 1.2rem; }
.credits-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.credits-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(139, 92, 246, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.credits-list .site { font-weight: 700; color: var(--gold-soft); font-family: var(--font-head); }

.page-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

/* ===================================================================
   IMAGE MODAL
   =================================================================== */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(10, 8, 5, 0.85);
  padding: 1.5rem;
}
.modal__box {
  max-width: min(92vw, 900px);
  max-height: 90vh;
  background: var(--stone-800);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow-soft);
}
.modal__img { width: 100%; height: auto; }
.modal__cap {
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--stone-300);
}
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-soft);
  background: rgba(0,0,0,0.5);
  color: var(--gold-soft);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
