/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #fff4e8;
  --bg-3: #f1c18c;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --ink: #201916;
  --muted: #6b5b53;
  --line: rgba(44, 28, 20, 0.14);
  --orange: #f56600;
  --orange-dark: #c74400;
  --black: #111111;
  --shadow: 0 22px 70px rgba(77, 38, 0, 0.14);
  --shadow-soft: 0 12px 34px rgba(77, 38, 0, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --content: 1180px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}
body::before {
  content: "";
  position: absolute;
  inset: -8vh -8vw;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 92px,
    rgba(245, 102, 0, 0.025) 92px 108px,
    rgba(245, 102, 0, 0.095) 108px 154px,
    rgba(245, 102, 0, 0.025) 154px 170px,
    transparent 170px 262px,
    rgba(17, 17, 17, 0.014) 262px 276px,
    rgba(17, 17, 17, 0.060) 276px 312px,
    rgba(17, 17, 17, 0.014) 312px 326px,
    transparent 326px 420px
  );
  filter: blur(8px);
  transform: scale(1.03);
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--orange-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--orange);
}

a:focus-visible {
  outline: 3px solid rgba(245, 102, 0, 0.36);
  outline-offset: 4px;
  border-radius: 10px;
}

/* ---------- Header / logo ---------- */
.site-header {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 0;
  text-align: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-header img,
.site-footer-logo img,
.brand-logo {
  width: min(280px, 64vw);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

/* ---------- Page-specific reunion layout ---------- */
.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 7vw, 6rem);
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(1rem, 2vw, 1.8rem);
  justify-items: center;
  margin: clamp(0.25rem, 2vw, 1.5rem) 0 clamp(2.5rem, 7vw, 6rem);
  padding: clamp(1.6rem, 4.5vw, 3.4rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(245, 102, 0, 0.14);
  border-radius: calc(var(--radius) + 14px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.hero-card::after {
  content: none;
}

.tshirt-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.tshirt-banner img {
  display: block;
}

.tshirt-banner .tshirt {
  width: min(220px, 30vw);
}

.tshirt-banner .logo {
  width: min(360px, 78vw);
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.16));
}

.page-title {
  max-width: 950px;
  margin: 0;
  text-align: center;
}

.page-title .eyebrow,
.wordmark {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: transparent;
  background: repeating-linear-gradient(
    135deg,
    var(--orange) 0 18px,
    #111 18px 38px
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  font-family: "Arial Black", Impact, Haettenschweiler, "Franklin Gothic Heavy", sans-serif;
  font-size: clamp(2.35rem, 7.4vw, 5.15rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-transform: uppercase;
}

.page-title h1 {
  color: var(--black);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

/* ---------- Reunions 2017 animated marquee logo ---------- */
.year-logo-stage {
  --logo-cycle: 10s;
  position: relative;
  display: inline-grid;
  width: min(450px, 100%);
  aspect-ratio: 1758 / 895;
  margin-bottom: 30px;
  border-radius: 50px;
  isolation: isolate;
  overflow: visible;
}

.year-logo-stage::before {
  content: "";
  position: absolute;
  inset: -7% -5%;
  z-index: -1;
  pointer-events: none;
  border-radius: 64px;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 47%,
      rgba(255, 128, 0, 0.42) 0%,
      rgba(255, 70, 0, 0.22) 35%,
      rgba(255, 40, 0, 0.10) 56%,
      transparent 78%);
  filter: blur(18px);
  animation: yearLogoAmbientBloom var(--logo-cycle) ease-in-out infinite;
}

.year-logo {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 50px;
  object-fit: contain;
}

.year-logo--off {
  position: relative;
  z-index: 0;
}

.year-logo--bright {
  position: relative;
  z-index: 1;
  opacity: 1;
  animation: yearLogoBrighten var(--logo-cycle) ease-in-out infinite;
  will-change: opacity;
}

@keyframes yearLogoBrighten {
  0%, 18% {
    opacity: 1;
  }

  34%, 58% {
    opacity: 0;
  }

  76%, 100% {
    opacity: 1;
  }
}

@keyframes yearLogoAmbientBloom {
  0%, 18% {
    opacity: 0.62;
    filter: blur(34px);
  }

  34%, 58% {
    opacity: 0;
    filter: blur(14px);
  }

  76%, 100% {
    opacity: 0.62;
    filter: blur(34px);
  }
}


.gallery-section {
  margin: clamp(2.5rem, 7vw, 6rem) 0;
}

.section-heading {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(1.25rem, 3vw, 2.25rem);
  padding: 0.2rem clamp(0.75rem, 2.5vw, 1.6rem);
  color: var(--black);
  text-align: center;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-decoration: none;
}

.section-heading::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0.38em;
  z-index: -1;
  background: rgba(245, 102, 0, 0.24);
  border-radius: 999px;
}

/* ---------- Image grid for photos ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: start;
  gap: clamp(1rem, 2.3vw, 1.75rem);
  margin: 0;
}

.photo-grid figure {
  overflow: hidden;
  margin: 0;
  background: var(--surface-solid);
  border: 1px solid rgba(32, 25, 22, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.photo-grid figure:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 102, 0, 0.22);
  box-shadow: 0 20px 48px rgba(77, 38, 0, 0.18);
}

.photo-grid figure a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  transition: filter 220ms ease;
}

.photo-grid figure:hover img {
  filter: saturate(1.04) contrast(1.03);
}

.photo-grid figcaption {
  margin: 0;
  padding: 1.85rem 1rem 1.95rem;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf3, #ffffff);
  border-top: 1px solid rgba(245, 102, 0, 0.13);
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.4;
  text-align: left;
}

.photo-grid figure:not(:has(figcaption)) {
  background: var(--surface-solid);
}

.photo-grid figure:not(:has(figcaption)) img {
  border-radius: var(--radius);
}

/* ---------- Footer / disclaimer ---------- */
.site-footer {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
}

.site-footer-logo {
  margin-top: 2rem;
}

.social {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 0.95rem;
}

/* ---------- Hero video ---------- */
.hero {
  text-align: center;
  margin: 1.5rem 0 2rem;
}

.hero video {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  display: inline-block;
}

/* ---------- Index page link list ---------- */
.index-links {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
}

.index-links p {
  margin: 0 0 0.9rem;
  position: relative;
}

.index-links .tag {
  position: absolute;
  left: 50%;
  margin-left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}

.index-links img {
  width: 40px;
  height: auto;
  vertical-align: middle;
}

/* ---------- About / Intro page helpers ---------- */
.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.page-intro {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange-dark);
  margin: 1.5rem 0 2rem;
}

.tagline {
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  margin: 1rem 0 1.5rem;
}

.countdown {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
}

.dates {
  text-align: center;
  margin: 1.5rem 0;
  line-height: 1.8;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* ---------- 404 page ---------- */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page .code {
  font-size: 2.5rem;
  color: var(--orange-dark);
  margin: 2rem 0 1rem;
  font-weight: 950;
}

.error-page .msg {
  font-size: 1.5rem;
  font-weight: 800;
}

/* ---------- Pull quote ---------- */
.pullquote {
  text-align: center;
  margin: 2rem auto;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 600px;
  font-style: italic;
}

.pullquote .quote {
  font-style: normal;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ---------- Table of Contents row ---------- */
.toc-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.25rem;
  align-items: start;
  margin: 1.5rem 0;
}

.toc-row img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.toc-row h3 {
  color: var(--orange-dark);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.toc-row p {
  margin: 0;
}

/* ---------- Stats table ---------- */
.stat-table {
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 0.95rem;
}

.stat-table th,
.stat-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.stat-table tr:last-child th,
.stat-table tr:last-child td {
  border-bottom: 0;
}

.stat-table th {
  background: rgba(245, 102, 0, 0.08);
  font-weight: 800;
}

/* ---------- Story and transcript helpers ---------- */
.headlines {
  margin: 2rem 0;
  font-size: 0.95rem;
}

.headlines .date,
.story h3,
.story .date-heading {
  color: var(--orange-dark);
  font-weight: 850;
}

.headlines ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.headlines li {
  margin: 0.25rem 0;
}

.story h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.story .date-heading {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  text-align: center;
}

.poem {
  text-align: center;
  font-style: italic;
  margin: 2rem auto;
  max-width: 400px;
  line-height: 1.8;
}

.poem p {
  margin: 1rem 0;
}

.chat {
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid rgba(245, 102, 0, 0.30);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: 14px;
}

.chat p {
  margin: 0.5rem 0;
}

.chat .speaker {
  font-weight: 800;
}

.tweets {
  margin: 2rem 0;
}

.tweet {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.tweet p {
  margin: 0 0 0.5rem;
}

.tweet img {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0;
  border-radius: 12px;
}

.tweet .timestamp {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Dark theme variant ---------- */
body.dark {
  background: #000;
  background-image: url("images/princetonreunions_bg_black.gif");
  color: #eee;
}

body.dark a,
body.dark a:visited {
  color: var(--orange);
}

body.dark .site-footer {
  border-top-color: #333;
  color: #888;
}

/* ---------- Video embed ---------- */
.video-embed {
  text-align: center;
  margin: 2rem 0;
}

.video-embed video,
.video-embed iframe {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 700px) {
  body {
    background-size: auto;
  }

  .site-header,
  .page-shell,
  .site-footer {
    width: min(100% - 1rem, var(--content));
  }

  .hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(1rem, 2vw, 1.8rem);
  justify-items: center;
  margin: clamp(0.25rem, 2vw, 1.5rem) 0 clamp(2.5rem, 7vw, 6rem);
  padding: clamp(1.6rem, 4.5vw, 3.4rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(245, 102, 0, 0.14);
  border-radius: calc(var(--radius) + 14px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  }
}

@supports not selector(:has(*)) {
  .photo-grid figure:empty {
    background: transparent;
  }
}


/* ---------- Fullscreen photo lightbox (modern) ---------- */
:root {
  --lb-accent: #f56600;
}

body.modal-open {
  overflow: hidden;
}

.gallery-link {
  cursor: zoom-in;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2.5vw, 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.photo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Backdrop: deep glass blur with a warm wash */
.photo-lightbox__scrim {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-out;
  background:
    radial-gradient(120% 90% at 18% 4%, rgba(245, 102, 0, 0.28), transparent 46%),
    radial-gradient(110% 80% at 88% 6%, rgba(255, 255, 255, 0.10), transparent 42%),
    rgba(8, 7, 6, 0.62);
  -webkit-backdrop-filter: blur(26px) saturate(1.05);
  backdrop-filter: blur(26px) saturate(1.05);
  opacity: 0;
  transition: opacity 320ms ease;
}

.photo-lightbox.is-open .photo-lightbox__scrim {
  opacity: 1;
}

/* Panel */
.photo-lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: clamp(0.85rem, 2vh, 1.25rem);
  width: min(1320px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: 0;
  padding: clamp(0.5rem, 1.8vw, 1.5rem);
  outline: none;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.photo-lightbox.is-open .photo-lightbox__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Image */
.photo-lightbox__figure {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 0;
  width: 100%;
}

.photo-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, calc(100vw - 1.5rem));
  max-height: min(82vh, calc(100dvh - 8.5rem));
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(14px, 2vw, 22px);
  box-shadow:
    0 48px 150px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 200ms ease, filter 200ms ease;
}

.photo-lightbox.is-swapping .photo-lightbox__image {
  opacity: 0;
  filter: blur(6px);
}

/* Loading spinner */
.photo-lightbox__spinner {
  position: absolute;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--lb-accent);
  opacity: 0;
  pointer-events: none;
  animation: lb-spin 0.7s linear infinite;
  transition: opacity 160ms ease;
}

.photo-lightbox.is-loading .photo-lightbox__spinner {
  opacity: 1;
}

@keyframes lb-spin { to { transform: rotate(360deg); } }

/* Caption */
.photo-lightbox__caption {
  max-width: min(960px, calc(100vw - 1.5rem));
  margin: 0;
  padding: 0.85rem 1.25rem;
  color: #fff;
  background: rgba(12, 10, 9, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.photo-lightbox__caption[hidden] {
  display: none;
}

/* Shared glass control */
.photo-lightbox__btn {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  cursor: pointer;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.photo-lightbox__btn:hover,
.photo-lightbox__btn:focus-visible {
  background: rgba(245, 102, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.07);
  outline: none;
}

.photo-lightbox__btn:active {
  transform: scale(0.96);
}

.photo-lightbox__btn svg {
  width: 42%;
  height: 42%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-lightbox__close {
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: clamp(3rem, 6vw, 3.5rem);
  height: clamp(3rem, 6vw, 3.5rem);
}

.photo-lightbox__nav {
  top: 50%;
  width: clamp(3rem, 5vw, 3.75rem);
  height: clamp(3rem, 5vw, 3.75rem);
  transform: translateY(-50%);
}
.photo-lightbox__nav:hover,
.photo-lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.07);
}
.photo-lightbox__nav:active {
  transform: translateY(-50%) scale(0.96);
}
.photo-lightbox__nav--prev { left: max(0.75rem, env(safe-area-inset-left)); }
.photo-lightbox__nav--next { right: max(0.75rem, env(safe-area-inset-right)); }

.photo-lightbox[data-single="true"] .photo-lightbox__nav,
.photo-lightbox[data-single="true"] .photo-lightbox__counter {
  display: none;
}

/* Counter pill */
.photo-lightbox__counter {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 0.4rem 0.95rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .photo-lightbox { padding: 0.5rem; }

  .photo-lightbox__panel {
    width: 100vw;
    max-height: 100dvh;
    padding: 4.75rem 0.5rem 4rem;
  }

  .photo-lightbox__image {
    max-height: calc(100dvh - 10rem);
  }

  .photo-lightbox__nav {
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 0.1rem);
    top: auto;
    transform: none;
  }
  .photo-lightbox__nav:hover,
  .photo-lightbox__nav:focus-visible,
  .photo-lightbox__nav:active { transform: scale(1.0); }
  .photo-lightbox__nav--prev { left: 0.85rem; }
  .photo-lightbox__nav--next { right: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-lightbox,
  .photo-lightbox__scrim,
  .photo-lightbox__panel,
  .photo-lightbox__image,
  .photo-lightbox__btn {
    transition: none;
  }
  .photo-lightbox__spinner { animation: none; }
}

/* ---------- Mobile visual refinements ---------- */
@media (max-width: 700px) {
  .hero-card,
  .page-title {
    overflow: visible;
  }

  .page-title {
    width: 100%;
  }

  .wordmark {
    max-width: 100%;
    padding-inline: 0.08em;
    font-size: clamp(3rem, 12.4vw, 2.35rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    white-space: nowrap;
  }

  .section-heading {
    font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
    font-size: clamp(2.25rem, 9vw, 3.35rem);
    line-height: 1.02;
    margin-bottom: clamp(1.75rem, 6vw, 2.75rem);
  }

  .photo-grid {
    gap: clamp(2rem, 7vw, 3rem);
  }
}

@media (max-width: 380px) {
  .wordmark {
    font-size: clamp(2.85rem, 11.8vw, 3.2rem);
    letter-spacing: -0.045em;
  }
}

/* ---------- Mobile title line break ---------- */
@media (max-width: 700px) {
  .page-title h1 {
    display: grid;
    gap: 0.12em;
  }

  .page-title .title-line {
    display: block;
  }
}

@media (min-width: 701px) {
  .page-title .title-line {
    display: inline;
  }

  .page-title .title-line--first::after {
    content: " ";
  }
}



/* ---------- Reunions 2017 title card transparency override ---------- */
.reunion-2017 .hero-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .year-logo--bright,
  .year-logo-stage::before {
    animation: none !important;
  }

  .year-logo--bright {
    opacity: 1;
  }

  .year-logo-stage::before {
    opacity: 0.34;
  }
}


/* ---------- Modern photo-heavy homepage ---------- */
.home-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 2%, rgba(245, 102, 0, 0.20), transparent 26rem),
    radial-gradient(circle at 92% 16%, rgba(17, 17, 17, 0.10), transparent 22rem),
    linear-gradient(180deg, #fffaf5 0%, #ffffff 58%, #fff4e8 100%);
}

.home-header {
  padding-bottom: 0;
}

.home-shell {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 7vw, 6rem);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: clamp(560px, 78vh, 840px);
  padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}



.home-hero h1 {
  max-width: 850px;
  margin: 0 0 1.2rem;
  font-family: "Arial Black", Impact, Haettenschweiler, "Franklin Gothic Heavy", sans-serif;
  text-transform: uppercase;
}

.home-deck {
  max-width: 650px;
  margin: 0 0 1.7rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  font-weight: 650;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.button--primary {
  color: #fff;
  background: #111;
}

.button--primary:visited {
  color: #fff;
}

.button--primary:hover,
.button--primary:focus-visible {
  color: #fff;
  background: var(--orange-dark);
}

.button--ghost {
  color: var(--black);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(32, 25, 22, 0.12);
}

.home-hero__media {
  position: relative;
  min-height: clamp(470px, 62vw, 700px);
}



.home-hero__photo,
.home-hero__video {
  position: absolute;
  display: block;
  width: 54%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 28px 80px rgba(77, 38, 0, 0.24);
}

.home-hero__photo--one {
  top: 3%;
  left: 3%;
  z-index: 2;
  transform: rotate(-7deg);
}

.home-hero__photo--two {
  top: 0;
  right: 0;
  z-index: 1;
  transform: rotate(7deg);
}

.home-hero__photo--three {
  left: 20%;
  bottom: 2%;
  z-index: 3;
  width: 62%;
  aspect-ratio: 16 / 11;
  transform: rotate(2deg);
}

.home-hero__video {
  right: 6%;
  bottom: 15%;
  z-index: 4;
  width: 36%;
  aspect-ratio: 3 / 4;
  transform: rotate(8deg);
}

.featured-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.55rem, 1.4vw, 1rem);
  margin: 0 0 clamp(3rem, 7vw, 6rem);
}

.featured-strip img {
  width: 100%;
  aspect-ratio: 1 / 1.16;
  object-fit: cover;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  box-shadow: var(--shadow-soft);
}

.featured-strip img:nth-child(even) {
  transform: translateY(1.6rem);
}

.home-section {
  margin: clamp(3rem, 7vw, 6rem) 0;
}

.section-intro {
  display: grid;
/*  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); */
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.section-intro h2,
.home-callout h2 {
  margin: 0;
  font-family: "Arial Black", Impact, Haettenschweiler, "Franklin Gothic Heavy", sans-serif;
  text-transform: uppercase;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, 22vw);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.year-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding: clamp(1rem, 2vw, 1.45rem);
  color: #fff;
  background-image: var(--year-bg);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transform: translateZ(0);
}

.year-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 12% 8%, rgba(245, 102, 0, 0.58), transparent 38%);
  transition: opacity 180ms ease;
}

.year-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: saturate(0.8);
}

.year-card:hover,
.year-card:focus-visible {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 28px 72px rgba(77, 38, 0, 0.24);
}

.year-card--live:hover::before,
.year-card--live:focus-visible::before {
  opacity: 0.84;
}

.year-card--large {
  grid-row: span 2;
}

.year-card--wide {
  grid-column: span 2;
}

.year-card--placeholder,
.year-card--covid {
  filter: grayscale(0.34);
}

.year-card--placeholder::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.72) 100%),
    repeating-linear-gradient(135deg, rgba(245, 102, 0, 0.16) 0 12px, rgba(0, 0, 0, 0.10) 12px 24px);
}

