/* ==========================================================================
   Enrolla — Engineering Admissions Consultancy, Bengaluru
   ---------------------------------------------------------------------------
   Contents
     01. Tokens
     02. Reset & base
     03. Typography
     04. Layout
     05. Buttons & links
     06. Header / navigation
     07. Hero
     08. Page masthead
     09. Cards & panels
     10. Editorial components
     11. Forms
     12. College detail
     13. Legal
     14. Footer
     15. Motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink & paper — warm neutrals, not clinical greys */
  --paper: #fbfaf7;
  --paper-2: #f4f1ea;
  --card: #ffffff;
  --ink: #14161a;
  --ink-2: #3d434e;
  --ink-3: #6f7683;
  --rule: #e2ddd2;
  --rule-2: #efebe3;

  /* Brand — deep ink-blue with a brass accent */
  --blue-900: #0a1626;
  --blue-800: #10243c;
  --blue-700: #173553;
  --blue-600: #234b73;
  --blue-100: #dfe7f0;
  --blue-50: #f0f4f9;

  --brass-600: #9a6f16;
  --brass-500: #c08c1f;
  --brass-400: #dcae4b;
  --brass-100: #f8eed9;

  --moss-700: #2c5545;
  --moss-100: #e4eee8;

  --clay-600: #9c4a2f;
  --clay-100: #f6e7e0;

  /* Type */
  --serif: "Fraunces", "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;

  /* Depth — tight, low-opacity, layered */
  --sh-1: 0 1px 2px rgba(20, 22, 26, 0.05);
  --sh-2: 0 2px 4px rgba(20, 22, 26, 0.04), 0 8px 20px rgba(20, 22, 26, 0.06);
  --sh-3: 0 4px 8px rgba(20, 22, 26, 0.05), 0 20px 44px rgba(20, 22, 26, 0.09);
  --sh-4: 0 8px 16px rgba(20, 22, 26, 0.06), 0 36px 80px rgba(20, 22, 26, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.5, 1);
}

/* --------------------------------------------------------------------------
   02. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0435rem;
  line-height: 1.72;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}

/* Long email addresses and URLs in the legal pages would otherwise push a
   narrow column wider than the screen. */
p,
li,
td,
h1,
h2,
h3,
h4,
dd,
figcaption,
blockquote {
  overflow-wrap: break-word;
}

::selection {
  background: var(--brass-400);
  color: var(--blue-900);
}

:focus-visible {
  outline: 2px solid var(--brass-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--blue-900);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   03. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.021em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 {
  font-size: clamp(2.4rem, 1.35rem + 4.6vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}
h2 {
  font-size: clamp(1.8rem, 1.15rem + 2.7vw, 2.85rem);
  letter-spacing: -0.026em;
}
h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.45rem);
  letter-spacing: -0.015em;
}
h4 {
  font-family: var(--sans);
  font-size: 1.035rem;
  font-weight: 650;
  letter-spacing: -0.008em;
  line-height: 1.4;
}

p {
  margin: 0 0 1.2em;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--brass-600);
}

/* Understated animated underline for inline prose links */
.prose a:not(.btn),
.legal a:not(.btn) {
  color: var(--blue-700);
  background-image: linear-gradient(var(--brass-500), var(--brass-500));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: background-size 0.32s var(--ease-out), color 0.2s var(--ease);
}
.prose a:not(.btn):hover,
.legal a:not(.btn):hover {
  color: var(--brass-600);
  background-size: 100% 2px;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--ink);
  font-weight: 620;
}

blockquote {
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* Small caps label — used as section eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.on-dark .eyebrow,
.section--ink .eyebrow {
  color: var(--brass-400);
}

.lede {
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.68;
  color: var(--ink-3);
}

.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.num-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   04. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding: clamp(4rem, 2rem + 7vw, 7.5rem) 0;
  position: relative;
}
.section--tight {
  padding: clamp(2.75rem, 1.75rem + 4vw, 4.5rem) 0;
}
.section--paper {
  background: var(--paper-2);
}
.section--white {
  background: var(--card);
}
.section--ink {
  background: var(--blue-900);
  color: #a9bacd;
}
.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: #fff;
}

