/* ==========================================================================
   Shaheen Group of Institutions, Patna
   Design tokens follow the supplied reference (cream page, blue text,
   golden-yellow + leaf-green accents, 8px radius, 4px base unit, big display type).
   Season Mix / Season Sans are licensed fonts; Fraunces + Figtree stand in.
   ========================================================================== */

:root {
  --bg: #F9F9F0;
  --ink: #2C5C94;          /* text + links */
  --ink-deep: #1B3A63;     /* text on leaf green, footer background */
  --yellow: #FFDC7E;       /* primary / accent */
  --lavender: #DCEFC0;     /* secondary: pale leaf green from the logo (was lavender #BD9FC3; name kept so existing .bg-lav classes still work) */
  --moss: #D3E4CB;
  --dawn: #F8D9CB;
  --sky: #CFE1F2;
  --white: #FFFFFF;

  --radius: 8px;
  --u: 4px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;

  --font-head: "Fraunces", "Season Mix", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Season Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
 .site-footer :focus-visible { outline-color: var(--yellow); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--yellow); color: var(--ink-deep); padding: 12px 16px; border-radius: var(--radius); z-index: 200; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- layout ---------- */
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 148px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.grid { display: grid; gap: clamp(24px, 4vw, 64px); }
.split { grid-template-columns: repeat(12, 1fr); align-items: center; }
.center { text-align: center; }

/* ---------- colour themes ---------- */
.bg-yellow { background: var(--yellow); }
.bg-lav { background: var(--lavender); color: var(--ink-deep); }
.bg-sky { background: var(--sky); }
.bg-moss { background: var(--moss); }
.bg-dawn { background: var(--dawn); }

/* Pattern + depth for the pale colour blocks. Each colour carries its base tone, a deeper
   shade and its Canva book-and-leaf pattern; the blocks below layer them as backgrounds. */
.bg-yellow { --tone: 255 220 126; --tone-deep: 246 190 60;  --pat: url("../images/pattern-yellow.jpg"); }
.bg-lav    { --tone: 220 239 192; --tone-deep: 166 207 106; --pat: url("../images/pattern-leaf.jpg"); }
.bg-sky    { --tone: 207 225 242; --tone-deep: 160 194 230; --pat: url("../images/pattern-sky.jpg"); }
.bg-moss   { --tone: 211 228 203; --tone-deep: 166 204 150; --pat: url("../images/pattern-moss.jpg"); }
.bg-dawn   { --tone: 248 217 203; --tone-deep: 240 174 146; --pat: url("../images/pattern-dawn.jpg"); }
/* large blocks: pattern under a colour wash {
  background:
    radial-gradient(circle at 94% 10%, transparent 0 149px, rgb(var(--tone-deep) / .7) 150px 152px, transparent 153px),
    radial-gradient(circle at 94% 10%, transparent 0 239px, rgb(var(--tone-deep) / .45) 240px 241px, transparent 242px),
    radial-gradient(ellipse 55% 70% at 92% 8%, rgb(var(--tone-deep) / .6), transparent 70%),
    radial-gradient(ellipse 45% 60% at 0% 100%, rgb(var(--tone-deep) / .4), transparent 70%),
    linear-gradient(rgb(var(--tone) / .5), rgb(var(--tone) / .5)),
    var(--pat) center / 1100px auto,
    rgb(var(--tone));
}
/* large blocks: pattern under a colour wash, corner glows and two thin rings */
:is(.section, .section--tight, .cta-box, .form-panel):is(.bg-yellow, .bg-lav, .bg-sky, .bg-moss, .bg-dawn) {
  background:
    radial-gradient(circle at 94% 10%, transparent 0 149px, rgb(var(--tone-deep) / .7) 150px 152px, transparent 153px),
    radial-gradient(circle at 94% 10%, transparent 0 239px, rgb(var(--tone-deep) / .45) 240px 241px, transparent 242px),
    radial-gradient(ellipse 55% 70% at 92% 8%, rgb(var(--tone-deep) / .6), transparent 70%),
    radial-gradient(ellipse 45% 60% at 0% 100%, rgb(var(--tone-deep) / .4), transparent 70%),
    linear-gradient(rgb(var(--tone) / .5), rgb(var(--tone) / .5)),
    var(--pat) center / 1100px auto,
    rgb(var(--tone));
}
/* small cards: lighter pattern and a single corner glow so text stays calm */
:is(.card, .step, .card-path):is(.bg-yellow, .bg-lav, .bg-sky, .bg-moss, .bg-dawn) {
  background:
    radial-gradient(circle at 100% 0%, rgb(var(--tone-deep) / .65), transparent 55%),
    linear-gradient(rgb(var(--tone) / .68), rgb(var(--tone) / .68)),
    var(--pat) center / 760px auto,
    rgb(var(--tone));
}
.bg-white { background: var(--white); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .6; }
.h1 { font-size: clamp(2.6rem, 1.2rem + 6.6vw, 7.25rem); line-height: .98; letter-spacing: -.035em; }
.h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.25rem); line-height: 1.02; }
.h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.1; }
.h4 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; }
.lede { font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem); line-height: 1.4; font-family: var(--font-head); font-weight: 400; letter-spacing: -.01em; }
.prose p { max-width: 62ch; }
.rule { border: 0; height: 1px; background: currentColor; opacity: .25; margin: 28px 0; transform-origin: left; }
.display {
  font-family: var(--font-head); font-weight: 500; line-height: .8; letter-spacing: -.05em;
  font-size: clamp(4.5rem, 1rem + 22vw, 21rem); text-align: center; white-space: nowrap; margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--yellow); --b-fg: var(--ink-deep);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; min-height: 52px;
  background: var(--b-bg); color: var(--b-fg);
  font: 600 1rem/1 var(--font-body);
  border: 2px solid var(--b-bg); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--secondary { --b-bg: transparent; --b-fg: var(--ink); border-color: currentColor; }
.btn--secondary:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--ink { --b-bg: var(--ink); --b-fg: var(--bg); }
.btn--ink:hover { background: var(--ink-deep); border-color: var(--ink-deep); }

