/* ============================================================
   FAREWELL TRIBUTE — STYLESHEET
   Batch: 2022–2026 | Islamic Studies
   All theme values are CSS variables — edit :root to retheme.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;600;700;800;900&family=Jost:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap");

/* ── Light Mode Tokens ───────────────────────────────────── */
:root {
  --color-olive: #4a5240;
  --color-olive-dark: #323829;
  --color-olive-light: #6b7360;
  --color-camel: #c09a6b;
  --color-camel-light: #d4b48a;
  --color-camel-dark: #a07f52;
  --color-bone: #f5f0e8;
  --color-bone-dark: #ede5d4;
  --color-bone-deeper: #dfd5c0;

  --bg-page: var(--color-bone);
  --bg-surface: #ffffff;
  --bg-surface-alt: var(--color-bone-dark);
  --bg-card: #ffffff;
  --text-primary: #1e1e1e;
  --text-secondary: #4a4540;
  --text-muted: #7a7060;
  --text-accent: var(--color-camel-dark);
  --border-color: rgba(74, 82, 64, 0.15);

  --font-heading: "Big Shoulders Display", sans-serif;
  --font-body: "Jost", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 4rem;
  --text-6xl: 5.5rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lift:
    0 12px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);

  --transition-fast: 150ms ease;
  --transition-base: 280ms ease;
  --transition-slow: 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Dark Mode Tokens ────────────────────────────────────── */
[data-theme="dark"] {
  --bg-page: #1a1c16;
  --bg-surface: #232619;
  --bg-surface-alt: #1e2015;
  --bg-card: #2a2d1f;
  --text-primary: #ede8de;
  --text-secondary: #b5ae9f;
  --text-muted: #7a7060;
  --text-accent: var(--color-camel-light);
  --border-color: rgba(192, 154, 107, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  line-height: 1.65;
  background: var(--bg-page);
  color: var(--text-primary);
  transition:
    background var(--transition-base),
    color var(--transition-base);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ── Utilities ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.section {
  padding-block: var(--space-20);
}
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-accent);
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.is-visible > *:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}
.reveal-stagger.is-visible > *:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}
.reveal-stagger.is-visible > *:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.19s;
}
.reveal-stagger.is-visible > *:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.26s;
}
.reveal-stagger.is-visible > *:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.33s;
}
.reveal-stagger.is-visible > *:nth-child(6) {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-12);
}
.section-header--center {
  text-align: center;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
}
.section-subtitle {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
}
.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* ── View All Button ─────────────────────────────────────── */
.view-all-wrap {
  text-align: center;
  margin-top: var(--space-12);
}
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-olive);
  background: transparent;
  color: var(--color-olive-dark);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn-view-all:hover {
  background: var(--color-olive-dark);
  color: var(--color-bone);
  border-color: var(--color-olive-dark);
}
[data-theme="dark"] .btn-view-all {
  border-color: var(--color-camel);
  color: var(--color-camel-light);
}
[data-theme="dark"] .btn-view-all:hover {
  background: var(--color-camel);
  color: var(--color-olive-dark);
}

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-base);
}
[data-theme="dark"] .nav {
  background: rgba(26, 28, 22, 0.88);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-olive-dark);
  letter-spacing: -0.02em;
}
[data-theme="dark"] .nav-brand {
  color: var(--color-camel-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.nav-links a:hover {
  color: var(--color-camel-dark);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
}
.btn-icon:hover {
  background: var(--color-olive);
  color: var(--color-bone);
  border-color: var(--color-olive);
}
.nav-hamburger {
  display: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-page);
  padding: 100px var(--space-6) var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast);
}
.mobile-menu a:hover {
  color: var(--color-camel);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding-top: 80px;
  background: var(--color-olive-dark);
  color: var(--color-bone);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 60% at 65% 40%,
      rgba(192, 154, 107, 0.1) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 70% at 10% 80%,
      rgba(74, 82, 64, 0.5) 0%,
      transparent 60%
    );
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
  padding-block: var(--space-12);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-camel);
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-camel);
}
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, var(--text-6xl));
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: var(--color-bone);
}
.hero-heading em {
  font-style: normal;
  color: var(--color-camel);
}
.hero-body {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.75);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-year-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border: 1px solid rgba(192, 154, 107, 0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-camel-light);
  letter-spacing: 0.06em;
}