.year-card__year {
  display: block;
  margin: 0;
  font-family: "Arial Black", Impact, Haettenschweiler, "Franklin Gothic Heavy", sans-serif;
  font-size: clamp(2.45rem, 5.8vw, 5.3rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: -0.07em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.44);
}

.year-card__tag {
  display: block;
  max-width: 18rem;
  margin-top: 0.65rem;
  font-size: clamp(0.86rem, 1.2vw, 1rem);
  font-weight: 850;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52);
}

.home-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: end;
  padding: clamp(1.25rem, 4vw, 2.6rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(245, 102, 0, 0.14);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow-soft);
}

.home-callout p:last-child {
  margin: 0;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero__copy {
    order: -1;
  }

  .home-hero__media {
    min-height: clamp(440px, 70vw, 620px);
  }

  .year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-intro,
  .home-callout {
    grid-template-columns: 1fr;
  }

  .home-callout p:last-child {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .home-shell {
    width: min(100% - 1rem, var(--content));
  }

  .home-hero {
    padding-top: 4.25rem;
  }

  .home-hero__media {
    min-height: 420px;
  }

  .home-hero__photo,
  .home-hero__video {
    border-width: 5px;
  }

  .featured-strip {
    grid-template-columns: repeat(5, 42vw);
    overflow-x: auto;
    padding: 0 0 1.8rem;
    scroll-snap-type: x mandatory;
  }

  .featured-strip img {
    scroll-snap-align: start;
  }

  .featured-strip img:nth-child(even) {
    transform: none;
  }

  .year-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(185px, 54vw);
  }

  .year-card--large,
  .year-card--wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 430px) {
  .home-actions {
    display: grid;
  }

  .home-hero__media {
    min-height: 360px;
  }

  .year-grid {
    grid-template-columns: 1fr;
  }

  .year-card--large,
  .year-card--wide {
    grid-column: span 1;
  }
}