/* Hairline separators that read as deliberate, not decorative */
.section--rule-top {
  border-top: 1px solid var(--rule);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p:last-child {
  margin-bottom: 0;
}

/* Editorial split: label column + content column */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

.grid {
  display: grid;
  gap: clamp(18px, 1rem + 1vw, 28px);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.stack-sm > * + * {
  margin-top: 0.75rem;
}
.text-center {
  text-align: center;
}
.mb-0 {
  margin-bottom: 0;
}
.mt-2 {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   05. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-800);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.75em;
  font-family: var(--sans);
  font-size: 0.935rem;
  font-weight: 560;
  letter-spacing: -0.004em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}
/* Sheen that wipes across on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 76%
  );
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-out);
}
.btn:hover::after {
  transform: translateX(120%);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
}
.btn:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}
.btn svg {
  transition: transform 0.35s var(--ease-out);
}
.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  --btn-bg: var(--brass-500);
  --btn-fg: var(--blue-900);
  box-shadow: 0 1px 2px rgba(154, 111, 22, 0.2),
    0 6px 18px rgba(154, 111, 22, 0.22);
}
.btn--primary:hover {
  --btn-bg: var(--brass-400);
  box-shadow: 0 4px 10px rgba(154, 111, 22, 0.22),
    0 14px 32px rgba(154, 111, 22, 0.28);
}

.btn--ink {
  --btn-bg: var(--blue-800);
  --btn-fg: #fff;
}
.btn--ink:hover {
  --btn-bg: var(--blue-700);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover {
  --btn-fg: var(--blue-800);
  border-color: var(--blue-800);
  box-shadow: var(--sh-2);
}

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  --btn-fg: #fff;
}

.btn--sm {
  padding: 0.7em 1.3em;
  font-size: 0.865rem;
}
.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row--center {
  justify-content: center;
}

/* Text link with travelling arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 560;
  font-size: 0.935rem;
  color: var(--blue-700);
}
.link-arrow svg {
  transition: transform 0.35s var(--ease-out);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   06. Header / navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--blue-900);
  color: #8fa3bb;
  font-size: 0.815rem;
  letter-spacing: 0.005em;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding-block: 7px;
}
.topbar a {
  color: #ccd8e6;
}
.topbar a:hover {
  color: var(--brass-400);
}
.topbar__set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar__item svg {
  opacity: 0.75;
}
@media (max-width: 700px) {
  .topbar__set--secondary {
    display: none;
  }
  .topbar .wrap {
    justify-content: center;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--rule);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 1px 24px rgba(20, 22, 26, 0.06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

/* Scroll progress hairline */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brass-500), var(--brass-400));
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover {
  color: var(--ink);
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(148deg, var(--blue-700) 0%, var(--blue-900) 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--sh-1);
  transition: transform 0.5s var(--ease-spring);
}
.brand:hover .brand__mark {
  transform: rotate(-6deg) scale(1.05);
}
.brand__mark svg {
  width: 21px;
  height: 21px;
  color: var(--brass-400);
}
.brand__word {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.05;
}
.brand__sub {
  display: block;
  font-size: 0.575rem;
  font-weight: 620;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  position: relative;
  display: block;
  padding: 10px 15px;
  font-size: 0.925rem;
  font-weight: 480;
  color: var(--ink-2);
  border-radius: var(--r-sm);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 1.5px;
  background: var(--brass-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.38s var(--ease-out);
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after {
  transform: scaleX(1);
}
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 580;
}
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* The in-nav CTA exists for the mobile drawer only; .header-cta carries it on
   desktop. Without this, both render side by side above 1000px. */
.nav > .btn {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 11px;
  background: var(--card);
  cursor: pointer;
  padding: 0;
  place-items: center;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--blue-700);
}
.nav-toggle i {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.6px;
  margin-left: -9px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.25s var(--ease);
}
.nav-toggle i:nth-child(1) {
  transform: translateY(-5px);
}
.nav-toggle i:nth-child(3) {
  transform: translateY(5px);
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.3);
}
.nav-toggle[aria-expanded="true"] i:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 1000px) {
  /* backdrop-filter turns .site-header into the containing block for any
     position:fixed descendant, which made the drawer resolve top/bottom
     against the 78px header instead of the viewport — it opened 58px tall
     with its links spilling outside. Drop the effect below the breakpoint
     (and go opaque, since there is nothing left to blur behind it). */
  .site-header,
  .site-header.is-stuck {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--paper);
  }
  .nav-toggle {
    display: grid;
  }
  .header-cta > .btn {
    display: none;
  }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-offset, 78px);
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--paper);
    padding: 18px var(--gutter) 40px;
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease-out);
  }
  .nav.is-open {
    clip-path: inset(0 0 0 0);
  }
  .nav a {
    padding: 16px 2px;
    font-size: 1.28rem;
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--rule-2);
    border-radius: 0;
    opacity: 0;
    transform: translateY(14px);
  }
  .nav.is-open a {
    animation: navItemIn 0.5s var(--ease-out) forwards;
  }
  .nav.is-open a:nth-child(1) {
    animation-delay: 0.06s;
  }
  .nav.is-open a:nth-child(2) {
    animation-delay: 0.11s;
  }
  .nav.is-open a:nth-child(3) {
    animation-delay: 0.16s;
  }
  .nav.is-open a:nth-child(4) {
    animation-delay: 0.21s;
  }
  .nav.is-open a:nth-child(5) {
    animation-delay: 0.26s;
  }
  .nav a::after {
    display: none;
  }
  .nav > .btn {
    display: inline-flex;
    margin-top: 26px;
    border-bottom: 0;
    font-family: var(--sans);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(14px);
    animation: navItemIn 0.5s var(--ease-out) 0.31s forwards;
  }
}

