/* Vigyan International Group of Institutions — the public group website (index.html).
   Navy, warm gold and off-white; bold sans-serif headings; gentle fade-in; material cards. */
:root {
  --navy: #102544;
  --navy-2: #1a3760;
  --navy-3: #0a1830;
  --gold: #d6ad60;
  --gold-2: #e4c486;
  --gold-ink: #8a6a24;
  --gold-soft: #f6eedb;
  --ink: #18202b;
  --ink-2: #4c5766;
  --muted: #7a8593;
  --line: #e2e6ec;
  --bg: #f7f8fa;
  --card: #ffffff;
  --good: #1f8a4c;
  --bad: #c0392b;
  --focus: #2a78d6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 37, 68, .06), 0 8px 24px rgba(16, 37, 68, .08);
  --shadow-lift: 0 2px 4px rgba(16, 37, 68, .08), 0 20px 40px rgba(16, 37, 68, .16);
  --head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.18; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 12px; border-radius: 8px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------------- Header ---------------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(16, 37, 68, .97); color: #fff; backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.emblem { width: 42px; height: 42px; flex: none; }
.brand b { display: block; font-family: var(--head); font-weight: 800; font-size: 16px; line-height: 1.25; }
.brand small { display: block; color: var(--gold); font-size: 12px; letter-spacing: .2px; }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #dbe3ee; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.cta { background: var(--gold); color: var(--navy); font-weight: 700; margin-left: 8px; }
.nav a.cta:hover { background: var(--gold-2); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700;
  padding: 13px 22px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 15px; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(214, 173, 96, .3); }
.btn.gold:hover { background: var(--gold-2); }
.btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn.outline:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px #fff; }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: default; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--focus); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------------- Hero ---------------- */
.hero { background: radial-gradient(900px 460px at 90% -10%, #284c7c 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: 12.5px; color: var(--gold); margin: 0 0 14px; font-weight: 700; }
.eyebrow.dark { color: var(--gold-ink); }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; line-height: 1.08; }
.hero .lead { max-width: 580px; color: #cfd9e6; font-size: 18px; margin: 20px 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-open { display: inline-flex; align-items: center; gap: 8px; background: rgba(46, 160, 92, .16); color: #a6ecc0; border: 1px solid rgba(166, 236, 192, .35); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 99px; margin: 0 0 18px; }
.badge-open .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.hero-photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); aspect-ratio: 4 / 3; background: var(--navy-2); }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(10, 24, 48, .72); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; backdrop-filter: blur(4px); }
.hero-photo figcaption:empty { display: none; }

/* ---------------- Figures strip ---------------- */
.stats-strip { margin-top: -44px; position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; }
.stat { padding: 20px 18px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--head); font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--ink-2); }

