/* =====================================================================
   v3: 85% hero (inset frame), right-edge CTA tabs, scroll-trigger kit,
   marquee strips, story section. Loaded after main.css.
   ===================================================================== */
:root { --chrome: 132px; }

/* Header turns into an inset rounded bar once the page scrolls */
.header { transition: margin .35s var(--ease), border-radius .35s var(--ease), box-shadow .25s; }
.header.is-scrolled { margin-inline: 16px; border-radius: 0 0 24px 24px; }

/* Hero: viewport minus header chrome is about 85% of the screen, in a rounded inset frame */
.hero { background: var(--paper); padding: 14px; overflow: visible; --hp: 0; }
.hero__frame { position: relative; height: calc(100vh - var(--chrome) - 28px); height: calc(100svh - var(--chrome) - 28px); min-height: 500px; max-height: 940px; border-radius: calc(28px + var(--hp) * 22px); overflow: hidden; background: var(--brand-ink); transform: scale(calc(1 - var(--hp) * .05)); transform-origin: 50% 0; will-change: transform; box-shadow: 0 30px 60px rgba(4, 23, 47, .25); }
.hero__slides { position: absolute; inset: 0; height: auto; transform: translate3d(0, calc(var(--hp) * 70px), 0); }
.slide::after { background: linear-gradient(90deg, rgba(4, 23, 47, .82) 0%, rgba(4, 23, 47, .25) 55%, rgba(4, 23, 47, .1) 100%), linear-gradient(0deg, rgba(4, 23, 47, .7) 0%, transparent 38%); }
.slide__cap { left: clamp(28px, 5vw, 76px); bottom: clamp(96px, 12vh, 140px); max-width: 680px; }
.slide__cap strong { font-size: clamp(2rem, 4.8vw, 4.2rem); line-height: 1.06; }
.slide__cap .eyebrow { font-size: .78rem; }

.hero__index { position: absolute; z-index: 3; right: clamp(20px, 4vw, 64px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hero__index button { display: flex; align-items: center; justify-content: flex-end; gap: 14px; width: 100%; background: none; border: 0; padding: 9px 0; color: rgba(255, 255, 255, .62); font: 500 .8rem/1.2 var(--font); letter-spacing: .03em; text-align: right; cursor: pointer; transition: color .25s, transform .35s var(--ease); }
.hero__index button:hover { color: #fff; transform: translateX(-4px); }
.hero__index b { font: 700 .72rem/1 var(--font); color: var(--gold-bright); order: 3; width: 20px; }
.hero__index button::after { content: ""; order: 2; width: 18px; height: 2px; background: currentColor; transition: width .4s var(--ease), background .3s; }
.hero__index button[aria-current] { color: #fff; }
.hero__index button[aria-current]::after { width: 52px; background: var(--gold-bright); }
.hero__controls { right: clamp(20px, 4vw, 64px); bottom: 74px; }

.hero__ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: stretch; background: rgba(4, 23, 47, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: .84rem; }
.hero__ticker-label { flex: none; padding: 13px 24px; background: var(--gold-bright); color: var(--brand-ink); font: 700 .7rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; }
.hero__ticker .ticker__view { overflow: hidden; flex: 1; }
.hero__ticker li a { display: block; padding: 13px 34px; color: #fff; text-decoration: none; white-space: nowrap; font-weight: 500; }
.hero__ticker li a::before { content: "◆"; color: var(--gold-bright); margin-right: 12px; font-size: .7em; }
.hero__ticker li a:hover { text-decoration: underline; }
.hero__ticker:hover .ticker__track, .hero__ticker:focus-within .ticker__track { animation-play-state: paused; }
.hero__bar { z-index: 5; }

/* Fixed right-edge CTA tabs */
.sidecta { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; animation: ctaIn .9s .7s var(--ease) both; }
@keyframes ctaIn { from { transform: translate(110%, -50%); } to { transform: translate(0, -50%); } }
.sidecta__tab { display: block; padding: 20px 11px; border-radius: 12px 0 0 12px; text-decoration: none; font: 600 .72rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; box-shadow: -6px 8px 22px rgba(4, 23, 47, .22); transition: transform .3s var(--ease), padding .3s var(--ease); }
.sidecta__tab span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); }
.sidecta__tab:hover, .sidecta__tab:focus-visible { transform: translateX(-8px); padding-right: 19px; }
.sidecta__tab--gold { background: var(--gold-bright); color: var(--brand-ink); }
.sidecta__tab--blue { background: var(--brand); color: #fff; }
.sidecta__tab--deep { background: var(--brand-deep); color: #fff; }
.sidecta__tab--ink { background: #fff; color: var(--brand-deep); border: 1px solid var(--line); border-right: 0; }

/* Ghost words drifting with scroll */
.section > .wrap { position: relative; z-index: 1; }
.ghost { position: absolute; left: 0; top: 6%; z-index: 0; margin: 0; font: 700 clamp(7rem, 21vw, 21rem)/.8 var(--serif); color: transparent; -webkit-text-stroke: 2px rgba(10, 62, 124, .1); white-space: nowrap; pointer-events: none; user-select: none; transform: translate3d(var(--gx, 0px), 0, 0); will-change: transform; }

/* Word-by-word headline rise + underline draw */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .16em; margin-bottom: -.16em; }
.js [data-split] .wi { display: inline-block; transform: translateY(118%); transition: transform .95s var(--ease); }
.js [data-split].is-in .wi { transform: none; }
.section__title[data-split]::after { content: ""; display: block; width: 76px; height: 4px; border-radius: 3px; background: var(--gold-bright); margin-top: 22px; }
.js .section__title[data-split]::after { width: 0; transition: width 1s .7s var(--ease); }
.js .section__title[data-split].is-in::after { width: 76px; }
.sec-head--center .section__title[data-split]::after { margin-inline: auto; }

/* Clip-path curtain reveal; bounce trigger does not hide its element */
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 24px); transition: clip-path 1.15s var(--ease); }
.js [data-reveal="clip"].is-in { clip-path: inset(-60px round 24px); }
.js [data-reveal="bounce"] { opacity: 1; transform: none; }

/* Marquee fact strips */
.strips { position: relative; z-index: 1; overflow: hidden; padding: 4px 0 clamp(36px, 5vw, 64px); }
.strip { overflow: hidden; padding: 8px 0; }
.strip__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marq 52s linear infinite; }
.strip--rev .strip__track { animation-direction: reverse; animation-duration: 60s; }
.strips:hover .strip__track { animation-play-state: paused; }
.strip li { position: relative; padding: 0 30px; white-space: nowrap; font: 700 clamp(1.5rem, 3.4vw, 2.8rem)/1.25 var(--serif); color: var(--brand-deep); }
.strip li::after { content: "✦"; color: var(--gold-bright); margin-left: 60px; font-size: .62em; vertical-align: middle; }
.strip--rev li { color: transparent; -webkit-text-stroke: 1.5px var(--brand); }
@keyframes marq { to { transform: translateX(-50%); } }

/* "What's Your Story?" */
.story { background: radial-gradient(800px 520px at 12% 0%, rgba(224, 170, 62, .2), transparent 60%), radial-gradient(900px 620px at 96% 100%, rgba(70, 140, 230, .3), transparent 60%), var(--brand-ink); color: #fff; padding-block: var(--space) calc(var(--space) + 44px); }
.story__dots i { position: absolute; border-radius: 50%; background: var(--gold-bright); opacity: .85; animation: floaty 7s ease-in-out infinite; }
.story__dots i:nth-child(1) { width: 16px; height: 16px; left: 8%; top: 14%; }
.story__dots i:nth-child(2) { width: 10px; height: 10px; left: 22%; top: 30%; background: #fff; animation-delay: -2s; }
.story__dots i:nth-child(3) { width: 22px; height: 22px; right: 10%; top: 12%; background: transparent; border: 3px solid var(--gold-bright); animation-delay: -4s; }
.story__dots i:nth-child(4) { width: 12px; height: 12px; right: 24%; top: 34%; background: #8fb8f2; animation-delay: -1s; }
.story__dots i:nth-child(5) { width: 18px; height: 18px; left: 3%; top: 56%; background: transparent; border: 3px solid #fff; animation-delay: -3s; }
.story__dots i:nth-child(6) { width: 14px; height: 14px; right: 4%; top: 58%; animation-delay: -5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.story__head { position: relative; text-align: center; max-width: 900px; margin: 0 auto clamp(48px, 6vw, 92px); }
.story__title { font: 700 clamp(3rem, 8.8vw, 7.6rem)/1 var(--serif); letter-spacing: -.01em; margin: 6px 0 22px; color: #fff; }
.story__title strong { color: var(--gold-bright); font-weight: 700; white-space: nowrap; }
.story__lede { max-width: 56ch; margin: 0 auto; color: #cfdcf3; font-size: 1.02rem; }
.qm { display: inline-block; background: none; border: 0; padding: 0 .06em; color: #fff; font: inherit; line-height: inherit; cursor: pointer; transform-origin: 50% 100%; text-shadow: 0 0 44px rgba(224, 170, 62, .7); }
.story__title.is-in .qm { animation: qmJump 1.55s cubic-bezier(.3, .8, .4, 1) 3; }
@keyframes qmJump {
  0%   { transform: translateY(0) scale(1, 1) rotate(0); }
  8%   { transform: translateY(0) scale(1.14, .84) rotate(0); }
  22%  { transform: translateY(-.62em) scale(.9, 1.15) rotate(-9deg); }
  36%  { transform: translateY(0) scale(1.12, .88) rotate(2deg); }
  48%  { transform: translateY(-.24em) scale(.97, 1.05) rotate(5deg); }
  60%  { transform: translateY(0) scale(1.05, .95) rotate(0); }
  72%  { transform: translateY(-.08em) scale(1, 1); }
  100% { transform: translateY(0) scale(1, 1) rotate(0); }
}
.story__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.scard { position: relative; min-height: 520px; border-radius: 26px; overflow: hidden; isolation: isolate; background: var(--brand-deep); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); translate: 0 var(--dy, 0px); }
.scard:nth-child(2) { margin-top: 70px; }
.scard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); filter: saturate(.92); }
.scard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 23, 47, .05) 0%, rgba(4, 23, 47, .94) 72%); }
.scard:hover > img { transform: scale(1.07); }
.scard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; }
.scard h3 { font: 700 2.1rem/1.1 var(--serif); margin-bottom: 8px; }
.scard__body p:not(.eyebrow) { font-size: .88rem; color: #d6e2f7; margin-bottom: 16px; line-height: 1.6; }
.chips--light a { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .32); color: #fff; backdrop-filter: blur(4px); }
.chips--light a:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--brand-ink); }

/* Responsive */
@media (max-width: 1100px) {
  .hero__index { display: none; }
  .story__grid { grid-template-columns: 1fr 1fr; }
  .scard:nth-child(2) { margin-top: 0; }
  .scard:nth-child(3) { grid-column: 1 / 3; min-height: 420px; }
}
@media (max-width: 900px) {
  .sidecta { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; gap: 0; animation: ctaUp .6s .5s var(--ease) both; }
  .sidecta__tab { flex: 1; padding: 15px 6px; border-radius: 0; text-align: center; box-shadow: 0 -4px 16px rgba(4, 23, 47, .18); letter-spacing: .1em; }
  .sidecta__tab span { writing-mode: horizontal-tb; transform: none; }
  .sidecta__tab:hover, .sidecta__tab:focus-visible { transform: none; padding-right: 6px; }
  .sidecta__tab--ink { border: 0; border-top: 1px solid var(--line); }
  body { padding-bottom: 52px; }
}
@keyframes ctaUp { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 760px) {
  .hero { padding: 8px; }
  .hero__frame { height: calc(100svh - var(--chrome) - 16px - 52px); min-height: 440px; }
  .slide__cap { left: 22px; right: 22px; bottom: 138px; }
  .slide__cap strong { font-size: 1.9rem; }
  .hero__controls { left: 22px; right: auto; bottom: 74px; justify-content: flex-start; }
  .hero__ticker-label { display: none; }
  .story__grid { grid-template-columns: 1fr; }
  .scard:nth-child(3) { grid-column: auto; }
  .scard { min-height: 460px; translate: none; }
  .story__title { font-size: clamp(2.6rem, 14vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .strip__track, .story__dots i, .sidecta { animation: none !important; }
  .strip { overflow-x: auto; }
  .story__title.is-in .qm { animation: none; }
  .ghost { transform: none; }
  .js [data-split] .wi { transform: none; }
  .js [data-reveal="clip"] { clip-path: none; }
  .hero__frame, .hero__slides { transform: none; }
}

/* polish */
.hero__index button { text-shadow: 0 1px 12px rgba(4, 23, 47, .85), 0 0 3px rgba(4, 23, 47, .6); }
.hero__index button:not([aria-current]) { color: rgba(255, 255, 255, .78); }
.scard:nth-child(1) > img { object-position: 64% 40%; }

/* ---------- News cards v2: image-led, fade-in on entry, parallax image ---------- */
.news { width: clamp(270px, 24vw, 330px); }
.news a, .news button { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; height: clamp(340px, 52vh, 430px); padding: 0; overflow: hidden; border-radius: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 24px 50px rgba(0, 0, 0, .28); transition: transform .45s var(--ease), border-color .3s, box-shadow .3s, background .3s; }
.news a:hover, .news a:focus-visible { transform: translateY(-10px); border-color: var(--gold-bright); box-shadow: 0 34px 64px rgba(0, 0, 0, .42); background: rgba(255, 255, 255, .1); }
.news__media { position: relative; flex: none; height: 52%; overflow: hidden; display: block; }
.news__media img { position: absolute; left: -14%; top: 0; width: 128%; max-width: none; height: 100%; object-fit: cover; translate: var(--px, 0px) 0; transform: scale(var(--zs, 1)); transition: transform .9s var(--ease), opacity 1.1s ease, filter 1.2s ease; }
.news__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 23, 47, 0) 38%, rgba(7, 42, 87, .96) 100%); }
.news a:hover .news__media img { --zs: 1.09; }
.news__tag { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .93); color: var(--brand-deep); font: 600 .64rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.news__no { position: absolute; right: 18px; top: calc(52% - 42px); z-index: 2; font: 700 2.7rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold-bright); }
.news__body { position: relative; display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 14px; padding: 16px 22px 22px; text-align: left; }
.news__title { font-size: .95rem; line-height: 1.5; font-weight: 500; -webkit-line-clamp: 3; }
.news__go { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); font-weight: 600; font-size: .8rem; }
.news__go i { display: inline-block; font-style: normal; transition: transform .35s var(--ease); }
.news a:hover .news__go i, .news button:hover .news__go i { transform: translateX(7px); }
.news--more button { justify-content: center; align-items: flex-start; gap: 14px; padding: 28px; border: 2px dashed var(--gold-bright); background: rgba(224, 170, 62, .1); text-align: left; }
.news__more-no { font: 700 4.4rem/1 var(--serif); color: var(--gold-bright); }