.btn--sm { padding: 10px 16px; min-height: 44px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- header ---------- */
:root { --header-h: 84px; }
html { scroll-padding-top: 100px; }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 0; transition: padding .45s var(--ease);
  --nav-fg: var(--ink);
}

.site-header.menu-open { --nav-fg: var(--ink); }
.header-bar {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  min-height: var(--header-h); padding-inline: var(--gutter);
  color: var(--nav-fg);
  transition: min-height .45s var(--ease), padding .45s var(--ease), color .3s;
}
.header-bar::before {                      /* light tint from the logo: leaf green -> warm cream -> sky, plus a thin green-gold rule */
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 14px;
  background:
    linear-gradient(90deg, #8DC63F, #FFDC7E 55%, #CFE1F2) bottom / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(234 245 214 / .95) 0%, rgb(251 249 238 / .95) 48%, rgb(229 239 250 / .95) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), 0 18px 40px -22px rgba(27, 58, 99, .55);
  transition: opacity .35s, transform .45s var(--ease);
}
.site-header.is-scrolled { padding: 8px clamp(8px, 1.4vw, 24px) 0; }
.site-header.is-scrolled .header-bar { min-height: 64px; padding-inline: clamp(16px, 2vw, 28px); }
.site-header.is-scrolled .header-bar::before { opacity: 1; transform: none; }
.brand, .nav, .header-actions { position: relative; z-index: 2; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; justify-self: start; }
.brand img { width: 52px; height: auto; transition: width .4s var(--ease); }

.site-header.is-scrolled .brand img { width: 44px; }

.nav { justify-self: center; }
.nav-list { display: flex; align-items: center; gap: clamp(2px, 1.2vw, 20px); }
.nav-list > li > a, .more-btn {
  display: inline-flex; align-items: center; gap: 6px; position: relative;
  padding: 10px 14px; font: 600 1rem/1 var(--font-body); color: inherit;
  text-decoration: none; background: none; border: 0; border-radius: 999px; cursor: pointer;
}
.nav-list > li > a::after, .more-btn::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after, .more:hover .more-btn::after, .more-btn.is-current::after { transform: scaleX(1); }
.more-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.more { position: relative; }
.more:hover .more-btn svg, .more.is-open .more-btn svg { transform: rotate(180deg); }
.more-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; min-width: 230px; padding: 8px;
  background: var(--bg); color: var(--ink); border-radius: 14px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), 0 24px 48px -24px rgba(27, 58, 99, .55);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.more-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.more:hover .more-panel, .more:focus-within .more-panel, .more.is-open .more-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.more-panel a { display: block; padding: 12px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.more-panel a:hover, .more-panel a[aria-current="page"] { background: var(--yellow); color: var(--ink-deep); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, currentColor 55%, transparent); background: transparent; color: inherit; cursor: pointer;
  transition: background .25s, border-color .25s, width .4s var(--ease), height .4s var(--ease);
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); border-color: currentColor; }
.icon-btn svg { width: 20px; height: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 26px;
  border-radius: 999px; background: var(--ink-deep); color: var(--bg);
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background .3s, color .3s, transform .3s var(--ease), height .4s var(--ease);
}
.pill svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.pill:hover { transform: translateY(-2px); background: var(--ink); text-decoration: none; }
.pill:hover svg { transform: translateX(3px); }

.site-header.is-scrolled .icon-btn, .site-header.is-scrolled .pill { height: 46px; }
.site-header.is-scrolled .icon-btn { width: 46px; }

