/* ==========================================================================
   Narain College, Jhajhu
   Direction: "Desert horizon" — the campus sits on a flat line under an
   enormous sky. That horizon is the page's organising device.
   ========================================================================== */

:root {
  /* Colour — sampled from the campus photographs */
  --zenith:   #0B2E63;  /* deep sky overhead */
  --sky:      #1F5FB0;  /* mid sky */
  --horizon:  #A8CDEE;  /* pale band at the skyline */
  --sand:     #E9DECB;  /* the ground */
  --paper:    #FAF7F1;
  --sindoor:  #BE2E24;  /* the hand-painted sign on the gate */
  --marigold: #D4A02C;  /* the gold of the college crest */
  --ink:      #131820;
  --ink-60:   rgba(19, 24, 32, .62);
  --ink-12:   rgba(19, 24, 32, .12);
  --paper-60: rgba(250, 247, 241, .66);
  --paper-16: rgba(250, 247, 241, .16);

  /* Type */
  --display: "Anek Latin", "Segoe UI", system-ui, sans-serif;
  --deva:    "Anek Devanagari", "Nirmala UI", system-ui, sans-serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Rhythm */
  --shell: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --r: 3px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .3vw + .95rem, 1.075rem);
  line-height: 1.72;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.06; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 2px solid var(--sindoor); outline-offset: 3px; border-radius: 2px; }

/* the masthead is fixed, so anchors need room to land under it */
[id] { scroll-margin-top: 92px; }
#top { scroll-margin-top: 0; }

.shell { width: min(var(--shell), 100%); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: var(--r);
  font-family: var(--display); font-size: .85rem;
  transition: top .18s ease;
}
.skip-link:focus { top: 1rem; }

