/* Dejavu Rendezvous 2027 – shared stylesheet (proof of concept)
   Swap the color tokens once the 20th anniversary logo assets arrive. */

:root {
  --bg: #121110;
  --bg-2: #1c1a18;
  --bg-3: #26231f;
  --ink: #f1ebe0;
  --muted: #c4bcae;          /* 9.9:1 on --bg */
  --yellow: #f5c518;         /* 11.6:1 on --bg */
  --yellow-ink: #121110;
  --line: #3a3631;
  --focus: #ffffff;
  --radius: 10px;
  --max: 72rem;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

@font-face { font-family: "Archivo"; src: url('/assets/fonts/archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url('/assets/fonts/source-sans-3-latin.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: auto; font-size: 112.5%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.25rem;      /* 22.5px at default browser settings. */
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-stretch: 112%;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 850; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 750; }
p { margin: 0 0 1em; max-width: 65ch; }

/* Links: always underlined, always yellow. Fixes the white-on-gray contrast issue. */
a { color: var(--yellow); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--yellow); color: var(--yellow-ink); padding: .6rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 2rem; padding-block: 1rem;
}
.logo {
  font-family: var(--font-head); font-stretch: 125%; font-weight: 850; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .6rem;
}
.logo-badge {
  background: var(--yellow); color: var(--yellow-ink); font-size: 1rem;
  padding: .15rem .45rem; border-radius: 4px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-nav a { color: var(--ink); font-weight: 600; text-decoration: none; padding-block: .3rem; display: inline-block; }
.site-nav a:hover { color: var(--yellow); }
.site-nav a[aria-current="page"] { color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow); }

/* Decorative hazard stripe */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--bg) 14px 28px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 750; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn-primary:hover { background: #ffd84a; }
/* Valerie's idea: white with black text */
.btn-secondary { background: #fff; color: #111; }
.btn-secondary:hover { background: #e9e4da; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-block: 1.25rem; }
.cta-stack { flex-direction: column; align-items: flex-start; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-2); }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  font-size: 1rem; color: var(--yellow); margin-bottom: .6rem;
}
.lead { font-size: 1.35rem; color: var(--ink); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero-skyline { background: linear-gradient(90deg, rgba(18,17,16,.92), rgba(18,17,16,.82)), url('/assets/img/denver-skyline.webp') center 45% / cover no-repeat; }
.gallery-photo { background: linear-gradient(90deg, rgba(18,17,16,.92), rgba(18,17,16,.8)), url('/assets/img/gallery-hero.webp') center 45% / cover no-repeat; }
.invitation-photo, .lights-background {
  background-image: linear-gradient(rgba(18,17,16,.84), rgba(18,17,16,.9)), var(--lights-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.invitation-photo { --lights-image: url('/assets/img/lights-closeup-monochrome.webp'); }
.lights-background { --lights-image: url('/assets/img/lights-closeup-dark.webp'); background-position: center, 65% center; }
.attend-photo { position: relative; isolation: isolate; background: var(--bg); }
.attend-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(18,17,16,.92), rgba(18,17,16,.82)), url('/assets/img/mile-high-station-front.webp') center 45% / cover no-repeat;
  /* Treat only the decorative background, keeping yellow links/buttons intact. */
  filter: grayscale(1);
}
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-grid > * { min-width: 0; }
@media (min-width: 52rem) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.committee-hero { position: relative; isolation: isolate; }
.committee-hero-scene { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
/* Frame only the upper portion of the original photo at every screen shape.
   The source image stays unchanged; the visible credit is separate HTML. */
.committee-hero-scene img { width: 100%; height: 145%; object-fit: cover; object-position: center top; }
.committee-hero-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,17,16,.98), rgba(18,17,16,.92) 45%, rgba(18,17,16,.78)); }
.committee-hero-copy .lead { max-width: 44rem; }
/* Give the heading the full row while preserving the existing desktop photo
   height, leaving clear space over the people below the introduction. */
@media (min-width: 66rem) { .committee-hero { min-height: 31rem; } }
@media (max-width: 52rem) {
  .committee-hero-scene img { object-position: left top; }
  .committee-hero-scene::after { background: rgba(18,17,16,.9); }
}
.big-20 {
  font-family: var(--font-head); font-stretch: 125%; font-weight: 900;
  font-size: clamp(7rem, 22vw, 15rem); line-height: .82; color: var(--yellow);
  margin: 0;
}
.big-20 small { display: block; font-size: .16em; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-top: .7em; line-height: 1.3; }
.date-badge {
  display: inline-block; border: 2px solid var(--yellow); border-radius: var(--radius);
  padding: .6rem 1rem; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
}