@keyframes navItemIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   07. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--blue-900);
  color: #a9bacd;
  overflow: hidden;
  isolation: isolate;
}
/* Layered atmosphere: two soft light sources + a fine grid */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(4px);
}
.hero__glow--1 {
  width: min(60vw, 700px);
  aspect-ratio: 1;
  right: -12%;
  top: -32%;
  background: radial-gradient(
    circle,
    rgba(192, 140, 31, 0.26) 0%,
    rgba(192, 140, 31, 0.05) 45%,
    transparent 68%
  );
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: min(52vw, 560px);
  aspect-ratio: 1;
  left: -14%;
  bottom: -34%;
  background: radial-gradient(
    circle,
    rgba(44, 85, 69, 0.42) 0%,
    rgba(44, 85, 69, 0.08) 46%,
    transparent 70%
  );
  animation: drift 26s ease-in-out 1.5s infinite alternate-reverse;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    #000 30%,
    transparent 78%
  );
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 5%, 0) scale(1.12);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0;
}
@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.42em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-400);
}
.hero__lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.185rem);
  color: #9fb3c9;
  max-width: 52ch;
  margin-bottom: 2.1rem;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.825rem;
  font-weight: 450;
  color: #cfdcea;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(8px);
}
.hero__pill b {
  background: var(--brass-500);
  color: var(--blue-900);
  font-size: 0.655rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.hero__pill i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(74, 222, 128, 0);
  }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}
.hero__stats dt {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.hero__stats dd {
  margin: 5px 0 0;
  font-size: 0.815rem;
  line-height: 1.45;
  color: #879ab1;
}

/* Enquiry card floating over the hero */
.hero-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: clamp(24px, 1rem + 2vw, 34px);
  box-shadow: var(--sh-4);
  color: var(--ink-2);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0) 45%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.3em;
}
.hero-card > p {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-bottom: 1.5em;
}
.hero-card__note {
  font-size: 0.755rem;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
  margin: 1rem 0 0;
}

