:root {
  --maroon: #741d2b;
  --maroon-deep: #3e0d16;
  --maroon-dark: #26070d;
  --maroon-soft: #9f2d3d;
  --cream: #f6eddf;
  --cream-deep: #eadbc5;
  --white: #fffdf9;
  --ink: #221b1b;
  --muted: #6d6360;
  --gold: #e5b72f;
  --gold-soft: #f5d563;
  --line: rgba(65, 26, 29, 0.16);
  --page-progress: 0;
  --scroll-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--maroon-dark);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  color: inherit;
}

section[id] {
  position: relative;
  scroll-margin-top: 94px;
}

::selection {
  background: var(--gold);
  color: var(--maroon-deep);
}

.section-shell {
  width: min(100% - 64px, 1280px);
  margin-inline: auto;
}

.section-dark {
  color: var(--cream);
  background: var(--maroon-dark);
}

.section-cream {
  background: var(--cream);
}

.section-white {
  background: var(--white);
}

.section-maroon {
  color: var(--white);
  background: var(--maroon);
}

.page-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(var(--page-progress));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: center;
  width: min(calc(100% - 38px), 1320px);
  min-height: 72px;
  padding: 7px 9px 7px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 20px;
  background: rgba(248, 239, 226, 0.92);
  box-shadow: 0 18px 55px rgba(34, 5, 11, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(116, 29, 43, 0.16);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(75, 15, 25, 0.1);
}

.brand-mark img {
  width: 47px;
  height: 47px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--maroon-deep);
  line-height: 1;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--maroon);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}

.main-nav > a:not(.mobile-portal) {
  position: relative;
  display: grid;
  min-height: 44px;
  padding: 0 10px;
  place-items: center;
  color: #5d2025;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.main-nav > a:not(.mobile-portal)::after {
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--maroon);
  transition: transform 240ms ease;
}

.main-nav > a:not(.mobile-portal):hover::after,
.main-nav > a:not(.mobile-portal).active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-nav-head,
.mobile-portal {
  display: none;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  gap: 22px;
  padding: 0 20px;
  border-radius: 15px;
  color: #fff;
  background: var(--maroon);
  box-shadow: 0 10px 24px rgba(116, 29, 43, 0.24);
  font-size: 13px;
  font-weight: 800;
  transition: transform 200ms ease, background 200ms ease;
}

.portal-button:hover {
  transform: translateY(-2px);
  background: var(--maroon-deep);
}

.portal-button span + span,
.portal-button > span[aria-hidden] {
  font-size: 18px;
}

.menu-toggle {
  display: none;
}

