html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =========================================================
   BUG, FISH, MONSTER, ROBOT — site styles
   Matches the dossier and deck design system
   ========================================================= */

/* ---------- design tokens ---------- */
:root {
  /* the four colors, each derived from its film */
  --green:  #4caf3a;   /* BUG - A Bug's Life leaf green */
  --orange: #ee5524;   /* FISH - Nemo clownfish orange */
  --purple: #b48cd6;   /* MONSTER - Monsters Inc lavender */
  --yellow: #d4a017;   /* ROBOT - WALL-E sunset mustard */

  /* document palette */
  --cream:  #faf8f3;
  --ink:    #1a1a1a;
  --black:  #000000;
  --muted:  #595959;
  --rule:   #c8c8c8;
  --accent: #8b0000;   /* the deep red of the pull quotes */

  /* type */
  --serif: "Cambria", "Georgia", "Iowan Old Style", serif;
  --sans:  "Calibri", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif; /* for the rainbow title */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }

/* ---------- top nav (used on subpages) ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  position: relative;
}
.topnav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(to right,
    var(--green) 0%, var(--green) 25%,
    var(--orange) 25%, var(--orange) 50%,
    var(--purple) 50%, var(--purple) 75%,
    var(--yellow) 75%, var(--yellow) 100%);
}
.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.topnav-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cream);
  text-transform: uppercase;
}
.topnav-title:hover { text-decoration: none; opacity: 0.6; }
.topnav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.topnav-links a {
  color: rgba(250, 248, 243, 0.55);
  transition: color 0.2s;
}
.topnav-links a:hover { color: var(--cream); text-decoration: none; }
.topnav-links a.active { color: var(--cream); font-weight: 600; }

/* ---------- the cover / hero ---------- */
.cover {
  min-height: 100vh;
  background: var(--black);
  color: var(--cream);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.5fr;
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 32px;
  align-content: center;
  padding: 60px 80px;
  position: relative;
  overflow: hidden;
}
.cover::before {
  /* the rainbow strip at top, matches the deck cover */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(to right,
    var(--green) 0%, var(--green) 25%,
    var(--orange) 25%, var(--orange) 50%,
    var(--purple) 50%, var(--purple) 75%,
    var(--yellow) 75%, var(--yellow) 100%);
}
.cover-lamp {
  /* Hero row, left column. Lamp bottom aligns with ROBOT baseline. */
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  justify-self: end;
  display: block;
  line-height: 0;
  /* Scoot the lamp right, closer to the wordmark. */
  margin-right: -38px;
}
.cover-lamp img {
  /* Sized to span ~2 title lines: lamp top at M of MONSTER, base at ROBOT bottom.
     Title is clamp(56, 8vw, 124)px @ 0.95 line-height, so 2 lines ≈ clamp(107, 15.2vw, 236)px. */
  width: auto;
  height: clamp(115px, 16.2vw, 252px);
  display: block;
  filter: brightness(1.05);
}
.cover-title {
  /* Hero row, right column. Bottom-aligned so ROBOT baseline meets lamp base. */
  grid-row: 1;
  grid-column: 2;
  align-self: end;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}
.cover-content {
  /* Body row, right column — left-aligned under the title. */
  grid-row: 2;
  grid-column: 2;
}
.cover-title .bug    { color: var(--green); }
.cover-title .fish   { color: var(--orange); }
.cover-title .monster{ color: var(--purple); }
.cover-title .robot  { color: var(--yellow); }
.cover-title .punct  { color: var(--cream); }
.cover-logline {
  margin-top: 40px;
  max-width: 620px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.92;
}
.cover-credits {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--cream);
  opacity: 0.6;
  text-transform: uppercase;
}
.cover-credits strong { font-weight: 700; opacity: 1; letter-spacing: 3px; }
.cover-cta {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.2s;
}
.btn:hover {
  background: var(--cream);
  color: var(--black);
  text-decoration: none;
}
.btn-primary {
  background: var(--cream);
  color: var(--black);
}
.btn-primary:hover {
  background: transparent;
  color: var(--cream);
}