/* Trust strip / marquee of college names */
.marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee span {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee span:hover {
  color: rgba(255, 255, 255, 0.85);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   08. Page masthead
   -------------------------------------------------------------------------- */
.masthead {
  background: var(--blue-900);
  color: #a9bacd;
  padding: clamp(2.75rem, 1.5rem + 5vw, 5rem) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.masthead::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(55vw, 620px);
  aspect-ratio: 1;
  right: -10%;
  top: -55%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(192, 140, 31, 0.2) 0%,
    transparent 66%
  );
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.026) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 100% at 30% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse 70% 100% at 30% 50%,
    #000,
    transparent 75%
  );
}
.masthead h1 {
  color: #fff;
  margin-bottom: 0.32em;
  max-width: 20ch;
}
.masthead p {
  font-size: clamp(1.03rem, 1rem + 0.35vw, 1.15rem);
  color: #9fb3c9;
  max-width: 60ch;
  margin-bottom: 0;
}
.masthead--wide h1 {
  max-width: 24ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  font-size: 0.8rem;
  color: #7f93aa;
}
.breadcrumb li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.breadcrumb a {
  color: #b9c9db;
}
.breadcrumb a:hover {
  color: var(--brass-400);
}
.breadcrumb li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   09. Cards & panels
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(24px, 1rem + 1.4vw, 32px);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out);
}
.card h3 {
  margin-bottom: 0.45em;
}
.card p:last-child {
  margin-bottom: 0;
}
.card--hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
  border-color: var(--blue-100);
}

/* A hairline that draws itself across the card top on hover */
.card--rule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--brass-500), var(--brass-400));
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out);
}
.card--rule:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: transform 0.45s var(--ease-spring),
    background-color 0.35s var(--ease);
}
.card__icon svg {
  width: 21px;
  height: 21px;
}
.card--hover:hover .card__icon {
  transform: translateY(-2px) scale(1.06);
}
.card__icon--brass {
  background: var(--brass-100);
  color: var(--brass-600);
}
.card__icon--moss {
  background: var(--moss-100);
  color: var(--moss-700);
}
.card__icon--clay {
  background: var(--clay-100);
  color: var(--clay-600);
}

.card__index {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  color: var(--brass-600);
  display: block;
  margin-bottom: 16px;
}