/* fade-in on entry (JS adds .is-in when the card scrolls into view; --d staggers) */
.js .news:not(.news--more) { opacity: 0; transform: translateY(44px) scale(.95); transition: opacity .8s ease var(--d, 0ms), transform .95s var(--ease) var(--d, 0ms); }
.js .news.is-in { opacity: 1; transform: none; }
.js .news:not(.news--more) .news__media img { opacity: 0; filter: blur(16px) saturate(.9); }
.js .news.is-in .news__media img { opacity: 1; filter: none; }
.js .news:not(.news--more) .news__tag, .js .news:not(.news--more) .news__no, .js .news:not(.news--more) .news__body { opacity: 0; transform: translateY(16px); transition: opacity .7s ease calc(var(--d, 0ms) + .35s), transform .8s var(--ease) calc(var(--d, 0ms) + .35s); }
.js .news.is-in .news__tag, .js .news.is-in .news__no, .js .news.is-in .news__body { opacity: 1; transform: none; }

/* ---------- Hero scroll-trigger, modelled on cag.edu.gt (measured, not guessed) ----------
   The frame scrolls away normally; the photos inside zoom 1 -> ~1.24 as you scroll; the headline lifts and fades;
   a "scroll to explore" cue (line + travelling dot) fades out; the content fades up on load. */
.hero { --zoom: 1; }
.hero__frame { border-radius: 28px; transform: none; will-change: auto; }
.hero__slides { transform: scale(var(--zoom)); transform-origin: 50% 40%; will-change: transform; }
.hero__frame::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--brand-ink); opacity: calc(var(--hp) * .5); pointer-events: none; }
.hero__ticker, .hero__controls, .hero__index, .hero__scroll { z-index: 4; }

/* entrance: eyebrow, headline, button rise in one after another when a slide becomes active */
.slide__cap { opacity: 1; transform: none; transition: none; translate: 0 calc(var(--hp) * -70px); filter: opacity(calc(1 - var(--hp) * 1.35)); }
.slide__cap > * { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .9s var(--ease); }
.slide.is-active .slide__cap > * { opacity: 1; transform: none; }
.slide.is-active .slide__cap > :nth-child(1) { transition-delay: .35s; }
.slide.is-active .slide__cap > :nth-child(2) { transition-delay: .5s; }
.slide.is-active .slide__cap > :nth-child(3) { transition-delay: .7s; }
.slide__cap > .btn { display: inline-block; }

/* scroll-to-explore cue */
.hero__scroll { position: absolute; left: 50%; bottom: 74px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 .66rem/1 var(--font); letter-spacing: .24em; text-transform: uppercase; filter: opacity(calc(1 - var(--hp) * 3.2)); text-shadow: 0 1px 10px rgba(4, 23, 47, .7); }
.hero__scroll i { position: relative; display: block; width: 1px; height: 54px; background: rgba(255, 255, 255, .45); }
.hero__scroll i::after { content: ""; position: absolute; left: -4px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(224, 170, 62, .25); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
.hero__scroll:hover span { color: var(--gold-bright); }

/* About photo: parallax inside the arch (the next section's image moves, as on cag.edu.gt) */
.arch { position: relative; }
.arch img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; translate: 0 var(--fy, 0px); will-change: translate; }