/* ---------- page content (subpages) ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}
.page-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
}
.page-deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 48px;
}
.page h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin: 56px 0 16px;
  line-height: 1.2;
}
.page h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 12px;
}
.page p {
  margin-bottom: 18px;
  color: var(--ink);
}
.page p + p { margin-top: -4px; }
.page ul, .page ol {
  margin: 18px 0 24px 24px;
}
.page li {
  margin-bottom: 8px;
  line-height: 1.55;
}
.page strong { font-weight: 700; color: var(--ink); }
.page em { font-style: italic; }

.pull {
  margin: 48px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--accent);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}

/* ---------- about page photos ---------- */
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 40px 0;
}
.about-photos img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.about-photo-item { cursor: pointer; }
.about-photo-single { cursor: pointer; }
.about-photo-caption {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .about-photos {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .about-photos img { height: 200px; }
}

/* ---------- timeline page ---------- */
.timeline-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}
.timeline-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: left;
}
.timeline-subtitle {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--muted);
  margin: 4px 0 24px;
  line-height: 1.4;
}
.timeline-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.timeline-actions-bottom {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  justify-content: center;
}

.timeline-wrap-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}
.timeline-wrap-wide .timeline-header,
.timeline-wrap-wide .timeline-legend {
  max-width: 920px;
}

.poster-frame {
  position: relative;
  width: 100%;
  margin: 0 auto 16px;
  line-height: 0;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: #fff;
}
.poster-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.poster-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.poster-hotspots .hotspot {
  position: absolute;
  pointer-events: auto;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 3px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  z-index: 2;
}
.poster-hotspots .hotspot:hover,
.poster-hotspots .hotspot:focus,
.poster-hotspots .hotspot.stuck {
  outline: none;
  z-index: 10;
}
.hotspot-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  width: 280px;
  max-width: 80vw;
  background: #1a1a1a;
  color: #faf8f3;
  padding: 12px 14px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 100;
  font-family: var(--sans);
  white-space: normal;
}
.hotspot-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #1a1a1a;
}
.poster-hotspots .hotspot:hover .hotspot-tooltip,
.poster-hotspots .hotspot:focus .hotspot-tooltip,
.poster-hotspots .hotspot.stuck .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Flip tooltip below the hotspot if it's near the top of the image */
.poster-hotspots .hotspot[style*="top: 0%"] .hotspot-tooltip,
.poster-hotspots .hotspot[style*="top: 1"] .hotspot-tooltip,
.poster-hotspots .hotspot[style*="top: 2"] .hotspot-tooltip,
.poster-hotspots .hotspot[style*="top: 3"] .hotspot-tooltip {
  bottom: auto;
  top: calc(100% + 8px);
}
.poster-hotspots .hotspot[style*="top: 0%"] .hotspot-tooltip::after,
.poster-hotspots .hotspot[style*="top: 1"] .hotspot-tooltip::after,
.poster-hotspots .hotspot[style*="top: 2"] .hotspot-tooltip::after,
.poster-hotspots .hotspot[style*="top: 3"] .hotspot-tooltip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1a1a1a;
}
.hotspot-date {
  display: block;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #d4a017;
  margin-bottom: 4px;
  font-weight: 600;
}
.hotspot-title {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #faf8f3;
}
.hotspot-body {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #d0cec7;
}