/* College card */
.college-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out);
}
.college-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
  border-color: var(--blue-100);
}
.college-card__banner {
  position: relative;
  padding: 24px 26px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
}
.college-card__banner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 68%
  );
  transition: transform 0.6s var(--ease-out);
}
.college-card:hover .college-card__banner::after {
  transform: scale(1.4) translate(-14px, 16px);
}
.college-card__crest {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.college-card__banner b {
  position: relative;
  display: block;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.28;
}
.college-card__banner span {
  position: relative;
  font-size: 0.775rem;
  color: #b3c6da;
}
/* Photo variant of the card banner. Cards without a licensed photograph keep
   the gradient banner above, so the grid stays visually consistent. */
.college-card__banner--photo {
  padding: 0;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--blue-900);
}
.college-card__banner--photo::after {
  display: none; /* decorative circle is for the gradient variant only */
}
.college-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.college-card:hover .college-card__photo {
  transform: scale(1.045);
}
/* Scrim so the overlaid name stays legible whatever the photograph does. */
.college-card__banner--photo .college-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 38, 0.92) 0%,
    rgba(10, 22, 38, 0.62) 38%,
    rgba(10, 22, 38, 0.12) 70%,
    rgba(10, 22, 38, 0.05) 100%
  );
}
.college-card__banner--photo .college-card__label {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.college-card__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.college-card__body > p {
  font-size: 0.935rem;
}
.college-card__meta {
  list-style: none;
  padding: 16px 0 0;
  margin: 0 0 22px;
  font-size: 0.865rem;
  border-top: 1px solid var(--rule-2);
}
.college-card__meta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.college-card__meta li:last-child {
  margin-bottom: 0;
}
.college-card__meta span {
  color: var(--ink-3);
  white-space: nowrap;
}
.college-card__meta b {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.college-card .btn {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   10. Editorial components
   -------------------------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.735rem;
  font-weight: 580;
  letter-spacing: 0.012em;
  margin: 0 6px 6px 0;
}
.tag--brass {
  background: var(--brass-100);
  color: var(--brass-600);
}
.tag--moss {
  background: var(--moss-100);
  color: var(--moss-700);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}
.checklist li {
  position: relative;
  padding-left: 31px;
  margin-bottom: 0.72em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--moss-100);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 0.74em;
  width: 4.5px;
  height: 8.5px;
  border-right: 1.9px solid var(--moss-700);
  border-bottom: 1.9px solid var(--moss-700);
  transform: rotate(42deg);
}
.section--ink .checklist li::before,
.on-dark .checklist li::before {
  background: rgba(255, 255, 255, 0.1);
}
.section--ink .checklist li::after,
.on-dark .checklist li::after {
  border-color: var(--brass-400);
}

/* Stat band with hairline dividers rather than boxes */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-band > div {
  padding: clamp(22px, 1rem + 1.4vw, 34px) 22px;
  text-align: center;
  border-right: 1px solid var(--rule);
}
.stat-band > div:last-child {
  border-right: 0;
}
.stat-band dt {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.65rem);
  font-weight: 600;
  color: var(--blue-800);
  letter-spacing: -0.038em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat-band dd {
  margin: 7px 0 0;
  font-size: 0.845rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* Testimonial */
.quote {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 30px 28px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--rule);
  pointer-events: none;
}
.quote__stars {
  color: var(--brass-500);
  letter-spacing: 3px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.quote blockquote {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.68;
  flex: 1;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--rule-2);
  padding-top: 16px;
}
.quote__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-900));
  color: var(--brass-400);
  display: grid;
  place-items: center;
  font-weight: 620;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.quote figcaption b {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.35;
}
.quote figcaption span {
  font-size: 0.79rem;
  color: var(--ink-3);
}