/* ---------------- Sections ---------------- */
.section { padding: 80px 0; }
.section.tight-top { padding-top: 24px; }
.band { background: #eef2f7; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--navy); }
.section-head p:not(.eyebrow) { margin-top: 8px; color: var(--ink-2); }
.section-head.center { display: block; text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------------- Pathways ---------------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; text-align: left;
  font: inherit; color: inherit; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, border-color .18s, background .18s; -webkit-tap-highlight-color: transparent; }
.path:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.path:active { transform: translateY(1px) scale(.985); }
.path-ic { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--gold-soft); }
.path-t b { display: block; font-family: var(--head); font-size: 17px; font-weight: 800; color: var(--navy); }
.path { grid-template-rows: auto; align-items: start; }
.path-ic { grid-row: 1; }
.path-t { display: grid; gap: 6px; justify-items: start; }
.path-t b { margin-bottom: -4px; }
.path-t small { display: block; color: var(--ink-2); font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.path[aria-pressed="true"] .path-t small { color: #c9d4e2; }
.path-t mark { display: block; background: var(--gold-soft); color: var(--navy); font-size: 13.5px; font-weight: 700; line-height: 1.35; padding: 5px 10px; border-radius: 8px; box-shadow: inset 3px 0 0 var(--gold); }
.path .arrow { grid-row: 1; grid-column: 3; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); transition: transform .18s; }
.path:hover .arrow { transform: translateX(3px); }
.path[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); }
.path[aria-pressed="true"] .path-t b { color: #fff; }
.path[aria-pressed="true"] .path-t mark { background: var(--gold); color: var(--navy); }
.path[aria-pressed="true"] .arrow { background: var(--gold); color: var(--navy); transform: rotate(90deg); }
.path-note { font-size: 14px; color: var(--ink-2); background: var(--card); border-radius: 99px; padding: 8px 16px; box-shadow: var(--shadow); }

/* ---------------- Institution cards: 3 + 2 on desktop ---------------- */
.colleges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.colleges > .college { grid-column: span 2; }
.colleges > .college:nth-child(4) { grid-column: 2 / span 2; }
.colleges > .college:nth-child(5) { grid-column: 4 / span 2; }
a.college { position: relative; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, opacity .25s, filter .25s; -webkit-tap-highlight-color: transparent; }
a.college:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
a.college:active { transform: translateY(1px) scale(.985); box-shadow: 0 1px 2px rgba(16, 37, 68, .12), inset 0 3px 8px rgba(16, 37, 68, .14); transition-duration: .06s; }
.colleges.filtered { display: flex; flex-wrap: wrap; justify-content: center; }
.colleges.filtered > a.college { width: calc((100% - 44px) / 3); }
a.college.lit { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lift); }
.pic { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(420px 200px at 80% 0%, #2a4f80 0%, transparent 70%), linear-gradient(150deg, var(--navy) 0%, var(--navy-3) 100%); display: grid; place-items: center; overflow: hidden; }
.pic::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); }
.pic-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: contain; background: #fff; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s; }
a.college:hover .pic-logo { transform: scale(1.05); }
.pic-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.college:hover .pic-photo { transform: scale(1.04); }
.pic.has-photo .pic-logo { display: none; }
.pic-area { position: absolute; left: 14px; bottom: 16px; background: rgba(214, 173, 96, .96); color: var(--navy); font-size: 12.5px; font-weight: 800; padding: 5px 11px; border-radius: 99px; }
.college .body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.college .head { display: flex; gap: 12px; align-items: center; }
.college .logo { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px; flex: none; box-shadow: 0 2px 8px rgba(16, 37, 68, .12), inset 0 0 0 1px var(--line); }
.pic:not(.has-photo) + .body .head .logo { display: none; }
.college h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.college .place { color: var(--muted); font-size: 13px; margin-top: 2px; }
.about-line { color: var(--ink-2); font-size: 14.5px; }
.courses { display: grid; gap: 6px; }
.courses-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--gold-soft); color: #6b5115; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px #ecdcb5; }
.board { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: auto; }
.board-ic { flex: none; }
.card-go { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--navy); background: #f8fafc; transition: background .18s, color .18s; }
.card-go .arrow { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); transition: transform .18s, background .18s, color .18s; }
a.college:hover .card-go { background: var(--navy); color: #fff; }
a.college:hover .card-go .arrow { background: var(--gold); color: var(--navy); transform: translateX(3px); }
.ripple { position: absolute; border-radius: 50%; background: rgba(214, 173, 96, .3); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------------- About ---------------- */
.about { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.about h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.prose p { color: var(--ink-2); font-size: 17px; }
.prose p + p { margin-top: 14px; }
.patron { background: var(--navy); color: #d5deea; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lift); position: relative; overflow: hidden; }
.patron::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 173, 96, .25), transparent 70%); }
.patron svg { width: 56px; height: 56px; margin-bottom: 14px; }
.patron h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Achievements ---------------- */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.story { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: relative; border-top: 4px solid var(--gold); }
.story .quote { font-family: Georgia, serif; font-size: 54px; line-height: .6; color: var(--gold); display: block; height: 26px; }
.story h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.story p { color: var(--ink-2); font-size: 15px; }
.story .by { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--gold-ink); }