.poster-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(26,26,26,0.85);
  color: #faf8f3;
  border: none;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  z-index: 5;
  transition: background 0.15s;
}
.poster-zoom-btn:hover { background: #000; }

.poster-hint {
  max-width: 920px;
  margin: 0 auto 32px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.poster-hint a { color: var(--accent); text-decoration: underline; }

.all-events {
  max-width: 920px;
  margin: 40px auto 0;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.all-events > summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  list-style: none;
  user-select: none;
}
.all-events > summary::-webkit-details-marker { display: none; }
.all-events > summary::before {
  content: "▸ ";
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.15s;
}
.all-events[open] > summary::before {
  content: "▾ ";
}
.all-events[open] > summary { margin-bottom: 24px; }

.lightbox-stage-wide {
  max-width: 96vw;
  max-height: 92vh;
}
.lightbox-stage-wide img {
  max-width: 96vw;
  max-height: 86vh;
  width: auto;
  height: auto;
}

.timeline-legend {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.025);
  border-left: 3px solid var(--accent);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-pixar    { background: var(--green); }
.dot-industry { background: #3b6bb0; }
.dot-world    { background: var(--accent); }

/* the timeline spine */
.tl {
  list-style: none;
  position: relative;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--rule);
}

.tl-month {
  position: relative;
  padding: 0 0 36px 48px;
}
.tl-month-label {
  position: relative;
  margin-bottom: 16px;
  padding-left: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.tl-month-label::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-sizing: border-box;
}
.tl-month-name {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.tl-month-year {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.tl-month-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 2px 8px;
  border: 1px solid var(--yellow);
  border-radius: 2px;
}
.tl-month-tag-strong {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  font-weight: 700;
}
.tl-lunch-window > .tl-month-label::before {
  border-color: var(--yellow);
  background: var(--yellow);
}

.tl-events {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tl-event {
  position: relative;
  padding: 14px 18px 14px 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule);
  border-radius: 2px;
}
.tl-event.cat-pixar    { border-left-color: var(--green); }
.tl-event.cat-industry { border-left-color: #3b6bb0; }
.tl-event.cat-world    { border-left-color: var(--accent); }
.tl-date {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.tl-headline {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.tl-body {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.tl-note {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 10px 0 0;
  padding: 10px 12px;
  background: rgba(212, 160, 23, 0.08);
  border-left: 2px solid var(--yellow);
}

.tl-event-anchor {
  background: #fffaec;
  border-color: var(--yellow);
  border-left-width: 6px;
  border-left-color: var(--yellow);
  box-shadow: 0 2px 14px rgba(212, 160, 23, 0.18);
}
.tl-event-anchor .tl-headline {
  font-size: 22px;
}
.tl-event-anchor .tl-date {
  color: var(--accent);
  font-weight: 700;
}

.tl-prelude > .tl-month-label::before,
.tl-coda > .tl-month-label::before {
  background: var(--ink);
}

/* ---------- dossier page ---------- */
.dossier-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}
.dossier-header {
  max-width: 760px;
  margin: 0 auto 32px;
}
.dossier-toc {
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 24px 28px;
  background: rgba(0,0,0,0.025);
  border-left: 3px solid var(--accent);
}
.dossier-search {
  max-width: 760px;
  margin: 0 auto 16px;
}
.dossier-search-label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dossier-search-row {
  position: relative;
  display: flex;
  align-items: center;
}
.dossier-search-row input[type="search"] {
  flex: 1;
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.18);
  border-left: 3px solid var(--accent);
  padding: 10px 36px 10px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.dossier-search-row input[type="search"]::-webkit-search-decoration,
.dossier-search-row input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.dossier-search-row input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}
.dossier-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 10px;
}
.dossier-search-clear:hover { color: var(--ink); }
.dossier-search-status {
  margin: 8px 2px 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  min-height: 1em;
}
.dossier-body mark.dossier-hl,
.dossier-toc mark.dossier-hl {
  background: #fff3a3;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.dossier-toc h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dossier-toc ol {
  margin: 0 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  columns: 2;
  column-gap: 32px;
}
.dossier-toc li { break-inside: avoid; }
.dossier-toc a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.dossier-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dossier-toc li {
  position: relative;
  padding-left: 10px;
  transition: padding-left 0.15s;
}
.dossier-toc li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.dossier-toc li.is-active::before { opacity: 1; }
.dossier-toc li.is-active > a {
  color: var(--accent);
  font-weight: 700;
}

.dossier-toc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dossier-toc-head h3 { margin-bottom: 0; }
.dossier-toc-toggle-all {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.15s, border-color 0.15s;
}
.dossier-toc-toggle-all:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.dossier-toc li { display: flex; align-items: baseline; gap: 4px; }
.dossier-toc-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  width: 16px;
  flex: 0 0 16px;
  padding: 0;
  margin-left: -16px;
  color: var(--muted);
  line-height: 1;
  text-align: center;
  transition: color 0.15s, transform 0.15s;
}
.dossier-toc-toggle:hover { color: var(--accent); }
.dossier-toc-toggle[aria-expanded="false"] { color: var(--ink); }

@media screen {
  .dossier-body section.is-collapsed > *:not(.section-number):not(h2) {
    display: none !important;
  }
  .dossier-body section.is-collapsed {
    padding-bottom: 24px;
  }
  .dossier-body section.is-collapsed h2 {
    margin-bottom: 0;
  }
}

/* Pin the TOC alongside the dossier body on wide screens */

/* dossier resume banner */
.dossier-resume {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-warm, #f6f1e7);
  border: 1px solid var(--rule, #d8d2c4);
  border-left: 3px solid var(--accent);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}
.dossier-resume[hidden] { display: none; }
.dossier-resume-text { flex: 1; }
.dossier-resume-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.dossier-resume-link:hover { color: var(--ink); }
.dossier-resume-dismiss {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft, #777);
  cursor: pointer;
  padding: 0 4px;
}
.dossier-resume-dismiss:hover { color: var(--ink); }

/* dossier download button row */
.dossier-actions {
  max-width: 760px;
  margin: 0 auto 0;
  text-align: center;
}
.dossier-actions-bottom {
  margin-top: 56px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Reading-progress bar — pinned to the very top of the dossier page.
   Uses transform: scaleX() so updates are GPU-cheap during scroll. */
.dossier-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.dossier-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 80ms linear;
  will-change: transform;
}

/* Back-to-top button — floats in the bottom-right after the reader
   has scrolled past the first section of the dossier. */
.dossier-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}
.dossier-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.dossier-back-to-top:hover,
.dossier-back-to-top:focus-visible {
  background: #6e0000;
  outline: none;
}
.dossier-back-to-top:focus-visible {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(139, 0, 0, 0.35);
}
.dossier-back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}
@media (max-width: 600px) {
  .dossier-back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* dossier body — the full HTML content replacing the PDF iframe */
.dossier-body {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.dossier-body section {
  padding-top: 56px;
  margin-top: 0;
  border-top: 1px solid var(--rule);
}
.dossier-body section:first-child {
  border-top: none;
  padding-top: 48px;
}
.dossier-body .section-number {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  cursor: pointer;
}
.dossier-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 20px;
  line-height: 1.2;
}
.dossier-body h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.3px;
  margin: 32px 0 10px;
}
.dossier-body p {
  margin-bottom: 16px;
}
.dossier-body p + p {
  margin-top: -4px;
}
.dossier-body ul,
.dossier-body ol {
  margin: 10px 0 20px 24px;
}
.dossier-body li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.dossier-body strong { font-weight: 700; color: var(--ink); }
.dossier-body em { font-style: italic; }
.dossier-body code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  background: rgba(0,0,0,0.06);
  padding: 1px 4px;
  border-radius: 2px;
}
.dossier-body .pull {
  margin: 40px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--accent);
}
.dossier-body .dossier-endnote {
  margin-top: 48px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

/* ---------- buttons on light backgrounds ---------- */
.btn-light {
  display: inline-block;
  padding: 14px 26px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.2s;
}
.btn-light:hover {
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}
.btn-light-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-light-primary:hover {
  background: transparent;
  color: var(--ink);
}

/* ---------- contact box ---------- */
.contact-box {
  margin-top: 64px;
  padding: 32px;
  background: rgba(0,0,0,0.03);
  border-left: 3px solid var(--ink);
}
.contact-box h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.contact-box a {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 32px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}

.site-footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.8;
}
.site-footer .sep {
  margin: 0 8px;
  color: var(--rule);
}
.footer-rainbow {
  width: 80px;
  height: 4px;
  margin: 0 auto 16px;
  background: linear-gradient(to right,
    var(--green) 0%, var(--green) 25%,
    var(--orange) 25%, var(--orange) 50%,
    var(--purple) 50%, var(--purple) 75%,
    var(--yellow) 75%, var(--yellow) 100%);
}
.footer-confidential {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cover {
    grid-template-columns: 1fr;
    padding: 60px 32px;
    text-align: center;
  }
  .cover-lamp { display: none; }
  .cover-credits, .cover-logline { margin-left: auto; margin-right: auto; }
  .cover-cta { justify-content: center; }
  .topnav-inner { padding: 14px 20px; gap: 12px; }
  .topnav-links { gap: 16px; font-size: 13px; }
  .topnav-title { font-size: 12px; letter-spacing: 1px; }
  .page { padding: 48px 24px 80px; }
  .dossier-toc ol { columns: 1; }
  .dossier-body h2 { font-size: 22px; }
  .dossier-body .pull { font-size: 18px; }
}