/* Process timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--rule);
}
.timeline li {
  position: relative;
  padding-left: 64px;
  padding-bottom: 34px;
  margin: 0;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--blue-700);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}
.timeline li:hover .timeline__dot {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--brass-400);
}
.timeline li h4 {
  margin-bottom: 0.32em;
}
.timeline li p {
  margin-bottom: 0;
  font-size: 0.945rem;
}
.section--ink .timeline::before {
  background: rgba(255, 255, 255, 0.14);
}
.section--ink .timeline__dot {
  background: var(--blue-900);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--brass-400);
}
.section--ink .timeline li:hover .timeline__dot {
  background: var(--brass-500);
  border-color: var(--brass-500);
  color: var(--blue-900);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  position: relative;
  font-weight: 580;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.5;
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--blue-700);
}
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  background: var(--blue-600);
  border-radius: 2px;
  transition: transform 0.42s var(--ease-out), opacity 0.3s var(--ease);
}
.faq summary::before {
  width: 13px;
  height: 1.6px;
  margin-top: -0.8px;
}
.faq summary::after {
  width: 1.6px;
  height: 13px;
  margin-top: -6.5px;
  margin-right: 5.7px;
}
.faq details[open] summary::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq details[open] summary::before {
  transform: rotate(180deg);
}
.faq details > div {
  padding: 0 42px 26px 0;
  animation: faqIn 0.4s var(--ease-out);
}
.faq details > div p:last-child {
  margin-bottom: 0;
}
@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  margin-bottom: 1.6rem;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.935rem;
  min-width: 540px;
}
caption {
  text-align: left;
  padding: 16px 20px 0;
  font-size: 0.83rem;
  color: var(--ink-3);
}
thead th {
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.715rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background-color 0.2s var(--ease);
}
tbody tr:hover {
  background: var(--blue-50);
}
td b {
  color: var(--ink);
  font-weight: 600;
}
.tabular {
  font-variant-numeric: tabular-nums;
}

/* Callout */
.note {
  background: var(--brass-100);
  border-left: 2px solid var(--brass-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #6a4d12;
}
.note p:last-child {
  margin-bottom: 0;
}
.note strong {
  color: #543c0d;
}
.note--moss {
  background: var(--moss-100);
  border-left-color: var(--moss-700);
  color: #24493b;
}
.note--moss strong {
  color: #1a3a2e;
}

/* CTA band */
.cta-band {
  position: relative;
  background: var(--blue-900);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.25rem) clamp(1.5rem, 1rem + 3vw, 3rem);
  color: #a9bacd;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(70%, 520px);
  aspect-ratio: 1;
  right: -12%;
  bottom: -60%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(192, 140, 31, 0.24) 0%,
    transparent 66%
  );
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(60%, 420px);
  aspect-ratio: 1;
  left: -10%;
  top: -55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 85, 69, 0.4) 0%, transparent 68%);
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* Logos / affiliation strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}
.logo-strip span {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.logo-strip span:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.008em;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .req {
  color: var(--clay-600);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 9px;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #a8afba;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7683' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #cdc6b8;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(35, 75, 115, 0.12);
}
.field [aria-invalid="true"] {
  border-color: var(--clay-600);
}
.field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(156, 74, 47, 0.13);
}
.field .error {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: 0.785rem;
  color: var(--clay-600);
  transition: max-height 0.3s var(--ease-out), margin-top 0.3s var(--ease-out);
}
.field .error.is-visible {
  max-height: 40px;
  margin-top: 6px;
}
.field--row {
  display: grid;
  /* minmax(0, …): an <input> has a wide intrinsic min-content size, which a
     bare 1fr track would honour and overflow the viewport. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 16px;
}
@media (max-width: 540px) {
  .field--row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.795rem;
  color: var(--ink-3);
  line-height: 1.58;
  margin: 6px 0 20px;
}
.consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue-700);
  cursor: pointer;
}

.form-status {
  max-height: 0;
  overflow: hidden;
  border-radius: 9px;
  font-size: 0.9rem;
  line-height: 1.6;
  transition: max-height 0.4s var(--ease-out), margin-bottom 0.4s var(--ease-out),
    padding 0.4s var(--ease-out);
  padding: 0 18px;
}
.form-status.is-visible {
  max-height: 260px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.form-status--ok {
  background: var(--moss-100);
  color: #234739;
  border: 1px solid rgba(44, 85, 69, 0.22);
}
.form-status--err {
  background: var(--clay-100);
  color: #7d3a24;
  border: 1px solid rgba(156, 74, 47, 0.22);
}
.form-status p:last-child {
  margin-bottom: 0;
}

.btn.is-busy {
  pointer-events: none;
  opacity: 0.75;
}
.btn.is-busy::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   12. College detail
   -------------------------------------------------------------------------- */
.college-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
@media (max-width: 1000px) {
  .college-layout {
    /* minmax(0, …) rather than a bare 1fr: a bare 1fr track takes its
       automatic minimum from the item's min-content, and the 540px min-width
       on the scrollable tables was inflating the whole column to 542px —
       pushing every page into horizontal scroll on phones. */
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Grid and flex children default to min-width:auto, which lets wide
   descendants (tables, long unbroken strings) blow the track out. */
.college-layout > *,
.prose,
.sidebar {
  min-width: 0;
}

.masthead__tags {
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.masthead__tags .tag {
  margin: 0;
  background: rgba(255, 255, 255, 0.09);
  color: #dbe6f2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}

.prose > h2 {
  margin-top: 3rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 110px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.95rem);
}
.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.prose h3 {
  margin-top: 2rem;
  scroll-margin-top: 110px;
}
.prose > *:first-child {
  margin-top: 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}
@media (max-width: 1000px) {
  .sidebar {
    position: static;
  }
}

.side-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 24px;
}
.side-card h3 {
  font-size: 1.02rem;
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.008em;
  margin-bottom: 0.9em;
}
.side-card p:last-child {
  margin-bottom: 0;
}
.side-card--ink {
  background: var(--blue-900);
  border-color: transparent;
  color: #a9bacd;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.side-card--ink::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(192, 140, 31, 0.24) 0%,
    transparent 68%
  );
}
.side-card--ink h3 {
  color: #fff;
}
.side-card--ink p {
  font-size: 0.9rem;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.885rem;
}
.fact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-2);
  margin: 0;
}
.fact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.fact-list span {
  color: var(--ink-3);
  flex-shrink: 0;
}
.fact-list b {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.toc {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.895rem;
}
.toc li {
  margin: 0;
}
.toc a {
  display: block;
  padding: 8px 0 8px 15px;
  border-left: 1px solid var(--rule);
  color: var(--ink-2);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    padding-left 0.3s var(--ease-out);
}
.toc a:hover,
.toc a.is-active {
  border-left-color: var(--brass-500);
  color: var(--ink);
  padding-left: 19px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: 10px;
  padding: 0;
  margin: 0 0 1.6rem;
  list-style: none;
}
.branch-grid li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 9px;
  font-size: 0.905rem;
  color: var(--ink);
  margin: 0;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.branch-grid li:hover {
  border-color: var(--blue-100);
  transform: translateX(3px);
}
.branch-grid li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-500);
  flex-shrink: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 1.6rem;
}
.pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--card);
  font-size: 0.845rem;
  color: var(--ink-2);
}

