/* GMC-78 — redesign. Palette from the college logo: navy emblem, wordmark blue, ice, with antique gold. */
:root {
  --navy: #14264a;
  --navy2: #0c1a35;
  --blue: #384f90;
  --blue2: #5b78c4;
  --ice: #edf1fa;
  --paper: #f8faff;
  --gold: #d4a23a;
  --gold2: #f0cb78;
  --ink: #0f1a33;
  --muted: #556280;
  --line: #dce3f0;
  --r: 16px;
  --gap: 20px;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --tab: 0px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}
.ic {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: -0.18em;
}
.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  padding: 8px 14px;
  z-index: 99;
}
.skip-link:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.progress-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 70;
}
/* icon badge: icon sits beside content, never above it */
.badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ice);
  color: var(--blue);
  flex: none;
}
.badge .ic {
  width: 24px;
  height: 24px;
}
.dark .badge,
.hero .badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold2);
}
/* header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition:
    background 0.3s,
    box-shadow 0.3s;
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 88px;
}
.site-header.solid,
body.inner .site-header {
  background: rgba(20, 38, 74, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(8, 18, 40, 0.25);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font: 400 1.5rem var(--serif);
  line-height: 1;
}
.brand .em {
  display: grid;
  place-items: center;
  flex: none;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(8, 18, 40, 0.3);
}
.brand img {
  height: 58px;
  width: auto;
}
.brand .bt {
  font: 400 1.5rem/1.05 var(--serif);
  white-space: nowrap;
}
.brand small {
  display: block;
  font: 700 0.82rem var(--sans);
  letter-spacing: 0.22em;
  color: var(--gold2);
  margin-top: 4px;
}
.nav-desktop {
  display: flex;
  margin-left: auto;
  gap: 2px;
}
.nav-item {
  position: relative;
}
.nav-link {
  background: none;
  border: 0;
  color: inherit;
  font: 600 0.93rem var(--sans);
  padding: 33px 12px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  gap: 5px;
  align-items: center;
}
.nav-item.active > .nav-link,
.nav-link:hover {
  color: var(--gold2);
}
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 20px 50px rgba(8, 18, 40, 0.28);
  padding: 22px 26px;
  display: grid;
  grid-auto-flow: column;
  gap: 34px;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  border-top: 3px solid var(--gold);
}
.nav-item.right .mega {
  left: auto;
  right: 0;
}
.mega.wide {
  min-width: 620px;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega,
.nav-item.pin .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega h6 {
  margin: 0 0 8px;
  font: 700 0.82rem var(--sans);
  color: var(--blue);
}
.mega ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega a {
  display: block;
  padding: 5px 0;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.mega a:hover,
.mega a.active {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hamburger {
  display: none;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  color: #fff;
  z-index: 90;
  padding: 76px 6vw 40px;
  overflow: auto;
  transform: translateY(100%);
  visibility: hidden;
  transition:
    transform 0.35s,
    visibility 0.35s;
  border-radius: 24px 24px 0 0;
}
.mobile-menu.open {
  transform: none;
  visibility: visible;
}
.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  font-size: 1.3rem;
}
.m-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 600 1.1rem var(--sans);
  padding: 15px 0;
  text-decoration: none;
  text-align: left;
}
.m-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}
.m-sub a {
  display: block;
  padding: 8px 14px;
  color: #d3ddf3;
  text-decoration: none;
}
.m-sub h6 {
  margin: 12px 14px 2px;
  color: var(--gold2);
  font-size: 0.82rem;
}
/* bottom tab bar (phones and tablets): behaves like an app */
.tabbar {
  display: none;
}
/* hero: 3 photo slides */
.hero {
  position: relative;
  min-height: min(100svh, 820px);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.slides,
.slide {
  position: absolute;
  inset: 0;
}
.slide {
  opacity: 0;
  z-index: 0;
  transition: opacity 1.8s ease-in-out;
}
.slide.out {
  opacity: 1;
  z-index: 1;
  transition: none;
}
.slide.on {
  opacity: 1;
  z-index: 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide.on img,
.slide.out img {
  animation: kb 10s linear forwards;
}
@keyframes kb {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(20, 38, 74, 0.62) 6%,
      rgba(56, 79, 144, 0.28) 46%,
      rgba(255, 255, 255, 0) 80%
    ),
    linear-gradient(0deg, rgba(20, 38, 74, 0.5), rgba(20, 38, 74, 0) 35%);
}
.hero h1,
.hero p.lead,
.hero .motto {
  text-shadow: 0 2px 14px rgba(8, 18, 40, 0.55);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 136px 0 190px;
}
.hero .motto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--gold2);
  margin-bottom: 16px;
}
.hero .motto i {
  width: 44px;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(1.4rem, 4.2vw, 3.2rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  max-width: none;
}
.hero h1 em {
  display: block;
  white-space: nowrap;
}
.hero .btns {
  flex-wrap: nowrap;
  gap: 8px;
}
.hero .btn {
  padding: 9px 18px;
  font-size: 0.82rem;
  gap: 6px;
  white-space: nowrap;
}
.hero .btn .ic {
  width: 15px;
  height: 15px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold2);
}
.hero p.lead {
  max-width: 32em;
  font-size: 1.18rem;
  margin: 20px 0 18px;
  color: #dbe4f7;
}
.ecg {
  display: block;
  width: min(420px, 80%);
  height: 44px;
  margin: 0 0 24px;
}
.ecg path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 4px rgba(8, 18, 40, 0.6));
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: beat 5s 0.6s linear infinite;
}
@keyframes beat {
  0% {
    stroke-dashoffset: 2400;
  }
  70%,
  100% {
    stroke-dashoffset: 0;
  }
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 99px;
  font: 700 0.95rem var(--sans);
  text-decoration: none;
  background: var(--gold);
  color: var(--navy2);
  border: 2px solid var(--gold);
  transition: 0.25s;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold2);
  border-color: var(--gold2);
}
.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn.ghost:hover {
  background: #fff;
  color: var(--navy);
}
.btn.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn.dark:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.dots {
  position: absolute;
  z-index: 3;
  right: max(4vw, calc((100vw - 1180px) / 2));
  bottom: 126px;
  display: flex;
  gap: 8px;
}
.dots button {
  width: 44px;
  height: 5px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.dots button.on::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: 0;
  animation: fill 6s linear;
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
}
.cap {
  position: absolute;
  z-index: 3;
  left: max(4vw, calc((100vw - 1180px) / 2));
  bottom: 120px;
  font-size: 0.88rem;
  color: #dbe4f7;
}
/* stats card overlapping the hero */
.stats {
  position: relative;
  z-index: 5;
  margin-top: -84px;
}
.counters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(20, 38, 74, 0.16);
  border: 1px solid var(--line);
  overflow: hidden;
}
.counter {
  padding: 24px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.counter:last-child {
  border: 0;
}
.counter b {
  display: block;
  font: 400 clamp(2rem, 4vw, 3rem) var(--serif);
  color: var(--blue);
  line-height: 1.1;
}
.counter span {
  font-size: 0.92rem;
  color: var(--muted);
}
/* page banner (inner pages) */
.banner {
  position: relative;
  color: #fff;
  padding: 150px 0 56px;
  overflow: hidden;
  background: var(--navy);
}
.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 38, 74, 0.82), rgba(56, 79, 144, 0.35));
}
.banner .wrap {
  position: relative;
  z-index: 2;
}
.banner h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}
.banner p {
  max-width: 36em;
  margin: 12px 0 0;
  font-size: 1.12rem;
  color: #dbe4f7;
}
.crumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--gold2);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
/* sections */
.section {
  padding: clamp(44px, 6vw, 80px) 0;
}
.section.stone {
  background: var(--ice);
}
.sec-head {
  max-width: 46em;
 
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sec-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}
.sec-head p {
  color: var(--muted);
  margin: 8px 0 0;
}
.sec-head .ic {
  display: none;
}
.sec-head::before {
  content: '';
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  background: var(--gold);
  flex: none;
}
.dark {
  color: #fff;
  position: relative;
  background: var(--navy);
}
.dark .sec-head p {
  color: #c6d3ee;
}
.dark > .bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-size: cover;
  background-position: center;
}
.dark > .wrap,
.dark > .rail-wrap {
  position: relative;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* explore tiles: uniform photo, icon beside text */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.tile:hover {
  box-shadow: 0 16px 34px rgba(20, 38, 74, 0.14);
  transform: translateY(-4px);
}
.tile .ph {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ice);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s;
}
.tile:hover img {
  transform: scale(1.05);
}
.tile .in {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}
.tile h3 {
  font-size: 1.2rem;
}
.tile p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
/* rails */
.rail-wrap {
  position: relative;
}
.rail {
  --pad: max(4vw, calc((100vw - 1180px) / 2));
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px var(--pad) 22px;
  scroll-padding-left: var(--pad);
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail.drag {
  cursor: grabbing;
  scroll-snap-type: none;
}
.rail > * {
  scroll-snap-align: start;
  flex: none;
}
.rail-ctl {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1180px, 92vw);
  margin: 0 auto;
}
.rail-bar {
  flex: 1;
  height: 4px;
  background: rgba(127, 127, 127, 0.3);
  border-radius: 4px;
  overflow: hidden;
}
.rail-bar i {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--gold);
  border-radius: 4px;
}
.rail-ctl button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
}
.rail-ctl button:hover {
  background: var(--gold);
  color: var(--navy2);
}
.tl {
  width: 290px;
  min-height: 230px;
  padding: 22px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.tl b {
  display: block;
  font: 400 2.4rem var(--serif);
  color: var(--gold2);
}
.tl h3 {
  font-size: 1.2rem;
  margin: 6px 0 8px;
}
.tl p {
  margin: 0;
  color: #d3def4;
  font-size: 0.95rem;
}
.re {
  width: min(340px, 80vw);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow 0.3s;
}
.re:hover {
  box-shadow: 0 16px 34px rgba(20, 38, 74, 0.16);
}
.re .ph {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ice);
}
.re .ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.re .tx {
  padding: 18px 20px 22px;
  border-top: 5px solid var(--g, var(--gold));
  flex: 1;
}
.re small {
  color: var(--muted);
}
.re h3 {
  font-size: 1.4rem;
  margin: 4px 0;
}
.re p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}
.re.silver {
  --g: #a9b3c4;
}
.re.ruby {
  --g: #b02a44;
}
.re.pearl {
  --g: #d9d2c3;
}
.re.coral {
  --g: #ec7a5e;
}
.re.sapphire {
  --g: #2f5fb8;
}
.link {
  font-weight: 700;
  color: var(--blue);
  border-bottom: 2px solid var(--gold);
}
/* gifts / news / split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.gifts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.gifts li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.gifts b {
  font: 400 1.4rem var(--serif);
  min-width: 8.5em;
  color: var(--blue);
}
.fr {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 18px 40px rgba(20, 38, 74, 0.2);
  margin: 0;
}
.fr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.news li {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.news time {
  color: var(--blue);
  font-weight: 700;
}
.news h3 {
  font-size: 1.25rem;
}
.news p {
  margin: 6px 0 0;
  color: var(--muted);
}
/* galleries: 3 columns, uniform framed cards */
.g-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* every photo sits in the same framed card; the whole photo is always visible */
.g-item {
  --bg: #5b78c4;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 38, 74, 0.07);
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.g-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 38, 74, 0.16);
}
.g-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 16%, #fff);
  opacity: 0;
  transition: opacity 0.4s;
}
.g-item img.loaded {
  opacity: 1;
}
.g-cap {
  display: block;
  padding: 10px 6px 4px;
  color: var(--ink);
  font: 600 0.88rem/1.35 var(--sans);
}
.g-more {
  text-align: center;
  margin: 20px 0;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.chip {
  border: 1.5px solid var(--blue);
  background: none;
  border-radius: 99px;
  padding: 7px 16px;
  font: 600 0.9rem var(--sans);
  cursor: pointer;
  color: var(--blue);
}
.chip.on {
  background: var(--blue);
  color: #fff;
}
/* lightbox */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 26, 0.96);
  z-index: 100;
  display: none;
  flex-direction: column;
  color: #fff;
}
.lb.open {
  display: flex;
}
.lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
}
.lb-tools {
  display: flex;
  gap: 8px;
}
.lb-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
}
.lb-btn:hover {
  background: var(--gold);
  color: var(--navy2);
}
.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  touch-action: none;
}
.lb-stage img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  transition: opacity 0.25s;
  user-select: none;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.lb-prev {
  left: 14px;
}
.lb-next {
  right: 14px;
}
.lb-cap {
  text-align: center;
  padding: 10px;
  min-height: 2em;
}
/* video */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--gap);
}
.v-group h3 {
  margin: 28px 0 14px;
  font-size: 1.35rem;
}
.v-item {
  position: relative;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.v-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.v-item iframe,
.v-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.v-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: var(--gold);
}
.v-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  font-weight: 600;
  font-size: 0.95rem;
}
.v-item[data-on] .v-play,
.v-item[data-on] .v-title {
  display: none;
}
/* downloads, books, people, tables, prose */
.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.books-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 34px 26px;
  margin-top: 30px;
  justify-items: center;
}
.book {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  width: 150px;
  perspective: 900px;
  transition-delay: var(--d, 0ms);
}
.bk {
  display: block;
  position: relative;
  animation: bfloat 6s ease-in-out infinite;
  animation-delay: var(--d, 0ms);
}
.bk-cover {
  display: block;
  position: relative;
  padding: 5px;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(135deg, var(--gold2), var(--gold) 45%, #a87a1e 70%, var(--gold2));
  box-shadow:
    -6px 8px 18px rgba(20, 38, 74, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: rotateY(-14deg);
  transform-origin: left center;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s;
  overflow: hidden;
}
.bk-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 9px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35),
    rgba(255, 255, 255, 0.18) 40%,
    rgba(0, 0, 0, 0.1)
  );
  border-radius: 3px 0 0 3px;
}
.bk-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 65%
  );
  transform: translateX(-130%);
  transition: transform 0.8s;
}
.bk-cover img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 2px 5px 5px 2px;
  border: 1px solid rgba(20, 38, 74, 0.55);
}
.book:hover .bk,
.book:focus-visible .bk {
  animation-play-state: paused;
}
.book:hover .bk-cover,
.book:focus-visible .bk-cover {
  transform: rotateY(0) translateY(-8px) scale(1.06);
  box-shadow: 0 22px 34px rgba(20, 38, 74, 0.38);
}
.book:hover .bk-cover::after {
  transform: translateX(130%);
}
.bk-t {
  margin-top: 16px;
  font: 600 0.88rem/1.35 var(--sans);
  color: var(--navy);
}
.bk-go {
  margin-top: 6px;
  font: 700 0.78rem var(--sans);
  color: var(--blue);
  opacity: 0;
  transform: translateY(-4px);
  transition: 0.3s;
}
.book:hover .bk-go,
.book:focus-visible .bk-go {
  opacity: 1;
  transform: none;
}
@keyframes bfloat {
  50% {
    transform: translateY(-6px);
  }
}
.flourish {
  width: min(300px, 70%);
  margin: 0 0 18px;
  color: var(--gold);
}
.flourish svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.4s 0.3s ease forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.book-detail {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  margin-bottom: 40px;
}
.bk.big {
  animation: none;
  max-width: 280px;
}
.bk.big .bk-cover {
  transform: rotateY(-8deg);
  padding: 8px;
}
.bd-info h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.bd-info p {
  color: var(--muted);
  margin: 0 0 22px;
}
.pdf-box {
  margin-top: 26px;
}
.pdf-box h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.pdf-box iframe {
  width: 100%;
  height: min(80vh, 760px);
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: #fff;
}
.pdf-note {
  font-size: 0.85rem;
  color: var(--muted);
}
.bk-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.bk-nav a {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.bk-nav a:hover {
  color: var(--navy);
}
@media (max-width: 700px) {
  .book-detail {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .bd-info .btns {
    justify-content: center;
  }
  .flourish {
    margin-inline: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bk,
  .flourish svg {
    animation: none;
    stroke-dashoffset: 0;
  }
}
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 240px;
  column-gap: 28px;
}
.people li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.people small {
  display: block;
  color: var(--muted);
}
.dept-block {
  margin-bottom: 28px;
}
.dept-block h3 {
  font-size: 1.35rem;
  color: var(--blue);
  margin-bottom: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.prose {
  max-width: 46em;
}
.prose p {
  margin: 0 0 1.1em;
}
.prose h2 {
  font-size: 1.9rem;
  margin: 40px 0 12px;
}
.prose figure {
  margin: 24px 0;
}
.with-side {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.side-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 4px;
}
.side-nav a {
  text-decoration: none;
  padding: 7px 12px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.side-nav a.active {
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.art-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.art-row h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.sub-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.sub-tabs a {
  display: block;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.sub-tabs a.active {
  background: var(--blue);
  color: #fff;
}
/* portraits & statues: photo and text side by side, every photo the same size */
.feats {
  display: grid;
  gap: var(--gap);
  margin-bottom: 34px;
}
.feat {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  overflow: hidden;
}
.feat:nth-child(even) {
  grid-template-columns: 1fr minmax(220px, 340px);
}
.feat:nth-child(even) .fmedia {
  order: 2;
}
.fph {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ice);
  cursor: zoom-in;
  position: relative;
}
.fph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}
.fmedia {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.fthumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
.fph.sm {
  aspect-ratio: 1;
  border-radius: 10px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.fph.sm:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(20, 38, 74, 0.25);
}
.feats.portraits .fph {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  padding: 6px;
}
.feats.portraits .fph img {
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.feats .fph {
  transition: box-shadow 0.3s;
}
.feats .fph:not(.sm):hover {
  box-shadow: 0 14px 28px rgba(20, 38, 74, 0.3);
}
.feat.solo,
.feat.solo:nth-child(even) {
  grid-template-columns: 1fr;
}
.fmedia.nophoto {
  aspect-ratio: 4/5;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--ice), #fff);
  border: 2px dashed var(--gold);
  display: grid;
  place-items: center;
}
.nophoto svg {
  width: 55%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linejoin: round;
  animation: dfloat 6s ease-in-out infinite;
}
.nophoto .lf {
  stroke: var(--blue2);
}
.fph.none {
  cursor: default;
  display: grid;
  place-items: center;
  color: var(--blue2);
}
.fph.none .ic {
  width: 64px;
  height: 64px;
}
.ftx {
  padding: 6px 10px;
}
.ftx h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 10px;
}
.ftx p {
  margin: 0;
  color: var(--muted);
  max-width: 36em;
}
/* contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.c-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}
.c-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.c-card p {
  margin: 0;
  line-height: 1.7;
}
.c-card a {
  display: block;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.c-card a:hover {
  text-decoration: underline;
}
.c-card.wide {
  grid-column: 1/-1;
  background: var(--navy);
  color: #fff;
  border: 0;
}
.c-card.wide .badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold2);
}
.c-card.wide a {
  color: var(--gold2);
}
/* memorial */
.night {
  background: radial-gradient(ellipse at 50% 0, #243c70, #0a1630 72%);
  color: #e6edfb;
  position: relative;
  overflow: hidden;
}
.night .quiet {
  text-align: center;
  font: 400 1.5rem/1.5 var(--serif);
  max-width: 28em;
  margin: 0 auto 40px;
  color: var(--gold2);
}
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 34px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.me {
  text-align: center;
}
.me .pic {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #1b2c52;
  padding: 0;
  cursor: zoom-in;
}
.me .pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  filter: grayscale(0.55);
  transition: 0.5s;
}
.me:hover .pic img,
.me.lit .pic img {
  filter: none;
}
.me h3 {
  font: 400 1.15rem var(--serif);
  margin: 14px 0 0;
  color: #fff;
}
.me small {
  color: #b7c5e6;
}
.light-btn {
  margin-top: 10px;
  background: none;
  border: 1px solid #5d74ad;
  color: #d3ddf3;
  border-radius: 99px;
  padding: 4px 14px;
  font: 600 0.8rem var(--sans);
  cursor: pointer;
}
.light-btn:hover {
  background: var(--gold);
  color: var(--navy2);
}
.names {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 3 220px;
}
.names li {
  padding: 6px 0;
}
.night .dept-block h3 {
  color: var(--gold2);
}
.night .people li {
  border-color: rgba(255, 255, 255, 0.18);
}
/* cta + footer */
.cta {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.cta .wrap {
  position: relative;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
}
.cta p {
  max-width: 34em;
  margin: 14px auto 24px;
  color: #d3def4;
}
.cta .btns {
  justify-content: center;
}
.site-footer {
  background: var(--navy2);
  color: #cbd6ef;
  padding: 54px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 30px;
}
.site-footer h5 {
  margin: 0 0 12px;
  font: 700 0.95rem var(--sans);
  color: var(--gold2);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin: 6px 0;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold2);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 0.88rem;
}
.back-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + var(--tab));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--navy2);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 40;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 1060px) {
  :root {
    --tab: 68px;
  }
  body {
    padding-bottom: var(--tab);
  }
  .nav-desktop {
    display: none;
  }
  .site-header .wrap {
    height: 68px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand .bt {
    font-size: 1.08rem;
  }
  .brand small {
    font-size: 0.72rem;
  }
  .brand .em {
    width: 56px;
    height: 56px;
  }
  .brand img {
    height: 42px;
  }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    height: calc(var(--tab) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tabbar a,
  .tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: 0;
    color: var(--muted);
    font: 600 0.7rem var(--sans);
    text-decoration: none;
    cursor: pointer;
  }
  .tabbar .ic {
    width: 24px;
    height: 24px;
  }
  .tabbar .on {
    color: var(--blue);
  }
  .tabbar .on .ic {
    stroke-width: 2.2;
  }
  .tabbar .on::before {
    content: '';
    position: absolute;
    top: 0;
    width: 34px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--gold);
  }
  .tabbar > * {
    position: relative;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer {
    padding-bottom: 30px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .hero {
    min-height: 84svh;
  }
  .hero-inner {
    padding: 100px 0 120px;
  }
  .hero h1 {
    font-size: 6.4vw;
    letter-spacing: -0.01em;
  }
  .hero .btns {
    gap: 6px;
  }
  .hero .btn {
    padding: 9px 6px;
    font-size: 0.7rem;
    gap: 4px;
    flex: 1 1 auto;
  }
  .hero .btn .ic {
    width: 13px;
    height: 13px;
  }
  .hero p.lead {
    font-size: 1.05rem;
  }
  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(20, 38, 74, 0.45),
      rgba(20, 38, 74, 0.3) 40%,
      rgba(20, 38, 74, 0.8)
    );
  }
  .dots {
    right: auto;
    left: 4vw;
    bottom: 96px;
  }
  .cap {
    display: none;
  }
  .btns .btn {
    flex: 1 1 auto;
  }
  .stats {
    margin-top: -64px;
  }
  .counters {
    grid-template-columns: repeat(3, 1fr);
  }
  .counter {
    padding: 16px 6px;
    border-bottom: 1px solid var(--line);
  }
  .counter:nth-child(3) {
    border-right: 0;
  }
  .counter:nth-child(n + 4) {
    border-bottom: 0;
  }
  .tiles {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .tile .in {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }
  .tile .badge {
    width: 38px;
    height: 38px;
  }
  .tile p {
    display: none;
  }
  .tile h3 {
    font-size: 1.05rem;
  }
  .split,
  .with-side,
  .contact {
    grid-template-columns: 1fr;
  }
  .side-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
  .news li {
    grid-template-columns: 1fr;
  }
  .gifts li {
    flex-direction: column;
    gap: 2px;
  }
  .feat,
  .feat:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feat:nth-child(even) .fmedia {
    order: 0;
  }
  .fph {
    aspect-ratio: 16/11;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .g-item {
    padding: 5px;
    border-radius: 12px;
  }
  .g-item img {
    border-radius: 8px;
  }
  .g-cap {
    padding: 7px 4px 3px;
    font-size: 0.78rem;
  }
  .wall {
    grid-template-columns: 1fr 1fr;
  }
  .banner {
    padding: 104px 0 34px;
  }
  .section {
    padding: 40px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .ecg path {
    stroke-dashoffset: 0;
  }
}
.feat.solo,
.feat.solo:nth-child(even) {
  grid-template-columns: 1fr;
  padding: 22px 26px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.cards .tl,
.cards .re {
  width: auto;
  min-height: 0;
}
.v-group .video-grid:has(.v-item:only-child) {
  grid-template-columns: minmax(0, 1fr);
}
.v-item .v-play {
  font-size: 3.4rem;
}
.v-item .v-title {
  font-size: 1.05rem;
  padding: 40px 18px 16px;
}

/* books: separate sections, direct PDF links */
.book {
  width: 160px;
}
.bk-link {
  display: block;
  text-decoration: none;
}
.bk-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.bk-go {
  opacity: 1 !important;
  transform: none !important;
  margin-top: 8px;
  font: 700 0.8rem var(--sans);
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.bk-go:hover {
  color: var(--navy);
}
.bk-link:hover .bk-cover,
.bk-link:focus-visible .bk-cover {
  transform: rotateY(0) translateY(-8px) scale(1.06);
  box-shadow: 0 22px 34px rgba(20, 38, 74, 0.38);
}
.bk-link:hover .bk-cover::after {
  transform: translateX(130%);
}
.bk-link:hover .bk {
  animation-play-state: paused;
}
/* home video: gold 1978 frame + side content */
.vsplit {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.gframe {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 6px var(--ice),
    0 0 0 8px var(--gold2),
    0 24px 44px rgba(20, 38, 74, 0.3);
}
.gframe .v-item {
  border: 1px solid rgba(240, 203, 120, 0.5);
  border-radius: 10px;
}
.gframe .video-grid {
  display: block;
}
.gframe .v-group h3 {
  display: none;
}
.gc {
  position: absolute;
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--gold2);
  stroke-width: 2.2;
  stroke-linecap: round;
  z-index: 3;
  pointer-events: none;
}
.gc.tl {
  top: -14px;
  left: -14px;
}
.gc.tr {
  top: -14px;
  right: -14px;
  transform: scaleX(-1);
}
.gc.bl {
  bottom: -14px;
  left: -14px;
  transform: scaleY(-1);
}
.gc.br {
  bottom: -14px;
  right: -14px;
  transform: scale(-1);
}
.gframe::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(240, 203, 120, 0.45);
  border-radius: 14px;
  pointer-events: none;
  z-index: 2;
}
.gbadge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: var(--navy2);
  font: 400 1.3rem var(--serif);
  padding: 2px 22px;
  border-radius: 99px;
  letter-spacing: 0.12em;
  box-shadow: 0 4px 12px rgba(20, 38, 74, 0.3);
}
.vside .motto2 {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.vside .motto2 i {
  width: 36px;
  height: 2px;
  background: var(--gold);
}
.vside h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}
.vside p {
  color: var(--muted);
  margin: 0 0 20px;
}
.vfacts {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.vfacts li {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 10px 16px;
}
.vfacts b {
  font: 400 1.6rem var(--serif);
  color: var(--navy);
  min-width: 3.2em;
}
.vfacts span {
  font-size: 0.95rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .vsplit {
    grid-template-columns: 1fr;
  }
}

/* simple medical doodles: three small ones per page */
.section,
.banner,
.dark,
.night,
.cta {
  position: relative;
}
.section > .wrap,
.section > .rail-wrap,
.dark > .wrap,
.night > .wrap,
.cta > .wrap {
  position: relative;
  z-index: 1;
}
.mdoodle {
  position: absolute;
  top: 22px;
  right: max(3%, calc((100% - 1180px) / 2));
  width: clamp(44px, 5vw, 60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.mdoodle.left {
  right: auto;
  left: max(3%, calc((100% - 1180px) / 2));
}
.mdoodle.bn {
  top: 112px;
  z-index: 1;
}
.mdoodle svg {
  width: 100%;
  height: auto;
  display: block;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: var(--an) 5s ease-in-out infinite;
}
.mdoodle:nth-child(odd) svg {
  stroke: var(--gold);
}
.mdoodle.dk svg {
  stroke: var(--gold2);
}
.mdoodle .pulse {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: mpulse 2.6s linear infinite;
}
@keyframes mbeat {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.14);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.08);
  }
  48% {
    transform: scale(1);
  }
}
@keyframes mfloat {
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}
@keyframes msway {
  50% {
    transform: rotate(-8deg);
  }
}
@keyframes mpulse {
  55%,
  100% {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 700px) {
  .mdoodle {
    width: 38px;
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mdoodle svg,
  .mdoodle .pulse {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   Modern polish layer
   ========================================================================== */
::selection {
  background: var(--gold2);
  color: var(--navy2);
}

.btn {
  box-shadow: 0 6px 16px rgba(20, 38, 74, 0.18);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 38, 74, 0.26);
}
.btn.ghost {
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.tile {
  box-shadow: 0 2px 10px rgba(20, 38, 74, 0.06);
}

.hero h1 em {
  letter-spacing: 0.005em;
}

/* ---- GMC-78 update: no heartbeat line, whole photos, news, retired, tribute ---- */
.ecg {
  display: none;
}
.tile .ph,
.re .ph,
.nth {
  background: color-mix(in srgb, var(--blue) 9%, #fff);
}
.section.latest {
  padding-bottom: 20px;
}
.lr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.lr {
  display: block;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 38, 74, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.lr:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(20, 38, 74, 0.16);
}
.lr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.lr-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}
.btn.ghost-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
/* news with its own photograph */
.news li {
  grid-template-columns: 190px 150px 1fr auto;
}
.news li:not(:has(.nth)) {
  grid-template-columns: 150px 1fr auto;
}
.news .nth {
  grid-column: 1;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
}
.news .nth img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.news li:has(.nth) > div {
  display: grid;
  grid-column: 2 / 4;
  gap: 4px;
}
.news .nlink {
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
}
/* retired batchmates: one block per person */
.rt {
  margin: 0 0 54px;
}
.rt-head {
  margin: 0 0 18px;
  padding-left: 16px;
  border-left: 5px solid var(--gold);
}
.rt-head h3 {
  font: 400 1.7rem var(--serif);
  margin: 0;
}
.rt-head p {
  margin: 6px 0 4px;
  max-width: 60ch;
}
.rt-head small {
  color: var(--muted);
}
.rt-gallery {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
/* tribute song + remembrance */
.rip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 30px 0 40px;
  flex-wrap: wrap;
}
.rip small {
  color: #b7c5e6;
}
.rip-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid #8ea2d6;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 700 0.95rem var(--sans);
  cursor: pointer;
}
.rip-btn:hover,
.rip-btn.on {
  background: var(--gold);
  color: #14264a;
  border-color: var(--gold);
}
.rip-btn .ic {
  width: 18px;
  height: 18px;
}
.rip-btn .rip-pause,
.rip-btn.on .rip-play {
  display: none;
}
.rip-btn.on .rip-pause {
  display: block;
}
.mm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.mm-card {
  padding: 28px;
  border: 1px solid #3b5189;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe4f7;
}
.mm-card h3 {
  font: 400 1.6rem var(--serif);
  color: #fff;
  margin: 0 0 10px;
}
.mm-sec {
  padding-top: 10px;
}
@media (max-width: 860px) {
  .lr-grid,
  .mm {
    grid-template-columns: 1fr;
  }
  .news li,
  .news li:not(:has(.nth)) {
    grid-template-columns: 1fr;
  }
  .news .nth,
  .news li:has(.nth) > div {
    grid-column: auto;
  }
}
/* news rows: photo | text | button */
.news li,
.news li:not(:has(.nth)) {
  display: flex;
  align-items: center;
  gap: 22px;
}
.news .nth {
  flex: none;
  width: 200px;
  grid-column: auto;
}
.news li > div {
  flex: 1;
  min-width: 0;
  display: block;
  grid-column: auto;
}
.news li:not(:has(.nth)) > time {
  flex: none;
  width: 150px;
}
.news li > div > time {
  display: block;
  margin-bottom: 4px;
}
.news .nlink {
  display: inline-block;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .news li,
  .news li:not(:has(.nth)) {
    flex-direction: column;
    align-items: stretch;
  }
  .news .nth {
    width: 100%;
  }
}

/* ===== GMC-78 fixes: no-gap photo rows, department tables, faculty cards, news events ===== */
/* photos: every row is filled edge to edge, no empty bars, no repeated captions */
.gallery,
.gallery.rt-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gallery::after {
  content: '';
  flex-grow: 999999;
}
.g-item,
.g-item:hover {
  position: relative;
  height: 230px;
  width: auto;
  flex: var(--ar, 1.33) 1 calc(var(--ar, 1.33) * 230px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg, #5b78c4) 25%, #fff);
  box-shadow: none;
}
.g-item:hover {
  transform: none;
  filter: brightness(1.06);
}
.g-item img,
.g-item img.loaded {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  background: none;
}
.g-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 10px 8px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}
.g-count {
  display: none;
}
.g-more {
  display: none !important;
}
@media (max-width: 700px) {
  .g-item,
  .g-item:hover {
    height: 140px;
    flex-basis: calc(var(--ar, 1.33) * 140px);
  }
  .gallery,
  .gallery.rt-gallery {
    gap: 5px;
  }
}
/* departments: one table each */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  align-items: start;
}
.dept-tbl table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  table-layout: fixed;
}
.dept-tbl .dt-h {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  text-align: left;
  font: 400 1.3rem var(--serif);
  color: #fff;
  background: var(--blue);
  border-radius: 12px 12px 0 0;
}
.dept-tbl .dt-h span {
  font: 700 0.8rem var(--sans);
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}
.dept-tbl th,
.dept-tbl td {
  padding: 9px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.dept-tbl th {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in srgb, var(--blue) 8%, #fff);
}
.dept-tbl .no {
  width: 56px;
  color: var(--muted);
}
.dept-tbl tbody tr:last-child td {
  border-bottom: 0;
}
.dept-tbl tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--blue) 4%, #fff);
}
/* faculty portraits */
.fac-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px 18px;
}
.fc {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: zoom-in;
  text-align: center;
}
.fc-img {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 10%, #fff);
}
.fc-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.fc-name {
  display: block;
  padding-top: 8px;
  font: 600 0.9rem/1.3 var(--sans);
  color: var(--ink);
}
@media (max-width: 700px) {
  .fac-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px;
  }
  .dept-grid {
    grid-template-columns: 1fr;
  }
}
/* news: event name + its own photos only */
.events {
  display: grid;
  gap: 56px;
}
.ev-head {
  margin: 0 0 18px;
  padding-left: 16px;
  border-left: 5px solid var(--gold);
}
.ev-head time {
  color: var(--blue);
  font-weight: 700;
}
.ev-head h3 {
  font: 400 1.7rem var(--serif);
  margin: 4px 0;
}
.ev-head p {
  margin: 0 0 6px;
  max-width: 62ch;
  color: var(--muted);
}
.ev-head .nlink {
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
}
.ev-poster {
  display: block;
  max-width: 420px;
}
.ev-poster img {
  display: block;
  width: 100%;
  border-radius: 8px;
}
/* feature photos (statues, portraits): fill the frame, no side bars */
.fph img,
.feats.portraits .fph img {
  object-fit: cover;
  object-position: 50% 30%;
}

/* ===== round 2: full width, single-line headings, no gaps, readable names, marquee ===== */
.wrap {
  width: 100%;
  max-width: none;
  padding-inline: clamp(12px, 2.2vw, 32px);
}
.site-header .wrap {
  box-sizing: border-box;
}
h2,
h3,
.banner h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sec-head {
  max-width: none;
}
.sec-head > div {
  min-width: 0;
}
.sec-head h2,
.section h2 {
  font-size: clamp(1.25rem, 2.7vw, 2.1rem);
}
.banner h1 {
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
}
.ev-head h3,
.rt-head h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}
.tile h3,
.re h3 {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.tile .ph img,
.re .ph img {
  object-fit: cover;
}
.tile .ph,
.re .ph {
  background: none;
}
/* department tables: columns pack tight, no empty areas */
.dept-grid {
  display: block;
  columns: 3 320px;
  column-gap: 22px;
}
.dept-tbl {
  break-inside: avoid;
  margin: 0 0 22px;
}
/* names must be readable on the dark memorial page */
.night .dept-tbl td,
.night .dept-tbl th {
  color: var(--ink);
}
.night .dept-tbl .no {
  color: var(--muted);
}
/* In Memoriam marquee */
.mq {
  overflow: hidden;
  margin: 10px 0 0;
  padding: 16px 0;
  border-block: 1px solid #3b5189;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe4f7;
}
.mq-track {
  display: flex;
  width: max-content;
  animation: mq 80s linear infinite;
}
.mq:hover .mq-track {
  animation-play-state: paused;
}
.mq span {
  flex: none;
  padding-right: 64px;
  white-space: nowrap;
  font-size: 1.05rem;
}
.mq a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track {
    animation: none;
  }
  .mq {
    overflow-x: auto;
  }
}
@media (max-width: 700px) {
  .dept-grid {
    columns: 1;
  }
}
.mdoodle {
  display: none;
}
.vside h2 {
  font-size: clamp(0.95rem, 1.75vw, 1.5rem);
}
.events {
  grid-template-columns: minmax(0, 1fr);
}
.ev,
.rt {
  min-width: 0;
}
@media (max-width: 700px) {
  table th,
  table td {
    padding: 8px 10px;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
  }
  .dept-tbl .dt-h {
    font-size: 1rem;
  }
}
@media (max-width: 700px) {
  .ev-head h3,
  .rt-head h3 {
    font-size: 0.95rem;
  }
  h3 {
    font-size: min(1.15rem, 4.4vw);
  }
}
@media (max-width: 700px) {
  .sec-head h2,
  .section h2 {
    font-size: min(1.25rem, 5vw);
  }
}
.tile .ph img {
  object-position: 50% 25%;
}

/* ===== round 3: hero slides left to right (no zoom), single-line marquees, news clippings ===== */
.slide,
.slide.out,
.slide.on {
  opacity: 1;
}
.slide {
  transform: translateX(100%);
  transition: none;
}
.slide.on {
  transform: translateX(0);
  transition: transform 1.3s ease-in-out;
}
.slide.out {
  transform: translateX(-100%);
  transition: transform 1.3s ease-in-out;
}
.slide.on img,
.slide.out img {
  animation: none;
  transform: none;
}
/* stats strip: one line, scrolling */
.counters {
  display: block;
  overflow: hidden;
}
.counters-track {
  display: flex;
  width: max-content;
  animation: mq 40s linear infinite;
}
.counters:hover .counters-track {
  animation-play-state: paused;
}
.counter {
  flex: none;
  width: 240px;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
.counter:last-child {
  border-right: 1px solid var(--line);
}
/* history + re-union cards: one line, scrolling */
.mq-rail {
  overflow: hidden;
  padding: 6px 0 22px;
}
.mq-track2 {
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding-left: var(--gap);
  animation: mq 90s linear infinite;
}
.mq-rail:hover .mq-track2 {
  animation-play-state: paused;
}
.mq-track2 > * {
  flex: none;
}
.mq-track2 .tl {
  width: 340px;
}
.mq-track2 .tl h3 {
  font-size: 1rem;
}
.mq-track2 .re {
  width: 340px;
}
@media (prefers-reduced-motion: reduce) {
  .counters-track,
  .mq-track2 {
    animation: none;
  }
  .counters,
  .mq-rail {
    overflow-x: auto;
  }
}
/* retired: name + photos only */
.rt {
  margin-bottom: 40px;
}
.rt-head {
  margin-bottom: 14px;
}
/* news clipping pages */
.nm-gallery .g-item,
.nm-gallery .g-item:hover {
  height: 340px;
  flex-basis: calc(var(--ar, 0.7) * 340px);
}
@media (max-width: 700px) {
  .nm-gallery .g-item,
  .nm-gallery .g-item:hover {
    height: 200px;
    flex-basis: calc(var(--ar, 0.7) * 200px);
  }
  .counter {
    width: 180px;
  }
  .mq-track2 .tl,
  .mq-track2 .re {
    width: 280px;
  }
}
.hero::after {
  z-index: 3;
  pointer-events: none;
}
.hero-inner,
.hero .cap,
.hero .dots {
  z-index: 4;
}

/* ===== round 4 ===== */
/* dropdowns open right-to-left (anchored to the right edge of their button) and never leave the screen */
.nav-item .mega { left: auto; right: 0; max-width: calc(100vw - 24px); box-sizing: border-box; }
.mega.wide { min-width: min(620px, calc(100vw - 24px)); }
/* hero: no blue showing behind the slides; first photo is there from the first paint */
.hero { background: #0d1117; }
.slides { background: #0d1117; overflow: hidden; }
.slide:first-child:not(.on):not(.out) { transform: translateX(100%); }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* keep the first photo visible even before JS runs */
.hero:not(.ready) /* slim marquee, one thin line like a news ticker */
.mq { margin: 8px 0 0; padding: 6px 0; border-radius: 0; line-height: 1.3; }
.mq span { font-size: 0.82rem; padding-right: 48px; }
.counters-track, .mq-track, .mq-track2 { will-change: transform; }

/* ---- spacing: proper left/right padding on every page ---- */
.wrap { padding-inline: clamp(18px, 4.5vw, 72px); }
.site-header .wrap { padding-inline: clamp(14px, 2.4vw, 36px); }
.hero-inner.wrap { padding-inline: clamp(18px, 4.5vw, 72px); }
.stats .wrap { padding-inline: clamp(18px, 4.5vw, 72px); }
/* headings may wrap instead of being cut off */
h2, h3, .banner h1 { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
/* history page: sidebar + readable column, nothing glued to the edges */
.with-side { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.with-side > .prose, .with-side > article { max-width: 62em; margin-inline: auto; width: 100%; padding-inline: 0; }
.prose .fr { aspect-ratio: 16/9; margin: 28px 0; }
.prose .fr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prose h2 { margin: 48px 0 14px; }
.side-nav { padding-right: 8px; }
/* portraits + statues cards */
.feats { gap: clamp(22px, 3vw, 36px); margin-bottom: 40px; }
.feat { padding: clamp(18px, 2.6vw, 32px); gap: clamp(22px, 3.4vw, 48px); border-radius: 22px; }
.feat > div:not(.fmedia) { padding: 4px clamp(0px, 1vw, 12px); min-width: 0; }
.feat h3 { margin: 0 0 12px; }
.feat p { margin: 0 0 12px; max-width: 70ch; }
.fmedia { gap: 14px; }
.fthumbs { gap: 10px; }
/* galleries + retired rows: even gutters, headings with air */
.rt { margin-bottom: 48px; }
.rt-head { margin-bottom: 16px; }
.rt:not(:has(.g-item, img)) { display: none; }
.gallery { padding-inline: 0; }
@media (max-width: 700px) {
  .wrap, .hero-inner.wrap, .stats .wrap { padding-inline: 18px; }
  .with-side { grid-template-columns: minmax(0, 1fr); }
  .feat { padding: 16px; }
}

/* ===== round 5 ===== */
/* --- hero: professional, neutral (no blue), photos travel right to left --- */
.hero { min-height: min(100svh, 760px); }
.hero::after {
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.80) 0%, rgba(8, 11, 18, 0.52) 40%, rgba(8, 11, 18, 0.05) 75%),
    linear-gradient(0deg, rgba(8, 11, 18, 0.60), rgba(8, 11, 18, 0) 32%);
}
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.08; letter-spacing: -0.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero p.lead { max-width: 34em; font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, 0.92); }
.hero .btns { gap: 12px; }
.hero .btn { padding: 13px 24px; font-size: 0.95rem; letter-spacing: 0.01em; }
.hero .btn.ghost { background: rgba(255, 255, 255, 0.12); border: 1.5px solid rgba(255, 255, 255, 0.7); backdrop-filter: blur(6px); }
.hero .btn.ghost:hover { background: #fff; color: #111827; }

/* --- stats ticker: slim, full width, edge to edge, never stops --- */
.stats { margin-top: 0; z-index: 5; background: #fff; border-block: 1px solid var(--line); }
.stats .wrap { padding-inline: 0; max-width: none; }
.counters { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.counter { display: flex; align-items: baseline; justify-content: center; gap: 10px; width: auto; padding: 9px 38px; text-align: left; }
.counter b { display: inline; font-size: 1.5rem; line-height: 1; }
.counter span { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
/* In Memoriam ticker: full width too */
.mq { margin-inline: calc(50% - 50vw); width: 100vw; border-radius: 0; }
.mq span { font-size: 0.8rem; }

/* tickers and hero never stop: no pause on hover, and they ignore the reduced-motion shortcut */
.counters-track, .mq-track, .mq-track2 { animation-name: mq !important; animation-timing-function: linear !important; animation-iteration-count: infinite !important; animation-duration: var(--mqdur, 60s) !important; animation-play-state: running !important; }
.counters, .mq, .mq-rail { overflow: hidden !important; }
.slide.on, .slide.out { transition-duration: 1.3s !important; }

/* --- footer contacts --- */
.f-contact li { margin: 0 0 14px; }
.f-contact b { display: block; color: #fff; font-weight: 700; }
.f-contact small { display: block; opacity: 0.75; margin-bottom: 2px; }
.f-contact a { display: flex; align-items: center; gap: 8px; margin-top: 4px; overflow-wrap: anywhere; }
.f-contact .ic { width: 15px; height: 15px; flex: none; }
.footer-grid { grid-template-columns: 1.5fr repeat(3, 0.8fr) 1.5fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- latest re-union photo tag --- */
.lr { position: relative; }
.lr-tag { position: absolute; left: 20px; bottom: 20px; z-index: 2; background: rgba(8, 11, 18, 0.72); color: #fff; font: 700 0.8rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }

/* --- faculty shloka --- */
.shloka { background: #fffaf0; border-bottom: 1px solid #f0e2bd; text-align: center; padding: clamp(22px, 3.4vw, 40px) 0; }
.shloka .te { margin: 0 0 8px; font: 700 clamp(1.15rem, 2.6vw, 1.9rem)/1.7 'Noto Serif Telugu', 'Gautami', 'Nirmala UI', serif; color: #7a4b00; }
.shloka .en { margin: 0 auto; max-width: 46em; font-size: 0.95rem; color: var(--muted); }

/* --- spacing: a little air at the sides, no empty-looking gaps anywhere --- */
.section { padding: clamp(28px, 3.6vw, 52px) 0; }
.sec-head { margin-bottom: 20px; }
.section.latest { padding-bottom: 12px; }
.banner { padding-bottom: clamp(22px, 3vw, 40px); }
.rt { margin-bottom: 30px; }
.feats { margin-bottom: 20px; }
.prose h2 { margin: 34px 0 10px; }
.hero .cap { left: clamp(18px, 4.5vw, 72px); }
.hero .dots { right: clamp(18px, 4.5vw, 72px); }
html, body { overflow-x: clip; }

/* ===== round 6 ===== */
/* home video fills its gold frame */
.gframe .video-grid, .gframe .v-group { display: block; width: 100%; margin: 0; }
.gframe .v-item { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0; padding: 0; overflow: hidden; background: #0b1530; }
.gframe .v-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gframe .v-item iframe, .gframe .v-item video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.gbadge { left: 50%; transform: translateX(-50%); }
/* ticker items are links */
a.counter { color: inherit; text-decoration: none; transition: background 0.2s; }
a.counter:hover, a.counter:focus-visible { background: #fff7e0; }
a.counter:hover b { color: var(--navy); }
/* re-unions: static cards, no scrolling */
.re-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(14px, 1.6vw, 22px); padding-inline: clamp(18px, 4.5vw, 72px); }
.re-cards .re { width: auto; min-width: 0; }
/* brand: "Batch - 1978" */
.brand small { font: 700 0.7rem var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold2); margin-top: 5px; display: flex; align-items: center; gap: 8px; }
.brand small::before { content: ''; width: 18px; height: 1.5px; background: var(--gold2); opacity: 0.8; }

/* ===== history timeline: plain content boxes, no scrolling, no photos ===== */
.tl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.tl-grid .tl { width: auto; min-height: 0; padding: 22px 22px 24px; }
.tl-grid .tl b { font-size: 2.1rem; }
@media (max-width: 1060px) { .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .tl-grid { grid-template-columns: minmax(0, 1fr); } }
.tl-grid .tl h3 { font-size: 1.1rem; }
.rip { display: none; }
/* videos: proper 16:9 frame, whole picture visible, audio-only items get a player */
.v-item video { object-fit: contain; }
.v-item img { opacity: 1; }
.v-item.is-audio audio { position: absolute; left: 8px; right: 8px; bottom: 8px; width: calc(100% - 16px); height: 40px; z-index: 2; }
.v-item.is-audio[data-on] .v-title { display: block; padding: 14px 16px 56px; background: none; }
.v-item.is-audio[data-on] .v-play { display: none; }
.latest-bare { padding-top: clamp(28px, 4vw, 48px); }

/* ===== v10 fixes ===== */
/* nav brand: remove the long dash before "BATCH - 1978" */
.brand small::before { content: none !important; display: none !important; }
.brand small { gap: 0; }

/* videos: smaller width/height, centered */
.v-group .video-grid:has(.v-item:only-child) {
  grid-template-columns: minmax(0, 720px);
  justify-content: start;
}
.v-group .video-grid:has(.v-item:only-child) .v-item { max-width: 720px; width: 100%; }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 320px)); }
.v-item .v-play { font-size: 2.6rem; }
.v-item .v-title { font-size: 0.95rem; padding: 30px 14px 12px; }
.gframe .video-grid, .gframe .v-group { max-width: 100%; }
@media (max-width: 700px) {
  .v-group .video-grid:has(.v-item:only-child) { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ===== v11 fixes ===== */
/* undo v10 width caps: videos fill their frame/column, no blue empty margin */
.v-group .video-grid:has(.v-item:only-child) { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
.v-group .video-grid:has(.v-item:only-child) .v-item { max-width: none; width: 100%; }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gframe .video-grid, .gframe .v-group, .gframe .v-item { width: 100%; max-width: none; }
.gframe { padding: 14px; }

/* video + side content on history / philanthropy: no empty gaps */
.vsplit-plain { align-items: center; }
.vsplit-plain .vside h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin: 0 0 10px; }
.vsplit-plain .vside p { margin: 0 0 16px; }

/* side margins: about 1% on desktop, nothing wasted */
.wrap, .hero-inner.wrap, .stats .wrap { padding-inline: 1.5vw; }
.site-header .wrap { padding-inline: 1vw; }

@media (max-width: 900px) {
  .vsplit, .vsplit-plain { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gframe { padding: 8px; border-radius: 14px; box-shadow: 0 0 0 3px var(--ice), 0 0 0 4px var(--gold2), 0 12px 24px rgba(20,38,74,.25); }
  .gframe::before { inset: 4px; border-radius: 10px; }
  .gc { width: 34px; height: 34px; }
  .gc.tl { top: -8px; left: -8px; } .gc.tr { top: -8px; right: -8px; }
  .gc.bl { bottom: -8px; left: -8px; } .gc.br { bottom: -8px; right: -8px; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .vside .btns { display: flex; flex-wrap: wrap; gap: 10px; }
}

/* ===== v12: photos are never cropped, each sits in a neat navy + gold frame ===== */
.fr, .fc-img, .fph, .tile .ph, .re .ph, .g-item, .lr, .ev-poster, .prose .fr {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border: 1px solid rgba(240, 203, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 203, 120, 0.18), 0 10px 24px rgba(20, 38, 74, 0.22);
}
.fr, .fc-img, .fph, .tile .ph, .re .ph, .g-item, .lr { border-radius: 10px; overflow: hidden; }
.fr img, .prose .fr img, .fc-img img, .fph img, .feats.portraits .fph img,
.tile .ph img, .re .ph img, .g-item img, .g-item img.loaded, .lr img, .v-item img,
.gframe .v-item img {
  object-fit: contain !important;
  object-position: center !important;
  background: transparent;
}
.bk-cover img { object-fit: contain; background: var(--navy); }
.ev-poster img { height: auto; object-fit: contain; }
/* decorative banners / hero keep filling the width */
.banner img, .cta > img, .slide img { object-fit: cover; }
.g-item { padding: 3px; }
@media (max-width: 700px) { .fr, .fc-img, .fph, .g-item { box-shadow: 0 6px 14px rgba(20, 38, 74, 0.2); } }

/* ===== v14: smaller videos (history + home) ===== */
/* history & philanthropy: compact video beside the text */
.vsplit-plain { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); justify-content: start; gap: clamp(24px, 3.5vw, 48px); }
.vsplit-plain .v-item { border-radius: 10px; }
/* home: smaller gold frame and video */
.vsplit { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); justify-content: start; }
.gframe { max-width: 560px; padding: 10px; }
.gframe::before { inset: 4px; }
.gc { width: 40px; height: 40px; }
.gbadge { font-size: 1.05rem; padding: 1px 16px; top: -14px; }
@media (max-width: 900px) {
  .vsplit, .vsplit-plain { grid-template-columns: minmax(0, 1fr); }
  .vsplit-plain > div:first-child, .gframe { max-width: 440px; width: 100%; margin-inline: auto; }
}

/* ===== v16: photo gallery, every photo shows in full, no blue bars ===== */
/* justified rows: each tile takes the exact shape of its photo, rows fill edge to edge */
.g-item, .g-item:hover, .nm-gallery .g-item, .nm-gallery .g-item:hover {
  height: auto;
  aspect-ratio: var(--ar, 1.33);
  padding: 0;
  background: #e6ebf6;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(20, 38, 74, 0.18);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.25s, box-shadow 0.25s;
}
.g-item:hover, .nm-gallery .g-item:hover {
  transform: translateY(-3px);
  filter: none;
  box-shadow: 0 10px 22px rgba(20, 38, 74, 0.28);
}
.g-item img, .g-item img.loaded { width: 100%; height: 100%; object-fit: contain !important; display: block; transition: transform 0.4s; }
.g-item:hover img { transform: scale(1.04); }
.gallery, .gallery.rt-gallery { gap: 10px; }
@media (max-width: 700px) { .gallery, .gallery.rt-gallery { gap: 6px; } }

/* other framed photos: whole photo visible on a light mat, no dark/blue fill */
.fr, .prose .fr, .lr { aspect-ratio: auto !important; height: auto; }
.fr img, .prose .fr img, .lr img { width: 100%; height: auto !important; object-fit: contain !important; display: block; }
.fr, .prose .fr, .fc-img, .fph, .tile .ph, .re .ph, .lr, .feats.portraits .fph {
  background: #eef2fb;
  border: 1px solid rgba(212, 162, 58, 0.5);
  box-shadow: 0 6px 18px rgba(20, 38, 74, 0.14);
}
.fc-img img, .fph img, .feats.portraits .fph img, .tile .ph img, .re .ph img { object-fit: contain !important; object-position: center !important; }
.feats.portraits .fph { padding: 4px; }
.bk-cover img { background: none; }


/* ===== v18: no empty side gaps (blurred photo fill), compact cards, interactive Photos & Videos ===== */
/* every framed photo is complete AND fills its frame: the same photo, blurred, sits behind it */
.fill { position: relative; overflow: hidden; isolation: isolate; }
.fill::before {
  content: ''; position: absolute; inset: -24px; z-index: -1;
  background: var(--bgimg) center / cover no-repeat;
  filter: blur(18px) saturate(1.15) brightness(0.96);
}
.fill > img { position: relative; z-index: 1; }
.tile .ph, .re .ph, .fc-img, .fph, .fr { background: transparent; }

/* compact cards */
.tiles { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.tile .ph { aspect-ratio: 16 / 9; border-radius: 0; position: relative; }
.tile .in { padding: 11px 14px; gap: 11px; }
.tile h3 { font-size: 1.05rem; }
.tile p { font-size: 0.84rem; }
.tile .badge { transform: scale(0.85); }
.tile .ph::after {
  content: 'Explore →'; position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: var(--gold); color: var(--navy2); font: 700 0.76rem var(--sans);
  padding: 4px 11px; border-radius: 99px; opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.tile:hover .ph::after, .tile:focus-visible .ph::after { opacity: 1; transform: none; }
.re .ph { aspect-ratio: 16 / 10; }

/* Photos & Videos mosaic */
.mo-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.mo-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 99px;
  padding: 7px 18px; font: 700 0.86rem var(--sans); cursor: pointer; transition: all 0.2s;
}
.mo-tabs button:hover { border-color: var(--gold); }
.mo-tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15vw, 210px); gap: 12px; }
.mo { position: relative; display: block; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff;
  box-shadow: 0 4px 14px rgba(20, 38, 74, 0.18); transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s, filter 0.3s; }
.mo.big { grid-column: span 2; grid-row: span 2; }
.mo .ph { position: absolute; inset: 0; display: block; }
.mo .ph img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s; }
.mo:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(20, 38, 74, 0.3); }
.mo:hover .ph img { transform: scale(1.05); }
.mo .cap { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 28px 14px 12px; display: grid; gap: 1px;
  background: linear-gradient(transparent, rgba(8, 16, 36, 0.85)); }
.mo .cap b { font: 400 1.1rem var(--serif); }
.mo .cap i { font-style: normal; font-size: 0.78rem; color: var(--gold2); letter-spacing: 0.06em; text-transform: uppercase; }
.mo .play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(212, 162, 58, 0.92); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform 0.25s; }
.mo .play svg { width: 26px; height: 26px; fill: var(--navy2); margin-left: 3px; }
.mo:hover .play { transform: scale(1.12); }
.mo.dim { opacity: 0.22; filter: grayscale(1); pointer-events: none; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 8px; }
  .mo.big { grid-column: span 2; grid-row: span 2; }
  .mo .cap b { font-size: 0.95rem; }
  .mo .play { transform: scale(0.8); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile .in { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; }
}

/* ===== In Memoriam: small stop-music button ===== */
.mem-stop {
  position: fixed; left: 14px; bottom: calc(var(--tab, 0px) + env(safe-area-inset-bottom, 0px) + 14px); z-index: 70;
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(240, 203, 120, 0.6);
  background: rgba(12, 26, 53, 0.92); color: #fff; padding: 9px 16px 9px 12px; border-radius: 99px;
  font: 700 0.85rem var(--sans); cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px);
}
.mem-stop[hidden] { display: none; }
.mem-stop svg { width: 18px; height: 18px; fill: var(--gold2); }
.mem-stop:hover { background: var(--navy); }

/* ===== v20: no blue behind any photo or video, all pages ===== */
.v-item, .gframe .v-item, .me .pic, .nth, .fph, .fph.sm, .fc-img, .fr, .tile .ph, .re .ph, .lr, .g-item {
  background-color: #e9edf5;
}
.v-item { color: #fff; }
.v-item .v-play, .v-item .v-title { z-index: 3; }
.v-item img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain !important; opacity: 1; }
.gframe .v-item img { position: absolute; inset: 0; }
.v-item.fill::before, .gframe .v-item.fill::before { z-index: 0; }
.v-item video { z-index: 2; background: transparent; object-fit: contain; }
.me .pic { aspect-ratio: 4 / 5; }
.me .pic img, .nth img, .news .nth img { object-fit: contain !important; width: 100%; height: 100%; }
.me .pic.fill > img, .nth.fill > img { position: relative; z-index: 1; }
.lb-stage, .lb { background: rgba(8, 12, 22, 0.94); }


/* =====================================================================
   v30 — FINAL LAYOUT LAYER (keep this block last)
   Header: full width. Body: proper side padding + even vertical rhythm.
   ===================================================================== */
:root {
  --pad-x: clamp(20px, 5vw, 88px);
  --sec-y: clamp(56px, 7vw, 104px);
  --gap-l: clamp(22px, 2.6vw, 40px);
}

/* header / nav bar: edge to edge */
.site-header { width: 100%; }
.site-header .wrap {
  max-width: none;
  width: 100%;
  padding-inline: clamp(16px, 3vw, 48px);
  gap: 24px;
}
.nav-desktop { gap: 4px; }
.nav-link { padding-inline: 14px; }

/* body content: centred, with breathing room on both sides */
.wrap {
  width: 100%;
  max-width: 1520px;
  padding-inline: var(--pad-x);
  margin-inline: auto;
}
.site-header .wrap { max-width: none; }
.hero-inner.wrap {
  padding-inline: var(--pad-x);
  padding-left: calc(var(--pad-x) + clamp(8px, 2.5vw, 48px));
}
.stats .wrap { max-width: 1520px; padding-inline: var(--pad-x); }
.banner .wrap { padding-inline: var(--pad-x); }

/* vertical rhythm */
.section { padding: var(--sec-y) 0; }
.sec-head { margin-bottom: clamp(26px, 3.4vw, 44px); }
.sec-head + *, .sec-head + .flourish { margin-top: 0; }
.tiles { gap: var(--gap-l); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile .in { padding: 16px 20px; gap: 14px; }
.cards.re-cards { gap: var(--gap-l); }
.tl-grid { gap: var(--gap-l); }
.split { gap: clamp(28px, 5vw, 80px); }
.vsplit { gap: clamp(28px, 5vw, 80px); }
.gallery, .gallery.rt-gallery { gap: 14px; }
.events { gap: clamp(32px, 4vw, 56px); }
.dept-grid { gap: var(--gap-l); }
.feats { gap: var(--gap-l); }
.section .prose { max-width: 78ch; }
.books-wrap { gap: 48px 44px; justify-content: center; margin-top: 36px; }
.book { width: 170px; }
.cta .wrap { padding-block: 0; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* footer */
.site-footer { padding: clamp(48px, 6vw, 84px) 0 28px; }
.footer-grid {
  grid-template-columns: minmax(240px, 1.7fr) repeat(4, minmax(120px, 1fr)) minmax(230px, 1.5fr);
  gap: clamp(24px, 3vw, 48px);
}
.site-footer h5 { margin-bottom: 16px; letter-spacing: 0.04em; }
.site-footer li { margin: 9px 0; }
.f-contact li { margin-bottom: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* retired batchmates: every person is a separate coloured card */
.rt {
  --c1: #14264a; --c2: #384f90;
  margin: 0 0 clamp(34px, 4vw, 56px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(20, 38, 74, 0.13);
  border: 1px solid var(--line);
}
.rt.c1 { --c1: #0f5b52; --c2: #1f8f7e; }
.rt.c2 { --c1: #7a1f3d; --c2: #b83a63; }
.rt.c3 { --c1: #4a2a86; --c2: #7a52c7; }
.rt.c4 { --c1: #8a5a0b; --c2: #d4a23a; }
.rt.c5 { --c1: #1f5f2f; --c2: #4fa05a; }
.rt-head {
  display: flex; align-items: center; gap: 16px;
  margin: 0; padding: 18px clamp(18px, 3vw, 32px);
  border-left: 0;
  background: linear-gradient(100deg, var(--c1), var(--c2));
  color: #fff;
}
.rt-head h3 { color: #fff; margin: 0; }
.rt-no {
  font: 700 0.95rem var(--sans); letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 99px; padding: 4px 12px;
}
.rt .rt-gallery { padding: clamp(16px, 2.4vw, 28px); }

/* PDF cards (souvenir / book downloads) with cover photos */
.dl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 0 0 clamp(28px, 3.5vw, 44px); }
.dl-card {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  box-shadow: 0 6px 20px rgba(20, 38, 74, 0.1); transition: transform 0.25s, box-shadow 0.25s;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 38, 74, 0.2); }
.dl-cover { flex: none; width: 76px; border-radius: 6px; overflow: hidden; background: #eef2fb; border: 1px solid rgba(212, 162, 58, 0.6); box-shadow: -3px 4px 10px rgba(20, 38, 74, 0.25); }
.dl-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.dl-ph { display: grid; place-items: center; aspect-ratio: 2 / 3; color: var(--blue); }
.dl-tx { display: grid; gap: 6px; min-width: 0; }
.dl-tx b { font: 700 0.98rem/1.35 var(--sans); color: var(--navy); }
.dl-tx small { font: 700 0.8rem var(--sans); color: var(--blue); }

/* news: year switcher */
.year-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 clamp(24px, 3vw, 40px); }
.year-tabs a {
  text-decoration: none; font: 700 1rem var(--sans); color: var(--navy);
  padding: 9px 26px; border-radius: 99px; border: 1px solid var(--line); background: #fff;
  transition: all 0.2s;
}
.year-tabs a:hover { border-color: var(--gold); }
.year-tabs a.on { background: var(--navy); color: var(--gold2); border-color: var(--navy); }

/* home memorial: lotus, falling petals and a diya */
.memorial-home { padding: clamp(72px, 9vw, 130px) 0; text-align: center; }
.memorial-home .mem-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.memorial-home .quiet { margin: 0 auto 18px; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.memorial-home .mem-line { margin: 0 0 30px; font-size: 1.1rem; color: #d3def4; max-width: 34em; }
.flora { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petals { position: absolute; inset: 0; }
.petal {
  position: absolute; top: -40px; width: 18px; height: 24px;
  fill: #f6a6b8; opacity: 0;
  animation: petalFall 12s linear infinite;
}
.petal:nth-child(3n) { fill: #ffd27a; }
.petal:nth-child(4n) { fill: #ffffff; }
.petal:nth-child(5n) { fill: #f48fb1; }
.p1 { left: 4%;  animation-delay: 0s;   animation-duration: 13s; }
.p2 { left: 11%; animation-delay: 2.2s; animation-duration: 11s; width: 14px; }
.p3 { left: 19%; animation-delay: 5s;   animation-duration: 14s; }
.p4 { left: 27%; animation-delay: 1s;   animation-duration: 12s; width: 22px; }
.p5 { left: 36%; animation-delay: 7s;   animation-duration: 13s; }
.p6 { left: 44%; animation-delay: 3.5s; animation-duration: 15s; width: 13px; }
.p7 { left: 52%; animation-delay: 9s;   animation-duration: 12s; }
.p8 { left: 60%; animation-delay: 0.6s; animation-duration: 14s; width: 20px; }
.p9 { left: 68%; animation-delay: 4.4s; animation-duration: 11s; }
.p10 { left: 75%; animation-delay: 8s;  animation-duration: 13s; width: 15px; }
.p11 { left: 82%; animation-delay: 2.8s; animation-duration: 12s; }
.p12 { left: 88%; animation-delay: 6s;  animation-duration: 14s; width: 21px; }
.p13 { left: 93%; animation-delay: 10s; animation-duration: 12s; }
.p14 { left: 97%; animation-delay: 1.6s; animation-duration: 15s; width: 14px; }
@keyframes petalFall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { transform: translate3d(28px, 220px, 0) rotate(160deg); }
  90%  { opacity: 0.7; }
  100% { transform: translate3d(-18px, 520px, 0) rotate(340deg); opacity: 0; }
}
.lotus { position: absolute; bottom: -6px; width: clamp(130px, 17vw, 260px); height: auto; opacity: 0.92; transform-origin: 50% 100%; animation: lotusSway 6s ease-in-out infinite; }
.lotus-l { left: clamp(8px, 4vw, 70px); }
.lotus-r { right: clamp(8px, 4vw, 70px); animation-delay: -3s; }
.lotus .l1 { fill: #ffd6e0; } .lotus .l2 { fill: #f7a4bb; } .lotus .l3 { fill: #e9739b; }
.lotus .lc { fill: #ffd27a; }
@keyframes lotusSway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
.diya { width: 64px; height: auto; margin: 0 auto 14px; overflow: visible; }
.diya .bowl { fill: #c9852a; }
.diya .flame { fill: #ffb83d; transform-origin: 40px 34px; animation: flicker 1.6s ease-in-out infinite; }
.diya .flame-in { fill: #fff4c2; transform-origin: 40px 32px; animation: flicker 1.2s ease-in-out infinite reverse; }
.diya .glow { fill: rgba(255, 190, 70, 0.28); animation: glowPulse 2.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 35% { transform: scale(0.94, 1.08) rotate(2deg); } 70% { transform: scale(1.04, 0.96) rotate(-1deg); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (max-width: 700px) { .lotus { opacity: 0.55; width: 120px; } .petal { display: none; } .petal:nth-child(-n+6) { display: block; } }
@media (prefers-reduced-motion: reduce) { .petal, .lotus, .diya .flame, .diya .flame-in, .diya .glow { animation: none !important; } .petal { display: none; } }
/* re-union cards are rendered outside .wrap: give them the same side padding */
.cards.re-cards { max-width: 1520px; margin-inline: auto; padding-inline: var(--pad-x); box-sizing: border-box; }
.cards.re-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards.re-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .cards.re-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-grid { grid-template-columns: minmax(300px, 1.8fr) repeat(4, minmax(110px, 1fr)) minmax(280px, 1.6fr); }
.site-footer .brand .bt { white-space: nowrap; }
@media (max-width: 1280px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-grid { grid-template-columns: minmax(300px, 1.8fr) repeat(4, minmax(110px, 1fr)) minmax(320px, 1.8fr); }
.f-contact a { overflow-wrap: anywhere; }

/* ===== v31: full-width footer + hero, realistic memorial scene ===== */
.site-footer .wrap { max-width: none; padding-inline: clamp(20px, 3vw, 56px); }
.hero-inner.wrap { max-width: none; padding-inline: clamp(24px, 3vw, 56px); padding-left: clamp(40px, 5vw, 96px); }
.stats .wrap { max-width: none; padding-inline: clamp(20px, 3vw, 56px); }
.footer-grid {
  grid-template-columns: minmax(380px, 1.6fr) repeat(4, minmax(100px, 1fr)) minmax(300px, 1.6fr);
  gap: clamp(20px, 2.4vw, 40px);
}
@media (max-width: 1300px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer .brand .bt { white-space: nowrap; }

.petal { fill: none; }
.petal { animation-name: petalFall3d; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); width: 20px; height: 27px; }
@keyframes petalFall3d {
  0%   { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(0); opacity: 0; }
  8%   { opacity: 0.95; }
  25%  { transform: translate3d(40px, 90px, 0) rotateX(120deg) rotateY(60deg) rotateZ(40deg); }
  50%  { transform: translate3d(-20px, 210px, 0) rotateX(260deg) rotateY(150deg) rotateZ(110deg); }
  75%  { transform: translate3d(36px, 340px, 0) rotateX(400deg) rotateY(240deg) rotateZ(190deg); }
  92%  { opacity: 0.85; }
  100% { transform: translate3d(-10px, 480px, 0) rotateX(520deg) rotateY(320deg) rotateZ(260deg); opacity: 0; }
}
.lotus { width: clamp(150px, 19vw, 300px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.lotus .ripple { transform-origin: 120px 176px; animation: ripple 5s ease-out infinite; transform-box: fill-box; }
.lotus .ripple.r2 { animation-delay: -2.5s; }
@keyframes ripple { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.motes { position: absolute; inset: 0; }
.mote {
  position: absolute; bottom: 10%; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, #fff3b0, rgba(255, 200, 90, 0));
  box-shadow: 0 0 10px 3px rgba(255, 210, 110, 0.55); opacity: 0;
  animation: mote 9s ease-in-out infinite;
}
.m1{left:8%;animation-delay:0s}.m2{left:15%;animation-delay:2s}.m3{left:24%;animation-delay:4s}.m4{left:33%;animation-delay:1s}
.m5{left:42%;animation-delay:5s}.m6{left:58%;animation-delay:3s}.m7{left:67%;animation-delay:6s}.m8{left:76%;animation-delay:1.5s}
.m9{left:84%;animation-delay:4.5s}.m10{left:91%;animation-delay:7s}.m11{left:49%;animation-delay:8s}.m12{left:3%;animation-delay:6.5s}
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 60% { transform: translate(16px, -150px); opacity: 0.8; } 100% { transform: translate(-12px, -290px); opacity: 0; } }
.diya-wrap { position: relative; width: 150px; margin: 0 auto 6px; }
.diya { width: 150px; height: auto; overflow: visible; display: block; margin: 0; }
.diya .flame { transform-origin: 70px 62px; transform-box: view-box; animation: flicker 1.7s ease-in-out infinite; }
.diya .flame-in { transform-origin: 70px 58px; animation: flicker 1.2s ease-in-out infinite reverse; }
.diya .glow { animation: glowPulse 2.6s ease-in-out infinite; transform-origin: 70px 46px; }
.diya .smoke { stroke-dasharray: 40; animation: smoke 4s ease-in-out infinite; }
.diya .smoke.s2 { animation-delay: -2s; }
@keyframes smoke { 0% { stroke-dashoffset: 40; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: -40; opacity: 0; } }
@media (max-width: 700px) { .lotus { width: 120px; opacity: 0.7; } .mote:nth-child(n+7) { display: none; } }
@media (prefers-reduced-motion: reduce) { .mote, .lotus .ripple, .diya .smoke { animation: none !important; } }
.diya .glow { fill: url(#gGlow) !important; }
.diya { width: 150px; }


/* ===== v32: tighter spacing ===== */
:root {
  --pad-x: clamp(12px, 1.5vw, 24px);   /* left/right padding thaggindi */
  --sec-y: clamp(28px, 3.5vw, 52px);   /* top/bottom padding thaggindi */
  --gap-l: clamp(14px, 1.6vw, 24px);
}

/* sections: top/bottom gap */
.section { padding: var(--sec-y) 0; }

/* heading ki, cards ki madhya gap */
.sec-head { margin-bottom: clamp(14px, 2vw, 24px); }

/* left/right padding */
.wrap,
.stats .wrap,
.banner .wrap {
  padding-inline: var(--pad-x);
}
.hero-inner.wrap {
  padding-inline: var(--pad-x);
  padding-left: clamp(16px, 2.5vw, 40px);
}

/* cards gap */
.tiles { gap: var(--gap-l); }

/* ===== v40: portraits & statues (photo left, text wraps, View more) + Explore row ===== */
.arts { display: grid; gap: 28px; }
.art { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(20, 38, 74, 0.07); padding-bottom: 14px; }
.art-h { margin: 0; padding: 12px 22px; background: #6fc0e4; color: #14264a; font: 700 1.2rem var(--sans); }
.art-body { padding: 22px 22px 0; }
.art-body::after { content: ''; display: block; clear: both; }
.art-media { float: left; width: min(330px, 40%); margin: 0 24px 10px 0; display: grid; gap: 8px; }
.arts .art .fph { display: block; width: 100%; aspect-ratio: auto; padding: 0; border: 0; border-radius: 4px; background: #eef2fb; box-shadow: none; overflow: hidden; }
.arts .art .fph img { display: block; width: 100%; height: auto; object-fit: contain !important; }
.arts .art .fph.sm { aspect-ratio: 1; }
.arts .art .fph.sm img { height: 100%; object-fit: cover !important; }
.arts .art .fthumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.art-text p { margin: 0 0 12px; text-align: justify; line-height: 1.75; font-size: 0.98rem; color: var(--ink); }
.art-body.clamp { max-height: 15.5em; overflow: hidden; position: relative; }
.art-body.clamp::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, #fff); z-index: 2; pointer-events: none; }
.art-more { display: block; margin: 8px 22px 0 auto; padding: 7px 20px; border: 2px solid var(--navy); border-radius: 99px; background: transparent; color: var(--navy); font: 700 0.85rem var(--sans); cursor: pointer; }
.art-more[hidden] { display: none; }
.art-more:hover { background: var(--navy); color: #fff; }
@media (max-width: 640px) {
  .art-media { float: none; width: 100%; margin: 0 0 12px; }
  .art-body { padding: 16px 16px 0; }
  .art-body.clamp { max-height: 24em; }
  .art-h { padding: 10px 16px; font-size: 1.05rem; }
}

/* Explore for More: one row, no empty space on the right */
.tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.tile .in { padding: 12px 14px; gap: 10px; }
.tile .in h3 { font-size: 1rem; }
.tile .in p { font-size: 0.8rem; }
.tile .badge { width: 38px; height: 38px; transform: none; }
.tile .badge .ic { width: 20px; height: 20px; }
.view-more { display: flex; justify-content: center; margin-top: 26px; }
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tiles .tile { grid-column: span 2; }
  .tiles .tile:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile, .tiles .tile:nth-child(n+4) { grid-column: auto; }
  .tiles .tile:last-child { grid-column: 1 / -1; }
}

/* home facts: three cards in a row, no empty right side */
.vfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vfacts li { flex-direction: column; align-items: flex-start; gap: 4px; }
.vfacts b { min-width: 0; }
@media (max-width: 560px) { .vfacts { grid-template-columns: 1fr; } .vfacts li { flex-direction: row; align-items: center; } }

/* ===== v41: one common, simple banner for every inner page (no animation, no colours) ===== */
body.inner .banner,
body[class*="th-"] .banner {
  background: #14264a url('../assets/img/banner.webp') center / cover no-repeat;
  padding: clamp(110px, 13vw, 150px) 0 clamp(26px, 3.4vw, 44px);
  isolation: isolate;
}
body.inner .banner::before,
body[class*="th-"] .banner::before { content: none; display: none; animation: none; }
body.inner .banner::after,
body[class*="th-"] .banner::after {
  content: ''; display: block; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(10, 20, 42, 0.88), rgba(10, 20, 42, 0.6));
}
.banner .bn-fx, .banner .bn-scene, .banner .mdoodle { display: none !important; }
.banner .wrap { position: relative; z-index: 2; }
.banner .crumb, .banner h1, .banner p { animation: none !important; opacity: 1; transform: none; }
.banner .crumb { color: #fff; }

/* ===== v42: banner photos clearly visible (mixed photo collage, no animation) ===== */
body.inner .banner::after,
body[class*="th-"] .banner::after {
  background: linear-gradient(90deg, rgba(10, 20, 42, 0.82) 0%, rgba(10, 20, 42, 0.55) 40%, rgba(10, 20, 42, 0.08) 100%);
}
body.inner .banner, body[class*="th-"] .banner { min-height: clamp(230px, 24vw, 320px); display: flex; align-items: flex-end; }
body.inner .banner .wrap { width: 100%; }
.banner h1, .banner p, .banner .crumb { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); }

/* ===== v43: cards fill the full width (no empty right side), equal-height re-union cards ===== */
.wrap, .cards.re-cards, .stats .wrap { max-width: none; }
.cards.re-cards { width: 100%; }
.re { display: flex; flex-direction: column; }
.re .tx { display: flex; flex-direction: column; }
.re .tx .link { margin-top: auto; align-self: flex-start; }
.view-more { display: flex; justify-content: center; margin-top: 26px; }

/* ===== v44: left/right padding on all body content (header, hero, stats ticker and footer stay full width) ===== */
:root { --body-pad: clamp(18px, 5vw, 96px); }
main .section > .wrap,
main .banner > .wrap,
main .cta > .wrap,
main .section > .rail-wrap,
main .section .view-more {
  max-width: none;
  padding-inline: var(--body-pad);
}
main .section > .rail-wrap .wrap { padding-inline: 0; }
main .cards.re-cards { padding-inline: var(--body-pad); }
main .mq-rail, main .rail { --pad: var(--body-pad); }
main .section > .wrap .wrap { padding-inline: 0; }

/* ===== v45: 10% left/right space on body content ===== */
:root { --body-pad: 10vw; }

/* ===== v46: side space on EVERY body block, even when .wrap is nested inside a rendered block ===== */
main .section .wrap { max-width: none; padding-inline: var(--body-pad); }
main .section .wrap .wrap { padding-inline: 0; }
main .section > [data-render]:not(:has(.wrap)):not(:has(.re-cards)),
main .section > [data-gallery]:not(:has(.wrap)),
main .section > [data-videos]:not(:has(.wrap)) { padding-inline: var(--body-pad); }
main .banner .wrap { padding-inline: var(--body-pad); }

/* ===== v47: portraits & statues: small whole photo on the left, full text wraps beside and below it ===== */
.art-body, .art-body.clamp { max-height: none !important; overflow: visible !important; padding: 20px 24px 6px; }
.art-body.clamp::before { content: none !important; }
.art-more { display: none !important; }
.art-body::after { content: ''; display: block; clear: both; }
.art-media { float: left; width: 260px; max-width: 42%; margin: 4px 24px 10px 0; }
.arts .art .fph { width: 100%; height: auto; aspect-ratio: auto !important; background: #eef2fb; }
.arts .art .fph img { width: 100%; height: auto !important; max-height: none; object-fit: contain !important; display: block; }
.arts .art .fph.sm { aspect-ratio: 1 !important; }
.arts .art .fph.sm img { height: 100% !important; object-fit: cover !important; }
.art-text p { margin: 0 0 14px; text-align: justify; line-height: 1.75; font-size: 1rem; }
.art { padding-bottom: 12px; }
@media (max-width: 640px) {
  .art-media { float: none; width: 100%; max-width: 320px; margin: 0 auto 14px; }
  .art-body, .art-body.clamp { padding: 16px 16px 4px; }
}

/* Ruby Re-Union: camera photo downloads, sit in the free space at the right of each day's videos */
.cam-panel {
  grid-column: -2 / -1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  background: var(--navy); border-radius: var(--r); padding: 14px; border-left: 5px solid var(--gold);
}
.cam-title { font: 400 1.05rem/1.2 var(--serif); color: var(--gold2); margin: 0 0 2px; }
.cam-btn {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy);
  background: #fff; border-radius: 10px; padding: 8px 12px; font: 700 0.95rem/1.2 var(--sans);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.cam-btn span { flex: 1; }
.cam-btn:hover, .cam-btn:focus-visible { background: var(--gold); color: var(--navy2); transform: translateX(3px); }
.cam-ic, .cam-dl { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cam-ic { color: var(--blue); }
.cam-btn:hover .cam-ic, .cam-btn:focus-visible .cam-ic { color: var(--navy2); }
@media (max-width: 1100px) {
  .cam-panel { grid-column: 1 / -1; }
}