/* ── Shared type ───────────────────────────────────────────── */
.h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-variation-settings: "wdth" 92;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.06rem, .5vw + .95rem, 1.22rem);
  color: var(--ink-60);
  max-width: 54ch;
  margin-top: 1.1rem;
}
.section__head { margin-bottom: clamp(2.5rem, 4vw, 3.75rem); max-width: 62ch; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  letter-spacing: .005em;
  padding: .82rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r);
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn--sm { padding: .55rem 1.05rem; font-size: .88rem; }
.btn--block { width: 100%; margin-top: .5rem; }
.btn--solid { background: var(--sindoor); color: #fff; }
.btn--solid:hover { background: #a5261d; transform: translateY(-1px); }
.btn--ghost { border-color: var(--paper-60); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-weight: 600; font-size: .92rem;
  color: var(--sindoor); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.link-arrow::after { content: "\2192"; transition: transform .18s ease; }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ── Masthead ──────────────────────────────────────────────── */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.masthead__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.masthead.is-stuck {
  background: rgba(250, 247, 241, .94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--ink-12);
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
/* the crest is navy on nothing, so over the hero sky it needs a light plate */
.brand__logo {
  height: 46px; width: auto; flex: none;
  transition: background-color .3s ease, padding .3s ease;
}
.masthead:not(.is-stuck):not(.is-open) .brand__logo {
  background: var(--paper);
  border-radius: 6px;
  padding: 3px 6px;
}
.brand__text { display: grid; line-height: 1; }
.brand__deva {
  font-family: var(--deva); font-weight: 600;
  font-size: .82rem; letter-spacing: .01em;
  color: var(--sindoor);
}
.brand__name {
  font-family: var(--display); font-weight: 700;
  font-size: 1.08rem; letter-spacing: -.012em;
  font-variation-settings: "wdth" 92;
  margin-top: .18rem;
}
.masthead:not(.is-stuck) .brand__name { color: var(--paper); }
.masthead:not(.is-stuck) .brand__deva { color: var(--marigold); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__list a {
  font-family: var(--display); font-weight: 500; font-size: .95rem;
  text-decoration: none; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1.5px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}
.nav__list a:hover, .nav__list a.is-active { border-bottom-color: var(--sindoor); }
.masthead:not(.is-stuck) .nav__list a { color: var(--paper); }
.masthead:not(.is-stuck) .nav__list a:hover,
.masthead:not(.is-stuck) .nav__list a.is-active { border-bottom-color: var(--marigold); }

.nav-toggle {
  display: none; align-items: center; gap: .55rem;
  background: none; border: 0; cursor: pointer; padding: .4rem;
  font-family: var(--display); font-weight: 600; font-size: .9rem; color: inherit;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars i { height: 1.5px; background: currentColor; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }
.masthead:not(.is-stuck) .nav-toggle { color: var(--paper); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92svh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 8rem;
  overflow: hidden;
}
.hero__photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    /* keep the text side readable, let the sky stay open on the right */
    linear-gradient(105deg,
      rgba(6, 22, 52, .66) 0%,
      rgba(6, 22, 52, .28) 55%,
      rgba(6, 22, 52, 0) 100%),
    linear-gradient(to bottom,
      rgba(6, 22, 52, .88) 0%,
      rgba(9, 38, 84, .58) 32%,
      rgba(24, 72, 136, .30) 62%,
      rgba(8, 28, 62, .52) 100%);
}

.hero__inner { padding-bottom: clamp(3rem, 7vw, 6rem); color: var(--paper); }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--marigold);
  padding: .42rem .85rem .42rem .7rem;
  border: 1px solid rgba(227, 154, 22, .45);
  border-radius: 100px;
  background: rgba(11, 46, 99, .3);
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--marigold);
  box-shadow: 0 0 0 0 rgba(227, 154, 22, .7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(227, 154, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 154, 22, 0); }
}

.hero__deva {
  font-family: var(--deva); font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  color: rgba(250, 247, 241, .8);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: .01em;
}
.hero__title {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 88;
  letter-spacing: -.028em;
  margin-top: .35rem;
  text-shadow: 0 2px 30px rgba(4, 16, 40, .4);
}
.hero__lede {
  font-size: clamp(1.05rem, .6vw + .95rem, 1.25rem);
  color: rgba(250, 247, 241, .9);
  max-width: 50ch; margin-top: 1.4rem;
  text-shadow: 0 1px 18px rgba(4, 16, 40, .55);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }

/* the literal horizon: a hairline the whole page then repeats */
.hero__horizon {
  border-top: 1px solid rgba(250, 247, 241, .3);
  background: rgba(6, 22, 52, .5);
  backdrop-filter: blur(4px);
}
.hero__horizon-inner {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  padding-block: .95rem;
  font-family: var(--display); font-weight: 500;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(250, 247, 241, .78);
}
.hero__affil { color: rgba(250, 247, 241, .55); }

/* ── Sections + the horizon rule ───────────────────────────── */
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--night { background: var(--zenith); color: var(--paper); }
.section--night .lede { color: rgba(250, 247, 241, .7); }

.rule {
  position: relative;
  border-top: 1px solid var(--ink-12);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.rule__label {
  position: absolute; top: 0; left: 0; transform: translateY(-50%);
  background: var(--paper); padding-right: 1rem;
  font-family: var(--display); font-weight: 600;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--sindoor);
}
.section--sand .rule__label { background: var(--sand); }
.rule--light { border-top-color: var(--paper-16); }
.rule--light .rule__label { background: var(--zenith); color: var(--marigold); }

/* ── About ─────────────────────────────────────────────────── */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.about__figure { margin: 0; }
.about__figure img {
  width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover;
  border-radius: var(--r);
  box-shadow: 0 18px 45px -28px rgba(11, 46, 99, .6);
}
.about__figure figcaption {
  margin-top: .8rem;
  font-family: var(--display); font-weight: 500;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--ink-60);
}

.marks { margin-top: clamp(2rem, 3.5vw, 2.75rem); display: grid; gap: 1.5rem; }
.marks li { padding-left: 1.5rem; position: relative; }
.marks li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: .7rem; height: 1.5px; background: var(--sindoor);
}
.marks h3 {
  font-size: 1.08rem; font-weight: 700; letter-spacing: -.005em;
  margin-bottom: .2rem;
}
.marks p { color: var(--ink-60); font-size: .99rem; }