/* ---------- lightbox (about page image viewer) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-stage {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.lightbox-caption {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250,248,243,0.75);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 101;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 0;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 101;
  background: none;
  border: 2px solid rgba(250,248,243,0.35);
  color: var(--cream);
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.7;
}
.lightbox-arrow:hover { opacity: 1; border-color: rgba(250,248,243,0.8); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 600px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 16px; font-size: 32px; }
  .lightbox-stage { max-width: 96vw; }
}

@media (max-width: 600px) {
  /* Cover */
  .cover {
    padding: 48px 20px 56px;
    min-height: 100svh;
  }
  .cover-title {
    font-size: clamp(52px, 17vw, 90px);
  }
  .cover-logline {
    font-size: 17px;
    margin-top: 24px;
  }
  .cover-credits {
    margin-top: 20px;
    /* Tighter letter-spacing so the credit line fits on two short rows
       instead of wrapping into three on a phone. */
    font-size: 11px;
    letter-spacing: 2px;
  }
  .cover-credits strong { letter-spacing: 2px; }
  .cover-cta {
    margin-top: 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn {
    text-align: center;
    padding: 16px 20px;
  }

  /* Nav — show all links; scroll horizontally if they don't fit */
  .topnav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    gap: 6px;
  }
  .topnav-title {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .topnav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding-bottom: 2px;
  }
  .topnav-links::-webkit-scrollbar { display: none; }
  .topnav-links a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 36px;
    padding: 4px 20px 4px 0;
    white-space: nowrap;
  }

  /* Page content */
  .page { padding: 32px 16px 64px; }
  .page h2 { font-size: 22px; margin-top: 40px; }
  .page-deck { font-size: 17px; margin-bottom: 36px; }
  .pull { font-size: 18px; }

  /* Contact */
  .contact-box { padding: 24px 16px; }
  .contact-box a { font-size: 18px; word-break: break-word; }

  /* Light-bg buttons */
  .btn-light, .btn-light-primary {
    display: block;
    text-align: center;
    padding: 16px 20px;
  }

  /* Dossier */
  .dossier-wrap { padding: 32px 16px 64px; }
  .dossier-toc { padding: 16px 18px; }

  /* Timeline */
  .timeline-wrap { padding: 32px 16px 64px; }
  .timeline-subtitle { font-size: 18px; }
  .timeline-legend { padding: 14px 16px; gap: 14px 20px; font-size: 12px; }
  .tl { max-width: 100%; }
  .tl-month { padding-left: 36px; padding-bottom: 28px; }
  .tl::before { left: 8px; }
  .tl-month-label::before { left: -32px; width: 12px; height: 12px; }
  .tl-event { padding: 12px 14px 12px 16px; }
  .tl-headline { font-size: 17px; }
  .tl-event-anchor .tl-headline { font-size: 19px; }
  .tl-body { font-size: 14px; }
  .timeline-actions-bottom { flex-direction: column; }

  /* Footer */
  .footer { padding: 24px 16px; }
}