/* ── HERO 11-PHOTO CLUSTER ───────────────────────────────── */
.hero-photos {
  position: relative;
  height: 520px;
}
.hero-photo {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 2px solid rgba(245, 240, 232, 0.12);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center: Hammad Siddique — largest, prominent */
.hero-photo--center {
  width: 180px;
  height: 240px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: -10;
  border: 3px solid var(--color-camel) !important;
  box-shadow:
    0 0 0 4px rgba(192, 154, 107, 0.3),
    var(--shadow-lift);
}
.hero-photo--center-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-camel-light);
  text-transform: uppercase;
}
/* 10 surrounding classmates */
.hero-photo--1 {
  width: 110px;
  height: 140px;
  top: 10px;
  left: 40px;
  transform: rotate(-5deg);
  z-index: 4;
}
.hero-photo--2 {
  width: 100px;
  height: 130px;
  top: 5px;
  left: 180px;
  transform: rotate(3deg);
  z-index: 3;
}
.hero-photo--3 {
  width: 105px;
  height: 135px;
  top: 0px;
  right: 60px;
  transform: rotate(-2deg);
  z-index: 5;
}
.hero-photo--4 {
  width: 100px;
  height: 125px;
  top: 120px;
  right: 10px;
  transform: rotate(4deg);
  z-index: 6;
}
.hero-photo--5 {
  width: 105px;
  height: 130px;
  bottom: 80px;
  right: 20px;
  transform: rotate(-3deg);
  z-index: 4;
}
.hero-photo--6 {
  width: 100px;
  height: 130px;
  bottom: 20px;
  right: 130px;
  transform: rotate(2deg);
  z-index: 3;
}
.hero-photo--7 {
  width: 110px;
  height: 140px;
  bottom: 10px;
  left: 100px;
  transform: rotate(-4deg);
  z-index: 5;
}
.hero-photo--8 {
  width: 100px;
  height: 125px;
  bottom: 40px;
  left: 10px;
  transform: rotate(3deg);
  z-index: 6;
}
.hero-photo--9 {
  width: 105px;
  height: 130px;
  top: 130px;
  left: 10px;
  transform: rotate(-2deg);
  z-index: 4;
}
.hero-photo--10 {
  width: 100px;
  height: 125px;
  top: 200px;
  left: 130px;
  transform: rotate(4deg);
  z-index: 3;
}

.hero-scroll-hint {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  font-weight: 500;
}
.hero-scroll-hint i {
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ── CLASSMATES CAROUSEL ─────────────────────────────────── */
.classmates-section {
  background: var(--bg-surface-alt);
}
.carousel-wrapper {
  position: relative;
}
.carousel-track-outer {
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.classmate-slide {
  min-width: 100%;
  padding: var(--space-4);
}
.classmate-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border-color);
}
.classmate-card-photo {
  position: relative;
  overflow: hidden;
  position: relative;
  overflow: hidden;
  max-height: 500px;
  width: 100%;
}
.classmate-card-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.classmate-card:hover .classmate-card-photo img {
  transform: scale(1.04);
}
.classmate-number {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
}
.classmate-card-info {
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}
.classmate-index {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-accent);
}
.classmate-name {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.classmate-tribute {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--color-camel);
  padding-left: var(--space-4);
}
.classmate-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-bone-dark);
  color: var(--color-olive-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  width: fit-content;
}
[data-theme="dark"] .classmate-tag {
  background: rgba(74, 82, 64, 0.4);
  color: var(--color-camel-light);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}
.carousel-btn:hover {
  background: var(--color-olive);
  color: var(--color-bone);
  border-color: var(--color-olive);
  transform: scale(1.05);
}
.carousel-dots {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}
.carousel-dot.active {
  width: 24px;
  background: var(--color-camel);
}
.carousel-counter {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  min-width: 48px;
  text-align: center;
}