/* ── Founder ───────────────────────────────────────────────── */
.founder {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.founder__portrait { margin: 0; }
.founder__portrait img {
  /* height:auto is required — the img's height attribute would otherwise
     win over aspect-ratio and the portrait would render at full height */
  width: 100%; height: auto;
  aspect-ratio: 4 / 4.3; object-fit: cover; object-position: 50% 26%;
  border-radius: var(--r);
  border: 1px solid rgba(212, 160, 44, .45);
  box-shadow: 0 24px 55px -30px rgba(0, 0, 0, .85);
}
.founder__role {
  font-family: var(--display); font-weight: 600;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--marigold);
}
.founder__name { margin-top: .7rem; }
.founder__motto {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--paper-16);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--marigold);
}
.founder__mottoNote {
  margin-top: .5rem;
  font-family: var(--display); font-size: .82rem;
  color: rgba(250, 247, 241, .5);
}

/* ── Course cards ──────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(19, 24, 32, .14); }
.card {
  background: var(--sand);
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 2.5vw, 2.5rem) clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: .55rem;
  transition: background-color .22s ease;
}
.card:hover { background: #f2eade; }

/* the abbreviation is what applicants search for, so it leads */
.card__degree {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-variation-settings: "wdth" 88;
  letter-spacing: -.035em; line-height: .9;
  color: var(--sindoor);
  margin-top: .35rem;
}

.subjects {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(1rem, 2vw, 2rem);
  margin-top: 1.1rem; flex: 1; align-content: start;
  border-top: 1px solid rgba(19, 24, 32, .18);
}
.subjects li {
  font-family: var(--display); font-weight: 500; font-size: .98rem;
  padding-block: .62rem;
  border-bottom: 1px solid rgba(19, 24, 32, .12);
}
.card__title {
  font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-60);
}
.card__note { color: var(--ink-60); font-size: .99rem; margin-top: .5rem; }
.card .link-arrow { margin-top: 1.4rem; align-self: start; }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 215px);
  gap: 10px;
}
.gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--zenith); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .3, 1), filter .4s ease;
}
.gallery__item:hover img { transform: scale(1.045); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem .9rem .8rem;
  background: linear-gradient(to top, rgba(6, 22, 52, .85), transparent);
  color: var(--paper);
  font-family: var(--display); font-weight: 500;
  font-size: .82rem; letter-spacing: .04em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery__item:hover figcaption,
.gallery__item:focus-within figcaption { opacity: 1; transform: none; }

/* ── Admissions ────────────────────────────────────────────── */
.admissions {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.25rem, 5vw, 4.5rem); align-items: start;
}
.dates { margin-top: clamp(2rem, 3.5vw, 2.75rem); }
.dates__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--paper-16);
}
.dates__row:last-child { border-bottom: 1px solid var(--paper-16); }
.dates dt {
  font-family: var(--display); font-weight: 500;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(250, 247, 241, .62);
  align-self: center;
}
.dates dd {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-variation-settings: "wdth" 92; letter-spacing: -.015em;
}
.admissions__aside { margin-top: 1.6rem; color: rgba(250, 247, 241, .68); font-size: .98rem; }
.admissions__aside a { color: var(--marigold); text-underline-offset: 3px; }

/* ── Forms ─────────────────────────────────────────────────── */
.form--panel {
  background: var(--paper); color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r);
  border: 1px solid var(--ink-12);
  display: grid; gap: 1rem;
}
.section--night .form--panel { border-color: transparent; box-shadow: 0 26px 60px -32px rgba(0, 0, 0, .7); }
.form__title { font-size: 1.3rem; letter-spacing: -.012em; margin-bottom: .25rem; }
.field { display: grid; gap: .38rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field__label {
  font-family: var(--display); font-weight: 600;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--ink-60);
}
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff;
  border: 1px solid rgba(19, 24, 32, .2);
  border-radius: var(--r);
  padding: .68rem .8rem;
  width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sindoor);
  box-shadow: 0 0 0 3px rgba(190, 46, 36, .14);
}
.form__note {
  font-family: var(--display); font-size: .82rem;
  color: var(--ink-60); text-align: center; margin-top: -.1rem;
}
.form__note.is-done { color: #1d6b3f; font-weight: 600; }

/* ── News ──────────────────────────────────────────────────── */
.news { display: grid; }
.news__item {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.25rem);
  border-top: 1px solid var(--ink-12);
}
.news__item:last-child { border-bottom: 1px solid var(--ink-12); }
.news__date { display: grid; align-content: start; }
.news__date b {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-variation-settings: "wdth" 88;
  line-height: .95; letter-spacing: -.03em;
  color: var(--sindoor);
}
.news__date span {
  font-family: var(--display); font-weight: 500;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--ink-60); margin-top: .4rem;
}
.tag {
  display: inline-block;
  font-family: var(--display); font-weight: 600;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--zenith);
  border: 1px solid rgba(11, 46, 99, .3);
  border-radius: 100px; padding: .18rem .6rem;
  margin-bottom: .7rem;
}
.news__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.018em; }
.news__body p { color: var(--ink-60); margin-top: .5rem; max-width: 62ch; }