.next-colleges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.next-colleges a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--card);
  font-size: 0.87rem;
  font-weight: 480;
  color: var(--ink-2);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.next-colleges a:hover {
  border-color: var(--blue-700);
  color: var(--blue-800);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

/* Campus photograph on a college detail page. */
.college-photo {
  margin: 0 0 clamp(2rem, 1rem + 2vw, 3rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  box-shadow: var(--sh-2);
}
.college-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.college-photo figcaption {
  padding: 13px 20px 15px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--card);
  border-top: 1px solid var(--rule-2);
}
.credit {
  display: block;
  margin-top: 3px;
  font-size: 0.755rem;
  color: var(--ink-3);
}
.credit a {
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 2px;
}
.credit a:hover {
  color: var(--brass-600);
}

/* Consolidated image credits in the footer of pages that show photographs. */
.image-credits {
  font-size: 0.775rem;
  line-height: 1.7;
  color: #63788e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 0;
  max-width: 92ch;
}
.image-credits a {
  color: #7f95ad;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 2px;
}
.image-credits a:hover {
  color: var(--brass-400);
}

/* --------------------------------------------------------------------------
   12b. Conversion components (college pages)
   -------------------------------------------------------------------------- */

/* Masthead call-to-action — puts a primary action above the fold, which the
   college pages previously lacked entirely. */
.masthead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 1.9rem;
}

/* Micro-reassurance line placed directly beneath a CTA. */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.815rem;
  color: var(--ink-3);
}
.trust-line li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.trust-line svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--moss-700);
}
.masthead .trust-line {
  color: #90a5bd;
}
.masthead .trust-line svg {
  color: var(--brass-400);
}
.side-card--ink .trust-line,
.cta-band .trust-line {
  color: #93a8c0;
  justify-content: center;
  margin-top: 1.3rem;
}
.side-card--ink .trust-line {
  justify-content: flex-start;
}
.side-card--ink .trust-line svg,
.cta-band .trust-line svg {
  color: var(--brass-400);
}

/* Inline lead capture, placed at the point of peak intent — immediately
   after the visitor has read the cutoff table for their rank. */
.lead-form {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(24px, 1rem + 2vw, 36px);
  margin: 2.5rem 0 1rem;
  box-shadow: var(--sh-2);
  scroll-margin-top: 100px;
  overflow: hidden;
}
.lead-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brass-500), var(--brass-400));
}
.lead-form h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 0.4em;
}
.lead-form > p {
  font-size: 0.965rem;
  color: var(--ink-3);
  margin-bottom: 1.5em;
  max-width: 54ch;
}
.lead-form .field--row {
  gap: 0 16px;
}
@media (min-width: 620px) {
  .lead-form .field--row--3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}