.hero {
  display: flex;
  min-height: max(760px, 100svh);
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  transform: translate3d(0, calc(var(--scroll-y) * 0.075px), 0) scale(1.06);
  transform-origin: center top;
  background: url("../images/campus-one-hero.webp") center/cover no-repeat;
  will-change: transform;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(33, 4, 10, 0.95) 0%, rgba(48, 8, 16, 0.82) 37%, rgba(48, 8, 16, 0.18) 70%, rgba(24, 4, 8, 0.38) 100%),
    linear-gradient(0deg, rgba(28, 3, 9, 0.7) 0%, transparent 50%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 590px;
  height: 590px;
  border: 1px solid rgba(246, 237, 223, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::before,
.orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.orbit::before {
  inset: 12%;
  border: 1px dashed rgba(229, 183, 47, 0.28);
}

.orbit::after {
  top: 48%;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  box-shadow: 0 0 26px var(--gold);
}

.orbit-one {
  top: 16%;
  right: -180px;
  animation: orbit-spin 34s linear infinite;
}

.orbit-two {
  top: 44%;
  right: 20%;
  width: 210px;
  height: 210px;
  animation: orbit-spin 18s linear infinite reverse;
}

@keyframes orbit-spin {
  to { transform: rotate(1turn); }
}

.hero-inner {
  width: min(100% - 64px, 1280px);
  margin: 0 auto;
  padding: 170px 0 112px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--maroon);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 38px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light,
.hero-eyebrow {
  color: rgba(255, 253, 249, 0.72);
}

.eyebrow.gold {
  color: var(--gold-soft);
}

.hero h1,
.display-heading {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(68px, 9.5vw, 136px);
}

.hero h1 em,
.display-heading em {
  color: var(--gold-soft);
  font-weight: 400;
}

.hero h1 span {
  display: block;
  padding-left: 0.75em;
}

.hero-copy {
  max-width: 600px;
  margin: 34px 0 0;
  color: rgba(255, 253, 249, 0.78);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-cream {
  color: var(--maroon-deep);
  background: var(--cream);
  box-shadow: 0 16px 36px rgba(20, 3, 7, 0.24);
}

.button-gold {
  color: var(--maroon-deep);
  background: var(--gold-soft);
  box-shadow: 0 18px 40px rgba(48, 8, 16, 0.2);
}

.button-maroon {
  color: #fff;
  background: var(--maroon);
  box-shadow: 0 16px 32px rgba(116, 29, 43, 0.2);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.text-link,
.line-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  line-height: 2.4;
  transition: gap 200ms ease, border-color 200ms ease;
}

.text-link:hover,
.line-link:hover {
  gap: 23px;
  border-color: currentColor;
}

.line-link.maroon {
  color: var(--maroon);
  border-color: rgba(116, 29, 43, 0.35);
}

.hero-index {
  position: absolute;
  right: 42px;
  bottom: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero-index i {
  width: 1px;
  height: 74px;
  background: linear-gradient(var(--gold) 0 16%, rgba(255, 255, 255, 0.25) 16%);
}

.hero-caption {
  position: absolute;
  right: 54px;
  bottom: 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.hero-caption small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 44px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 20px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}

.scroll-cue i::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 4px;
  background: var(--gold);
  content: "";
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
  50% { transform: translate(-50%, 9px); opacity: 1; }
}

.about {
  overflow: hidden;
  padding: 150px 0 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.8fr;
  gap: clamp(48px, 8vw, 120px);
  padding-bottom: 140px;
}

.about-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.legacy-stamp {
  display: flex;
  width: 180px;
  height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(116, 29, 43, 0.34);
  border-radius: 50%;
  color: var(--maroon);
  text-align: center;
}

.legacy-stamp strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.legacy-stamp small {
  max-width: 96px;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.display-heading {
  font-size: clamp(50px, 6.2vw, 92px);
}

.display-heading em {
  color: var(--maroon);
}

.display-heading.light {
  color: var(--cream);
}

.display-heading.light em {
  color: var(--gold-soft);
}

.lead-copy {
  max-width: 820px;
  margin: 46px 0 68px;
  color: #554848;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.5;
}

.value-stream {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.value-stream > div {
  min-height: 180px;
  padding: 24px 22px 20px 0;
  border-right: 1px solid var(--line);
}

.value-stream > div + div {
  padding-left: 22px;
}

.value-stream > div:last-child {
  border-right: 0;
}

.value-stream span,
.facility-row > span {
  color: var(--maroon-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.value-stream strong {
  display: block;
  margin-top: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.value-stream p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.marquee {
  display: flex;
  width: max-content;
  padding: 27px 0;
  color: var(--cream);
  background: var(--maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 42px);
  font-style: italic;
  white-space: nowrap;
  animation: marquee-run 24s linear infinite;
}

.marquee span {
  padding-right: 14px;
}

@keyframes marquee-run {
  to { transform: translateX(-50%); }
}

.campuses {
  overflow: hidden;
  padding: 150px 0;
  background:
    radial-gradient(circle at 90% 8%, rgba(159, 45, 61, 0.28), transparent 28%),
    var(--maroon-dark);
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 70px;
}

.section-intro {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.light-muted {
  color: rgba(255, 253, 249, 0.62);
}

.campus-journey {
  position: relative;
  margin-top: 100px;
}

.campus-journey::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: calc(57% + 1px);
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(229, 183, 47, 0.56) 8%, rgba(255, 255, 255, 0.14) 92%, transparent);
}

.campus-scene {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: clamp(70px, 9vw, 150px);
  min-height: 620px;
  padding: 64px 0;
}

.campus-scene:nth-child(even) .campus-visual {
  order: 2;
}

.campus-scene:nth-child(even) .campus-copy {
  order: 1;
}

.campus-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  clip-path: polygon(0 0, 94% 0, 100% 13%, 100% 100%, 6% 100%, 0 88%);
}

.campus-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
  pointer-events: none;
}

.campus-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.campus-scene:hover .campus-visual img {
  transform: scale(1.045);
}

.visual-note {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(39, 6, 13, 0.68);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.campus-copy {
  position: relative;
  padding: 24px 0;
}

.campus-number {
  position: absolute;
  z-index: -1;
  top: -88px;
  right: -20px;
  color: rgba(255, 255, 255, 0.045);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 190px;
  line-height: 1;
}

.campus-kicker {
  margin: 0 0 14px;
  color: var(--gold-soft) !important;
  font-size: 10px !important;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.campus-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.3vw, 66px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.campus-copy address {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.campus-copy > p:not(.campus-kicker) {
  max-width: 430px;
  margin: 26px 0 28px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 15px;
  line-height: 1.8;
}

.academics {
  padding: 150px 0;
}

.academic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  gap: clamp(70px, 10vw, 170px);
}

.academic-sticky {
  align-self: start;
}

.academic-sticky .section-intro {
  margin: 40px 0 28px;
}

.academic-stages {
  border-top: 1px solid var(--line);
}

.academic-stage {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.academic-stage > span {
  color: var(--maroon);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.academic-stage h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.academic-stage p {
  max-width: 430px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.learning-rhythm {
  margin-top: 40px;
  padding: 24px;
  color: var(--cream);
  background: var(--maroon-deep);
}

.learning-rhythm > p {
  margin: 0 0 26px;
  color: var(--gold-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.learning-rhythm > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.learning-rhythm i {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.admissions {
  overflow: hidden;
  padding: 140px 0;
  isolation: isolate;
}

.admissions::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  opacity: 0.16;
  background-image: linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.admission-glow {
  position: absolute;
  z-index: -1;
  top: -220px;
  left: -160px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(245, 213, 99, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 120px rgba(245, 213, 99, 0.08);
}

.admission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.75fr);
  align-items: center;
  gap: clamp(70px, 11vw, 170px);
}

.admission-copy .section-intro {
  margin: 38px 0 34px;
}

.admission-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: admissions;
}

.admission-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.admission-steps li::before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-soft);
  content: "";
  transition: width 500ms ease;
}

.admission-steps li:hover::before {
  width: 100%;
}

.admission-steps li > span {
  color: var(--gold-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.admission-steps strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.admission-steps p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.65;
}

.facilities {
  padding: 150px 0;
}

.facility-list {
  margin-top: 90px;
  border-top: 1px solid var(--line);
}

.facility-row {
  display: grid;
  grid-template-columns: 80px minmax(240px, 0.7fr) minmax(300px, 1fr) 48px;
  align-items: center;
  min-height: 126px;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  transition: color 250ms ease, padding 250ms ease, background 250ms ease;
}

.facility-row:hover {
  padding-inline: 20px;
  color: var(--cream);
  background: var(--maroon);
}

.facility-row:hover > span,
.facility-row:hover p {
  color: rgba(255, 255, 255, 0.65);
}

.facility-row h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.facility-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  transition: color 250ms ease;
}

.facility-row > i {
  color: var(--maroon);
  font-size: 24px;
  font-style: normal;
  transition: transform 250ms ease, color 250ms ease;
}

.facility-row:hover > i {
  transform: rotate(45deg);
  color: var(--gold-soft);
}

.gallery {
  padding: 150px 0 110px;
  background:
    radial-gradient(circle at 14% 80%, rgba(159, 45, 61, 0.26), transparent 27%),
    var(--maroon-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  grid-template-rows: repeat(2, minmax(250px, 340px));
  gap: 16px;
  margin-top: 90px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #fff;
  background: #160409;
  cursor: zoom-in;
  text-align: left;
}

.gallery-item-1 {
  grid-row: 1 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: opacity 500ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.055);
  opacity: 0.95;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(29, 4, 10, 0.85), transparent 55%);
}

.gallery-item > span {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gallery-item small {
  color: var(--gold-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-item strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.gallery-item > i {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-size: 23px;
  font-style: normal;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

.gallery-item:hover > i {
  transform: rotate(45deg);
  color: var(--maroon-deep);
  background: var(--gold-soft);
}

.gallery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.staff {
  overflow: hidden;
  padding: 150px 0;
}

.staff-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(70px, 10vw, 170px);
}

.staff-intro .section-intro {
  margin-top: 36px;
}

.staff-orbit {
  position: relative;
  min-height: 640px;
  border: 1px solid rgba(116, 29, 43, 0.14);
  border-radius: 50%;
}

.staff-orbit::before,
.staff-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.staff-orbit::before {
  inset: 14%;
  border: 1px dashed rgba(116, 29, 43, 0.24);
}

.staff-orbit::after {
  inset: 38%;
  border: 1px solid rgba(116, 29, 43, 0.14);
}

.staff-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  width: 190px;
  height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: var(--maroon);
  box-shadow: 0 30px 70px rgba(116, 29, 43, 0.28);
}

.staff-core img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.staff-core span {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 0.92;
  text-align: center;
}

.staff-role {
  position: absolute;
  z-index: 3;
  width: 200px;
  padding: 20px 0 17px;
  border-top: 2px solid var(--maroon);
  background: var(--white);
  box-shadow: 0 22px 50px rgba(45, 15, 20, 0.12);
}

.staff-role span {
  color: var(--maroon-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.staff-role strong,
.staff-role small {
  display: block;
}

.staff-role strong {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.staff-role small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.role-one { top: 4%; left: 17%; }
.role-two { top: 41%; right: -4%; }
.role-three { bottom: 3%; left: 7%; }

.contact {
  padding: 145px 0;
}

.contact-heading {
  margin-bottom: 70px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.75fr);
  gap: 22px;
}

.contact-map {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--maroon-deep);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 690px;
  border: 0;
  filter: sepia(0.22) saturate(0.72) contrast(1.03);
}

.contact-map > a {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 22px;
  color: #fff;
  background: rgba(62, 13, 22, 0.94);
  box-shadow: 0 18px 40px rgba(24, 3, 8, 0.28);
  backdrop-filter: blur(12px);
}

.contact-map > a span {
  color: var(--gold-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-map > a strong {
  grid-column: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.contact-map > a > span:last-child {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #fff;
  font-size: 20px;
}

.inquiry-form {
  padding: clamp(32px, 5vw, 62px);
  color: var(--cream);
  background: var(--maroon-deep);
}

.form-intro {
  margin-bottom: 38px;
}

.form-intro h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.form-intro p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.65;
}

.inquiry-form label {
  display: block;
  margin-top: 24px;
}

.inquiry-form label > span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  outline: none;
  color: #fff;
  background: transparent;
  font-size: 14px;
  transition: border-color 200ms ease;
}

.inquiry-form input {
  height: 48px;
}

.inquiry-form textarea {
  min-height: 110px;
  padding: 12px 0;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--gold-soft);
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.inquiry-form .button {
  width: 100%;
  margin-top: 32px;
  color: var(--maroon-deep);
  background: var(--gold-soft);
}

.form-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.form-note a {
  color: var(--gold-soft);
}

.site-footer {
  padding: 90px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #53111c, #28070e 78%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.55fr 0.55fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-logo .brand-copy {
  color: #fff;
}

.footer-logo .brand-copy small {
  color: var(--gold-soft);
}

.footer-brand > p {
  max-width: 320px;
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-links h3,
.footer-contact h3 {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold-soft);
}

.footer-portal {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px !important;
  color: var(--gold-soft);
  font-weight: 800;
}

.campus-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.campus-ribbon span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 11px;
}

.footer-bottom > div {
  display: flex;
  gap: 22px;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 54px;
  place-items: center;
  background: rgba(22, 2, 7, 0.94);
  backdrop-filter: blur(18px);
}

.lightbox > button {
  position: absolute;
  top: 26px;
  right: 28px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
}

.lightbox figure {
  width: min(100%, 1100px);
  margin: 0;
}

.lightbox figure img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  color: #fff;
}

.lightbox figcaption span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.lightbox figcaption small {
  color: var(--gold-soft);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-motion-ready="true"] .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-motion-ready="true"] .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-motion-ready="true"] .reveal.delay-one {
  transition-delay: 120ms;
}

.hp-field,
.lightbox[hidden] {
  display: none !important;
}

.form-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--gold-soft);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.form-status.is-error {
  color: #ffb9b9;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .main-nav {
    position: fixed;
    top: -18px;
    right: -20px;
    display: flex;
    width: min(440px, calc(100vw + 1px));
    height: 100dvh;
    padding: 28px 34px 44px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    transform: translateX(110%);
    color: var(--cream);
    background: var(--maroon-deep);
    box-shadow: -40px 0 80px rgba(20, 3, 8, 0.34);
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav > a:not(.mobile-portal) {
    display: flex;
    min-height: 59px;
    padding: 0;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.78);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 500;
  }

  .main-nav > a:not(.mobile-portal)::after {
    display: none;
  }

  .main-nav > a:not(.mobile-portal).active {
    color: var(--gold-soft);
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    color: var(--gold-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .nav-close {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-size: 25px;
  }

  .mobile-portal {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding: 0 18px;
    color: var(--maroon-deep);
    background: var(--gold-soft);
    font-size: 13px;
    font-weight: 850;
  }

  .portal-button {
    min-height: 50px;
  }

  .menu-toggle {
    position: relative;
    display: grid;
    width: 50px;
    height: 50px;
    margin-left: 8px;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: rgba(116, 29, 43, 0.1);
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    width: 21px;
    height: 2px;
    background: var(--maroon);
  }

  .menu-toggle span:first-child { transform: translateY(-4px); }
  .menu-toggle span:last-child { transform: translateY(4px); }

  .hero h1 {
    font-size: clamp(64px, 11vw, 116px);
  }

  .value-stream {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-stream > div:nth-child(2) {
    border-right: 0;
  }

  .value-stream > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .campus-journey::before {
    display: none;
  }

  .academic-grid,
  .staff-layout {
    gap: 72px;
  }
}

@media (max-width: 900px) {
  .section-shell,
  .hero-inner {
    width: min(100% - 40px, 1280px);
  }

  .hero-caption,
  .hero-index {
    display: none;
  }

  .scroll-cue {
    right: 20px;
    left: auto;
  }

  .about-grid,
  .section-heading-row,
  .academic-grid,
  .admission-layout,
  .staff-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-side {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .legacy-stamp {
    width: 140px;
    height: 140px;
  }

  .section-heading-row {
    gap: 34px;
  }

  .campus-scene,
  .campus-scene:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: 0;
    padding: 70px 0;
  }

  .campus-scene:nth-child(even) .campus-visual,
  .campus-scene:nth-child(even) .campus-copy {
    order: initial;
  }

  .campus-copy {
    width: min(100%, 580px);
  }

  .campus-number {
    right: 0;
  }

  .academic-sticky {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 440px 270px;
  }

  .gallery-item-1 {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .staff-intro {
    max-width: 700px;
  }

  .staff-orbit {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 520px;
  }

  .footer-main {
    grid-template-columns: 1.2fr 0.5fr 0.5fr;
  }

  .footer-contact {
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact h3 {
    grid-column: 1 / 3;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .hero-inner {
    width: min(100% - 32px, 1280px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 62px;
    padding: 5px 6px 5px 9px;
    border-radius: 17px;
  }

  .brand-mark {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .brand-mark img {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    margin-top: 4px;
    font-size: 7px;
  }

  .portal-button {
    display: none;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    margin-left: 0;
  }

  .hero {
    min-height: 790px;
  }

  .hero-image {
    background-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(34, 4, 10, 0.94), rgba(38, 5, 11, 0.54)), linear-gradient(0deg, rgba(28, 3, 9, 0.82), transparent 58%);
  }

  .hero-inner {
    padding: 140px 0 130px;
  }

  .hero h1 {
    font-size: clamp(55px, 17.8vw, 78px);
    line-height: 0.94;
  }

  .hero h1 span {
    padding-left: 0.22em;
  }

  .hero-copy {
    margin-top: 26px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
  }

  .hero-actions .button {
    align-self: flex-start;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  .scroll-cue {
    bottom: 23px;
  }

  .scroll-cue span {
    display: none;
  }

  .about,
  .campuses,
  .academics,
  .admissions,
  .facilities,
  .gallery,
  .staff,
  .contact {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .about {
    padding-bottom: 0;
  }

  .about-grid {
    gap: 46px;
    padding-bottom: 90px;
  }

  .about-side {
    display: block;
  }

  .legacy-stamp {
    width: 118px;
    height: 118px;
    margin-top: 40px;
  }

  .legacy-stamp strong {
    font-size: 32px;
  }

  .display-heading {
    font-size: clamp(46px, 14.5vw, 64px);
    line-height: 0.95;
  }

  .lead-copy {
    margin: 34px 0 48px;
    font-size: 20px;
  }

  .value-stream {
    grid-template-columns: 1fr;
  }

  .value-stream > div,
  .value-stream > div + div {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-stream strong {
    margin-top: 14px;
  }

  .marquee {
    padding: 18px 0;
  }

  .campus-journey {
    margin-top: 48px;
  }

  .campus-scene {
    padding: 48px 0;
  }

  .campus-visual {
    aspect-ratio: 4 / 3;
    clip-path: polygon(0 0, 92% 0, 100% 12%, 100% 100%, 8% 100%, 0 88%);
  }

  .campus-copy h3 {
    font-size: 43px;
  }

  .campus-number {
    top: -45px;
    font-size: 110px;
  }

  .academic-grid,
  .admission-layout,
  .staff-layout {
    gap: 54px;
  }

  .academic-stage {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 34px 0;
  }

  .learning-rhythm > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .learning-rhythm i {
    width: 100%;
    flex: none;
  }

  .admission-steps li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .facility-list {
    margin-top: 54px;
  }

  .facility-row {
    grid-template-columns: 38px 1fr 24px;
    gap: 12px;
    min-height: 0;
    padding: 28px 0;
  }

  .facility-row h3 {
    font-size: 27px;
  }

  .facility-row p {
    grid-column: 2 / 4;
    margin-top: 5px;
  }

  .facility-row > i {
    grid-row: 1;
    grid-column: 3;
  }

  .facility-row:hover {
    padding-inline: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
    margin-top: 54px;
  }

  .gallery-item,
  .gallery-item-1 {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-orbit {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 12px;
    border: 0;
    border-radius: 0;
  }

  .staff-orbit::before,
  .staff-orbit::after {
    display: none;
  }

  .staff-core {
    position: static;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    transform: none;
  }

  .staff-role {
    position: static;
    width: 100%;
    padding: 22px;
    border-top: 1px solid var(--line);
    box-shadow: none;
    background: var(--cream);
  }

  .contact-heading {
    margin-bottom: 46px;
  }

  .contact-grid {
    gap: 12px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 430px;
  }

  .contact-map > a {
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px;
  }

  .contact-map > a strong {
    font-size: 15px;
  }

  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 44px 30px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / 3;
  }

  .footer-contact {
    display: flex;
  }

  .footer-contact h3 {
    grid-column: auto;
  }

  .campus-ribbon {
    align-items: stretch;
    flex-direction: column;
  }

  .campus-ribbon span {
    border-radius: 8px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    line-height: 1.6;
  }

  .lightbox {
    padding: 22px;
  }

  .lightbox figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-image {
    transform: scale(1.02);
  }

  body[data-motion-ready="true"] .reveal {
    opacity: 1;
    transform: none;
  }
}
        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: #4A0F19;
        }

        button {
            font: inherit;
        }

        .visually-hidden {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }

        /* =========================================================
   Public Gallery - Visual Diary
========================================================= */

.rps-gallery-page {
    --gallery-maroon: #7A1E2C;
    --gallery-deep-maroon: #4A0F19;
    --gallery-soft-maroon: #9F2D3D;
    --gallery-cream: #FFF7ED;
    --gallery-gold: #D97706;
    --gallery-soft-gold: #FCD34D;
    --gallery-white: #FFFFFF;
    --gallery-navy: var(--gallery-deep-maroon);
    --gallery-ink: #3A141C;
    --gallery-muted: #755A60;
    --gallery-panel: #FFFDF9;
    --gallery-line: rgba(122, 30, 44, 0.18);
    --gallery-accent: var(--gallery-maroon);
    --gallery-slide-width: 306px;
    --gallery-overlap: -60px;
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    overflow: hidden;
    padding: 118px 0 92px;
    color: var(--gallery-ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(252, 211, 77, 0.14), transparent 26%),
        radial-gradient(circle at 88% 78%, rgba(159, 45, 61, 0.32), transparent 30%),
        var(--gallery-deep-maroon);
}

.rps-gallery-page::before {
    content: "";
    position: absolute;
    inset: -28px;
    background:
        linear-gradient(90deg, rgba(74, 15, 25, 0.88), rgba(122, 30, 44, 0.48), rgba(74, 15, 25, 0.9)),
        url("../images/campus-one-hero.webp") center 46% / cover no-repeat;
    filter: blur(14px) saturate(0.92) sepia(0.08);
    transform: scale(1.04);
}

.rps-gallery-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 247, 237, 0.12), rgba(74, 15, 25, 0.32)),
        radial-gradient(circle at 50% 46%, transparent 34%, rgba(74, 15, 25, 0.24) 100%);
}

.rps-gallery-page .container {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-inline: auto;
}

.rps-gallery-shell {
    position: relative;
    width: min(1060px, calc(100vw - 48px));
    min-height: 570px;
    margin: 0 auto;
    padding: 50px 70px 36px;
    overflow: hidden;
    border: 1px solid rgba(252, 211, 77, 0.48);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96)),
        var(--gallery-panel);
    box-shadow:
        0 34px 80px rgba(74, 15, 25, 0.42),
        0 0 0 7px rgba(255, 247, 237, 0.2);
}

.rps-gallery-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 2px rgba(122, 30, 44, 0.08),
        inset 0 5px 0 rgba(252, 211, 77, 0.78);
    pointer-events: none;
}

.rps-gallery-heading {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.rps-gallery-heading .rgs-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--gallery-gold);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0;
}

.rps-gallery-heading .rgs-kicker i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    color: var(--gallery-maroon);
    background: currentColor;
    font-size: 0;
}

.rps-gallery-heading h1 {
    margin: 10px 0 8px;
    color: var(--gallery-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.65rem, 2.6vw, 2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
}

.rps-gallery-heading p {
    max-width: 340px;
    margin: 0 auto;
    color: var(--gallery-muted);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}

.rps-gallery-filters {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 9px;
    max-width: 100%;
    margin: 24px auto 8px;
    padding: 0 6px 4px;
    overflow-x: auto;
    scroll-padding-inline: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.rps-gallery-filters::-webkit-scrollbar {
    display: none;
}

.rps-gallery-filter {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid rgba(122, 30, 44, 0.3);
    border-radius: 999px;
    color: var(--gallery-deep-maroon);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.rps-gallery-filter i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    color: currentColor;
    background: currentColor;
    font-size: 0;
    opacity: 0.72;
}

.rps-gallery-filter em {
    display: none;
}

.rps-gallery-filter:hover,
.rps-gallery-filter:focus-visible {
    color: var(--gallery-accent);
    border-color: rgba(122, 30, 44, 0.58);
    background: var(--gallery-cream);
    transform: translateY(-1px);
}

.rps-gallery-filter.is-active {
    color: #FFFFFF;
    border-color: var(--gallery-maroon);
    background: linear-gradient(135deg, var(--gallery-maroon), var(--gallery-deep-maroon));
    box-shadow: 0 12px 28px rgba(74, 15, 25, 0.24);
}

.rps-gallery-panel {
    position: relative;
    z-index: 1;
}

.rps-gallery-viewport {
    position: relative;
    min-height: 310px;
    margin: 0 -70px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0 4px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.rps-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.rps-gallery-viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.rps-gallery-track {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 24px max(70px, calc((100% - var(--gallery-slide-width)) / 2)) 22px;
    width: max-content;
}

.rps-gallery-slide {
    position: relative;
    flex: 0 0 var(--gallery-slide-width);
    aspect-ratio: 4 / 3;
    margin-inline: var(--gallery-overlap);
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--gallery-deep-maroon);
    box-shadow: 0 22px 54px rgba(74, 15, 25, 0.24);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.72);
    transform-origin: center;
    transition:
        opacity 0.42s ease,
        transform 0.42s ease,
        box-shadow 0.42s ease,
        filter 0.42s ease;
    scroll-snap-align: center;
}

.rps-gallery-slide[hidden] {
    display: none !important;
}

.rps-gallery-slide.is-far-previous,
.rps-gallery-slide.is-far-next {
    z-index: 1;
    opacity: 0.52;
    pointer-events: auto;
    transform: scale(0.76);
}

.rps-gallery-slide.is-previous,
.rps-gallery-slide.is-next {
    z-index: 2;
    opacity: 0.88;
    pointer-events: auto;
    transform: scale(0.88);
}

.rps-gallery-slide.is-active {
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.14);
    box-shadow:
        0 34px 70px rgba(74, 15, 25, 0.3),
        0 0 0 3px rgba(252, 211, 77, 0.72);
}

.rps-gallery-slide-frame {
    display: block;
    width: 100%;
    height: 100%;
}

.rps-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.56s ease, filter 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.rps-gallery-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(74, 15, 25, 0.72));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.rps-gallery-slide-label {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    width: fit-content;
    max-width: calc(100% - 28px);
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #FFFFFF;
    background: rgba(74, 15, 25, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.rps-gallery-slide-label i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: var(--gallery-soft-gold);
    font-size: 0;
}

.rps-gallery-slide:hover::after,
.rps-gallery-slide:focus-visible::after {
    opacity: 1;
}

.rps-gallery-slide:hover img,
.rps-gallery-slide:focus-visible img,
.rps-gallery-slide.is-active img {
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.03);
}

.rps-gallery-slide.is-active:hover .rps-gallery-slide-label,
.rps-gallery-slide.is-active:focus-visible .rps-gallery-slide-label {
    opacity: 1;
    transform: translateY(0);
}

.rps-gallery-controls {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.rps-gallery-controls button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gallery-maroon);
    border-radius: 999px;
    color: var(--gallery-maroon);
    background: var(--gallery-white);
    cursor: pointer;
    box-shadow: none;
}

.rps-gallery-controls button:hover,
.rps-gallery-controls button:focus-visible {
    color: #FFFFFF;
    background: var(--gallery-maroon);
    transform: translateY(-1px);
}

.rps-gallery-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    transform: none;
}

.rps-gallery-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 16px;
    width: min(620px, calc(100% - 24px));
    margin: 16px auto 0;
    color: var(--gallery-muted);
    font-size: 0.78rem;
}

.rps-gallery-status [data-gallery-eyebrow] {
    color: var(--gallery-gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rps-gallery-status [data-gallery-title] {
    overflow: hidden;
    color: var(--gallery-deep-maroon);
    font-size: 0.88rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rps-gallery-status [data-gallery-status] {
    justify-self: end;
    font-weight: 750;
}

.rps-gallery-progress {
    grid-column: 1 / -1;
    width: 220px;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(122, 30, 44, 0.12);
}

.rps-gallery-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gallery-maroon), var(--gallery-gold), var(--gallery-soft-gold));
    transition: width 0.35s ease;
}

.rps-gallery-empty {
    max-width: 520px;
    margin: 34px auto 0;
    padding: 30px;
    border: 1px dashed rgba(122, 30, 44, 0.24);
    border-radius: 12px;
    text-align: center;
    background: var(--gallery-cream);
}

.rps-gallery-empty i {
    color: var(--gallery-accent);
    font-size: 2rem;
}

.rps-gallery-empty h2 {
    margin: 14px 0 8px;
    color: var(--gallery-ink);
    font-size: 1.3rem;
    font-weight: 950;
}

.rps-gallery-empty p {
    margin: 0;
    color: var(--gallery-muted);
}

.rps-gallery-empty span {
    color: var(--gallery-accent);
    font-weight: 900;
}

@media (max-width: 1199px) {
    .rps-gallery-page {
        --gallery-slide-width: 286px;
        --gallery-overlap: -54px;
    }

    .rps-gallery-shell {
        width: min(940px, calc(100vw - 40px));
        padding-inline: 54px;
    }

    .rps-gallery-viewport {
        margin-inline: -54px;
    }
}

@media (max-width: 991px) {
    .rps-gallery-page {
        --gallery-slide-width: 276px;
        --gallery-overlap: -48px;
        padding: 104px 0 78px;
    }

    .rps-gallery-shell {
        min-height: 540px;
        padding: 48px 34px 36px;
    }

    .rps-gallery-filters {
        margin-top: 24px;
    }

    .rps-gallery-viewport {
        min-height: 260px;
        margin-inline: -34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rps-gallery-page *,
    .rps-gallery-page *::before,
    .rps-gallery-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   Gallery mobile carousel and lightbox
========================================================= */

body.rps-gallery-lightbox-open {
    overflow: hidden;
}

.rps-gallery-page.gallery-page-header .rps-gallery-heading h1 {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.rps-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 18px;
    padding: 42px;
    background: rgba(74, 15, 25, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.rps-lightbox-figure {
    grid-column: 2;
    display: flex;
    min-width: 0;
    max-height: calc(100vh - 84px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
}

.rps-lightbox-figure img {
    display: block;
    width: auto;
    max-width: min(100%, 980px);
    max-height: calc(100vh - 150px);
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
    transform: scale(0.97);
    transition: transform 0.24s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.rps-gallery-lightbox.is-open .rps-lightbox-figure img {
    transform: scale(1);
}

.rps-lightbox-figure figcaption {
    max-width: min(100%, 760px);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.rps-lightbox-btn {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.rps-gallery-controls button > span,
.rps-lightbox-btn > span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.rps-lightbox-close > span {
    font-size: 1.65rem;
    font-weight: 400;
}

.rps-lightbox-btn:hover,
.rps-lightbox-btn:focus-visible {
    color: var(--gallery-deep-maroon);
    background: var(--gallery-soft-gold);
    border-color: transparent;
    transform: translateY(-1px);
}

.rps-lightbox-close {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 2;
}

.rps-lightbox-prev {
    grid-column: 1;
    justify-self: end;
}

.rps-lightbox-next {
    grid-column: 3;
    justify-self: start;
}

@media (max-width: 767px) {
    .rps-gallery-page {
        --gallery-slide-width: min(73vw, 315px);
        --gallery-overlap: 0px;
        min-height: 100svh;
        padding: 86px 0 48px;
    }

    .rps-gallery-page::before {
        inset: -8px;
        filter: blur(4px) saturate(1.04);
        transform: scale(1.01);
    }

    .rps-gallery-page .container {
        max-width: 100%;
        padding-inline: 0;
    }

    .rps-gallery-shell {
        width: auto;
        min-height: auto;
        margin-inline: 10px;
        padding: 36px 0 34px;
        border-radius: 20px;
        box-shadow:
            0 26px 66px rgba(74, 15, 25, 0.38),
            0 0 0 4px rgba(255, 247, 237, 0.2);
    }

    .rps-gallery-heading {
        padding-inline: 22px;
    }

    .rps-gallery-heading h1 {
        font-size: 1.76rem;
    }

    .rps-gallery-heading p {
        max-width: 290px;
        font-size: 0.78rem;
    }

    .rps-gallery-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 28px 0 14px;
        padding: 0 20px 5px;
        overflow-x: auto;
        scroll-padding-inline: 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .rps-gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .rps-gallery-filter {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 0.74rem;
    }

    .rps-gallery-viewport {
        min-height: clamp(300px, 86vw, 388px);
        margin-inline: 0;
        overflow-x: auto;
        overflow-y: visible;
        padding: 0 0 8px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc((100% - var(--gallery-slide-width)) / 2);

        scrollbar-width: none;
        cursor: grab;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .rps-gallery-viewport::-webkit-scrollbar {
        display: none;
    }

    .rps-gallery-viewport.is-dragging {
        cursor: grabbing;
    }

    .rps-gallery-track {
        gap: 14px;
        padding: 24px max(16px, calc((100% - var(--gallery-slide-width)) / 2)) 30px;
        transform: none !important;
        transition: none;
    }

    .rps-gallery-slide {
        flex-basis: var(--gallery-slide-width);
        min-width: var(--gallery-slide-width);
        aspect-ratio: 1 / 1.12;
        margin-inline: 0;
        border-radius: 14px;
        scroll-snap-align: center;
        opacity: 0.55;
        pointer-events: auto;
        transform: scale(0.88);
        box-shadow: 0 20px 46px rgba(74, 15, 25, 0.24);
    }

    .rps-gallery-slide.is-far-previous,
    .rps-gallery-slide.is-far-next {
        opacity: 0.5;
        transform: scale(0.84);
    }

    .rps-gallery-slide.is-previous,
    .rps-gallery-slide.is-next {
        opacity: 0.72;
        transform: scale(0.9);
    }

    .rps-gallery-slide.is-active {
        opacity: 1;
        transform: scale(1);
        box-shadow:
            0 28px 62px rgba(74, 15, 25, 0.34),
            0 0 0 3px rgba(252, 211, 77, 0.7);
    }

    .rps-gallery-slide-label {
        left: 13px;
        right: 13px;
        bottom: 13px;
        max-width: calc(100% - 26px);
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.74rem;
    }

    .rps-gallery-slide.is-active .rps-gallery-slide-label {
        opacity: 1;
        transform: translateY(0);
    }

    .rps-gallery-controls {
        margin-top: 10px;
        gap: 10px;
    }

    .rps-gallery-controls button {
        width: 44px;
        height: 44px;
    }

    .rps-gallery-status {
        grid-template-columns: minmax(0, 1fr) auto;
        width: calc(100% - 40px);
        margin-top: 14px;
    }

    .rps-gallery-status [data-gallery-eyebrow] {
        display: none;
    }

    .rps-gallery-status [data-gallery-status] {
        font-size: 0.7rem;
    }

    .rps-gallery-progress {
        width: 100%;
    }

    .rps-gallery-lightbox {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
        gap: 12px;
        padding: 70px 16px 24px;
        background: rgba(74, 15, 25, 0.96);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .rps-lightbox-figure {
        grid-column: 1 / -1;
        grid-row: 1;
        max-height: none;
        gap: 12px;
    }

    .rps-lightbox-figure img {
        width: 100%;
        max-width: 100%;
        max-height: 72vh;
        border-radius: 12px;
        box-shadow: 0 26px 74px rgba(0, 0, 0, 0.42);
    }

    .rps-lightbox-figure figcaption {
        font-size: 0.78rem;
    }

    .rps-lightbox-btn {
        width: 46px;
        height: 46px;
    }

    .rps-lightbox-close {
        top: 16px;
        right: 16px;
    }

    .rps-lightbox-prev,
    .rps-lightbox-next {
        grid-row: 2;
        justify-self: center;
    }

    .rps-lightbox-prev {
        grid-column: 1;
    }

    .rps-lightbox-next {
        grid-column: 2;
    }
}

@media (max-width: 430px) {
    .rps-gallery-page {
        --gallery-slide-width: 74vw;
    }

    .rps-gallery-filter {
        padding-inline: 12px;
    }
}

@media (max-width: 360px) {
    .rps-gallery-page {
        --gallery-slide-width: 76vw;
    }

    .rps-gallery-heading h1 {
        font-size: 1.58rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rps-gallery-lightbox,
    .rps-gallery-lightbox *,
    .rps-gallery-viewport,
    .rps-gallery-track {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

main,
section,
.container,
.rps-gallery-page,
.rps-gallery-shell {
    max-width: 100%;
    min-width: 0;
}