.menu-toggle { display: none; width: 52px; height: 52px; border: 1.5px solid color-mix(in srgb, currentColor 55%, transparent); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .2s; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-cta { display: none; }

@media (max-width: 1000px) {
  .header-bar { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; }
  .header-actions .pill { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: 1; justify-self: stretch; overflow-y: auto;
    padding: calc(var(--header-h) + 16px) var(--gutter) 40px; background: var(--bg); color: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .more-btn { width: 100%; font: 500 2rem/1.1 var(--font-head); padding: 16px 0; border-radius: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); justify-content: space-between; }
  .nav-list > li > a::after, .more-btn::after { display: none; }
  .more-btn { pointer-events: none; opacity: .6; font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .more-btn svg { display: none; }
  .more-panel { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0; background: transparent; min-width: 0; }
  .more-panel::before { display: none; }
  .more-panel a { font: 500 2rem/1.1 var(--font-head); padding: 16px 0; border-radius: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
  .more:hover .more-panel, .more:focus-within .more-panel { transform: none; }
  .nav-cta { display: inline-flex; margin-top: 28px; }
  .site-header.is-scrolled { padding: 6px 8px 0; }
}
@media (max-width: 480px) { .brand-name { font-size: 1.45rem; } .brand img { width: 44px; } .brand-sub { font-size: .54rem; } .icon-btn, .menu-toggle { width: 46px; height: 46px; } .header-actions { gap: 8px; } }

/* ---------- search overlay ---------- */
.search { position: fixed; inset: 0; z-index: 250; display: none; overflow-y: auto; padding: clamp(16px, 8vh, 110px) var(--gutter) 40px; background: color-mix(in srgb, var(--ink-deep) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.search.is-open { display: block; }
.search-box { max-width: 780px; margin: 0 auto; }
.search-field { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 999px; padding: 6px 8px 6px 26px; }
.search-field svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink-deep); font: 500 clamp(1.1rem, 1rem + 1vw, 1.6rem)/1.2 var(--font-head); min-height: 56px; }
.search-field input::placeholder { color: color-mix(in srgb, var(--ink) 60%, transparent); }
.search-field .icon-btn { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.search-label { color: var(--yellow); font: 700 .78rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; margin: 32px 4px 12px; }
.search-results { display: grid; gap: 8px; }
.search-results a { display: block; padding: 16px 22px; background: var(--bg); border-radius: 12px; text-decoration: none; color: var(--ink-deep); transition: background .2s, transform .25s var(--ease); }
.search-results a:hover, .search-results a:focus-visible { background: var(--yellow); transform: translateX(4px); text-decoration: none; }
.search-results strong { display: block; font: 500 1.3rem/1.2 var(--font-head); letter-spacing: -.01em; }
.search-results span { font-size: .92rem; opacity: .8; }
.search-empty { color: var(--bg); text-align: center; padding: 32px 0; opacity: .9; }

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

/* ---------- intro split ---------- */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sky); }
.media img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- split helpers ---------- */
.col-img { grid-column: 1 / span 5; position: relative; }
.col-txt { grid-column: 7 / span 6; }
.col-img .media { aspect-ratio: 4/4.6; }
.overlap { position: absolute; right: -8%; bottom: -8%; width: 52%; aspect-ratio: 4/3; border: 6px solid var(--yellow); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -24px rgba(27, 58, 99, .6); }
.overlap img { width: 100%; height: 100%; object-fit: cover; }
.section-title { max-width: 19ch; }
.split .h3 { margin-bottom: 20px; }

/* ---------- callouts (stats + features) ---------- */
.callouts { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 0; margin-top: 8px; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.callout { padding: 32px clamp(16px, 2vw, 32px) 8px 0; }
.callout + .callout { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.callout-num { font-family: var(--font-head); font-size: clamp(3rem, 1.5rem + 5vw, 6rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 12px; font-weight: 500; }

.callout p { margin: 0; max-width: 32ch; }

.note { font-size: .9rem; opacity: .85; margin-top: 20px; }
@media (max-width: 900px) {
  .callouts { grid-template-columns: repeat(2, 1fr); }
  .callout, .callout + .callout { padding: 28px 16px 12px 0; border-left: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
  .callout:nth-child(even) { padding-left: 16px; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
}
@media (max-width: 520px) {
  .callouts { grid-template-columns: 1fr; }
  .callout:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- pathways carousel ---------- */
.pathways { overflow: clip; }
.pathways .display { color: var(--ink); margin-bottom: clamp(-40px, -3vw, -12px); position: relative; z-index: 0; }
.carousel { display: flex; gap: clamp(12px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--ink) transparent; position: relative; z-index: 1; }
.card-path {
  flex: 0 0 min(440px, 82vw); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; min-height: 600px;
  transition: transform .4s var(--ease);
}
.card-path:hover { transform: translateY(-6px); text-decoration: none; }
.card-path-text { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-path h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.card-path p { margin: 0; }
.card-path .btn { align-self: flex-start; margin-top: auto; }
.card-path-media { aspect-ratio: 4/3.2; overflow: hidden; margin: 0 16px 16px; border-radius: var(--radius); }
.card-path-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-path:hover .card-path-media img { transform: scale(1.06); }
.carousel::after { content: ""; flex: 0 0 1px; }

@media (max-width: 900px) { .scorers { grid-template-columns: repeat(2, 1fr); } }

/* ---------- results ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.tab { font: 600 1rem/1 var(--font-body); padding: 12px 20px; min-height: 48px; border-radius: var(--radius); border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { background: color-mix(in srgb, var(--yellow) 60%, transparent); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.result-year { margin-top: 56px; }
.result-year > .h3 { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.result-year > .h3 small { font: 600 .95rem var(--font-body); letter-spacing: 0; opacity: .75; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; margin-top: 24px; }
.result-card { background: var(--white); border-radius: var(--radius); padding: 20px 16px 22px; text-align: center; position: relative; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); transition: transform .35s var(--ease), box-shadow .35s; }
.result-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(27, 58, 99, .55); }
.result-card img { width: 132px; aspect-ratio: 3 / 4; height: auto; margin: 0 auto 14px; border-radius: 12px; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--yellow); }
.result-card .marks { position: absolute; top: 12px; right: 12px; background: var(--ink); color: var(--yellow); font: 700 .95rem/1 var(--font-body); padding: 8px 10px; border-radius: 999px; }
.result-card h4 { font: 700 1.05rem/1.25 var(--font-body); letter-spacing: 0; margin: 0; }
.result-card p { margin: 4px 0 0; font-size: .85rem; opacity: .75; }
.result-card.top .marks { background: var(--yellow); color: var(--ink-deep); }
[hidden] { display: none !important; }

/* ---------- quote ---------- */
.quote-grid { grid-template-columns: minmax(180px, 320px) 1fr; align-items: center; }
.quote-portrait { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; }
.quote-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
blockquote { margin: 0; }
blockquote p { font-family: var(--font-head); font-size: clamp(1.6rem, 1.1rem + 2.2vw, 3.2rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 400; margin-bottom: 24px; }
blockquote footer, .cite { font-size: 1rem; }
.cite strong { display: block; font-size: 1.15rem; }
@media (max-width: 720px) { .quote-grid { grid-template-columns: 1fr; } .quote-portrait { max-width: 260px; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.gallery button { display: block; padding: 0; border: 0; background: var(--sky); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; width: 100%; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery .g-a { grid-column: span 7; aspect-ratio: 16/10; }
.gallery .g-b { grid-column: span 5; aspect-ratio: 4/3.4; }
.gallery .g-c { grid-column: span 4; aspect-ratio: 4/3.2; }
.gallery .g-d { grid-column: span 4; aspect-ratio: 4/3.2; }
.gallery .g-e { grid-column: span 4; aspect-ratio: 4/3.2; }
.gallery .g-f { grid-column: span 6; aspect-ratio: 16/10; }
.gallery .g-g { grid-column: span 6; aspect-ratio: 16/10; }
.gallery figcaption, .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(transparent, rgba(27, 58, 99, .85)); color: #fff; font-size: .9rem; font-weight: 600; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.gallery button:hover .cap, .gallery button:focus-visible .cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery .cap { opacity: 1; transform: none; } }
@media (max-width: 720px) { .gallery > * { grid-column: span 12 !important; aspect-ratio: 16/10 !important; } }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15, 32, 56, .94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox figure { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox img { max-height: 78vh; width: auto; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; text-align: center; font-size: 1rem; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink-deep); cursor: pointer; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; }
.lb-btn:hover { transform: scale(1.08); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: calc(var(--header-h) + clamp(32px, 5vw, 80px)) clamp(48px, 7vw, 96px); position: relative; overflow: clip; isolation: isolate; }
/* Brand colour, a deeper shade of it for the gradient, and its Canva book-and-leaf pattern */
.page-hero.bg-yellow { --ph-deep: #F6C54A; --ph-pattern: url("../images/pattern-yellow.jpg"); }
.page-hero.bg-lav    { --ph-deep: #A9D06E; --ph-pattern: url("../images/pattern-leaf.jpg"); }
.page-hero.bg-sky    { --ph-deep: #A8C7E8; --ph-pattern: url("../images/pattern-sky.jpg"); }
.page-hero.bg-moss   { --ph-deep: #ADCF9D; --ph-pattern: url("../images/pattern-moss.jpg"); }
.page-hero.bg-dawn   { --ph-deep: #F2B69B; --ph-pattern: url("../images/pattern-dawn.jpg"); }
.page-hero::before {                        /* pattern, fading out toward the text side */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--ph-pattern) center / 1200px auto repeat;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.9) 55%, #000 100%);
          mask-image: linear-gradient(100deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.9) 55%, #000 100%);
}
.page-hero::after {                         /* deeper-shade glow behind the photo */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(70vw, 900px); aspect-ratio: 1; right: -12%; top: 50%; translate: 0 -45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--ph-deep, transparent), transparent);
  opacity: .85;
}
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ph-media { margin: 0; position: relative; aspect-ratio: 4 / 3.3; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; border: 6px solid var(--bg); box-shadow: 0 30px 60px -30px rgba(27, 58, 99, .55); rotate: 2deg; }
.ph-media::before {                          /* offset outline echoing the colour */
  content: ""; position: absolute; inset: 0; border-radius: 22px; border: 2px solid var(--ink-deep); opacity: .25;
  translate: -14px 14px; rotate: -2deg;
}
@media (max-width: 860px) {
  .ph-grid { grid-template-columns: 1fr; }
  .ph-media { max-width: 520px; aspect-ratio: 16 / 10; }
  .page-hero::after { width: 110vw; right: -40%; top: 72%; }
}
.page-hero .h1 { max-width: 16ch; }
.page-hero .lede { max-width: 40ch; margin-top: 28px; }
.crumbs { font-size: .9rem; font-weight: 600; margin-bottom: 32px; display: flex; gap: 8px; }
.crumbs a { opacity: .75; }

/* ---------- info cards / lists ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.card h3 { margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }
.list-rows { border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.list-rows li { padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 16px; }
.list-rows strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
@media (max-width: 640px) { .list-rows li { grid-template-columns: 1fr; gap: 4px; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.step { counter-increment: step; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); position: relative; min-height: 300px; display: flex; flex-direction: column; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-size: clamp(3.5rem, 2rem + 5vw, 6rem); line-height: 1; letter-spacing: -.04em; margin-bottom: auto; opacity: .9; }
.step h3 { margin: 24px 0 10px; }
.step p { margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1.5px solid currentColor; font-weight: 600; font-size: .95rem; background: transparent; }
.chip--hq { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink-deep); background: var(--white); border: 2px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: var(--radius); padding: 14px 16px; min-height: 52px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 80%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .9rem; opacity: .85; margin: 0; }
.form-panel { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 48px); color: var(--ink-deep); }

/* ---------- contact list ---------- */
.contact-list li { padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); display: grid; gap: 4px; }
.contact-list .k { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.contact-list .v { font-family: var(--font-head); font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); line-height: 1.25; letter-spacing: -.01em; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

@media (max-width: 720px) { .trio { grid-template-columns: 1fr; }  }
.two-col { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.msg { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 24px; align-items: start; }
.msg .portrait { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; }
.msg .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.msg blockquote p { font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.25; }
@media (max-width: 560px) { .msg { grid-template-columns: 1fr; } .msg .portrait { max-width: 180px; } }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill-list li { padding: 9px 16px; border-radius: 999px; border: 1.5px solid currentColor; font-weight: 600; font-size: .95rem; }
/* ---------- new branch highlight (home + locations) ---------- */
.branch-new { background: var(--ink-deep); color: var(--bg); position: relative; overflow: clip; isolation: isolate; }
.branch-new::before {                        /* Canva pattern, faint, on the right */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/pattern-yellow.jpg") center / 1100px auto;
  opacity: .07; mix-blend-mode: screen;
}
.branch-new .h2 { color: var(--bg); max-width: 14ch; }
.branch-new .h2 em { font-style: italic; color: var(--yellow); }
.branch-new .lede { max-width: 34ch; margin-top: 20px; opacity: .9; }
.branch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.branch-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink-deep); font: 700 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.branch-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .6); animation: branch-pulse 1.8s infinite; }
@keyframes branch-pulse { 70% { box-shadow: 0 0 0 9px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
.branch-addr { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; font-style: normal; font-size: 1.05rem; line-height: 1.5; }
.branch-addr svg { width: 26px; height: 26px; flex: none; color: var(--yellow); margin-top: 2px; }
.branch-new .btn-row { margin-top: 32px; }
.branch-new .btn--secondary { --b-fg: var(--bg); }
.branch-new .btn--secondary:hover { background: var(--bg); color: var(--ink-deep); border-color: var(--bg); }
.branch-map { margin: 0; border-radius: 22px; overflow: hidden; border: 6px solid var(--yellow); aspect-ratio: 4 / 3.2; background: var(--sky); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.branch-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.branch-new--light { background: var(--sky); color: var(--ink-deep); }
.branch-new--light::before { opacity: .0; }
.branch-new--light .h2 { color: var(--ink-deep); }
.branch-new--light .h2 em { color: var(--ink); }
.branch-new--light .branch-addr svg { color: var(--ink); }
.branch-new--light .btn--secondary { --b-fg: var(--ink-deep); }
.branch-new--light .btn--secondary:hover { background: var(--ink-deep); color: var(--bg); border-color: var(--ink-deep); }
@media (prefers-reduced-motion: reduce) { .branch-badge .dot { animation: none; } }
@media (max-width: 860px) {
  .branch-grid { grid-template-columns: 1fr; }
  .branch-map { aspect-ratio: 4 / 3.4; }
}

.map-card { display: flex; flex-direction: column; gap: 14px; }
.map-card address { font-style: normal; font-size: 1.1rem; }
.landmarks { font-size: .95rem; opacity: .85; margin: 0; }

/* ---------- CTA box ---------- */
.cta-box { border-radius: var(--radius); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.cta-box .media { aspect-ratio: 4/3.4; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--bg); padding-block: clamp(56px, 8vw, 112px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 64px); }
.footer-brand img { width: 84px; margin-bottom: 16px; }

.footer-brand p { max-width: 32ch; opacity: .85; margin-top: 16px; }
.site-footer h2 { font: 700 .78rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 18px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(249, 249, 240, .2); font-size: .9rem; opacity: .85; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); color: var(--ink-deep); font-weight: 700; padding: 14px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 28px -12px rgba(27, 58, 99, .7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: translateY(-3px); text-decoration: none; }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0 round 8px); transition: clip-path 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round 8px); }

@media (max-width: 900px) {
  .col-img, .col-txt { grid-column: 1 / -1; }
  .col-img { max-width: 520px; }
  .overlap { right: 4%; bottom: -6%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  
}
@media print { .site-header, .wa-float, .marquee, .lightbox { display: none !important; } }

/* Monogram stand-in for a leader portrait until a clear photo is available */
.msg .portrait--mono {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgb(255 255 255 / .35), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--yellow); box-shadow: inset 0 0 0 4px rgb(255 220 126 / .55);
}
.msg .portrait--mono span { font: 500 clamp(2.6rem, 2rem + 3vw, 4.4rem) / 1 var(--font-head); letter-spacing: -.02em; }

/* ---------- home: simple split hero (text left, building right) ---------- */
.home-hero { background: var(--bg); padding-block: calc(var(--header-h) + clamp(40px, 6vw, 96px)) clamp(40px, 6vw, 88px); }
.hh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hh-eyebrow { margin: 0 0 clamp(20px, 3vw, 36px); font: 600 .82rem / 1.4 var(--font-body); letter-spacing: .06em; color: var(--ink-deep); }
.hh-title { margin: 0; max-width: 13ch; font: 500 clamp(2.6rem, 1.4rem + 4.2vw, 5.2rem) / 1.03 var(--font-head); letter-spacing: -.02em; color: var(--ink-deep); }
.hh-title em { font-style: normal; font-weight: 600; color: var(--ink); }
.hh-lede { margin: clamp(24px, 4vw, 48px) 0 0; max-width: 44ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.75; color: var(--ink-deep); }
.hh-btns { margin-top: clamp(28px, 4vw, 44px); }
.hh-media { margin: 0; aspect-ratio: 4 / 3.1; border-radius: 6px; overflow: hidden; background: var(--sky); box-shadow: 0 30px 60px -36px rgba(27, 58, 99, .5); }
.hh-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 860px) {
  .hh-grid { grid-template-columns: 1fr; }
  .hh-title { max-width: 16ch; }
}

/* announcement cards under the hero */
.home-anns { background: var(--bg); padding-bottom: clamp(40px, 6vw, 88px); }
.ann-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ann-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 132px;
  padding: 18px 20px 20px; border-radius: 14px; color: var(--ink-deep); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(27, 58, 99, .07);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ann-card--yellow { background: var(--yellow); }
.ann-card--lav    { background: var(--lavender); }
.ann-card--sky    { background: var(--sky); }
.ann-card--moss   { background: var(--moss); }
.ann-card:hover, .ann-card:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(27, 58, 99, .55); text-decoration: none; }
.ann-card__tag { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--ink-deep); color: var(--bg); font: 700 .66rem / 1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.ann-card__title { font: 500 clamp(1.05rem, .9rem + .45vw, 1.3rem) / 1.2 var(--font-head); padding-right: 30px; }
.ann-card__go { position: absolute; right: 16px; bottom: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.ann-card__go svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .ann-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ann-row { grid-template-columns: 1fr; } .ann-card { min-height: 0; } }

/* home page only: plainer sections (flat soft tints, no pattern or rings) */
body[data-page="home"] :is(.section, .cta-box, .card-path):is(.bg-yellow, .bg-lav, .bg-sky, .bg-moss, .bg-dawn) {
  background: rgb(var(--tone) / .35);
}
body[data-page="home"] .card-path:is(.bg-yellow, .bg-lav, .bg-moss) { background: rgb(var(--tone) / .5); }
body[data-page="home"] .branch-new--light { background: var(--white); }

/* ---------- official logo (horizontal lockup in the header, full logo in the footer) ---------- */
.brand .brand-logo { width: auto; height: 56px; transition: height .4s var(--ease); }
.site-header.is-scrolled .brand .brand-logo { width: auto; height: 46px; }
@media (max-width: 480px) { .brand .brand-logo { height: 40px; } }
.footer-logo { display: inline-block; padding: 16px 20px; margin-bottom: 8px; background: #fff; border-radius: 14px; }
.footer-brand .footer-logo img { width: 150px; height: auto; margin: 0; }

/* rotating headline word: each letter slides inside a clipped line (see js/site.js "rotating word") */
.rotate-word { display: inline-block; vertical-align: bottom; }
.rotate-word__box { display: inline-flex; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; white-space: nowrap; }
.rotate-word__ch { display: inline-block; will-change: transform, opacity; }

/* ---------- home: Araria branch, restyled to match the simple hero ---------- */
body[data-page="home"] .branch-new { background: var(--bg); padding-top: 0; }
body[data-page="home"] .branch-new .branch-grid {
  background: rgb(220 239 192 / .45); border-radius: 18px;
  padding: clamp(24px, 4vw, 56px); box-shadow: inset 0 0 0 1px rgba(27, 58, 99, .08);
}
body[data-page="home"] .branch-new .branch-badge {       /* quiet eyebrow like the hero's, keeping the live dot */
  background: none; padding: 0; margin-bottom: clamp(16px, 2.4vw, 28px);
  color: var(--ink-deep); font: 600 .82rem / 1.4 var(--font-body); letter-spacing: .06em; text-transform: none;
}
body[data-page="home"] .branch-new .h2 { max-width: 13ch; }
body[data-page="home"] .branch-new .h2 em { font-style: normal; font-weight: 500; color: var(--ink); }
body[data-page="home"] .branch-new .lede { font: 400 clamp(1rem, .95rem + .3vw, 1.15rem) / 1.75 var(--font-body); max-width: 44ch; opacity: 1; color: var(--ink-deep); }
body[data-page="home"] .branch-new .branch-addr { font-size: 1rem; }
body[data-page="home"] .branch-map {
  position: relative; border: 0; border-radius: 10px; aspect-ratio: 4 / 3.2;
  box-shadow: 0 30px 60px -36px rgba(27, 58, 99, .5), 0 0 0 1px rgba(27, 58, 99, .08);
}
.map-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px;
  background: var(--white); color: var(--ink-deep); border-radius: 12px; text-decoration: none;
  box-shadow: 0 12px 28px -14px rgba(27, 58, 99, .55), 0 0 0 1px rgba(27, 58, 99, .08);
  transition: transform .25s var(--ease);
}
.map-chip:hover, .map-chip:focus-visible { transform: translateY(-2px); text-decoration: none; }
.map-chip strong { display: block; font: 600 .95rem / 1.2 var(--font-body); }
.map-chip small { display: block; font-size: .78rem; opacity: .7; margin-top: 2px; }
.map-chip svg { width: 16px; height: 16px; color: var(--ink); }
.map-chip__dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 9px #fff0, 0 0 0 4px rgb(220 239 192); position: relative; }
.map-chip__dot::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--white); }

/* ---------- mobile fixes ---------- */
@media (max-width: 900px) {
  /* two-column 12-col layouts: pages set grid-column inline, so stack every child full width */
  .split { grid-template-columns: 1fr; }
  .split > * { grid-column: 1 / -1 !important; }
}
@media (max-width: 520px) {
  .ann-card__tag { font-size: .72rem; }
}
/* carousels: snap cards to the page margin, not the screen edge */
.carousel { scroll-padding-inline: var(--gutter); }

/* ---------- resizable navbar ----------
   Full-width bar at the top of the page. Past 100px of scroll (js/site.js) it springs into a
   narrower, centred, fully rounded floating pill with a deeper shadow; scrolling back up springs
   it out again. The bar itself is never transformed (the phone menu is a fixed overlay inside it),
   so it "floats down" through the header's top padding instead. */
:root { --nav-spring: cubic-bezier(.22, 1.18, .36, 1); }
.site-header { transition: padding .7s var(--nav-spring); }
.header-bar {
  max-width: 100%; margin-inline: auto;
  transition: max-width .7s var(--nav-spring), min-height .5s var(--ease), padding .5s var(--ease), color .3s;
}
.header-bar::before { border-radius: 0 0 14px 14px; transition: border-radius .6s var(--ease), box-shadow .5s, opacity .35s; }
.site-header.is-scrolled { padding: 16px 16px 0; }
.site-header.is-scrolled .header-bar { max-width: min(1120px, 100%); padding-inline: clamp(18px, 2vw, 26px); }
.site-header.is-scrolled .header-bar::before {
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(34, 42, 53, .06), 0 1px 1px rgba(0, 0, 0, .05), 0 0 0 1px rgba(34, 42, 53, .06),
              0 16px 68px rgba(47, 48, 55, .08), 0 1px 0 rgba(255, 255, 255, .6) inset;
}
@media (min-width: 1001px) {
  /* in the narrower pill the links sit between logo and actions instead of dead centre */
  .site-header.is-scrolled .header-bar { grid-template-columns: auto 1fr auto; }
  .site-header.is-scrolled .brand-place { display: none; }
  .site-header.is-scrolled .nav-list { gap: 2px; }
}

/* hover highlight that glides between links */
.nav-list { position: relative; }
.nav-list > li { position: relative; z-index: 1; }
.nav-glow {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; border-radius: 999px; pointer-events: none;
  background: rgb(255 255 255 / .75); box-shadow: 0 0 0 1px rgba(27, 58, 99, .08), 0 6px 16px -10px rgba(27, 58, 99, .45);
  opacity: 0;
  transition: left .45s var(--nav-spring), width .45s var(--nav-spring), top .3s, height .3s, opacity .25s;
}
.nav-list.has-glow .nav-glow { opacity: 1; }
.nav-list.has-glow > li > a:not([aria-current="page"])::after { transform: scaleX(0); }   /* the glow replaces the hover underline */

/* phones and tablets: the bar also tightens into a floating rounded pill */
@media (max-width: 1000px) {
  .site-header.is-scrolled { padding: 10px 12px 0; }
  .site-header.is-scrolled .header-bar { max-width: 100%; min-height: 62px; }
  .site-header.menu-open .header-bar::before { border-radius: 0 0 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .header-bar, .header-bar::before, .nav-glow { transition: none; }
}

/* ---------- text colour system ----------
   One colour per text role, applied site-wide. Dark areas (footer, search overlay, lightbox,
   WhatsApp button) are excluded so their text stays light. */
:root {
  --text-heading: #1B2F4E;
  --text-body:    #3F4B5C;
  --text-muted:   #6B7280;   /* cream background only, not on pastel cards */
  --text-link:    #2C5E96;
  --text-link-hover: #1F4A7A;
  --text-eyebrow: #2E6B2F;
  --text-accent-red: #C62828; /* numbers, ranks, "New" tags */
  --text-on-dark: #FFFFFF;
  --brand-green-light: #7CB342; /* icons/borders only, never text */
}
body { color: var(--text-body); }
.bg-lav { color: var(--text-body); }

/* headings (zero specificity, so components with their own heading colour keep it) */
:where(h1, h2, h3, h4, .h1, .h2, .h3, .h4):not(:where(.site-footer *, .search *, .lightbox *)) { color: var(--text-heading); }
.hh-title, .branch-new--light .h2 { color: var(--text-heading); }

/* links: plain text links only; nav, buttons and cards keep their own colours */
a:not(:where(.site-footer *, .search *, .lightbox *, .wa-float, .wa-float *, .skip-link)) { color: var(--text-link); }
a:not(:where(.site-footer *, .search *, .lightbox *, .wa-float, .wa-float *, .skip-link)):hover { color: var(--text-link-hover); }
.hh-title em, body[data-page="home"] .branch-new .h2 em, .branch-new--light .h2 em { color: var(--text-link); }
.card-path { color: var(--text-body); }
.ann-card { color: var(--text-heading); }

/* body copy */
.hh-lede, body[data-page="home"] .branch-new .lede { color: var(--text-body); }

/* eyebrows */
.eyebrow, .hh-eyebrow, body[data-page="home"] .branch-new .branch-badge { color: var(--text-eyebrow); }

/* muted: cream backgrounds only */
:where(small, .caption):not(:where(.site-footer *, .search *, .lightbox *)) { color: var(--text-muted); }
.note { color: var(--text-muted); opacity: 1; }
:is([class*="bg-"], .card, .step, .card-path, .ann-card, .result-card) :is(.note, small, .caption) { color: var(--text-body); }

/* accent red: numbers, ranks and "New" tags */
.callout-num { color: var(--text-accent-red); }
.result-card .marks { background: var(--white); color: var(--text-accent-red); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--text-accent-red) 35%, transparent); }
.result-card.top .marks { background: var(--yellow); color: var(--text-accent-red); box-shadow: none; }
.ann-card--yellow .ann-card__tag { background: var(--text-accent-red); color: var(--text-on-dark); }

/* buttons: primary = link blue with white text, outline = link blue */
.btn--ink { --b-bg: var(--text-link); --b-fg: var(--text-on-dark); }
.btn--ink:hover { background: var(--text-link-hover); border-color: var(--text-link-hover); color: var(--text-on-dark); }
.btn--secondary { --b-fg: var(--text-link); }
.btn--secondary:hover { background: var(--text-link); border-color: var(--text-link); color: var(--text-on-dark); }

/* ---------- black text (all pages) ----------
   Headings, body copy and the menu are black. Accents keep their colours: text links and the
   rotating word (blue), eyebrows (green), stats and marks (red), light text on dark areas. */
:root { --text-heading: #000; --text-body: #000; }
.site-header { --nav-fg: #000; }
:root { --text-muted: #000; }
.more-panel a, .more-panel a[aria-current="page"], .map-chip, .map-chip strong, .map-chip small,
label, .form-note, .branch-new .lede, .branch-new--light, .tab:not([aria-selected="true"]),
.ann-card, .card-path, .brand-place { color: #000; }

/* ---------- leaders reel (About: "Words from our leaders") ----------
   Counter-rotating portrait reel + per-letter quote rise, after the ScrollReelTestimonials
   component. Built by js/site.js ("leaders reel"); without JS the quotes simply stack. */
.leaders { background: var(--white); }
.reel {
  --cell: 128px; --gap: 8px;
  position: relative; display: flex; gap: 10px; align-items: stretch;
  max-width: 1060px; min-height: 360px; margin-top: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(27, 58, 99, .1); border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #FBFDF6, #F9F9F0 55%, #F3F8FD);
  box-shadow: inset 0 2px 0 #fff, 0 24px 60px -40px rgba(27, 58, 99, .35);
  outline: none;
}
.reel:focus-visible { box-shadow: 0 0 0 3px var(--text-link); }
.reel-stage {
  position: relative; flex: 0 0 400px; overflow: hidden; display: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
}
.reel.is-live .reel-stage { display: block; }
.reel-cols { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--gap); }
.reel-col { display: flex; flex-direction: column; gap: var(--gap); flex: none; will-change: transform; }
.reel.is-ready .reel-col { transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.reel-cell {
  width: var(--cell); height: var(--cell); flex: none; border-radius: 12px;
  border: 1px solid rgba(27, 58, 99, .08); filter: blur(1px);
  background: linear-gradient(to bottom, rgb(220 239 192 / .55), #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), inset 0 2px 0 #fff;
}
.reel-col:first-child .reel-cell:nth-child(3n+1), .reel-col:last-child .reel-cell:nth-child(3n+2) { background: linear-gradient(to bottom, rgb(207 225 242 / .6), #fff); }
.reel-col:first-child .reel-cell:nth-child(3n+2), .reel-col:last-child .reel-cell:nth-child(3n) { background: linear-gradient(to bottom, rgb(255 220 126 / .35), #fff); }
.reel-feat {
  position: relative; width: var(--cell); height: var(--cell); flex: none; border-radius: 12px; overflow: hidden; background: var(--moss);
  box-shadow: 0 1px 1px -.5px rgba(0,0,0,.18), 0 4px 3px -1.7px rgba(0,0,0,.17), 0 12px 8px -2.8px rgba(0,0,0,.15), 0 33px 23px -4px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,.7);
}
.reel-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.reel-feat::after {                        /* soft sheen in the brand colours (the component's purple, re-toned) */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; filter: blur(6px);
  background: linear-gradient(221deg, rgb(141 198 63 / 0) 32%, rgb(141 198 63 / .9) 41%, rgb(255 220 126 / .9) 47%, rgb(207 225 242 / .6) 54%, rgb(207 225 242 / 0) 65%);
}
.reel-content { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px, 3.5vw, 44px) clamp(20px, 3vw, 40px); }
.reel-mark { width: 44px; height: 44px; color: rgb(124 179 66 / .45); }
.reel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.reel.is-live .reel-list { display: grid; grid-template-areas: "stage"; gap: 0; }
.reel.is-live .reel-item { grid-area: stage; visibility: hidden; }     /* all items share one cell: the stage sizes to the tallest quote */
.reel.is-live .reel-item.is-current { visibility: visible; }
.reel-quote { margin: 0; max-width: 34ch; font: 400 clamp(1.25rem, 1rem + .9vw, 1.7rem) / 1.3 var(--font-head); letter-spacing: -.01em; color: var(--text-heading); }
.reel-author { margin: 20px 0 0; display: grid; gap: 4px; font-size: .95rem; line-height: 1.45; color: var(--text-body); max-width: 46ch; }
.reel-author strong { font-weight: 700; color: var(--text-heading); }
.reel-author span { font-size: .88rem; opacity: .8; }
.reel-ctrl { display: none; align-items: center; gap: 8px; }
.reel.is-live .reel-ctrl { display: flex; }
.reel-btn {
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); background: #fff; color: var(--text-heading);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), opacity .2s;
}
.reel-btn svg { width: 14px; height: 14px; }
.reel-btn:hover:enabled { transform: scale(1.08); }
.reel-btn:active:enabled { transform: scale(.94); }
.reel-btn:disabled { opacity: .35; cursor: default; }
.reel-count { margin-left: 8px; font: 600 .82rem var(--font-body); letter-spacing: .08em; color: var(--text-body); }

/* per-letter rise and block exit */
.reel-char { display: inline-block; opacity: 0; transform: translateY(.45em); animation: reel-char-rise .5s cubic-bezier(.22, 1, .36, 1) forwards; }
.reel-word { display: inline-block; white-space: nowrap; }
@keyframes reel-char-rise { to { opacity: 1; transform: translateY(0); } }
.reel-item.is-exiting { animation: reel-exit .24s ease-in forwards; }
.reel-item.is-exiting .reel-char { animation: none; opacity: 1; transform: none; }
@keyframes reel-exit { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-12px); } }

@media (max-width: 860px) {
  .reel { flex-direction: column; min-height: 0; }
  .reel-stage { flex: 0 0 224px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel.is-ready .reel-col { transition: none; }
  .reel-char { animation: none; opacity: 1; transform: none; }
  .reel-item.is-exiting { animation: none; }
}

/* leaders reel: white tiles, bigger portrait, tighter spacing */
.reel { --cell: 184px; --gap: 10px; min-height: 0; background: var(--white); }
.reel-stage { flex: 0 0 470px; }
.reel-cell,
.reel-col:first-child .reel-cell:nth-child(n), .reel-col:last-child .reel-cell:nth-child(n) {
  background: var(--white); filter: none;
  border: 1px solid rgba(27, 58, 99, .08);
  box-shadow: 0 1px 2px rgba(27, 58, 99, .05), 0 10px 24px -18px rgba(27, 58, 99, .25);
}
.reel-feat { border-radius: 14px; }
.reel-content { justify-content: center; gap: 22px; padding: clamp(28px, 3.5vw, 48px) clamp(22px, 3vw, 44px) clamp(28px, 3.5vw, 48px) 8px; }
.reel-mark { width: 38px; height: 38px; }
.reel-author { margin-top: 16px; }
@media (max-width: 860px) {
  .reel { --cell: 150px; }
  .reel-stage { flex: 0 0 280px; }
  .reel-content { padding: 8px 22px 28px; }
}

/* leaders reel: portraits shown in natural colour (no sheen overlay) */
.reel-feat::after { content: none; }

/* ---------- carousel arrows (see js/site.js "carousel arrows") ---------- */
.carousel { scrollbar-width: none; scroll-snap-type: x proximity; }
.carousel > :last-child { scroll-snap-align: end; }   /* the last card can rest against the right edge */
.carousel::-webkit-scrollbar { display: none; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  width: 52px; height: 52px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .18); background: var(--white); color: #000;
  box-shadow: 0 10px 24px -16px rgba(27, 58, 99, .45);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), background .2s, color .2s, border-color .2s, opacity .2s;
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover:enabled { background: var(--text-link); border-color: var(--text-link); color: #fff; transform: translateY(-2px); }
.carousel-btn:active:enabled { transform: scale(.94); }
.carousel-btn:disabled { opacity: .3; cursor: default; box-shadow: none; }
@media (max-width: 520px) { .carousel-btn { width: 46px; height: 46px; } }

/* ---------- results marquee (see js/site.js "results marquee") ---------- */
.result-grid.is-marquee {
  --gap: 20px;
  display: flex; gap: var(--gap); overflow: hidden; padding-block: 8px 12px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: flex; flex-shrink: 0; min-width: 100%; justify-content: space-around; gap: var(--gap);
  animation: marquee var(--duration, 36s) linear infinite;
}
.marquee-track > .result-card { flex: 0 0 210px; }
.result-grid.is-reverse .marquee-track { animation-direction: reverse; }
.result-grid.is-marquee:hover .marquee-track,
.result-grid.is-marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track > .result-card:hover { transform: translateY(-4px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--gap))); } }
@media (max-width: 520px) { .marquee-track > .result-card { flex-basis: 170px; } .result-grid.is-marquee { --gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- email forms (Admissions registration, Contact enquiry) ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* spam trap, hidden from people */
.choice-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-field legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .95rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field .choice { position: relative; font-weight: 600; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 16px; cursor: pointer;
  border-radius: 999px; border: 1.5px solid color-mix(in srgb, #000 22%, transparent); background: var(--white); color: #000;
  transition: background .2s, border-color .2s, color .2s;
}
.choice span::before {   /* radio dot */
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; box-shadow: inset 0 0 0 3px var(--white); background: transparent;
}
.choice:hover span { border-color: var(--text-link); }
.choice input:checked + span { background: var(--text-link); border-color: var(--text-link); color: #fff; }
.choice input:checked + span::before { background: #fff; box-shadow: inset 0 0 0 3px var(--text-link); border-color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 80%, transparent); }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.form-note.is-ok { color: var(--text-eyebrow); opacity: 1; font-weight: 600; }
.form-note.is-error { color: var(--text-accent-red); opacity: 1; font-weight: 600; }