.lead-form .btn {
  margin-top: 4px;
}

/* Sticky action bar for narrow screens, where the sidebar CTA stops being
   sticky and would otherwise scroll out of reach. */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -2px 20px rgba(20, 22, 26, 0.07);
}
.action-bar .btn {
  flex: 1;
  padding-inline: 0.9em;
  font-size: 0.9rem;
}
.action-bar .btn--ghost {
  background: var(--card);
}

@media (max-width: 1000px) {
  .action-bar {
    display: flex;
  }
  /* Keep the bar from covering the end of the page or the to-top control. */
  body.has-action-bar {
    padding-bottom: 74px;
  }
  body.has-action-bar .to-top {
    bottom: 86px;
  }
}

/* --------------------------------------------------------------------------
   13. Legal
   -------------------------------------------------------------------------- */
.legal {
  max-width: 74ch;
}
.legal h2 {
  margin-top: 2.9rem;
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.65rem);
  scroll-margin-top: 110px;
}
.legal h3 {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-family: var(--sans);
  font-weight: 650;
}
.legal ul,
.legal ol {
  padding-left: 1.2em;
}
.legal__meta {
  font-size: 0.875rem;
  color: var(--ink-3);
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  margin-bottom: 2.5rem;
}
.legal__meta p {
  margin: 0;
}
.legal__meta p + p {
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--blue-900);
  color: #8ba0b8;
  font-size: 0.905rem;
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(60vw, 700px);
  aspect-ratio: 1;
  left: -12%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(35, 75, 115, 0.5) 0%,
    transparent 66%
  );
}
.site-footer h4 {
  color: #fff;
  font-size: 0.715rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.35em;
}
.site-footer a {
  color: #a9bccf;
}
.site-footer a:hover {
  color: var(--brass-400);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 2rem + 1vw, 44px);
  padding-bottom: 3.25rem;
}
@media (max-width: 940px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: 18px;
}
.footer-brand .brand:hover {
  color: #fff;
}
.footer-brand .brand__mark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand .brand__sub {
  color: #7089a3;
}
.footer-brand p {
  max-width: 36ch;
  font-size: 0.9rem;
  line-height: 1.68;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 0.68em;
}
.footer-list a {
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.3s var(--ease-out);
}
.footer-list a:hover {
  transform: translateX(3px);
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 1em;
  line-height: 1.62;
  font-size: 0.895rem;
}
.footer-contact svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--brass-500);
  width: 16px;
  height: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #74899f;
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer-disclaimer {
  font-size: 0.775rem;
  color: #63788e;
  line-height: 1.68;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0 28px;
  max-width: 92ch;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--sh-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
    visibility 0.35s, border-color 0.25s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  border-color: var(--blue-700);
  color: var(--blue-800);
}
@media (max-width: 600px) {
  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */
/* Reveal animations are gated on the `js` class, which an inline script in
   <head> sets before first paint. If the stylesheet loads but main.js does
   not, nothing is ever hidden — the page simply renders without motion. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal="fade"] {
  transform: none;
}
.js [data-reveal="left"] {
  transform: translateX(-24px);
}
.js [data-reveal="right"] {
  transform: translateX(24px);
}
.js [data-reveal="scale"] {
  transform: scale(0.965);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Line-by-line headline reveal. The inner <span> is created by main.js, so
   without it the heading renders as plain text with no masking. */
.reveal-lines .line {
  display: block;
}
.js .reveal-lines .line {
  overflow: hidden;
}
.js .reveal-lines .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal-lines.is-in .line > span {
  transform: none;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  .reveal-lines .line > span {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee__track {
    animation: none;
  }
}

@media print {
  .site-header,
  .topbar,
  .site-footer,
  .cta-band,
  .sidebar,
  .nav-toggle,
  .to-top,
  .marquee {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .masthead,
  .hero {
    background: none;
    color: #000;
    padding: 0 0 1rem;
  }
  .masthead h1,
  .masthead p,
  .hero h1 {
    color: #000;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