/* ---------- print ---------- */

/* Elements that ONLY exist for the printed document.
   Hidden in the normal screen view; revealed inside @media print. */
.print-only { display: none; }

@media print {
  /* Browser print engines (Chrome, Firefox, Safari) reliably support
     @page size + margins, but NOT @page margin boxes (@top-left, etc.)
     or string-set. Page numbers come from the browser's built-in
     "Headers and footers" option in its print dialog. The running
     title is rendered as a position:fixed element below, which
     Chrome/Firefox/Safari repeat on every printed page. */
  @page {
    size: Letter;
    margin: 0.85in 0.7in 0.9in 0.7in;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.45;
  }
  body {
    /* Reserve room for the fixed running header / footer so they
       don't overlap body content on each printed page. */
    padding: 28pt 0 24pt;
  }

  /* Reveal print-only elements */
  .print-only { display: block; }

  /* Running header: repeats on every printed page via position:fixed */
  .print-running-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-bottom: 4pt;
    border-bottom: 1px solid #bbb;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9pt;
    color: #555;
    text-align: center;
  }
  .print-running-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 4pt;
    border-top: 1px solid #bbb;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    letter-spacing: 1px;
    color: #555;
    text-align: center;
  }

  /* Inline tip shown only on the printed first page */
  .print-notice {
    margin: 0 0 14pt;
    padding: 6pt 10pt;
    border: 1px dashed #999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    color: #555;
  }

  /* Hide everything that isn't part of the printed document */
  .topnav,
  .dossier-actions,
  .dossier-progress,
  .dossier-back-to-top,
  .footer,
  .footer-rainbow,
  script,
  noscript {
    display: none !important;
  }

  /* Container: drop screen widths/padding/colors */
  .dossier-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none !important;
  }

  /* Header block */
  .dossier-header {
    padding: 0 0 18pt;
    margin: 0 0 18pt;
    border-bottom: 1px solid #999;
  }
  .page-eyebrow {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    letter-spacing: 2px;
    color: #555;
    margin: 0 0 6pt;
  }
  .page-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26pt;
    line-height: 1.1;
    color: #000;
    margin: 0 0 10pt;
  }
  .page-deck {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12pt;
    color: #222;
    margin: 0;
  }

  /* Table of contents */
  .dossier-toc {
    background: none !important;
    border: 1px solid #999;
    padding: 12pt 16pt;
    margin: 0 0 18pt;
    break-after: page;
    page-break-after: always;
  }
  .dossier-toc h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    letter-spacing: 2px;
    margin: 0 0 8pt;
    color: #000;
  }
  .dossier-toc ol {
    columns: 2;
    column-gap: 24pt;
    font-size: 11pt;
    margin: 0;
    padding-left: 18pt;
  }
  .dossier-toc a {
    color: #000 !important;
    text-decoration: none;
  }
  /* Suppress the "you are here" scrollspy highlight when printing */
  .dossier-toc li.is-active > a {
    color: #000 !important;
    font-weight: normal !important;
  }
  .dossier-toc li.is-active::before {
    display: none !important;
  }

  /* Body */
  .dossier-body {
    max-width: none;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
  }

  /* Each section starts on a new page; its Roman numeral acts as the
     printed section marker (browser print can't run dynamic per-page
     section labels in a fixed header, so we make the section number
     prominent at the start of every section instead). */
  .dossier-body section {
    break-before: page;
    page-break-before: always;
    break-inside: auto;
    padding-top: 0;
    border-top: none;
  }
  .dossier-body section:first-child {
    break-before: auto;
    page-break-before: auto;
  }
  .dossier-body .section-number {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    font-weight: 700;
    letter-spacing: 3px;
    color: #000;
    margin: 0 0 6pt;
  }

  .dossier-body h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20pt;
    color: #000;
    margin: 0 0 12pt;
    break-after: avoid;
    page-break-after: avoid;
  }
  .dossier-body h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    color: #000;
    margin: 16pt 0 6pt;
    break-after: avoid;
    page-break-after: avoid;
  }
  .dossier-body p,
  .dossier-body li {
    orphans: 3;
    widows: 3;
  }
  .dossier-body ul,
  .dossier-body ol {
    margin: 6pt 0 12pt 18pt;
  }

  /* Pull quotes keep their border-left treatment, in black for print */
  .dossier-body .pull {
    margin: 14pt 0;
    padding: 4pt 0 4pt 14pt;
    border-left: 3pt solid #000;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 13pt;
    line-height: 1.4;
    color: #000;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .dossier-body .dossier-endnote {
    margin-top: 18pt;
    padding-top: 8pt;
    border-top: 1px solid #999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    color: #555;
    font-style: italic;
  }

  /* Links: keep readable, drop underline noise */
  a, a:visited {
    color: #000 !important;
    text-decoration: none;
  }
  .dossier-body a {
    text-decoration: underline;
  }
}

/* Headshots and inline images in the dossier */
.dossier-body .person {
  float: left;
  width: 180px;
  margin: 4px 24px 16px 0;
  text-align: center;
}
.dossier-body .person img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  box-shadow: 0 3px 14px rgba(0,0,0,0.18);
  filter: grayscale(0.15);
}
.dossier-body .person figcaption {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.dossier-body h3 { clear: none; }
.dossier-body .person + h3 { margin-top: 8px; }

.dossier-body .dossier-fig {
  margin: 24px 0;
  text-align: center;
}
.dossier-body .dossier-fig img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  display: block;
  margin: 0 auto;
  box-shadow: 0 3px 14px rgba(0,0,0,0.10);
}
.dossier-body .dossier-fig figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 720px) {
  .dossier-body .person {
    float: none;
    width: 150px;
    margin: 16px auto 8px;
  }
  .dossier-body .person img { height: 180px; }
}

@media print {
  .dossier-body .person { float: none; width: 120px; margin: 12px auto; }
  .dossier-body .person img { height: 150px; box-shadow: none; }
  .dossier-body .dossier-fig img { box-shadow: none; }
}
