 :root {
  --maroon: #7d2639; --maroon-dark: #4e1727; --rose: #b65b66; --gold: #d6b36c;
  --cream: #fbf8f2; --paper: #fffdf9; --ink: #2b2527; --muted: #71686a;
  --line: #e9dfd9; --serif: "Playfair Display", Georgia, serif; --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.topbar { background: var(--maroon-dark); color: #f9eede; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.topbar-inner { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.topbar-inner > span { display: flex; align-items: center; gap: 9px; }
.top-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.topbar a { opacity: .9; }
.topbar a span { color: var(--gold); margin-left: 5px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,249,.97); border-bottom: 1px solid rgba(125,38,57,.09); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 25px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { font-family: var(--serif); color: var(--maroon-dark); font-size: 16px; }
.brand-copy span { font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.brand-copy small { margin-top: 4px; font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(15px, 2.2vw, 30px); font-size: 12px; font-weight: 700; }
.main-nav > a { position: relative; padding: 9px 0; color: #55484b; transition: color .2s; }
.main-nav > a:hover, .main-nav > a.active { color: var(--maroon); }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; height: 2px; bottom: 1px; left: 0; right: 100%; background: var(--gold); transition: right .25s; }
.main-nav > a:hover::after, .main-nav > a.active::after { right: 0; }
.main-nav .nav-cta { padding: 12px 17px; color: white; background: var(--maroon); }
.nav-cta span { color: var(--gold); margin-left: 7px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--maroon); margin: 5px 0; }
.hero { min-height: 625px; position: relative; overflow: hidden; color: white; background: var(--maroon-dark); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; visibility: visible; }
.slide-one { background-image: linear-gradient(110deg, #351522 0%, #662337 52%, #9b4d50 100%); }
.slide-two { background-image: linear-gradient(110deg, #261c29 0%, #67334a 55%, #b4776d 100%); }
.slide-three { background-image: linear-gradient(110deg, #39202b 0%, #7b3345 58%, #c29a68 100%); }
.hero-slide::before { content: ""; position: absolute; right: 8%; top: 9%; width: min(38vw, 470px); aspect-ratio: 1; border: 1px solid rgba(245,220,173,.22); border-radius: 50%; box-shadow: 0 0 0 28px rgba(245,220,173,.035), 0 0 0 58px rgba(245,220,173,.025); }
.hero-slide::after { content: "विद्या दानं महत् पुण्यम्"; position: absolute; right: 12%; top: 25%; width: min(30vw, 360px); aspect-ratio: 1; border: 1px solid rgba(245,220,173,.17); border-radius: 50%; display: grid; place-items: center; color: rgba(255,235,200,.2); font-family: var(--serif); font-size: clamp(18px, 2vw, 30px); transform: rotate(-18deg); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(37,14,24,.34), rgba(37,14,24,.03)); }
.hero-content { position: relative; z-index: 2; padding-top: 15px; padding-bottom: 55px; }
.eyebrow { margin: 0 0 16px; color: var(--rose); font-size: 10px; font-weight: 700; letter-spacing: .2em; line-height: 1.6; text-transform: uppercase; }
.eyebrow.light { color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(42px, 5.7vw, 74px); line-height: 1.12; }
h1 em, h2 em { color: var(--gold); font-weight: 500; }
.hero-lead { max-width: 555px; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 49px; padding: 0 21px; border: 1px solid transparent; font-size: 11px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #39212a; }
.btn-gold span { font-size: 18px; }
.btn-outline { border-color: rgba(255,255,255,.4); color: white; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.hero-controls { position: absolute; z-index: 4; left: 0; right: 0; bottom: 28px; display: flex; align-items: center; justify-content: space-between; }
.slider-dots { display: flex; gap: 9px; }
.slider-dot { width: 27px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.slider-dot.active { background: var(--gold); width: 45px; }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrow { width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.35); color: white; background: transparent; cursor: pointer; font-size: 18px; }
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon-dark); }
.hero-bottom-note { position: absolute; right: 0; top: 50%; z-index: 4; writing-mode: vertical-rl; transform: translateY(-50%); font-size: 9px; letter-spacing: .2em; color: rgba(255,255,255,.55); }
.hero-bottom-note span { color: var(--gold); margin-bottom: 10px; }
.intro-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.intro-grid { min-height: 135px; display: grid; grid-template-columns: 65px 1fr auto; align-items: center; gap: 25px; }
.intro-mark { color: var(--rose); font-family: var(--serif); font-size: 85px; line-height: 1; transform: translateY(10px); }
.intro-grid p { max-width: 790px; margin: 0; color: #64575a; font-family: var(--serif); font-size: clamp(17px, 2vw, 22px); line-height: 1.55; }
.intro-grid strong { color: var(--maroon); font-weight: 600; }
.text-link { color: var(--maroon); white-space: nowrap; font-size: 11px; font-weight: 700; border-bottom: 1px solid var(--gold); padding-bottom: 6px; }
.text-link span { color: var(--rose); margin-left: 7px; }
.section { padding: 105px 0; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 105px); align-items: center; }
.about-visual { padding: 20px 18px 0 0; }
.visual-frame { position: relative; min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(214,179,108,.2), transparent 33%), linear-gradient(145deg, #f3e8dc, #e6d1c8); border: 1px solid #dfc5b9; }
.visual-frame::before, .visual-frame::after { content: ""; position: absolute; border: 1px solid rgba(125,38,57,.2); border-radius: 50%; width: 270px; height: 270px; }
.visual-frame::after { width: 330px; height: 330px; }
.visual-monogram { position: relative; z-index: 1; width: 180px; height: 180px; display: grid; place-items: center; border: 1px solid var(--maroon); border-radius: 50%; color: var(--maroon); font-family: var(--serif); font-size: 49px; box-shadow: inset 0 0 0 9px rgba(125,38,57,.07); }
.visual-monogram span { position: absolute; right: 20px; top: 16px; font-size: 17px; color: var(--rose); }
.visual-frame p { position: relative; z-index: 1; margin: 20px 0 0; font-family: var(--serif); font-size: 17px; color: var(--maroon-dark); }
.image-caption { display: flex; align-items: center; gap: 13px; padding: 18px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.caption-line { width: 35px; height: 1px; background: var(--rose); }
h2 { font-size: clamp(34px, 4vw, 51px); line-height: 1.2; margin-bottom: 23px; color: var(--maroon-dark); }
h2 em { color: var(--rose); }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.about-copy .lead { color: #49383d !important; font-family: var(--serif); font-size: 19px !important; line-height: 1.65; }
.about-points { display: grid; gap: 17px; margin-top: 30px; }
.about-points > div { display: flex; align-items: center; gap: 15px; }
.point-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: var(--maroon); border: 1px solid #dfc7bd; font-size: 11px; }
.about-points strong, .about-points small { display: block; }
.about-points strong { color: #453438; font-size: 12px; }
.about-points small { color: var(--muted); font-size: 11px; }
.messages-section { background: var(--cream); }
.section-heading { max-width: 680px; margin: 0 auto 48px; }
.section-heading.centered { text-align: center; }
.section-heading h2 { margin-bottom: 14px; }
.section-heading > p:last-child { color: var(--muted); font-size: 13px; }
.message-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.message-card { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border: 1px solid var(--line); background: var(--paper); }
.message-card::before { content: ""; position: absolute; top: -1px; left: 25px; right: 25px; height: 3px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.message-card:hover::before { transform: scaleX(1); }
.manager-card { background: #f5ece5; }
.founder-card { background: #f7f2e9; }
.message-number { color: #9b777a; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.message-icon { width: 43px; height: 43px; display: grid; place-items: center; margin: 23px 0 17px; border-radius: 50%; background: #f3e4dc; color: var(--maroon); font-size: 22px; }
.message-card h3 { margin-bottom: 12px; color: var(--maroon-dark); font-family: var(--serif); font-size: 22px; line-height: 1.35; font-weight: 600; }
.message-card p { margin-bottom: 13px; color: #75676a; font-size: 11px; line-height: 1.85; }
.message-card .message-intro { color: #49383d; font-family: var(--serif); font-size: 15px; line-height: 1.55; }
.message-card strong { color: var(--maroon); }
.signature { margin-top: auto; padding-top: 20px; color: #887176; font-family: var(--serif); font-size: 13px; font-style: italic; }
.signature span { display: block; margin-top: 3px; color: var(--maroon); font-family: var(--sans); font-size: 10px; font-style: normal; font-weight: 700; }
.academics-section { background: var(--maroon-dark); color: white; }
.academics-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 65px; align-items: center; }
.academics-copy h2 { color: white; }
.academics-copy h2 em { color: var(--gold); }
.academics-copy > p:not(.eyebrow) { color: rgba(255,255,255,.66); font-size: 12px; }
.academics-copy .academics-lead { color: #f1e5df !important; font-family: var(--serif); font-size: 18px !important; line-height: 1.65; }
.academics-copy .btn { margin-top: 18px; }
.academic-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.academic-card { position: relative; min-height: 305px; padding: 24px 17px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.045); }
.academic-index { position: absolute; top: 18px; right: 16px; color: rgba(255,255,255,.38); font-size: 10px; }
.academic-symbol { margin: 30px 0 25px; color: var(--gold); font-size: 31px; }
.academic-card h3 { color: #fff3e6; font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.academic-card p { color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.8; }
.academic-tag { display: inline-block; margin-top: 9px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.16); color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.faculty-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 43px; }
.faculty-heading h2 { margin: 0; }
.faculty-heading > p { max-width: 440px; margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.faculty-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.faculty-values article { padding-bottom: 15px; }
.faculty-art { min-height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-family: var(--serif); font-size: 55px; color: rgba(125,38,57,.55); border: 1px solid #e7d7cf; }
.art-one { background: linear-gradient(135deg, #f1e4d9, #e7d2c5); }
.art-two { background: linear-gradient(135deg, #eee9db, #d9d1b9); }
.art-three { background: linear-gradient(135deg, #f3e7e2, #dfc0c1); }
.faculty-values h3 { margin-bottom: 8px; font-family: var(--serif); color: var(--maroon-dark); font-size: 22px; }
.faculty-values p { max-width: 330px; margin: 0; color: var(--muted); font-size: 12px; }
.attendance-band { padding: 62px 0; background: linear-gradient(100deg, #873247, #602033); color: white; }
.attendance-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.attendance-inner h2 { margin: 0; color: white; font-size: clamp(30px, 3.4vw, 43px); }
.attendance-inner h2 em { color: var(--gold); }
.attendance-stat { display: grid; grid-template-columns: auto 190px; column-gap: 18px; align-items: center; padding-left: 35px; border-left: 1px solid rgba(255,255,255,.2); }
.attendance-stat strong { grid-row: span 2; color: var(--gold); font-family: var(--serif); font-size: 70px; line-height: 1; }
.attendance-stat sup { font-size: 27px; }
.attendance-stat span { color: #fff0e5; font-size: 12px; line-height: 1.5; }
.attendance-stat small { color: rgba(255,255,255,.55); font-size: 9px; line-height: 1.5; }
.contact-section { background: var(--cream); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 8vw, 100px); align-items: start; }
.contact-copy h2 { font-size: clamp(35px, 4vw, 49px); }
.contact-copy > p:not(.eyebrow) { max-width: 450px; color: var(--muted); font-size: 13px; }
.contact-detail { display: flex; gap: 15px; align-items: center; margin-top: 27px; }
.contact-detail-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #e1c9bf; color: var(--maroon); font-size: 20px; }
.contact-detail small, .contact-detail strong { display: block; }
.contact-detail small { color: #9a797d; font-size: 10px; }
.contact-detail strong { color: #4d3c40; font-size: 12px; }
.contact-note { margin-top: 27px; padding: 13px 16px; border-left: 2px solid var(--gold); background: #f5ede4; color: #887779; font-size: 10px; line-height: 1.7; }
.contact-form { padding: clamp(25px, 4vw, 42px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 55px rgba(75,32,45,.05); }
.contact-form h3 { margin-bottom: 25px; color: var(--maroon-dark); font-family: var(--serif); font-size: 29px; font-weight: 500; }
.contact-form label { display: block; margin-bottom: 16px; color: #55474b; font-size: 10px; font-weight: 700; }
.optional { color: #9a8a8d; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #e8dcd6; outline: none; border-radius: 0; background: #fffdfa; color: var(--ink); font-size: 11px; font-weight: 400; transition: border .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(182,91,102,.1); }
.contact-form textarea { resize: vertical; }
.btn-maroon { background: var(--maroon); color: white; }
.btn-maroon span { color: var(--gold); font-size: 17px; }
.form-disclaimer { margin: 13px 0 0; color: #9b8b8e; font-size: 9px; line-height: 1.6; }
.form-status { margin: 10px 0 0; color: var(--maroon); font-size: 11px; }
.site-footer { background: #2d1820; color: white; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-top: 32px; padding-bottom: 32px; }
.footer-brand img { width: 56px; height: 56px; background: white; border-radius: 50%; }
.footer-brand .brand-copy strong, .footer-brand .brand-copy span { color: #fff5eb; }
.footer-brand .brand-copy small { color: #bca9aa; }
.footer-main > p { margin: 0; color: #c8b4b6; font-family: var(--serif); font-size: 16px; font-style: italic; }
.back-top { color: var(--gold); font-size: 11px; white-space: nowrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; padding-top: 15px; padding-bottom: 15px; color: #a99197; font-size: 9px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* =========================================
   CONTACT SECTION — REFACTORED
========================================= */

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(35px, 4vw, 49px);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
  font-size: 13px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 25px;
}

.contact-detail-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #e1c9bf;
  color: var(--maroon);
  font-size: 21px;
}

.contact-detail small,
.contact-detail strong,
.contact-detail span:not(.contact-detail-icon) {
  display: block;
}

.contact-detail small {
  margin-bottom: 5px;
  color: #9a797d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-detail strong {
  color: #4d3c40;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.contact-detail strong a {
  color: var(--maroon);
  transition: color 0.2s;
}

.contact-detail strong a:hover {
  color: var(--rose);
  text-decoration: underline;
}

.contact-detail > div > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.contact-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  background: #f5ede4;
}

.contact-note strong {
  color: var(--maroon);
  font-size: 12px;
}

.contact-note p {
  margin: 5px 0 0;
  color: #887779;
  font-size: 11px;
  line-height: 1.7;
}

/* Contact information card */

.contact-card {
  padding: clamp(25px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 55px rgba(75, 32, 45, 0.07);
}

.contact-card-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.contact-card-label {
  color: var(--rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.contact-card-header h3 {
  margin: 12px 0;
  color: var(--maroon-dark);
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 31px);
  font-weight: 500;
  line-height: 1.3;
}

.contact-card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.contact-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.contact-option-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  background: #f5e9e7;
  color: var(--maroon);
  font-size: 20px;
}

.contact-option-content {
  min-width: 0;
}

.contact-option-content small {
  color: #9a797d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-option-content h4 {
  margin: 5px 0 7px;
  color: var(--maroon-dark);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.contact-option-content a {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.contact-option-content a:hover {
  color: var(--rose);
  text-decoration: underline;
}

.contact-option-content p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.contact-card-footer {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 23px;
}

.contact-footer-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 1px solid #e1c9bf;
  border-radius: 50%;
  color: var(--rose);
}

.contact-card-footer p {
  margin: 0;
}

.contact-card-footer strong,
.contact-card-footer p span {
  display: block;
}

.contact-card-footer strong {
  color: var(--maroon-dark);
  font-family: var(--serif);
  font-size: 13px;
}

.contact-card-footer p span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

/* Mobile and tablet */

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .contact-card {
    padding: 25px 22px;
  }

  .contact-detail {
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .contact-card {
    padding: 20px 16px;
  }

  .contact-option {
    gap: 12px;
  }
}

/* =========================
   COLLEGE PHOTO GALLERY
========================= */

.gallery-section {
  background: #fffdf9;
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 35px;
}

.gallery-heading h2 {
  margin-bottom: 14px;
}

.gallery-intro {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.gallery-contact-link {
  flex-shrink: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--gold);
  color: var(--maroon);
  font-size: 11px;
  font-weight: 700;
}

.gallery-contact-link span {
  margin-left: 8px;
  color: var(--rose);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
}

.gallery-filter {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.gallery-filter:hover,
.gallery-filter.active {
  border-color: var(--maroon);
  background: var(--maroon);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f1e5dd;
  text-align: left;
  cursor: pointer;
}

.gallery-item.gallery-large {
  grid-row: span 2;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  padding: 22px;
  background: linear-gradient(
    0deg,
    rgba(42, 19, 29, .88),
    rgba(42, 19, 29, .05) 75%
  );
  color: white;
}

.gallery-category {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.gallery-overlay strong {
  padding-right: 28px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.gallery-view {
  position: absolute;
  right: 18px;
  bottom: 19px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  font-size: 16px;
}

.gallery-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
}

/* Full-screen photo viewer */

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 55px 24px;
  background: rgba(25, 13, 19, .95);
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(100%, 1000px);
  max-height: 100%;
  margin: 0;
}

.gallery-lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 135px);
  object-fit: contain;
}

.gallery-lightbox figcaption {
  padding-top: 13px;
  color: white;
  font-family: var(--serif);
  font-size: 17px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--gold);
  background: var(--maroon);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .gallery-heading {
    display: block;
  }

  .gallery-contact-link {
    display: inline-block;
    margin-top: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 10px;
  }

  .gallery-item.gallery-large {
    grid-row: span 1;
  }

  .gallery-overlay {
    padding: 13px;
  }

  .gallery-overlay strong {
    font-size: 15px;
  }

  .gallery-view {
    right: 10px;
    bottom: 12px;
    width: 27px;
    height: 27px;
  }

  .gallery-lightbox {
    gap: 8px;
    padding-inline: 10px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 32px;
    height: 38px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-auto-rows: 155px;
  }

  .gallery-filter {
    padding: 8px 10px;
    font-size: 9px;
  }

  .gallery-overlay strong {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img {
    transition: none;
  }
}

@media (max-width: 1000px) {
  .header-inner { min-height: 82px; }
  .brand img { width: 58px; height: 58px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy span { font-size: 10px; }
  .main-nav { gap: 14px; font-size: 11px; }
  .main-nav .nav-cta { padding: 10px 12px; }
  .academics-layout { grid-template-columns: 1fr; gap: 40px; }
  .academics-copy { max-width: 650px; }
  .academic-card { min-height: 255px; }
  .message-card { padding: 25px 20px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, 560px); }
  .topbar-inner { min-height: 34px; font-size: 9px; }
  .topbar-inner > span { max-width: 65%; }
  .header-inner { min-height: 77px; }
  .brand { gap: 9px; }
  .brand img { width: 49px; height: 49px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy span { max-width: 250px; font-size: 9px; }
  .brand-copy small { font-size: 8px; }
  .menu-toggle { display: block; flex-shrink: 0; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 15px 20px rgba(40,20,25,.08); }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 5px; }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .main-nav .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: 600px; }
  .hero-slide::before { width: 70vw; right: -15%; top: 13%; }
  .hero-slide::after { width: 60vw; right: -10%; top: 25%; font-size: 18px; }
  .hero-content { padding-top: 15px; padding-bottom: 65px; }
  h1 { font-size: clamp(40px, 10vw, 60px); }
  .hero-lead { max-width: 450px; font-size: 13px; }
  .hero-bottom-note { display: none; }
  .intro-grid { grid-template-columns: 38px 1fr; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
  .intro-mark { font-size: 62px; }
  .intro-grid p { font-size: 17px; }
  .text-link { grid-column: 2; justify-self: start; }
  .section { padding: 72px 0; }
  .two-col, .contact-layout { grid-template-columns: 1fr; gap: 43px; }
  .about-visual { max-width: 470px; margin: 0 auto; width: 100%; }
  .visual-frame { min-height: 330px; }
  .message-grid { grid-template-columns: 1fr; gap: 15px; }
  .message-card { padding: 27px; }
  .message-card p { font-size: 12px; }
  .academic-cards { grid-template-columns: 1fr; }
  .academic-card { min-height: auto; padding: 25px; }
  .academic-symbol { margin: 12px 0 14px; }
  .academic-card p { font-size: 12px; }
  .faculty-heading { display: block; }
  .faculty-heading > p { margin-top: 18px; }
  .faculty-values { grid-template-columns: 1fr; gap: 25px; }
  .faculty-art { min-height: 140px; margin-bottom: 15px; }
  .faculty-values p { max-width: 100%; }
  .attendance-inner { display: block; }
  .attendance-stat { margin-top: 30px; padding: 25px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); max-width: 390px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { flex-wrap: wrap; }
  .footer-main > p { order: 3; width: 100%; }
  .footer-bottom .container { display: block; }
  .footer-bottom .container span { display: block; margin: 5px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