/* ---------- Homepage archive refinements ---------- */
.home-page .home-deck {
  max-width: 610px;
}

.home-page .home-hero__video {
  background: #111;
}

.home-page .featured-strip img {
  aspect-ratio: 1 / 1;
}

.home-page .year-grid--square {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.home-page .year-grid--square .year-card {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.home-page .year-card--no-photo,
.home-page .year-card--placeholder {
  background-image: none;
  background-color: #17120f;
}

.home-page .year-card--no-photo::before,
.home-page .year-card--placeholder::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.78) 100%),
    repeating-linear-gradient(135deg, rgba(245, 102, 0, 0.34) 0 16px, rgba(255, 255, 255, 0.03) 16px 32px, rgba(0, 0, 0, 0.16) 32px 48px);
}

@media (max-width: 980px) {
  .home-page .year-grid--square {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .home-page .year-grid--square {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .home-page .year-grid--square .year-card {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 430px) {
  .home-page .year-grid--square {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hard mobile horizontal lock ----------
   Keeps the document fixed to the viewport on phones.
   The only intentional sideways movement is inside .featured-strip. */
@media (max-width: 700px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  @supports (overflow: clip) {
    html {
      overflow-x: clip !important;
    }
  }

  body,
  body.home-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  @supports (overflow: clip) {
    body,
    body.home-page {
      overflow-x: clip !important;
    }
  }

  body::before,
  body.home-page::before {
    left: 0;
    right: 0;
    inset-inline: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .home-shell,
  .home-header,
  .site-header,
  .site-footer,
  .home-hero,
  .home-hero__copy,
  .home-hero__media,
  .home-section,
  .section-intro,
  .year-grid,
  .year-card {
    max-width: 100%;
    min-width: 0;
  }

  .home-shell,
  .home-header,
  .site-header,
  .site-footer {
    width: calc(100% - 1rem);
  }

  .home-hero,
  .home-hero__media,
  .year-grid {
    overflow-x: hidden;
  }

  @supports (overflow: clip) {
    .home-hero,
    .home-hero__media,
    .year-grid {
      overflow-x: clip;
    }
  }

  .home-hero__photo,
  .home-hero__video {
    max-width: none;
  }

  .featured-strip {
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    grid-template-columns: repeat(5, minmax(42vw, 42vw));
    overflow-x: auto !important;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .featured-strip img {
    width: 42vw;
    max-width: none;
    min-width: 0;
  }
}

