/* AU MCA First Batch — shared styles */
:root {
  --ink: #1d1a2b;
  --ink-soft: #4a4560;
  --muted: #7a7590;
  --bg: #faf7f2;
  --card: #ffffff;
  --line: #ebe5da;
  --brand: #6b1e3a;       /* deep maroon */
  --brand-2: #2a2459;     /* indigo */
  --gold: #c99a3b;
  --gold-soft: #f6ecd6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29,26,43,.05), 0 10px 30px -12px rgba(29,26,43,.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3eee6; --ink-soft: #cfc8bb; --muted: #9a93a8;
    --bg: #14121c; --card: #1d1a29; --line: #2e2a3d;
    --gold-soft: #2c2618;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.serif { font-family: "Fraunces", Georgia, serif; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font: 600 13px/1 "Fraunces", Georgia, serif; letter-spacing: .02em;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; line-height: 1.2; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--gold-soft); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201,154,59,.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(107,30,58,.9), transparent 60%),
    linear-gradient(135deg, #2a2459 0%, #3d1f4d 55%, #6b1e3a 100%);
}
.hero::after { /* subtle grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; padding: 72px 0 64px; }
.hero.photo { background: #1d1a2b; min-height: min(78vh, 680px); display: flex; align-items: flex-end; }
.hero.photo .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.hero.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(29,18,40,.78) 0%, rgba(29,18,40,.45) 45%, transparent 75%),
    linear-gradient(to top, rgba(29,18,40,.96) 0%, rgba(42,36,89,.72) 42%, rgba(107,30,58,.25) 75%, rgba(0,0,0,.15) 100%);
}
.hero.photo::after { display: none; }
.hero.photo .wrap { z-index: 2; padding: 120px 0 48px; }
.hero .credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: 12px; color: rgba(255,255,255,.55); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(36px, 6vw, 68px); line-height: 1.05; letter-spacing: -.02em;
  margin: 20px 0 16px; max-width: 16ch;
}
.hero h1 em { font-style: italic; color: #f1d08a; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); max-width: 60ch; color: rgba(255,255,255,.82); margin: 0; }
.hero-banner {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.hero-banner img { width: 100%; height: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; max-width: 760px; }
.stat {
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 16px 18px;
}
.stat b { display: block; font: 600 30px/1.1 "Fraunces", Georgia, serif; color: #fff; }
.stat span { font-size: 13px; color: rgba(255,255,255,.72); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero-grid h1 { font-size: clamp(36px, 4.6vw, 58px); }
.hero-grid .stats { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
.group-photo { margin: 0; transform: rotate(1.2deg); }
.group-photo a { display: block; border-radius: var(--radius); overflow: hidden; border: 6px solid rgba(255,255,255,.92); box-shadow: 0 30px 60px -18px rgba(0,0,0,.6); }
.group-photo img { width: 100%; height: auto; transition: transform .6s; }
.group-photo a:hover img { transform: scale(1.03); }
.group-photo figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: rgba(255,255,255,.7); transform: rotate(-1.2deg); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid .stats { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .group-photo, .group-photo figcaption { transform: none; }
}
@media (max-width: 560px) { .hero-grid .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 6px;
}
.section-head p { margin: 0; color: var(--muted); max-width: 56ch; }
.kicker { color: var(--brand); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--gold); } }

/* ---------- Roster ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
}
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: inherit; width: 100%; }
.search svg { flex: none; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { opacity: .6; margin-left: 4px; }

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 22px; }
.person {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.person:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 600 15px/1 "Fraunces", Georgia, serif; color: #fff; letter-spacing: .02em;
}
.person .both { font-size: 11px; font-weight: 600; color: var(--brand); background: var(--gold-soft); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.avatar.photo { object-fit: cover; box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--gold); }
.person h3 { font-size: 15.5px; font-weight: 600; margin: 0; line-height: 1.3; }
.person .loc { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; display: none; }

/* ---------- Memoriam ---------- */
.memoriam {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 5vw, 48px); text-align: center; position: relative; overflow: hidden;
}
.memoriam::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand-2));
}
.lamp { font-size: 30px; }
.memoriam h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(26px, 3.5vw, 34px); margin: 8px 0 6px; }
.memoriam p { color: var(--muted); margin: 0 auto 26px; max-width: 52ch; }
.mem-names { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.mem-name {
  padding: 18px 26px; border-radius: 14px; background: var(--gold-soft);
  font: italic 500 20px/1.3 "Fraunces", Georgia, serif;
}

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.event {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event .media { aspect-ratio: 16/10; background: var(--gold-soft); overflow: hidden; }
.event .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.event:hover .media img { transform: scale(1.04); }
.event .body { padding: 20px 22px 22px; }
.event .year { font-weight: 600; font-size: 13px; line-height: 1; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
.event h3 { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; margin: 8px 0 6px; line-height: 1.2; }
.event p { margin: 0; color: var(--muted); font-size: 15px; }
.event .more { margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--ink); }

/* ---------- Gallery (rows read left to right; whole photo, no cropping) ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; --row: 210px; }
.gallery::after { content: ""; flex-grow: 999; }
.gallery a {
  flex-grow: var(--r); flex-basis: calc(var(--r) * var(--row)); max-width: calc(var(--r) * var(--row) * 1.9);
  aspect-ratio: var(--r); border-radius: 12px; overflow: hidden; background: var(--gold-soft); cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery a:hover img { transform: scale(1.04); filter: brightness(1.06); }
.gallery a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 520px) { .gallery { gap: 6px; --row: 120px; } .gallery a { border-radius: 8px; } }

/* ---------- Album index ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.album-card {
  text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.album-card .cover { aspect-ratio: 4/3; overflow: hidden; background: var(--gold-soft); position: relative; }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.album-card:hover .cover img { transform: scale(1.05); }
.album-card .info { padding: 12px 14px 14px; }
.album-card h3 { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 18px; font-weight: 600; line-height: 1.25; }
.album-card .info span { font-size: 13px; color: var(--muted); }
.video-cover { display: grid; place-items: center; }
.video-cover img { position: absolute; inset: 0; filter: brightness(.7); }
.play.sm { width: 52px; height: 52px; }
@media (max-width: 520px) { .album-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .album-card h3 { font-size: 16px; } }
.section-head .count { white-space: nowrap; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 560px) { .top-link { display: none; } }

/* ---------- Photos drop-down ---------- */
.menu { position: relative; }
.menu-btn { display: inline-flex !important; align-items: center; gap: 4px; }
.menu-btn svg { transition: transform .2s; }
.menu.open .menu-btn svg { transform: rotate(180deg); }
.menu-list {
  position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; min-width: 220px; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu-list::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.menu.open .menu-list { opacity: 1; visibility: visible; transform: none; }
.nav-links .menu-list a { display: block; border-radius: 9px; padding: 9px 12px; color: var(--ink); white-space: nowrap; background: none; }
.nav-links .menu-list a:hover { background: var(--gold-soft); }
@media (max-width: 560px) { .menu-list { left: auto; right: -70px; translate: none; } }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.tabs a:hover { color: var(--ink); background: var(--gold-soft); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: rgba(12,10,18,.94); padding: 56px 16px;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 100%); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.7); font-size: 14px; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 10px; translate: none; } }

/* ---------- Video card ---------- */
.video-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
}
.video-card .poster {
  min-height: 260px; background: linear-gradient(135deg, var(--brand-2), var(--brand));
  display: grid; place-items: center; position: relative;
}
.video-card .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.play {
  position: relative; width: 78px; height: 78px; border-radius: 50%; background: #fff; color: var(--brand);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s;
}
.video-card a:hover .play { transform: scale(1.08); }
.video-card .body { padding: clamp(24px, 4vw, 40px); align-self: center; }
.video-card h3 { font-family: "Fraunces", Georgia, serif; font-size: 26px; margin: 8px 0 8px; font-weight: 600; }
.video-card p { color: var(--muted); margin: 0 0 20px; }
@media (max-width: 760px) { .video-card { grid-template-columns: 1fr; } }

/* ---------- Video player ---------- */
.video-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; max-width: 920px; }
.video-wrap video { display: block; width: 100%; aspect-ratio: 4/3; background: #000; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; }
.video-meta h3 { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; margin: 0 0 2px; }
.video-meta p { margin: 0; color: var(--muted); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { transition: none !important; } }

@media (max-width: 560px) {
  .brand small { display: none; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
  .hero .wrap { padding: 48px 0 44px; }
  section { padding: 52px 0; }
}