/* ---------- Video block ---------- */
.video-block { display: grid; gap: .75rem; min-width: 0; }
.video-frame { aspect-ratio: 16 / 9; }
details {
  background: var(--bg-3); border-radius: var(--radius); padding: .8rem 1.1rem;
}
summary { cursor: pointer; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0a09; border-top: 1px solid var(--line); padding-block: 3rem; font-size: 1.05rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.site-footer h2 { font-size: 1.25rem; }

/* ---------- Sponsor tiers (stacked, solid background) ---------- */
.tiers { display: grid; gap: 1.25rem; margin-block: 2rem; }
.tier {
  background: #000; border: 1px solid var(--line); border-left: 8px solid var(--yellow);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: .5rem 2rem;
}
@media (min-width: 46rem) { .tier { grid-template-columns: 14rem 1fr; } }
.tier-price { font-family: var(--font-head); font-stretch: 115%; font-weight: 850; font-size: 2.4rem; color: var(--yellow); line-height: 1; }
.tier-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-top: .4rem; }
.tier ul { margin: 0; padding-left: 1.2rem; }
.tier li { margin-bottom: .3rem; }
.tier-2 { border-left-color: #e0e0e0; }
.tier-3 { border-left-color: #c98a4b; }
.tier-4 { border-left-color: var(--muted); }
.sponsor-levels { background: #000; }
.tier-price { margin-bottom: .4rem; }
.tier-intro { margin-bottom: .5rem; }
.tier-thanks { margin-block: 1rem .5rem; }
.tier-fmv { margin: .75rem 0 0; }
.sponsor-levels .callout { margin-top: 1.5rem; }

.callout {
  background: var(--bg-3); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line);
}
.photo-share { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-bottom: 3rem; }
.photo-share-copy { flex: 1 1 30rem; min-width: 0; }
.photo-share h2 { font-size: 1.6rem; }
.photo-share-copy p:last-child { margin-bottom: 0; }
.photo-share-action { display: grid; gap: .5rem; justify-items: start; }
.photo-share-action p { margin: 0; }
.photo-share button:disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }

/* ---------- Event details ---------- */
.details-list { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 1.5rem 0; }
.details-list dt { font-weight: 700; color: var(--yellow); }
.details-list dd { margin: 0; }

/* ---------- Person cards ---------- */
.people { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-top: 2rem; }
@media (min-width: 60rem) { .people { grid-template-columns: repeat(3, 1fr); } }
.person {
  width: 100%; text-align: left; background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center;
  font: inherit; cursor: pointer;
}
.person:hover { border-color: var(--yellow); }
.avatar {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--bg-3);
  border: 2px dashed #5a544b; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: var(--muted);
}
.person-name { font-family: var(--font-head); font-weight: 750; font-size: 1.15rem; display: block; }
.person-role { color: var(--muted); font-size: 1rem; display: block; }
.person-more { color: var(--yellow); font-size: 1rem; font-weight: 700; text-decoration: underline; }

dialog {
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; width: min(36rem, 92vw);
}
dialog::backdrop { background: rgba(0,0,0,.7); }
.dialog-inner { padding: 1.75rem; }
.dialog-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }

/* ---------- 20th anniversary logo + crane animation ---------- */
.logo { width: min(100%, 30rem); min-height: 44px; }
.logo img { width: 100%; height: auto; }

.logo-stage { display: grid; justify-items: center; gap: .75rem; }
.logo-anim { position: relative; width: 100%; max-width: 34rem; }
.logo-anim img, .logo-anim .logo-base { display: block; width: 100%; height: auto; }
.logo-cable, .logo-vu { position: absolute; inset: 0; }

/* Pivot points come from the logo artwork (748 x 563):
   cable starts under the hook ball at (434, 173), shackle sits at (434, 255). */
.logo-cable { transform-origin: 58.02% 30.73%; }
.logo-vu    { transform-origin: 58.02% 45.29%; }

.logo-anim.is-playing .logo-vu    { animation: vu-lower 3.4s ease-in-out .5s both; }
.logo-anim.is-playing .logo-cable { animation: cable-pay-out 3.4s ease-in-out .5s both; }

/* Vu hangs from the hook, swings, and is lowered into place.
   Cable scale = 1 - lift / 78px, so the cable always meets the shackle. */
@keyframes vu-lower {
  0%   { transform: translateY(-11.37%) rotate(-7deg); }
  22%  { transform: translateY(-11.37%) rotate(5deg); }
  50%  { transform: translateY(-4%)     rotate(-3deg); }
  70%  { transform: translateY(.6%)     rotate(1.5deg); }
  85%  { transform: translateY(0)       rotate(-.6deg); }
  100% { transform: translateY(0)       rotate(0); }
}
@keyframes cable-pay-out {
  0%, 22% { transform: scaleY(.179); }
  50%  { transform: scaleY(.712); }
  70%  { transform: scaleY(1.043); }
  85%, 100% { transform: scaleY(1); }
}