/* ── PREVIEW VIDEO SECTION (homepage) ───────────────────── */
.videos-preview-section {
  background: var(--bg-page);
}
.video-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.video-preview-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}
.video-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.video-preview-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-olive-dark);
  overflow: hidden;
}
.video-preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-preview-thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 56, 41, 0.5);
  color: var(--color-bone);
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.video-preview-card:hover .play-icon {
  opacity: 1;
}
.video-preview-info {
  padding: 1em;
}
.video-preview-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.video-preview-desc {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── GALLERY PREVIEW (homepage 3 photos) ────────────────── */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.gallery-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  cursor: pointer;
}
.gallery-preview-item:first-child {
  grid-row: auto;
}
.gallery-preview-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-preview-item:hover img {
  transform: scale(1.03);
}
.gallery-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 28, 22, 0.6) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}
.gallery-preview-item:hover .gallery-preview-overlay {
  opacity: 1;
}
.gallery-caption {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-bone);
}
.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(
    145deg,
    var(--color-bone-dark) 0%,
    var(--color-bone-deeper) 100%
  );
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-family: var(--font-body);
}
[data-theme="dark"] .gallery-placeholder {
  background: linear-gradient(145deg, #282b1e 0%, #232619 100%);
}
.gallery-placeholder i {
  font-size: 1.8rem;
  opacity: 0.4;
}

/* ── FULL GALLERY PAGE ───────────────────────────────────── */
.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.gallery-full-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  background: var(--bg-surface-alt);
  cursor: pointer;
}
.gallery-full-item:nth-child(5n + 1) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-full-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-full-item:hover img {
  transform: scale(1.06);
}
.gallery-full-item .gallery-placeholder {
  font-size: var(--text-xs);
}

/* ── VIDEO GRID PAGE (10 videos) ─────────────────────────── */
.video-page-hero {
  background: var(--color-olive-dark);
  color: var(--color-bone);
  padding-top: calc(var(--space-24) + 60px);
  padding-bottom: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.video-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(192, 154, 107, 0.1) 0%,
    transparent 70%
  );
}
.video-page-hero .section-title {
  color: var(--color-bone);
  position: relative;
  z-index: 1;
}
.video-page-hero .section-subtitle {
  color: rgba(245, 240, 232, 0.6);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.video-page-hero .label {
  color: var(--color-camel);
  position: relative;
  z-index: 1;
}

.video-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-16);
}
.video-full-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}
.video-full-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.video-full-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.video-full-thumb video {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}
.video-full-info {
  padding: 1em;
}
.video-full-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--border-color);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.video-full-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  line-height: 1.1;
}
.video-full-desc {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── QUOTE SECTION ───────────────────────────────────────── */
.quote-section {
  background: var(--color-olive-dark);
  color: var(--color-bone);
  text-align: center;
  padding-block: var(--space-20);
  position: relative;
  overflow: hidden;
}
.quote-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    rgba(192, 154, 107, 0.1) 0%,
    transparent 70%
  );
}
.quote-mark {
  font-family: var(--font-heading);
  font-size: 8rem;
  line-height: 0.6;
  color: var(--color-camel);
  opacity: 0.3;
  display: block;
  margin-bottom: var(--space-6);
}
.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 720px;
  margin-inline: auto;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.quote-attribution {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-camel);
  position: relative;
  z-index: 1;
}

/* ── CLASSMATES PAGE — STICKY SCROLL ─────────────────────── */
.classmates-page-hero {
  background: var(--color-olive-dark);
  color: var(--color-bone);
  padding-top: calc(var(--space-24) + 60px);
  padding-bottom: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.classmates-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(192, 154, 107, 0.1) 0%,
    transparent 70%
  );
}
.classmates-page-hero .section-title {
  color: var(--color-bone);
  position: relative;
  z-index: 1;
}
.classmates-page-hero .section-subtitle {
  color: rgba(245, 240, 232, 0.6);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.classmates-page-hero .label {
  color: var(--color-camel);
  position: relative;
  z-index: 1;
}

/* Sticky scroll container */
.sticky-classmates {
  position: relative;
}

/* Each classmate panel is 100vh, sticky */
.sticky-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1; /* each panel stacks on previous */
}

/* Give each panel increasing z-index so it covers the one before */
.sticky-panel:nth-child(1) {
  z-index: 1;
}
.sticky-panel:nth-child(2) {
  z-index: 2;
}
.sticky-panel:nth-child(3) {
  z-index: 3;
}
.sticky-panel:nth-child(4) {
  z-index: 4;
}
.sticky-panel:nth-child(5) {
  z-index: 5;
}
.sticky-panel:nth-child(6) {
  z-index: 6;
}
.sticky-panel:nth-child(7) {
  z-index: 7;
}
.sticky-panel:nth-child(8) {
  z-index: 8;
}
.sticky-panel:nth-child(9) {
  z-index: 9;
}
.sticky-panel:nth-child(10) {
  z-index: 10;
}
.sticky-panel:nth-child(11) {
  z-index: 11;
}