@media (max-width: 1100px) { .hero__scroll { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__scroll i::after { animation: none; }
  .hero__slides { transform: none; }
  .hero__frame::after { display: none; }
  .slide__cap { translate: none; filter: none; }
  .slide__cap > * { opacity: 1; transform: none; }
  .arch img { translate: none; }
}

/* gallery crops: keep faces in frame for the portrait KG photo */
.accordion__item:nth-child(3) img { object-position: 50% 30%; }
.accordion__item:nth-child(2) img { object-position: 50% 40%; }

/* pinned mode: the viewport is locked, so scroll-snap must not nudge it sideways */
.hscroll.is-pinned .hscroll__viewport { scroll-snap-type: none; }
/* tighter card, and vary the crop so a repeated photo does not look identical */
.news a, .news button { height: clamp(330px, 47vh, 400px); }
.news__media { height: 56%; }
.news__no { top: calc(56% - 42px); }
.news:nth-child(3n + 1) .news__media img { object-position: 22% 30%; }
.news:nth-child(3n + 2) .news__media img { object-position: 52% 45%; }
.news:nth-child(3n) .news__media img { object-position: 82% 30%; }

@media (min-width: 900px) and (max-height: 780px) {
  .news a, .news button { height: 330px; }
  .news__title { -webkit-line-clamp: 2; }
}
@media (max-width: 899px) {
  .news { width: 272px; }
  .news a, .news button { height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .news:not(.news--more), .js .news:not(.news--more) .news__media img, .js .news:not(.news--more) .news__tag, .js .news:not(.news--more) .news__no, .js .news:not(.news--more) .news__body { opacity: 1; transform: none; filter: none; }
  .news__media img { translate: none; }
}

/* Corners section: editorial intro + refined cards (scoped to .section--corners) */
.section--corners { padding-block: clamp(48px, 5vw, 72px) clamp(56px, 6vw, 84px); background-color: #f1f5fb;
  background-image: radial-gradient(60% 420px at 78% 22%, rgba(214, 166, 58, .12), transparent 70%), radial-gradient(50% 380px at 0% 30%, rgba(16, 52, 103, .07), transparent 70%), linear-gradient(rgba(16, 52, 103, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 52, 103, .028) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px; }
.corners-intro { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 80px); align-items: center; margin-bottom: clamp(26px, 3vw, 36px); }
.corners-intro__text { max-width: 640px; }
.corners-intro .sec-head__lede { margin-top: 18px; font-size: 1.02rem; color: #63718a; max-width: 54ch; }
.corners-intro__num { position: relative; display: grid; place-items: center; width: clamp(150px, 15vw, 200px); aspect-ratio: 1; text-align: center; }
.corners-intro__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(214, 166, 58, .7); }
.corners-intro__ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(16, 52, 103, .22); }
.corners-intro__num strong { font: 700 clamp(3.6rem, 6vw, 5rem)/1 var(--serif); color: #103467; margin-top: -14px; }
.corners-intro__num small { position: absolute; bottom: 24%; left: 0; right: 0; font-size: .58rem; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: #a9771a; }
.section--corners .stack__card { margin-bottom: clamp(16px, 2vh, 20px); }
.section--corners .stack__inner { grid-template-columns: minmax(200px, 270px) 1fr; gap: clamp(24px, 3vw, 36px); padding: clamp(20px, 2.2vw, 28px); border: 1px solid #e1e8f2; border-top: 3px solid var(--accent); border-radius: 18px; box-shadow: 0 10px 30px rgba(9, 38, 77, .07); translate: 0 0; transition: translate .25s var(--ease), box-shadow .25s var(--ease); }
.section--corners .stack__inner:hover { translate: 0 -4px; box-shadow: 0 18px 42px rgba(9, 38, 77, .13); }
.section--corners .stack__media { overflow: hidden; border-radius: 14px; }
.section--corners .stack__media img { aspect-ratio: 4 / 3; border-radius: 14px; transition: transform .5s var(--ease); }
.section--corners .stack__inner:hover .stack__media img { transform: scale(1.04); }
.section--corners .stack__media figcaption { display: none; }
.section--corners .stack__card:nth-child(2) .stack__media img { object-fit: contain; background: #fff; padding: 10px; border: 1px solid #e1e8f2; }
.stack__no { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: .78rem; font-weight: 700; line-height: 1; letter-spacing: .14em; color: #a9771a; }
.stack__no::after { content: ""; flex: 0 0 34px; height: 1px; background: currentColor; opacity: .6; order: 1; }
.stack__no span { order: 2; color: #63718a; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .68rem; }
.section--corners .stack__body h3 { color: #09264d; margin-bottom: 6px; }
.section--corners .stack__body p:not(.stack__no) { color: #63718a; margin-bottom: 16px; }
.section--corners .chips { gap: 8px; }
.section--corners .chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: .84rem; font-weight: 500; color: #103467; background: #f4f7fc; border: 1px solid #e1e8f2; border-radius: 999px; transition: background .2s, border-color .2s, color .2s; }
.section--corners .chips a::after { content: "\2197"; font-size: .8em; opacity: .45; transition: opacity .2s, translate .2s; }
.section--corners .chips a:hover { background: #103467; color: #fff; border-color: #103467; }
.section--corners .chips a:hover::after { opacity: 1; translate: 2px -2px; }
.section--corners .chips a:focus-visible { outline: 3px solid #d6a63a; outline-offset: 2px; }
.section--corners .more-wrap { margin-top: 28px; }
@media (max-width: 860px) {
  .corners-intro { grid-template-columns: 1fr; }
  .corners-intro__num { width: 110px; justify-self: start; order: -1; }
  .corners-intro__num strong { font-size: 2.8rem; margin-top: 0; }
  .corners-intro__num small { display: none; }
  .section--corners .stack__inner { grid-template-columns: 1fr; }
  .section--corners .stack__media img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .section--corners .stack__inner, .section--corners .stack__media img, .section--corners .chips a { transition: none; }
  .section--corners .stack__inner:hover { translate: 0 0; }
  .section--corners .stack__inner:hover .stack__media img { transform: none; }
}

/* Discover section: intro + refined bento (scoped to .section--discover) */
.section--discover { padding-block: clamp(48px, 5vw, 64px) clamp(60px, 6vw, 84px);
  background-color: #fbf9f4;
  background-image: radial-gradient(520px 340px at 94% 0%, rgba(214, 166, 58, .16), transparent 70%), linear-gradient(180deg, transparent 70%, rgba(16, 52, 103, .05)); }
.discover-intro { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 3.6vw, 48px); }
.discover-intro__text { max-width: 660px; }
.discover-intro .sec-head__lede { margin-top: 16px; max-width: 56ch; color: #63718a; }
.discover-intro__mark { margin: 0; display: grid; place-items: center; width: 132px; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(214, 166, 58, .75); text-align: center; align-content: center; gap: 2px; }
.discover-intro__mark span { font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #a9771a; }
.discover-intro__mark strong { font: 700 1.1rem/1.1 var(--serif); color: #103467; }
.section--discover .bento { grid-template-columns: 1.5fr 1fr; grid-template-rows: 250px 270px; gap: 20px; }
.section--discover .tile { border-radius: 20px; box-shadow: 0 12px 32px rgba(9, 38, 77, .12); transition: box-shadow .25s var(--ease), translate .25s var(--ease); }
.section--discover .tile:hover { box-shadow: 0 20px 46px rgba(9, 38, 77, .2); }
.section--discover .tile--img:hover { translate: 0 -3px; }
.section--discover .tile--img img { filter: none; transition: transform .6s var(--ease); }
.section--discover .tile--img:hover img { filter: none; transform: scale(1.05); }
.section--discover .tile--img::after { background: linear-gradient(180deg, transparent 40%, rgba(9, 38, 77, .88)); }
.section--discover .tile__body { left: 30px; right: 30px; bottom: 28px; }
.section--discover .tile small { margin-bottom: 8px; color: #e8bd5c; }
.section--discover .tile em { margin-top: 8px; color: #e4ecfa; }
.tile__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding-bottom: 3px; font-size: .84rem; font-weight: 600; border-bottom: 1px solid rgba(232, 189, 92, .8); }
.tile__cta i { font-style: normal; transition: translate .25s var(--ease); }
.tile--big:hover .tile__cta i { translate: 6px 0; }
.section--discover .tile--text { background: radial-gradient(420px 260px at 100% 0%, rgba(214, 166, 58, .16), transparent 70%), linear-gradient(155deg, #103467, #09264d); padding: 32px 30px; justify-content: center; border-top: 3px solid #d6a63a; }
.section--discover .tile--text small { color: #e8bd5c; }
.section--discover .tile--text p { font-size: .9rem; line-height: 1.7; margin: 12px 0 16px; color: #d7e2f6; }
.section--discover .tile--text .link-arrow:focus-visible, .section--discover .tile:focus-visible { outline: 3px solid #d6a63a; outline-offset: 3px; }
@media (max-width: 1024px) { .section--discover .bento { grid-template-columns: 1.2fr 1fr; grid-template-rows: 260px 300px; } .discover-intro__mark { width: 112px; } }
@media (max-width: 860px) {
  .discover-intro { grid-template-columns: 1fr; }
  .discover-intro__mark { display: none; }
  .section--discover .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .section--discover .tile--big { grid-row: auto; min-height: 340px; }
  .section--discover .tile--img:not(.tile--big) { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .section--discover .tile, .section--discover .tile--img img, .tile__cta i { transition: none; }
  .section--discover .tile--img:hover, .tile--big:hover .tile__cta i { translate: none; }
  .section--discover .tile--img:hover img { transform: none; }
}

/* Discover tiles: richer card treatment + simple hover (badge, gold rule, light sweep) */
.section--discover .tile--img { border: 1px solid rgba(255, 255, 255, .5); }
.section--discover .tile--img::before { content: "\2197"; position: absolute; top: 20px; right: 20px; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); color: #fff; font-size: 1.1rem; transition: background .25s var(--ease), color .25s var(--ease), rotate .25s var(--ease); }
.section--discover .tile--img:hover::before { background: #d6a63a; color: #09264d; border-color: #d6a63a; rotate: 45deg; }
.section--discover .tile--img .tile__body strong::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 10px; background: #d6a63a; transition: width .35s var(--ease); }
.section--discover .tile--img:hover .tile__body strong::after { width: 84px; }
.section--discover .tile--img:not(.tile--big) .tile__cta { margin-top: 12px; }
.section--discover .tile--img:focus-visible::before { background: #d6a63a; }
.section--discover .tile--img img { image-rendering: auto; }
@media (prefers-reduced-motion: reduce) { .section--discover .tile--img::before, .section--discover .tile--img .tile__body strong::after { transition: none; } .section--discover .tile--img:hover::before { rotate: none; } }
.section--discover .tile--img:not(.tile--big) img { object-position: 50% 12%; }
.section--discover .tile--img:not(.tile--big)::after { background: linear-gradient(180deg, transparent 18%, rgba(9, 38, 77, .55) 52%, rgba(9, 38, 77, .95) 100%); }

/* News: image-led overlay cards (photo fills the card; text sits on the photo) */
.news { width: clamp(290px, 26vw, 380px); }
.news a, .news button { height: clamp(400px, calc(100vh - 400px), 520px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, .22); background: var(--brand-deep); }
.news a:hover, .news a:focus-visible { transform: translateY(-6px); background: var(--brand-deep); }
.news a:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.news__media { position: absolute; inset: 0; height: auto; }
.news__media::after { background: linear-gradient(180deg, rgba(4, 23, 47, .5) 0%, rgba(4, 23, 47, 0) 24%, rgba(4, 23, 47, 0) 42%, rgba(7, 33, 69, .94) 100%); transition: opacity .3s; }
.news a:hover .news__media img { --zs: 1.07; }
.news__tag { left: 18px; top: 18px; padding: 6px 12px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(8px); }
.news__no { right: 18px; top: 14px; font-size: 2.1rem; opacity: .85; -webkit-text-stroke: 1px var(--gold-bright); }
.news__body { position: absolute; left: 0; right: 0; bottom: 0; flex: none; gap: 14px; padding: 0 24px 24px; justify-content: flex-end; transition: translate .3s var(--ease); }
.news__title { font-size: clamp(1.02rem, 1.2vw, 1.2rem); line-height: 1.38; font-weight: 600; -webkit-line-clamp: 4; text-shadow: 0 1px 12px rgba(4, 23, 47, .5); }
.news__go { padding-top: 12px; border-top: 1px solid rgba(224, 170, 62, .55); }
.news a:hover .news__body, .news a:focus-visible .news__body { translate: 0 -4px; }
.news a:hover .news__go { color: #fff; }
.news--more button { height: clamp(400px, calc(100vh - 400px), 520px); }
@media (max-width: 900px) { .news { width: clamp(280px, 42vw, 340px); } .news a, .news button, .news--more button { height: 440px; } }
@media (max-width: 560px) { .news { width: min(80vw, 330px); } .news a, .news button, .news--more button { height: 440px; } .news__title { font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { .news__body { transition: none; } .news a:hover .news__body { translate: none; } }

/* Leadership: "bookends" composition (scoped to .section--leaders).
   Full-width deep-navy band; headline centred between two mirrored leaf-shaped portraits; names sit directly on the navy. */
.section--leaders { position: relative; padding-block: clamp(56px, 6vw, 92px); color: #fff;
  background: radial-gradient(760px 420px at 50% -6%, rgba(214, 166, 58, .2), transparent 70%), radial-gradient(520px 420px at 0% 100%, rgba(70, 140, 230, .16), transparent 70%), linear-gradient(180deg, #0d3466, #09264d 72%); }
.lead-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .78fr) minmax(0, 1fr); column-gap: clamp(26px, 3.6vw, 56px); align-items: start; }
.lead-intro { grid-column: 2; grid-row: 1; align-self: center; text-align: center; padding-block: 8px; }
.lead-intro::before, .lead-intro::after { content: ""; display: block; width: 1px; height: clamp(40px, 6vw, 84px); margin-inline: auto; background: linear-gradient(180deg, transparent, #d6a63a); }
.lead-intro::after { background: linear-gradient(0deg, transparent, #d6a63a); }
.lead-intro .eyebrow { margin: 18px 0 12px; color: #e8bd5c; }
.lead-intro .section__title { text-wrap: balance; color: #fff; font-size: clamp(2.1rem, 3.5vw, 3.2rem); line-height: 1.1; }
.lead-intro .section__title[data-split]::after { margin-inline: auto; }
.lead-intro .sec-head__lede { margin: 16px auto 18px; color: #c4d2ec; font-size: .98rem; max-width: 30ch; }

.section--leaders .leader { position: relative; display: block; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; text-align: left; }
.section--leaders .leader::before { display: none; }
.section--leaders .leader--1 { grid-column: 1; grid-row: 1; }
.section--leaders .leader--2 { grid-column: 3; grid-row: 1; margin-top: clamp(30px, 4.5vw, 64px); }
.section--leaders .leader__photo { --r: clamp(70px, 11vw, 150px); position: relative; width: 100%; height: auto; padding: 0; border-radius: 0; background: none; aspect-ratio: 4 / 5; }
.section--leaders .leader__photo::before { content: ""; position: absolute; inset: 0; z-index: 0; translate: 14px 14px; border: 1.5px solid #d6a63a; border-radius: var(--r) 16px 16px 16px; transition: translate .35s var(--ease); }
.section--leaders .leader--2 .leader__photo::before { translate: -14px 14px; border-radius: 16px var(--r) 16px 16px; }
.section--leaders .leader__photo img { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: 50% 18%; border-radius: var(--r) 16px 16px 16px; box-shadow: 0 28px 56px rgba(0, 0, 0, .4); transition: transform .6s var(--ease); }
.section--leaders .leader--2 .leader__photo img { object-position: 50% 20%; border-radius: 16px var(--r) 16px 16px; }
.section--leaders .leader__photo::after { position: absolute; z-index: 2; bottom: 10px; font: 700 clamp(3rem, 5vw, 4.4rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); text-shadow: 0 2px 14px rgba(0, 0, 0, .25); pointer-events: none; }
.section--leaders .leader--1 .leader__photo::after { content: "01"; left: 18px; }
.section--leaders .leader--2 .leader__photo::after { content: "02"; right: 18px; }
.section--leaders .leader:hover .leader__photo::before { translate: 7px 7px; }
.section--leaders .leader--2:hover .leader__photo::before { translate: -7px 7px; }
.section--leaders .leader:hover .leader__photo img { transform: scale(1.02); }

.section--leaders .leader__body { position: static; width: auto; margin: 0; padding: clamp(26px, 2.6vw, 34px) 4px 0; background: none; border: 0; box-shadow: none; translate: none; }
.section--leaders .leader--2 .leader__body { text-align: right; }
.section--leaders .leader .eyebrow { margin-bottom: 10px; color: #e8bd5c; font-size: .68rem; }
.section--leaders .leader h3 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.14; color: #fff; margin-bottom: 10px; }
.section--leaders .leader__title { color: #9fb4da; font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.section--leaders .leader__links { gap: 10px; }
.section--leaders .leader--2 .leader__links { justify-content: flex-end; }
.section--leaders .leader .btn { min-width: 112px; justify-content: center; padding: 10px 22px; font-size: .84rem; }
.section--leaders .leader .btn--primary { background: #d6a63a; color: #09264d; border-color: #d6a63a; }
.section--leaders .leader .btn--primary:hover { background: #fff; border-color: #fff; }
.section--leaders .leader .btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.section--leaders .leader .btn--ghost:hover { background: #fff; color: #09264d; }
.section--leaders .leader .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 1000px) {
  .lead-stage { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .lead-intro { grid-column: 1 / -1; grid-row: 1; }
  .lead-intro::before, .lead-intro::after { display: none; }
  .lead-intro .eyebrow { margin-top: 0; }
  .lead-intro .sec-head__lede { max-width: 46ch; }
  .section--leaders .leader--1 { grid-column: 1; grid-row: 2; }
  .section--leaders .leader--2 { grid-column: 2; grid-row: 2; margin-top: 36px; }
}
@media (max-width: 640px) {
  .lead-stage { grid-template-columns: 1fr; row-gap: 48px; }
  .section--leaders .leader--1, .section--leaders .leader--2 { grid-column: 1; margin-top: 0; padding-right: 14px; }
  .section--leaders .leader--1 { grid-row: 2; } .section--leaders .leader--2 { grid-row: 3; }
  .section--leaders .leader--2 .leader__body { text-align: left; }
  .section--leaders .leader--2 .leader__links { justify-content: flex-start; }
  .section--leaders .leader__photo::before { translate: 10px 10px; } .section--leaders .leader--2 .leader__photo::before { translate: 10px 10px; }
  .section--leaders .leader--2 .leader__photo img { border-radius: var(--r) 16px 16px 16px; }
  .section--leaders .leader--2 .leader__photo::before { border-radius: var(--r) 16px 16px 16px; }
  .section--leaders .leader--2 .leader__photo::after { right: auto; left: 18px; }
}
@media (prefers-reduced-motion: reduce) { .section--leaders .leader__photo::before, .section--leaders .leader__photo img { transition: none; } .section--leaders .leader:hover .leader__photo img { transform: none; } }
@media (min-width: 761px) and (max-width: 1320px) { .section--leaders .leader--2 .leader__body { padding-right: 48px; } .section--leaders .leader--2 .leader__photo { width: calc(100% - 48px); margin-left: auto; } }

/* Leadership: light, simple version (overrides the navy band colours above) */
.section--leaders { background: #fcfbf8; color: #17345b; border-top: 1px solid #e8e2d4; }
.lead-intro::before { background: linear-gradient(180deg, transparent, #d6a63a); }
.lead-intro .eyebrow { color: #a9771a; }
.lead-intro .section__title { color: #09264d; }
.lead-intro .sec-head__lede { color: #63718a; }
.section--leaders .leader__photo img { box-shadow: 0 18px 40px rgba(9, 38, 77, .18); }
.section--leaders .leader__photo::after { -webkit-text-stroke: 1.5px #fff; }
.section--leaders .leader .eyebrow { color: #a9771a; }
.section--leaders .leader h3 { color: #09264d; }
.section--leaders .leader__title { color: #63718a; }
.section--leaders .leader .btn--primary { background: #103467; color: #fff; border-color: #103467; }
.section--leaders .leader .btn--primary:hover { background: #09264d; border-color: #09264d; }
.section--leaders .leader .btn--ghost { background: transparent; color: #103467; border: 1.5px solid #103467; }
.section--leaders .leader .btn--ghost:hover { background: #103467; color: #fff; }
.section--leaders .leader .btn:focus-visible { outline: 3px solid #d6a63a; outline-offset: 3px; }
.section--leaders .leader__photo::after { content: none; }
.section--leaders .leader--1 .leader__photo::after, .section--leaders .leader--2 .leader__photo::after { content: none; }

/* Section seams: edge colours must equal the neighbouring section's background */
.edge--ivory { color: #fcfbf8; } .edge--warm { color: #fbf9f4; }
.strips.bg-tint { background-color: #f1f5fb; }
/* Vision & Mission: darken the photo toward the wave above it so the seam is invisible */
.band--vm::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 34%; background: linear-gradient(180deg, #072a57 6%, rgba(7, 42, 87, 0)); pointer-events: none; }
.section--leaders { border-top: 0; }

/* ---- Admissions call to action (scoped to .admit) ---- */
.admit { --slant: clamp(34px, 5vw, 72px); position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #072a57; margin-top: calc(var(--slant) * -1); padding-block: calc(clamp(72px, 8vw, 120px) + var(--slant)) clamp(72px, 8vw, 120px); clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%); }
.admit__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.admit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 42, 87, .96) 8%, rgba(7, 42, 87, .78) 48%, rgba(7, 42, 87, .45) 100%); }
.admit__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.admit .section__title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; max-width: 15ch; }
.admit__lede { margin: 18px 0 0; max-width: 40ch; color: #d3e0f6; font-size: 1.05rem; }
.admit__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admit__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-radius: 16px; color: #fff; text-decoration: none; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), translate .25s var(--ease); }
.admit__link i { font-style: normal; transition: translate .25s var(--ease); }
.admit__link:hover, .admit__link:focus-visible { background: #fff; color: #09264d; border-color: #fff; translate: 4px 0; }
.admit__link:hover i { translate: 6px 0; }
.admit__link--lead { background: #d6a63a; color: #09264d; border-color: #d6a63a; font-size: 1.08rem; padding-block: 22px; }
.admit__link--lead:hover, .admit__link--lead:focus-visible { background: #fff; }
.admit__link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 860px) { .admit__inner { grid-template-columns: 1fr; } .admit::before { background: linear-gradient(180deg, rgba(7, 42, 87, .94), rgba(7, 42, 87, .72)); } }
@media (prefers-reduced-motion: reduce) { .admit__link, .admit__link i { transition: none; } .admit__link:hover { translate: none; } }

/* ---- Footer: refined hierarchy (shared component; only colours, spacing and type changed) ---- */
.footer { position: relative; padding-top: clamp(56px, 6vw, 88px); background: linear-gradient(180deg, #04172f, #031024); }
.footer__grid { grid-template-columns: 1.5fr 1.1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.footer__logo img { height: 64px; border-radius: 8px; }
.footer__head { position: relative; padding-bottom: 12px; margin-bottom: 18px; color: #e8bd5c; }
.footer__head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: #d6a63a; }
.footer p, .footer address, .footer li { line-height: 1.7; }
.footer li a { color: #c4d1ea; transition: color .2s, padding-left .2s; }
.footer li a:hover { color: #fff; text-decoration: none; padding-left: 4px; }
.footer a:focus-visible { outline: 3px solid #d6a63a; outline-offset: 3px; border-radius: 4px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Card deck: pinned scene, tilted coloured cards leave one by one (motion set by home.js) */
.deck { position: relative; background: #faf7f0; padding-block: clamp(48px, 6vw, 80px); }
.deck__stage { position: relative; display: grid; justify-items: center; align-content: center; gap: 28px; }
.deck__eyebrow { position: relative; z-index: 0; margin: 0; }
.deck__title { position: relative; z-index: 0; margin: 0; font: 700 clamp(2.4rem, 7.4vw, 7.4rem)/1.05 var(--serif); letter-spacing: -.02em; color: #0a3e7c; white-space: nowrap; text-align: center; }
.deck__cards { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; display: grid; gap: 16px; width: min(560px, 100%); padding-inline: 20px; box-sizing: border-box; }
.dcard { display: flex; flex-direction: column; gap: 18px; min-height: 220px; padding: 20px 20px 24px; border-radius: 28px; box-shadow: 0 24px 50px rgba(4, 23, 47, .2); transform-origin: 50% 60%; }
.dcard__img { position: relative; flex: 1 1 auto; min-height: 0; margin: 0; border-radius: 16px; overflow: hidden; background: #fff; }
.dcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dcard__img--logo img { object-fit: contain; padding: 8px; box-sizing: border-box; }
.dcard__no { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #04172f; font: 600 .72rem/1.2 var(--font); letter-spacing: .08em; }
.dcard p { margin: 0; font: 600 clamp(1.05rem, 1.7vw, 1.3rem)/1.28 var(--font); }
.dcard--ink { background: #04172f; color: #e8bd5c; }
.dcard--blue { background: #0a3e7c; color: #f3d98f; }
.dcard--teal { background: #1f6f78; color: #fff; }
.dcard--plum { background: #8a2b3d; color: #fff; }
.dcard--gold { background: #e0aa3e; color: #04172f; }
.js .deck { height: 400vh; padding-block: 0; }
.js .deck__stage { position: sticky; top: var(--hdr, 0px); height: calc(100vh - var(--hdr, 0px)); overflow: hidden; gap: 0; }
.js .deck__eyebrow { position: absolute; top: 9%; left: 0; right: 0; text-align: center; }
.js .deck__title { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 96vw; }
.js .deck__cards { display: block; width: min(420px, 76vw); aspect-ratio: 1; padding: 0; }
.js .dcard { position: absolute; inset: 0; min-height: 0; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .js .deck { height: auto; padding-block: clamp(48px, 6vw, 80px); }
  .js .deck__stage { position: relative; top: auto; height: auto; overflow: visible; gap: 28px; }
  .js .deck__eyebrow, .js .deck__title { position: relative; top: auto; left: auto; right: auto; translate: none; }
  .js .deck__cards { display: grid; width: min(560px, 100%); aspect-ratio: auto; padding-inline: 20px; }
  .js .dcard { position: relative; inset: auto; min-height: 220px; }
  .js .dcard__img { flex: none; aspect-ratio: 4 / 3; }
  .js .deck__title { width: auto; white-space: normal; }
}
.dcard__img { aspect-ratio: 4 / 3; }
.js .dcard__img { aspect-ratio: auto; }
@media (max-width: 700px) { .js .deck__title { white-space: normal; font-size: 11vw; top: 17%; translate: -50% 0; } .js .deck__cards { margin-top: 26vh; } }
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { .js .deck__title { top: auto; translate: none; font-size: 11vw; } .js .deck__cards { margin-top: 0; } }

/* Admissions pop-up (original homepage shows this poster on load) */
.leader__bio { margin: 0 0 18px; color: #63718a; max-width: 52ch; }
.popup { padding: 0; border: 0; border-radius: 16px; background: #fff; max-width: min(460px, 92vw); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(4, 23, 47, .5); }
.popup::backdrop { background: rgba(4, 23, 47, .6); }
.popup img { display: block; width: 100%; height: auto; }
.popup__close { display: block; margin: 12px auto; }

.footer__map { margin-top: clamp(32px, 4vw, 48px); }
.footer__map iframe { display: block; width: 100%; height: clamp(220px, 28vw, 320px); border: 0; border-radius: 16px; background: #0a2a52; }

/* Deck headline: split in two so the card sits in the gap between the halves */
.js .deck__title { display: flex; justify-content: center; align-items: baseline; gap: calc(min(420px, 76vw) + 64px); width: 98vw; font-size: clamp(2rem, 5.2vw, 5.4rem); }
@media (max-width: 700px) { .js .deck__title { display: block; gap: 0; width: 96vw; } }
@media (prefers-reduced-motion: reduce) { .js .deck__title { display: block; gap: 0; width: auto; } }

.deck { --cw: min(420px, 76vw); }
@media (min-width: 701px) and (max-width: 1200px) { .deck { --cw: 34vw; } }
.js .deck__cards { width: var(--cw); }
.js .deck__title { gap: calc(var(--cw) + 56px); }
.js .deck__title span { flex: 1 1 0; white-space: nowrap; }
.js .deck__title span:first-child { text-align: right; }
.js .deck__title span:last-child { text-align: left; }
@media (max-width: 700px) { .js .deck__title span { white-space: normal; } .js .deck__title span:first-child, .js .deck__title span:last-child { text-align: center; } }
@media (prefers-reduced-motion: reduce) { .js .deck__title span { white-space: normal; } .js .deck__title span:first-child, .js .deck__title span:last-child { text-align: center; } }

.js .deck__title { gap: calc(var(--cw) + 100px); }
@media (min-width: 701px) and (max-width: 1200px) { .js .deck__title { font-size: calc(5.8vw - 10px); } }
@media (min-width: 701px) and (max-width: 1200px) { .js .deck__title { width: 90vw; font-size: calc(5vw - 9px); } }

/* Deck headline 105px (scales down only when the screen is too narrow to fit both halves beside the card) */
.deck__eyebrow { font-size: 20px; }
@media (min-width: 1201px) { .js .deck__title { font-size: min(105px, calc((98vw - 520px) / 10.8)); } }

/* Deck colours: the Golden Jubilee card keeps the gold; the rest are light pastels */
.dcard--gold { background: #e0aa3e; color: #04172f; }
.dcard--sky { background: #d9e8fb; color: #0a2a52; }
.dcard--mint { background: #d6f0e4; color: #0d4a3a; }
.dcard--peach { background: #fde4d0; color: #6b3410; }
.dcard--lilac { background: #e6dff7; color: #3b2a6b; }
.dcard--sky, .dcard--mint, .dcard--peach, .dcard--lilac { box-shadow: 0 24px 50px rgba(4, 23, 47, .14), 0 0 0 1px rgba(4, 23, 47, .06); }
@media (min-width: 1201px) { .js .deck__title { width: 94vw; font-size: min(105px, calc((94vw - 520px) / 10.8)); } }

/* Montserrat (self-hosted variable font) for the deck's small heading line */
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/montserrat.woff2") format("woff2"); }
.deck__eyebrow { font-family: "Montserrat", var(--font); font-weight: 600; }

/* Deck colours sampled from each card's photo: gold from the emblem, soft tints of the others' dominant colours */
.dcard--gold { background: #ddb75c; color: #2b1f04; }
.dcard--sand { background: #f0dfcf; color: #5a3a1c; }   /* committee gate: warm tan path */
.dcard--rose { background: #e8dedc; color: #4a2f33; }   /* school entrance: mauve-brown gate */
.dcard--mint { background: #d6f2dc; color: #1c5a28; }   /* CBSE emblem: green */
.dcard--sage { background: #dfe7dc; color: #2f4a2f; }   /* library student: sage and wood tones */
.dcard--sand, .dcard--rose, .dcard--mint, .dcard--sage { box-shadow: 0 24px 50px rgba(4, 23, 47, .14), 0 0 0 1px rgba(4, 23, 47, .06); }

/* Deck colours: back to the original palette (gold first for the Golden Jubilee card) */
.dcard--gold { background: #e0aa3e; color: #04172f; }
.dcard--ink { background: #04172f; color: #e8bd5c; }
.dcard--blue { background: #0a3e7c; color: #f3d98f; }
.dcard--teal { background: #1f6f78; color: #fff; }
.dcard--plum { background: #8a2b3d; color: #fff; }
.dcard--ink, .dcard--blue, .dcard--teal, .dcard--plum, .dcard--gold { box-shadow: 0 24px 50px rgba(4, 23, 47, .2); }

/* Deck: soft vintage paper (aged-parchment texture tile + warm vignette) */
.deck { background: #f4ecd8 url("../img/paper-texture.jpg") repeat 0 0 / 600px 600px; }
.deck__stage { background: radial-gradient(ellipse 80% 75% at 50% 48%, rgba(255, 250, 235, .28) 0%, rgba(255, 250, 235, 0) 55%, rgba(139, 101, 52, .2) 100%); }
.deck__eyebrow { color: #8a5f12; }

/* Deck background v2: original vintage-paper image (grainy fibres, softly burnt edges) covering the pinned stage */
.deck { background: #ead9bd; }
.deck__stage { background: url("../img/paper-vintage.jpg") center / cover no-repeat #ead9bd; }
.deck__eyebrow { color: #8a5f12; }
@media (max-width: 700px) {
  .js .deck__eyebrow { font-size: 13px; letter-spacing: .1em; top: 7%; white-space: nowrap; }
  .js .deck__title { top: 15%; }
}

/* Engraved (letterpress) text on the paper: the SVG filters in home.php press the glyphs into the background */
.deck__filters { position: absolute; width: 0; height: 0; overflow: hidden; }
.deck__title { color: #b0803f; filter: url(#engrave); mix-blend-mode: multiply; }
.deck__eyebrow { color: #a9763a; filter: url(#engrave-sm); mix-blend-mode: multiply; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.deck__eyebrow::before, .deck__eyebrow::after { content: ""; flex: 0 1 clamp(40px, 15vw, 280px); height: 2px; background: #a9763a; }
.js .deck__eyebrow { left: 0; right: 0; }
@media (max-width: 700px) { .deck__eyebrow::before, .deck__eyebrow::after { flex-basis: 24px; } }

/* Playfair Display (self-hosted variable font) for the engraved "Golden Jubilee" line */
@font-face { font-family: "Playfair Display"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("../fonts/playfair-display.woff2") format("woff2"); }
.deck__eyebrow { font-family: "Playfair Display", "Times New Roman", serif; font-weight: 700; letter-spacing: .16em; }
@media (max-width: 700px) { .js .deck__eyebrow { letter-spacing: .1em; } }
.deck__eyebrow { font-variant-numeric: lining-nums; }

/* ===== Vintage cards: worn coloured cover, inset aged-paper face, ruled frame with corner ornaments, sepia photo overlay ===== */
.deck .dcard--gold  { --rim: #b88a3e; }
.deck .dcard--ink   { --rim: #5a3d22; }
.deck .dcard--blue  { --rim: #34507a; }
.deck .dcard--teal  { --rim: #35604c; }
.deck .dcard--plum  { --rim: #8c2f35; }
.deck .dcard { isolation: isolate; gap: 12px; padding: 24px 26px 22px; border-radius: 12px; color: #4d3213;
  background: var(--rim) url("../img/card-paper.jpg") center / cover; background-blend-mode: multiply;
  box-shadow: 0 20px 40px rgba(60, 35, 10, .38), 0 2px 5px rgba(60, 35, 10, .35), inset 0 0 14px rgba(40, 22, 6, .45); }
.deck .dcard::before { content: ""; position: absolute; inset: 9px; z-index: -1; border-radius: 6px; background: #efe0bf url("../img/card-paper.jpg") center / cover;
  box-shadow: inset 0 0 18px rgba(110, 70, 25, .5), 0 0 0 1px rgba(50, 28, 8, .4); }
.deck .dcard::after { content: ""; position: absolute; inset: 17px; border: 1.5px solid rgba(139, 96, 40, .6); border-radius: 3px; pointer-events: none;
  --o: #8b6028;
  background:
    linear-gradient(var(--o), var(--o)) 0 0 / 18px 3px no-repeat, linear-gradient(var(--o), var(--o)) 0 0 / 3px 18px no-repeat,
    linear-gradient(var(--o), var(--o)) 100% 0 / 18px 3px no-repeat, linear-gradient(var(--o), var(--o)) 100% 0 / 3px 18px no-repeat,
    linear-gradient(var(--o), var(--o)) 0 100% / 18px 3px no-repeat, linear-gradient(var(--o), var(--o)) 0 100% / 3px 18px no-repeat,
    linear-gradient(var(--o), var(--o)) 100% 100% / 18px 3px no-repeat, linear-gradient(var(--o), var(--o)) 100% 100% / 3px 18px no-repeat; }
.deck .dcard p { text-align: center; color: #4d3213; font: 600 clamp(.95rem, 1.3vw, 1.1rem) / 1.3 "Playfair Display", "Times New Roman", serif; text-shadow: 0 1px 0 rgba(255, 246, 224, .75); }
.deck .dcard__img { border-radius: 4px; background: #e6d3aa; border: 1px solid rgba(110, 70, 25, .55); box-shadow: 0 1px 0 rgba(255, 246, 224, .6); }
.deck .dcard__img img { filter: sepia(.72) saturate(.85) contrast(.95) brightness(1.03); }
.deck .dcard__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 45%, rgba(86, 52, 14, .5) 100%), url("../img/card-paper.jpg") center / cover;
  box-shadow: inset 0 0 20px rgba(80, 48, 12, .55); }
.deck .dcard__no { z-index: 2; border-radius: 3px; background: rgba(244, 232, 206, .92); color: #5a3a16; border: 1px solid rgba(139, 96, 40, .5); font: 600 .72rem / 1.2 "Playfair Display", serif; letter-spacing: .06em; }
/* logos (emblem, CBSE): sit on the paper itself, like ink pressed into it */
.deck .dcard__img--logo { background: transparent; border: 0; box-shadow: none; }
.deck .dcard__img--logo img { mix-blend-mode: multiply; filter: sepia(.35) saturate(1.05) contrast(1.05); padding: 4px; }
.deck .dcard__img--logo::after { background: none; box-shadow: none; }
@media (min-width: 701px) { .js .deck__cards { aspect-ratio: 5 / 4; } }

/* ===== Corners v4: wide cards (photo + icon badge, numbered header, icon chips, tinted art panel) ===== */
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section--corners .stack__inner { position: relative; grid-template-columns: minmax(230px, 380px) minmax(0, 1fr); align-items: center; gap: clamp(22px, 3vw, 44px); min-height: 270px; padding: 22px clamp(20px, 2.6vw, 34px) 22px 26px;
  border: 0; border-radius: 28px; overflow: hidden; background: linear-gradient(100deg, #fff 45%, color-mix(in srgb, var(--accent) 5%, #fff));
  box-shadow: 0 14px 36px rgba(9, 38, 77, .1), 0 0 0 1px rgba(9, 38, 77, .05); }
.section--corners .stack__inner:hover { translate: 0 0; box-shadow: 0 14px 36px rgba(9, 38, 77, .1), 0 0 0 1px rgba(9, 38, 77, .05); }
.section--corners .stack__inner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 30px; background: var(--accent); border-radius: 28px 0 0 28px; z-index: 0; }
.section--corners .stack__media { position: relative; z-index: 1; overflow: visible; border-radius: 0; }
.section--corners .stack__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid #fff; border-radius: 24px; box-shadow: 0 10px 26px rgba(9, 38, 77, .2); }
.section--corners .stack__inner:hover .stack__media img { transform: none; }
.stack__badge { position: absolute; left: 14px; bottom: 14px; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: 0 6px 16px rgba(9, 38, 77, .24); }
.stack__badge .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.section--corners .stack__body { position: relative; z-index: 1; }
.section--corners .stack__no { color: var(--accent); font-size: .95rem; letter-spacing: .1em; }
.section--corners .stack__no::after { flex-basis: 56px; opacity: .8; }
.section--corners .stack__no span { color: #6b7893; }
.section--corners .stack__body h3 { margin: 0 0 6px; font: 700 clamp(1.7rem, 2.6vw, 2.3rem) / 1.1 var(--serif); color: color-mix(in srgb, var(--accent) 55%, #09264d); }
.section--corners .stack__desc { margin: 0 0 16px; color: #5d6b85; font-size: .95rem; }
.section--corners .chips { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; margin: 0; padding: 0; }
.section--corners .chips a { gap: 10px; padding: 9px 14px 9px 12px; font-size: .85rem; font-weight: 500; color: #12305f; background: #fff; border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); box-shadow: 0 3px 8px rgba(9, 38, 77, .06); }
.section--corners .chips a .ico { width: 20px; height: 20px; color: var(--accent); }
.section--corners .chips a::after { content: "\203A"; font-size: 1.25em; line-height: 1; opacity: .45; translate: 0 -1px; }
.section--corners .chips a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.section--corners .chips a:hover .ico { color: #fff; }
.section--corners .chips a:hover::after { opacity: 1; translate: 2px -1px; }
.stack__art { position: absolute; top: 0; right: 0; bottom: 0; width: 36%; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, #fff), color-mix(in srgb, var(--accent) 5%, #fff));
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.stack__art .ico { position: absolute; right: 9%; bottom: 8%; width: clamp(110px, 12vw, 170px); height: auto; aspect-ratio: 1; color: var(--accent); stroke-width: .9; opacity: .22; }
.stack__art b { position: absolute; right: 26px; top: 12px; font: 700 clamp(3rem, 5vw, 4.4rem) / 1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 38%, transparent); }
.section--corners .more-wrap { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 36px); margin-top: 32px; }
.section--corners .more-wrap::before, .section--corners .more-wrap::after { content: ""; flex: 0 1 clamp(60px, 14vw, 200px); height: 1.5px; background: linear-gradient(90deg, transparent, #d6a63a); }
.section--corners .more-wrap::after { background: linear-gradient(270deg, transparent, #d6a63a); }
.section--corners #stack-more { display: inline-flex; align-items: center; gap: 14px; padding: 14px 18px 14px 30px; border: 0; border-radius: 999px; background: #0a2a57; color: #fff; font-weight: 600; box-shadow: 0 12px 26px rgba(10, 42, 87, .3); }
.section--corners #stack-more span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 50%; background: #e0aa3e; color: #0a2a57; font-size: .8rem; font-weight: 700; }
@media (max-width: 900px) {
  .section--corners .stack__inner { grid-template-columns: 1fr; padding: 34px 20px 22px; }
  .section--corners .stack__inner::before { right: 0; bottom: auto; width: auto; height: 14px; border-radius: 28px 28px 0 0; }
  .stack__art { display: none; }
}

/* ===== News coverflow ("Stories that make us proud") ===== */
.newsflow { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 7vw, 100px); color: #0a1f45;
  background: radial-gradient(900px 420px at 0% 10%, rgba(120, 170, 235, .22), transparent 70%), radial-gradient(900px 500px at 100% 0%, rgba(160, 200, 245, .25), transparent 70%), linear-gradient(180deg, #f3f8fe 0%, #eaf1fa 62%, #f4f1e6 100%); }
.newsflow__ghost { position: absolute; right: 7%; top: -2%; margin: 0; font: 700 clamp(7rem, 17vw, 16rem) / 1 var(--serif); letter-spacing: -.02em; color: rgba(10, 62, 124, .07); pointer-events: none; user-select: none; }
.newsflow__head { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 3vw, 44px); }
.newsflow__head .eyebrow { margin-bottom: 10px; }
.newsflow__h { margin: 0; font: 700 clamp(2.4rem, 4.8vw, 4.4rem) / 1.02 var(--serif); letter-spacing: -.01em; color: #0a1f45; max-width: 11ch; }
.newsflow__lede { margin: 0; max-width: 34ch; padding-left: clamp(18px, 2.4vw, 32px); border-left: 1px solid rgba(10, 31, 69, .25); color: #55627c; font-size: .95rem; line-height: 1.7; }
.newsflow__ui { display: flex; align-items: center; gap: 14px; }
.nf-btn { display: inline-grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(10, 31, 69, .22); background: rgba(255, 255, 255, .7); color: #0a1f45; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, color .2s, border-color .2s, translate .2s; }
.nf-btn .ico { width: 22px; height: 22px; stroke-width: 2; }
.nf-btn--solid { width: 64px; height: 64px; background: #0a2a57; border-color: #0a2a57; color: #fff; box-shadow: 0 12px 26px rgba(10, 42, 87, .3); }
.nf-btn--sm { width: 48px; height: 48px; }
.nf-btn:hover { background: #0a2a57; color: #fff; border-color: #0a2a57; }
.nf-btn:focus-visible, .nf-stage:focus-visible, .nf-ticks button:focus-visible { outline: 3px solid #d6a63a; outline-offset: 3px; }
.nf-count { margin-left: 10px; font-size: 1.15rem; color: #5b6a86; }
.nf-count b { font-size: 1.5rem; color: #0a1f45; }

/* cards: base = swipe list (phones / no-JS) */
.nf-stage { position: relative; z-index: 1; margin-top: clamp(20px, 3vw, 36px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -3px; }
.nf-stage::-webkit-scrollbar { display: none; }
.nf-track { display: flex; gap: 16px; list-style: none; margin: 0; padding: 24px 20px 34px; }
.nf-card { flex: 0 0 min(78vw, 320px); height: 430px; position: relative; scroll-snap-align: center; }
.nf-card[hidden] { display: none; }
.nf-card > a { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 16px; background: #0a2a57; color: #fff; text-decoration: none; box-shadow: 0 26px 46px rgba(9, 38, 77, .22); user-select: none; -webkit-user-drag: none; }
.nf-card > a > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .8s var(--ease); }
.nf-card > a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 23, 47, .45), rgba(4, 23, 47, 0) 34%); pointer-events: none; }
.nf-card__no { position: absolute; left: 22px; top: 16px; font: 500 2rem / 1 var(--serif); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.nf-card__panel { position: absolute; left: 0; right: 0; bottom: 0; height: 47%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; background: linear-gradient(180deg, #0c2d60, #07224d); color: #fff; clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%); transition: background .4s, color .4s; }
.nf-card__tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #8ccbf4; color: #06284f; font: 700 .64rem / 1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.nf-card__title { font: 600 clamp(1.2rem, 1.7vw, 1.5rem) / 1.14 var(--serif); padding-right: 46px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-card__dash { width: 30px; height: 3px; border-radius: 2px; background: #e0aa3e; }
.nf-card__go { position: absolute; right: 20px; bottom: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .25s, color .25s, translate .25s; }
.nf-card__go .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.nf-card > a:hover .nf-card__go { background: #fff; color: #0a2a57; translate: 3px 0; }
.nf-card > a:hover > img { transform: scale(1.05); }
.nf-card > a:focus-visible { outline: 3px solid #d6a63a; outline-offset: 3px; }
.nf-foot, .more-wrap--news { position: relative; z-index: 2; }
.nf-foot { display: none; }
.more-wrap--news { margin-top: 4px; text-align: center; }

/* flow mode (desktop, set by JS) */
@media (min-width: 900px) {
  .newsflow.is-flow .nf-stage { overflow: hidden; scroll-snap-type: none; height: 560px; margin-top: 8px; cursor: grab; touch-action: pan-y; }
  .newsflow.is-dragging .nf-stage { cursor: grabbing; }
  .newsflow.is-flow .nf-track { position: relative; display: block; height: 100%; padding: 0; }
  .newsflow.is-flow .nf-card { position: absolute; left: 50%; top: 50%; width: 330px; height: 430px; flex: none; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .45s; will-change: transform; }
  .newsflow.is-dragging .nf-card { transition: none; }
  .newsflow.is-flow .nf-card:not(.is-active) > a { box-shadow: 0 20px 34px rgba(9, 38, 77, .16); }
  .newsflow.is-flow .nf-card.is-active > a { box-shadow: 0 34px 60px rgba(9, 38, 77, .32); }
  /* cards after the focused one are pale, the focused one and earlier ones are navy */
  .newsflow.is-flow .nf-card:not(.is-read) .nf-card__panel { background: linear-gradient(180deg, #f8fbff, #eef3fa); color: #0a1f45; }
  .newsflow.is-flow .nf-card:not(.is-read) .nf-card__go { color: #0a1f45; }
  .newsflow.is-flow .nf-card:not(.is-read) .nf-card__tag { background: #a7d6f6; }
  .nf-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 3fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 48px); margin-top: 6px; }
  .nf-hint { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #3a4a68; }
  .nf-hint i { width: 36px; height: 1px; background: #0a1f45; }
  .nf-hint b { font-weight: 400; }
  .nf-foot__ui { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
  .nf-hint--r { margin-left: 10px; line-height: 1.6; }
  .nf-rail { position: relative; height: 56px; cursor: pointer; }
  .nf-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 3px; border-radius: 2px; background: rgba(10, 31, 69, .16); }
  .nf-rail__fill { position: absolute; left: 0; top: 14px; height: 3px; width: 0; border-radius: 2px; background: #d6a63a; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
  .nf-rail__knob { position: absolute; top: 8px; left: 0; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: #e0aa3e; box-shadow: 0 0 0 5px rgba(224, 170, 62, .25); transition: left .6s cubic-bezier(.2, .7, .2, 1); }
  .newsflow.is-dragging .nf-rail__knob, .newsflow.is-dragging .nf-rail__fill { transition: none; }
  .nf-ticks { position: absolute; left: 0; right: 0; top: 26px; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
  .nf-ticks li { position: relative; flex: 0 0 0; display: flex; justify-content: center; }
  .nf-ticks button { position: relative; padding: 14px 6px 0; border: 0; background: none; font: 500 .66rem / 1 var(--font); letter-spacing: .08em; color: #6b7893; cursor: pointer; }
  .nf-ticks button::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 9px; background: rgba(10, 31, 69, .35); }
  .nf-ticks button.is-on { color: #0a1f45; font-weight: 700; }
  .nf-rail.is-many .nf-ticks { display: none; }
}
@media (max-width: 899px) {
  .newsflow__head { grid-template-columns: 1fr; }
  .newsflow__lede { border-left: 0; padding-left: 0; }
  .newsflow__h { max-width: 14ch; }
  .newsflow__ghost { font-size: 6rem; right: 4%; }
}
@media (prefers-reduced-motion: reduce) { .newsflow.is-flow .nf-card, .nf-rail__knob, .nf-rail__fill, .nf-card > a > img, .nf-card__go { transition: none; } }
.newsflow__h { max-width: 13.5ch; padding-bottom: .1em; }
.newsflow__h[data-split]::after { display: none; }
.js .newsflow__h .w { padding-bottom: .22em; margin-bottom: -.22em; }
.nf-hint { white-space: nowrap; font-size: .66rem; letter-spacing: .14em; }
.nf-hint--r { white-space: normal; }
.nf-foot { grid-template-columns: minmax(250px, 1fr) minmax(300px, 2.6fr) minmax(250px, 1fr); }

/* News coverflow: scroll-driven (pinned) mode; no arrow buttons, no drag */
.nf-scroll { position: relative; }
@media (min-width: 900px) {
  .newsflow.is-flow .nf-pin { position: sticky; top: var(--hdr, 90px); height: calc(100vh - var(--hdr, 90px)); min-height: 700px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .newsflow.is-flow .nf-stage { cursor: default; flex: 0 0 auto; }
  .nf-foot { grid-template-columns: minmax(250px, 1fr) minmax(320px, 3fr) minmax(120px, .4fr); }
}
.newsflow { overflow: visible; }
.newsflow__ghost { z-index: 0; }

/* Vision/Mission -> "What's your story": one continuous blue that deepens downwards, no hard dark seam */
.edge--storytop { color: #0b3470; }
.story { background: radial-gradient(800px 520px at 12% 46%, rgba(224, 170, 62, .16), transparent 62%), radial-gradient(900px 620px at 96% 100%, rgba(70, 140, 230, .3), transparent 60%), linear-gradient(180deg, #0b3470 0%, #092a5a 34%, #061d41 70%, #04172f 100%); }

/* "What's your story": ivory background, same as "See the school for yourself" (dark photo cards stay) */
.story { color: #0a1f45; background: radial-gradient(760px 480px at 12% 12%, rgba(224, 170, 62, .16), transparent 62%), radial-gradient(820px 560px at 94% 96%, rgba(70, 120, 200, .1), transparent 62%), #fcfbf8; }
.story__title { color: #0a2a57; }
.story__title strong { color: #c8901f; }
.story__lede { color: #55627c; }
.qm { color: #0a2a57; text-shadow: 0 0 40px rgba(224, 170, 62, .55); }
.story__dots i:nth-child(2) { background: #0a2a57; }
.story__dots i:nth-child(5) { border-color: #0a2a57; }
.story__dots i:nth-child(4) { background: #5d93e0; }
.scard { box-shadow: 0 26px 54px rgba(9, 38, 77, .24); }
.scard, .scard h3 { color: #fff; }
.section--discover.bg-white { background-color: #fcfbf8; }