/* ---------------- Why choose us ---------------- */
.why-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; }
.why-band .section-head h2 { color: #fff; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 24px; transition: background .2s, border-color .2s, transform .2s; }
.why-item:hover { background: rgba(255, 255, 255, .08); border-color: rgba(214, 173, 96, .5); transform: translateY(-3px); }
.why-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(214, 173, 96, .16); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.why-item h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: #fff; }
.why-item p { color: #c4cfdd; font-size: 14.5px; }

/* ---------------- Utilities ---------------- */
.utilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
a.utility { position: relative; overflow: hidden; display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  border: 1.5px solid transparent; transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, border-color .18s; -webkit-tap-highlight-color: transparent; }
a.utility:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
a.utility:active { transform: translateY(1px) scale(.985); }
a.utility .logo { width: 60px; height: 60px; border-radius: 14px; flex: none; }
a.utility h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
a.utility p { color: var(--ink-2); font-size: 14.5px; }
a.utility .go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--navy); font-size: 14px; }
a.utility:hover .go { color: var(--gold-ink); }

/* ---------------- Admission enquiry ---------------- */
.enquiry-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.enquiry-wrap h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.muted-ink { color: var(--ink-2); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 12px; display: grid; place-items: center; font-weight: 800; }
form.enquiry { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lift); padding: 28px; display: grid; gap: 14px; border-top: 5px solid var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.enquiry label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
form.enquiry input, form.enquiry select { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); padding: 12px 13px; border: 1px solid #cfd6de; border-radius: 10px; background: #fff; width: 100%; min-height: 46px; }
form.enquiry select:disabled { background: #f3f5f7; color: var(--muted); }
form.enquiry input:focus, form.enquiry select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
form.enquiry .btn { width: 100%; padding: 14px; font-size: 16px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--good); font-weight: 600; background: #e6f5ec; padding: 10px 12px; border-radius: 10px; }
.form-msg.err { color: var(--bad); font-weight: 600; }

/* ---------------- Contact ---------------- */
.contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.contact-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; gap: 14px; }
.contact-item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.contact-item b { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.contact-item a { color: var(--navy); font-weight: 600; }

/* ---------------- Footer ---------------- */
.foot { background: var(--navy-3); color: #b9c5d4; font-size: 14px; padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand b { display: block; color: #fff; font-family: var(--head); font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.foot-brand p { margin-bottom: 16px; }
.foot h4 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 12px; }
.foot h4.mt { margin-top: 20px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: #d5deea; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a.btn { color: var(--navy); text-decoration: none; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 18px; padding-bottom: 22px; font-size: 13px; color: #8b9ab0; }

/* ---------------- Gentle fade-in (only with JavaScript; reduced motion shows everything at once) ---------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js a.college.reveal.in { transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, opacity .25s, filter .25s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  a.college, .path, a.utility, .why-item, .card-go, .card-go .arrow, .pic-logo, .pic-photo { transition: none; }
  .ripple { display: none; }
}

/* ---------------- Tablets and phones ---------------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; }
}
@media (max-width: 980px) {
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 20px 18px; gap: 2px; box-shadow: 0 16px 30px rgba(0, 0, 0, .3); }
  body.menu-open .nav { display: flex; }
  .nav a { padding: 13px 12px; font-size: 15px; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
  .hero-grid, .about, .enquiry-wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 44px 0 80px; }
  .colleges { grid-template-columns: repeat(2, 1fr); }
  .colleges > .college, .colleges > .college:nth-child(4), .colleges > .college:nth-child(5) { grid-column: auto; }
  .colleges > .college:nth-child(5):last-child { grid-column: 1 / -1; max-width: calc(50% - 11px); justify-self: center; width: 100%; }
  .paths, .why { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) { .colleges.filtered > a.college { width: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .colleges.filtered > a.college { width: 100%; } }
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand b { font-size: 13.5px; }
  .brand small { font-size: 10.5px; }
  .emblem { width: 36px; height: 36px; }
  .hero .lead { font-size: 16.5px; }
  .actions .btn { flex: 1 1 100%; }
  .section { padding: 56px 0; }
  .colleges, .paths, .why, .utilities, .row2 { grid-template-columns: 1fr; }
  .colleges > .college:nth-child(5):last-child { max-width: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat b { font-size: 24px; }
  form.enquiry { padding: 22px 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}
.contact > p { grid-column: 1 / -1; }
/* Justified paragraphs: the introduction at the top and the About text. */
.hero .lead, .prose p, .patron p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