/* ── Contact ───────────────────────────────────────────────── */
.contact {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.25rem, 5vw, 4.5rem); align-items: start;
}
.contact__list { margin-top: clamp(2rem, 3.5vw, 2.5rem); display: grid; }
.contact__list li {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem;
  padding-block: 1.05rem;
  border-top: 1px solid rgba(19, 24, 32, .16);
}
.contact__list li:last-child { border-bottom: 1px solid rgba(19, 24, 32, .16); }
.contact__key {
  font-family: var(--display); font-weight: 500;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-60); padding-top: .35rem;
}
.contact__val { font-size: 1.02rem; }
.contact__val a { color: var(--sindoor); text-decoration: none; border-bottom: 1px solid rgba(190, 46, 36, .35); }
.contact__val a:hover { border-bottom-color: currentColor; }
.contact .link-arrow { margin-top: 1.5rem; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(250, 247, 241, .74); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
/* the footer is near-black, so the navy crest sits on a cream plate */
.footer__logo {
  height: 104px; width: auto;
  background: var(--paper);
  border-radius: 8px;
  padding: 10px 16px;
}
.footer__motto {
  margin-top: 1.1rem;
  font-family: var(--display); font-weight: 700;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--marigold);
}
.footer__deva { display: block; margin-top: .8rem; font-size: 1.15rem; color: rgba(250, 247, 241, .8); }
.footer__tagline { margin-top: .7rem; max-width: 40ch; font-size: .99rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col h4 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .16em;
  font-weight: 600; color: var(--paper); margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a {
  font-family: var(--display); font-size: .95rem; font-weight: 400;
  text-decoration: none; color: rgba(250, 247, 241, .68);
  transition: color .16s ease;
}
.footer__col a:hover { color: var(--marigold); }
.footer__bottom {
  border-top: 1px solid rgba(250, 247, 241, .14);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between;
  font-family: var(--display); font-size: .85rem;
  color: rgba(250, 247, 241, .55);
}
.footer__bottom a { color: rgba(250, 247, 241, .8); text-decoration: none; }
.footer__bottom a:hover { color: var(--marigold); }

/* ── Reveal on scroll ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); }
.js-ready .reveal { transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .about, .admissions, .contact { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; justify-items: start; }
  .founder__portrait { max-width: 320px; }
  .cards { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 26vw, 200px); }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item figcaption { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink-12);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .5);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block; padding: .85rem 0;
    border-bottom: 1px solid var(--ink-12);
    font-size: 1.05rem;
  }
  .masthead:not(.is-stuck) .nav__list a { color: var(--ink); }
  .nav__list a:hover, .nav__list a.is-active { border-bottom-color: var(--ink-12); color: var(--sindoor); }
  .nav__cta { margin-top: 1.1rem; }
  .masthead.is-open { background: var(--paper); border-bottom-color: transparent; }
  .masthead.is-open .brand__name { color: var(--ink); }
  .masthead.is-open .brand__deva { color: var(--sindoor); }
  .masthead.is-open .nav-toggle { color: var(--ink); }
}

@media (max-width: 720px) {
  .news__item { grid-template-columns: 1fr; gap: .8rem; }
  .news__date { display: flex; align-items: baseline; gap: .6rem; }
  .news__date b { font-size: 1.7rem; }
  .news__date span { margin-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: .2rem; }
  .contact__key { padding-top: 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__logo { height: 84px; }
  .brand__logo { height: 40px; }
  .hero { min-height: 88svh; }
}

@media (max-width: 540px) {
  .subjects { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
  .footer__cols { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .nav, .form, .hero__scrim { display: none; }
  body { background: #fff; color: #000; }
}