/* The visible card inside each sticky panel */
.sticky-card {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  position: relative;
}

/* Alternate photo left/right */
.sticky-panel:nth-child(even) .sticky-card {
  direction: rtl;
}
.sticky-panel:nth-child(even) .sticky-card > * {
  direction: ltr;
}

.sticky-card-photo {
  position: relative;
  overflow: hidden;
  background: var(--color-olive-dark);
  min-height: 100vh;
}
.sticky-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.sticky-card-photo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-olive) 0%,
    var(--color-camel-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  font-family: var(--font-heading);
  font-size: 10rem;
  font-weight: 900;
}
.sticky-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-12);
  gap: var(--space-6);
  background: var(--bg-card);
  position: relative;
  overflow-y: auto;
}
.sticky-card-number {
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-bone-deeper);
  letter-spacing: -0.04em;
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  opacity: 0.35;
}
[data-theme="dark"] .sticky-card-number {
  color: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

.sticky-card-batch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-accent);
}
.sticky-card-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.sticky-card-dept {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sticky-card-bio {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 44ch;
}
.sticky-card-traits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.trait-tag {
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.sticky-card-quote {
  font-size: var(--text-base);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--color-camel);
  padding-left: var(--space-4);
}
.sticky-progress {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  background: rgba(192, 154, 107, 0.2);
}
.sticky-progress-bar {
  height: 100%;
  background: var(--color-camel);
  transition: width 0.1s linear;
  width: 0%;
}
.sticky-nav-dots {
  position: fixed;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.sticky-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(192, 154, 107, 0.3);
  border: 1px solid rgba(192, 154, 107, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sticky-dot.active {
  background: var(--color-camel);
  transform: scale(1.4);
}
.sticky-dot:hover {
  background: var(--color-camel-light);
}

/* ── AUDIO PLAYER ────────────────────────────────────────── */
.audio-player {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  box-shadow: var(--shadow-lift);
  max-width: 56px;
  overflow: hidden;
  transition: max-width var(--transition-slow);
}
.audio-player.expanded {
  max-width: 240px;
}
.audio-play-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-full);
  background: var(--color-olive-dark);
  color: var(--color-bone);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.audio-play-btn:hover {
  background: var(--color-olive);
}
.audio-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
}
.audio-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-status {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.audio-mute-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.audio-mute-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--color-olive-dark);
  color: var(--color-bone);
  padding-block: var(--space-16);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-bone);
  margin-bottom: var(--space-4);
}
.footer-brand span {
  color: var(--color-camel);
}
.footer-tagline {
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(245, 240, 232, 0.55);
  margin-bottom: var(--space-8);
  max-width: 44ch;
  margin-inline: auto;
}
.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(192, 154, 107, 0.4);
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  list-style: none;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(245, 240, 232, 0.5);
  letter-spacing: 0.06em;
  transition: color var(--transition-fast);
}
.footer-nav a:hover {
  color: var(--color-camel-light);
}
.footer-copy {
  font-size: var(--text-xs);
  color: rgba(245, 240, 232, 0.3);
  letter-spacing: 0.06em;
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-scroll-hint i {
    animation: none;
  }
  .carousel-track {
    transition: none;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .video-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photos {
    display: none;
  }
  .hero-body {
    margin-inline: auto;
  }
  .hero-eyebrow {
    justify-content: center;
  }
  .classmate-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .classmate-card-photo {
    aspect-ratio: 3/2;
    max-height: 280px;
  }
  .classmate-card-info {
    padding: var(--space-8);
  }
  .video-preview-grid {
    grid-template-columns: 1fr;
  }
  .gallery-preview-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .gallery-preview-item:first-child {
    grid-row: auto;
  }
  .sticky-card {
    grid-template-columns: 1fr;
  }
  .sticky-card-photo {
    height: 45vh;
  }
  .sticky-panel:nth-child(even) .sticky-card {
    direction: ltr;
  }
  .sticky-nav-dots {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .video-full-grid {
    grid-template-columns: 1fr;
  }
  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-full-item:nth-child(5n + 1) {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
  .audio-player {
    bottom: var(--space-4);
    right: var(--space-4);
  }
  .gallery-preview-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
}