.replay {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 1rem;
  text-decoration: underline; text-underline-offset: .18em; cursor: pointer; padding: .3rem .5rem;
}
.replay:hover { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  .logo-anim.is-playing .logo-vu,
  .logo-anim.is-playing .logo-cable { animation: none; }
  .replay { display: none; }
}

/* ---------- Round 2 tweaks ---------- */
.subtitle-wide { max-width: none; }
.h3 { font-size: 1.4rem; }

.avatar-photo { object-fit: cover; border: 2px solid var(--line); }
.dialog-person { display: flex; gap: 1rem; align-items: center; }
.dialog-photo { width: 8.5rem; height: 8.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.dialog-person p { margin: 0; }

.ride { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.ride-copy { flex: 1 1 24rem; min-width: 0; }
.ride h2 { font-size: 1.6rem; }
.ride p:last-of-type { margin-bottom: 0; }

.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.contact-grid .callout p:last-child { margin-bottom: 0; }

/* Production layout and accessible enhancements. */
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { overflow-wrap: anywhere; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button[aria-disabled="true"] { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid white; outline-offset: 4px; box-shadow: 0 0 0 4px #121110; }
main:focus { outline: none; }
section, [id] { scroll-margin-top: 1.5rem; }
.skip { top: 1rem; transform: translateY(-200%); max-width: calc(100% - 2rem); }
.skip:focus { transform: none; }
.site-header .wrap { align-items: center; }
.site-nav { max-width: 100%; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding-block: .35rem; }
.copyright { margin-top: 2rem; font-size: 1rem; color: var(--muted); }
.prose { max-width: 48rem; }
.prose h2 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.small { font-size: 1rem; margin-top: 1rem; }
.setup-steps { padding-left: 1.5rem; }
.setup-steps li { margin-bottom: 1rem; padding-left: .35rem; }
.preserve-lines { white-space: pre-line; }
.external-note { font: inherit; font-size: .9em; }
.motion-toggle { min-height: 44px; color: var(--ink); background: transparent; border: 1px solid var(--muted); padding: .5rem 1rem; border-radius: var(--radius); cursor: pointer; text-align: left; }
.motion-toggle[aria-pressed="true"] { border-color: var(--yellow); }
.motion-toggle:disabled { cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.video-placeholder { display: grid; place-items: center; min-width: 0; width: 100%; padding: 1.5rem; text-align: center; background: var(--bg-3); border: 2px dashed #5a544b; border-radius: var(--radius); color: var(--muted); font-weight: 600; }
.video-placeholder p { margin: 0; }
.video-placeholder span { display: block; font-size: 1rem; font-weight: 400; margin-top: .5rem; }
.sponsor-feature { background: #242424; border-bottom: 1px solid var(--line); }
.featured-sponsor { margin-block: 1.5rem; }
.featured-sponsor p { font-family: var(--font-head); font-size: 1.5rem; margin-top: .75rem; }
.sponsor-group + .sponsor-group { margin-top: 3rem; }
.sponsor-group h2 { font-size: 1.75rem; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; list-style: none; padding: 0; }
.sponsor-tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; font-weight: 600; }
.sponsor-presenting { border-color: var(--yellow); font-size: 1.4rem; }
.sponsor-logo { padding: 1.5rem; background: white; border-radius: var(--radius); width: min(100%, 24rem); margin-bottom: 1rem; }
.sponsor-logo img { width: 100%; height: 7rem; object-fit: contain; }
.year-links { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; }
.year-links a, .year-links span { display: inline-flex; align-items: center; justify-content: center; padding: .55rem .9rem; min-height: 44px; border: 1px solid var(--muted); border-radius: 6px; }
.year-links span { color: var(--bg); background: var(--yellow); border-color: var(--yellow); }
.dig { position: relative; background: var(--bg); padding-bottom: 2rem; --cap-h: 18rem; --dig-viewport: 100vh; }
.dig-pin { position: static; }
.dig-cap { display: none; }
.dig-pin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.dig-head { padding-block: 3rem 1rem; }
.dig-head p:last-child { margin-bottom: 0; }
.dig-stage { position: static; width: 100%; max-width: 32rem; margin-inline: auto; }
.dig-stage svg { width: 100%; height: auto; }
.dig-steps-wrap { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 1.5rem; }
.dig-steps { margin: 0; padding: 0; list-style: none; }
.dig-step { padding-block: 1rem; }
.dig-step:first-child { padding-top: 0; }
.dig-step:focus { outline: 3px solid var(--yellow); outline-offset: 5px; border-radius: var(--radius); }
.dig-card { background: #161412; border: 1px solid #5a544b; border-radius: var(--radius); padding: 1.5rem; transition: border-color .25s; }
.dig-card.is-active { border-color: var(--yellow); }
.card-label { display: block; font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); margin: 0 0 .75rem; }
.milestone-photo { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 5px; margin-bottom: 1.25rem; }
.layer-label { font-family: var(--font-head); font-size: 16px; fill: var(--muted); letter-spacing: .15em; }
.layer.is-active .layer-label { fill: var(--yellow); }
.history-list { padding-left: 1.25rem; }
.history-list li { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 64rem) and (min-height: 44rem) {
  /* Keep the wider right column from the first draft. Only enhance with pinning
     when JS has measured enough reading space and motion is enabled. */
  .dig-pin-grid, .dig-steps-wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 3rem; }
  .dig-head { grid-column: 2; grid-row: 1; align-self: end; }
  .dig-stage { grid-column: 1; grid-row: 1; align-self: start; max-width: none; }
  .dig-steps { grid-column: 2; }
  .dig.is-pinned .dig-pin { position: sticky; top: 0; height: var(--dig-viewport); z-index: 2; pointer-events: none; }
  .dig.is-pinned .dig-cap { display: block; position: absolute; inset: 0 0 auto; height: var(--cap-h); background: var(--bg); pointer-events: auto; }
  .dig.is-pinned .dig-cap::after { content: ''; position: absolute; top: 100%; inset-inline: 0; border-top: 1px solid rgba(241,235,224,.6); }
  .dig.is-pinned .dig-pin-grid { position: relative; height: 100%; }
  .dig.is-pinned .dig-head { height: var(--cap-h); align-self: start; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 0 1.25rem; pointer-events: auto; }
  .dig.is-pinned .dig-stage { height: var(--dig-viewport); }
  .dig.is-pinned .dig-stage svg { width: var(--side); height: var(--svg-height); max-width: none; margin: var(--svg-top) auto 0; }
  .dig.is-pinned .dig-steps-wrap { position: relative; z-index: 1; margin-top: calc(-1 * var(--dig-viewport)); padding-top: calc(var(--cap-h) + 1.5rem); }
  .dig.is-pinned .dig-step a { scroll-margin-top: calc(var(--cap-h) + 1.5rem); }
}
/* Gallery thumbnails use an even grid; the viewer always shows the full photo. */
.album-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; }
.album-card { display: block; border: 1px solid #5a544b; border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--ink); text-decoration: none; height: 100%; }
.album-card:hover { border-color: var(--yellow); }
.album-card > img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.album-card-body { display: grid; gap: .6rem; padding: 1.5rem; }
.album-title { font: 750 1.35rem/1.2 var(--font-head); }
.album-more { color: var(--yellow); text-decoration: underline; }
.gallery-hero { padding-bottom: 2rem; }
.gallery-section { padding-top: 1rem; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.photo-link { display: block; border-radius: 4px; background: var(--bg-3); }
.photo-link img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.photo-link:hover { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (min-width: 42rem) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 64rem) { .photo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dialog-open { overflow: hidden; }
dialog { max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
.gallery-dialog { width: min(90rem, calc(100vw - 2rem)); max-width: none; background: #0c0b0a; border: 1px solid #777; padding: 1rem; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.viewer-bar h2 { font-size: 1.1rem; margin: 0; }
.viewer-bar .btn { padding: .4rem .9rem; min-height: 44px; }
.viewer-figure { margin: 1rem 0; }
.viewer-figure img { width: 100%; height: min(62dvh, 55rem); object-fit: contain; }
.viewer-figure figcaption { font-size: 1rem; color: var(--muted); margin-top: .5rem; }
.viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.viewer-controls p { margin: 0; font-size: 1rem; }
.viewer-controls .btn { font-size: 1rem; padding: .5rem 1rem; min-height: 44px; }
.viewer-error { margin-block: 1rem 0; color: var(--yellow); }
.people { list-style: none; padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.person { text-decoration: none; height: 100%; grid-template-columns: 3.5rem minmax(0, 1fr); }
.person .avatar { width: 3.5rem; height: 3.5rem; }
.bio-dialog h2 { font-size: 1.6rem; }
.bio-photo { width: 12rem; height: 12rem; border-radius: 50%; object-fit: cover; margin-bottom: 2rem; }
.details-list { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
.details-list dd { margin-bottom: .8rem; }
@media (min-width: 34rem) { .details-list { grid-template-columns: max-content minmax(0,1fr); gap: .6rem 1.5rem; } }
@media (max-width: 26rem) {
  .viewer-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .viewer-controls p { grid-row: 1; grid-column: 1/-1; text-align: center; }
  .viewer-controls .btn { padding-inline: .5rem; }
  .dialog-head { flex-direction: column-reverse; }
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] .history-illustration { position: static; }
html[data-motion="off"] .replay { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .history-illustration { position: static; }
}
@media (forced-colors: active) {
  .btn, .person, .photo-link, .sponsor-tile { border: 2px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
}

.btn:disabled { cursor: default; opacity: .8; }
