/* ==========================================================================
   Polygon College — Main Stylesheet
   Crafted by Brevin Creation
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #006aba;         /* logo blue (titles, buttons, accents) */
  --green: #3fae49;       /* logo green */
  --lime: #8dc63f;        /* logo lime */
  --steel: #c1cfd5;       /* logo steel */
  --navy: #0a2c4f;
  --text: #0c0c0d;        /* black — body text only */
  --ink-deep: #00559a;
  --ink-2: #00559a;
  --ink-3: #0a2c4f;
  --paper: #f4f7f9;
  --paper-2: #e8eef2;
  --white: #ffffff;
  --muted: #6d6c70;
  --muted-light: rgba(255, 255, 255, .62);
  --line: rgba(10, 44, 79, .12);
  --line-light: rgba(255, 255, 255, .14);
  /* Brand: Polygon logo blue / green / steel; black only for body text.
     --accent flips to white inside dark contexts (see below). */
  --accent: #006aba;
  --on-accent: #ffffff;
  --accent-alt: #3fae49;
  --error: #c62828;

  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --container: 1680px;
  --gutter: clamp(20px, 4vw, 72px);
  --header-h: 104px;
  --logo-h: 72px;
  --radius: 18px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Dark contexts: accent becomes white */
.hero, .page-hero, .site-header {
  --accent: #ffffff; --on-accent: #006aba; --accent-alt: #3fae49;
}
.site-header.is-solid { --accent: #006aba; --on-accent: #ffffff; --accent-alt: #3fae49; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
html.is-locked, html.is-locked body { overflow: hidden; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 10vw, 160px); position: relative; }
.section--tight { padding-block: clamp(60px, 7vw, 110px); }
.section--dark { background: var(--ink); color: var(--white); }
.section--white { background: var(--white); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 72px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2vw, 32px); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section--dark .eyebrow { color: var(--muted-light); }
.display {
  font-size: clamp(44px, 6.6vw, 118px); line-height: .95; font-weight: 800; letter-spacing: -.035em;
}
.h2 { font-size: clamp(36px, 4.6vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.h3 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.accent { color: var(--accent); }
.lead { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: var(--muted-light); }
.statement { font-size: clamp(28px, 3.3vw, 56px); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; }
.statement .dim { color: rgba(10, 44, 79, .32); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(44px, 5vw, 80px); flex-wrap: wrap; }
.section-head .h2 { margin-top: 18px; max-width: 16ch; }
.section-head p { max-width: 46ch; color: var(--muted); }
.section--dark .section-head p { color: var(--muted-light); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 30px; border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease-out), border-color .5s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn .arr { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent::before { background: var(--accent-alt); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark::before { background: #00559a; }
.btn-line { border: 1px solid currentColor; }
.btn-line::before { background: var(--ink); }
.btn-line:hover { color: #fff; border-color: var(--ink); }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost-light::before { background: #fff; }
.btn-ghost-light:hover { color: var(--ink); border-color: #fff; }
.btn-sm { height: 46px; padding: 0 22px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Media (images with graceful fallback) ---------- */
.media {
  position: relative; overflow: hidden; background: #2d7dc0;
  background-image: radial-gradient(120% 90% at 20% 10%, #6fa6d6 0%, #006aba 60%), linear-gradient(135deg, #2d7dc0, #00559a);
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media.is-broken img { display: none; }

/* ==========================================================================
   LOADER — appears only on first load of the website (per session)
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--ink); color: #fff;
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 34px; width: min(420px, 78vw); }
.loader__logo { position: relative; width: 100%; }
.loader__logo img { width: 100%; filter: invert(1); }
.loader__logo .ghost { opacity: .12; }
.loader__logo .fill {
  position: absolute; inset: 0; clip-path: inset(0 100% 0 0);
  animation: loaderWipe 1.5s var(--ease) .15s forwards;
}
.loader__bar { position: relative; width: 100%; height: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s linear; }
.loader__meta { width: 100%; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.loader__meta b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.loader__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; animation: pulse 1s ease-in-out infinite; }
@keyframes loaderWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes pulse { 50% { opacity: .2; } }
.loader.is-done { animation: loaderOut 1s var(--ease) forwards; }
.loader.is-done .loader__inner { animation: loaderInnerOut .6s var(--ease) forwards; }
@keyframes loaderOut { to { clip-path: inset(0 0 100% 0); } }
@keyframes loaderInnerOut { to { transform: translateY(-40px); opacity: 0; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--header-h);
  color: #fff; transition: transform .6s var(--ease-out), background-color .4s, color .4s, height .4s, box-shadow .4s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: var(--logo-h); width: auto; transition: filter .4s; }
.site-header .brand img { filter: invert(1); }
.site-header.is-solid {
  background: rgba(244, 247, 249, .88); color: var(--ink);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .brand img { filter: none; }
.site-header.is-hidden { transform: translateY(-100%); }

.main-nav > ul { display: flex; align-items: center; gap: clamp(4px, 1vw, 14px); }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px;
  font-size: 15px; font-weight: 500; opacity: .86; transition: opacity .3s;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.main-nav > ul > li:hover > a, .main-nav > ul > li > a.is-active { opacity: 1; }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.main-nav .chev { width: 10px; height: 10px; transition: transform .35s var(--ease-out); }
.main-nav li:hover .chev, .main-nav li:focus-within .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 340px; padding: 10px;
  background: #fff; color: var(--ink); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(6, 30, 56, .28), 0 0 0 1px rgba(6, 30, 56, .05);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s, transform .45s var(--ease-out), visibility .35s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.main-nav li:hover > .dropdown, .main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 10px; transition: background .25s; }
.dropdown a:hover { background: var(--paper); }
.dropdown .dd-tag {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.dropdown a:hover .dd-tag { background: var(--accent); }
.dropdown .dd-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.dropdown .dd-sub { display: block; font-size: 13px; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Menu toggle (hamburger) */
.menu-toggle { display: inline-flex; align-items: center; gap: 14px; height: 46px; padding: 0 6px 0 18px; border-radius: 100px; border: 1px solid currentColor; border-color: rgba(255,255,255,.35); transition: border-color .3s; }
.site-header.is-solid .menu-toggle { border-color: var(--line); }
.menu-toggle:hover { border-color: currentColor; }
.mt-label { font-size: 14px; font-weight: 600; }
.mt-icon { position: relative; width: 34px; height: 34px; border-radius: 50%; background: currentColor; }
.mt-icon i { position: absolute; left: 10px; width: 14px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.site-header.is-solid .mt-icon i { background: #fff; }
.mt-icon i:nth-child(1) { top: 12px; }
.mt-icon i:nth-child(2) { top: 16.5px; width: 9px; }
.mt-icon i:nth-child(3) { top: 21px; }
.menu-toggle:hover .mt-icon i:nth-child(1) { transform: translateX(2px); }
.menu-toggle:hover .mt-icon i:nth-child(2) { width: 14px; }
.menu-toggle:hover .mt-icon i:nth-child(3) { transform: translateX(-2px); }

/* ==========================================================================
   TOGGLE MENU (full-screen overlay)
   ========================================================================== */
.menu-overlay {
  position: fixed; inset: 0; z-index: 1000; color: #fff; display: flex; flex-direction: column;
  visibility: hidden; pointer-events: none;
}
.menu-overlay.is-open { visibility: visible; pointer-events: auto; }
.mo-bg {
  position: absolute; inset: 0; background: var(--ink);
  clip-path: inset(0 0 100% 0); transition: clip-path .85s var(--ease);
}
.mo-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 0%, rgba(229, 50, 45, .16), transparent 60%); }
.menu-overlay.is-open .mo-bg { clip-path: inset(0 0 0 0); }
.menu-overlay.is-closing .mo-bg { clip-path: inset(100% 0 0 0); transition-delay: .25s; }

.mo-top { position: relative; height: var(--header-h); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.mo-top .brand img { height: var(--logo-h); filter: invert(1); }
.mo-top .brand, .menu-close { opacity: 0; transform: translateY(-14px); transition: opacity .5s, transform .6s var(--ease-out); }
.menu-overlay.is-open .mo-top .brand, .menu-overlay.is-open .menu-close { opacity: 1; transform: none; transition-delay: .45s; }
.menu-overlay.is-closing .mo-top .brand, .menu-overlay.is-closing .menu-close { opacity: 0; transition-delay: 0s; }

/* Animated close button */
.menu-close { display: inline-flex; align-items: center; gap: 16px; }
.mc-label { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.mc-btn { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.mc-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mc-btn circle { fill: none; stroke-width: 1.5; }
.mc-btn .c-track { stroke: rgba(255, 255, 255, .18); }
.mc-btn .c-draw { stroke: var(--accent); stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset 1s var(--ease) .5s; }
.menu-overlay.is-open .mc-btn .c-draw { stroke-dashoffset: 0; }
.mc-btn i { position: absolute; width: 20px; height: 1.5px; background: #fff; transition: transform .6s var(--ease-out); transform: rotate(0) scaleX(0); }
.menu-overlay.is-open .mc-btn i:nth-of-type(1) { transform: rotate(45deg) scaleX(1); transition-delay: .65s; }
.menu-overlay.is-open .mc-btn i:nth-of-type(2) { transform: rotate(-45deg) scaleX(1); transition-delay: .75s; }
.menu-close:hover .mc-btn i:nth-of-type(1) { transform: rotate(135deg) scaleX(1); transition-delay: 0s; }
.menu-close:hover .mc-btn i:nth-of-type(2) { transform: rotate(45deg) scaleX(1); transition-delay: 0s; }
.mc-btn::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgba(255,255,255,.06); transform: scale(0); transition: transform .5s var(--ease-out); }
.menu-close:hover .mc-btn::after { transform: scale(1); }

.mo-body {
  position: relative; flex: 1; display: grid; grid-template-columns: 1.15fr 1fr .8fr; gap: clamp(32px, 4vw, 80px);
  align-items: center; padding-block: 24px; min-height: 0; overflow-y: auto;
}
.mo-eyebrow { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 22px; }
.mo-list > li { border-top: 1px solid var(--line-light); overflow: hidden; }
.mo-list > li:last-child { border-bottom: 1px solid var(--line-light); }
.mo-link {
  display: flex; align-items: center; gap: 20px; padding: 14px 0;
  font-size: clamp(20px, 1.9vw, 30px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2;
}
.mo-link .mo-num { font-size: 11px; font-weight: 500; letter-spacing: .1em; color: rgba(255,255,255,.4); width: 22px; transition: color .3s; }
.mo-link .mo-text { position: relative; display: inline-block; overflow: hidden; }
.mo-link .mo-text span { display: block; transition: transform .5s var(--ease-out); }
.mo-link .mo-text span + span { position: absolute; inset: 0; transform: translateY(100%); color: var(--accent); }
.mo-link:hover .mo-text span:first-child, .mo-link.is-active .mo-text span:first-child { transform: translateY(-100%); }
.mo-link:hover .mo-text span + span, .mo-link.is-active .mo-text span + span { transform: translateY(0); }
.mo-link:hover .mo-num { color: var(--accent); }
.mo-link .mo-arrow { margin-left: auto; width: 20px; height: 20px; opacity: 0; transform: translateX(-12px) rotate(-45deg); transition: opacity .4s, transform .5s var(--ease-out); }
.mo-link:hover .mo-arrow { opacity: 1; transform: translateX(0) rotate(-45deg); }
.mo-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px 42px; margin-top: -4px; }
.mo-sub a { font-size: 13px; padding: 6px 14px; border-radius: 100px; border: 1px solid var(--line-light); color: rgba(255,255,255,.72); transition: background .3s, color .3s, border-color .3s; }
.mo-sub a:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* menu stagger animation */
.mo-anim { opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .9s var(--ease-out); }
.menu-overlay.is-open .mo-anim { opacity: 1; transform: none; transition-delay: calc(.4s + var(--i, 0) * .06s); }
.menu-overlay.is-closing .mo-anim { opacity: 0; transform: translateY(-20px); transition-delay: 0s; transition-duration: .3s; }

.mo-preview { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.mo-frame { position: relative; aspect-ratio: 4 / 5; max-height: 60vh; width: 100%; border-radius: var(--radius); overflow: hidden; clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.1s var(--ease) .35s; }
.menu-overlay.is-open .mo-frame { clip-path: inset(0 0 0 0 round var(--radius)); }
.menu-overlay.is-closing .mo-frame { clip-path: inset(0 0 100% 0 round var(--radius)); transition-delay: 0s; transition-duration: .5s; }
.mo-frame .media { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity .7s, transform 1.4s var(--ease-out); }
.mo-frame .media.is-on { opacity: 1; transform: scale(1); }
.mo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,30,56,.55), transparent 50%); pointer-events: none; }
.mo-caption { position: absolute; left: 22px; bottom: 20px; z-index: 2; font-family: var(--font-serif); font-style: italic; font-size: 26px; }

.mo-info { display: flex; flex-direction: column; gap: 34px; font-size: 15px; color: rgba(255,255,255,.72); }
.mo-info h4 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 10px; }
.mo-info a:hover { color: #fff; }
.mo-social { display: flex; gap: 10px; }
.mo-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: background .3s, color .3s; }
.mo-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.mo-social svg { width: 16px; height: 16px; }
.mo-foot { position: relative; height: 70px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.42); border-top: 1px solid var(--line-light); }

/* ==========================================================================
   HOME HERO
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; color: #fff; overflow: hidden; background: var(--ink); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide .media { position: absolute; inset: 0; background-color: var(--ink); }
.hero__slide .media img { transform: scale(1.18); transition: transform 8s linear; }
.hero__slide.is-active .media img { transform: scale(1.02); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,30,56,.55) 0%, rgba(6,30,56,.08) 30%, rgba(6,30,56,.25) 60%, rgba(6,30,56,.82) 100%);
}
.hero__content { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(120px, 17vh, 190px); }
.hero__titles { position: relative; min-height: 2.1em; font-size: clamp(36px, 4.8vw, 80px); }
.hero__title { position: absolute; left: 0; bottom: 0; font-size: 1em; line-height: .92; font-weight: 800; letter-spacing: -.045em; max-width: 16ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
/* Waiting state: parked below the mask, no transition so the reset is invisible */
.hero__title .line > span { display: block; transform: translate3d(0, 115%, 0); opacity: 0; transition: none; will-change: transform, opacity; }
/* Entering: slide up into place, line 2 staggered */
.hero__title.is-active .line > span { transform: translate3d(0, 0, 0); opacity: 1; transition: transform 1.2s var(--ease-out), opacity .6s ease-out; }
.hero__title.is-active .line:nth-child(2) > span { transition-delay: .09s; }
/* Leaving: slide up and out of the mask with a soft fade, line 2 follows */
.hero__title.is-leaving .line > span { transform: translate3d(0, -115%, 0); opacity: 0; transition: transform .9s cubic-bezier(.65, 0, .35, 1), opacity .7s ease-in .15s; }
.hero__title.is-leaving .line:nth-child(2) > span { transition-delay: .07s, .22s; }
.hero__title .serif { font-weight: 400; letter-spacing: -.02em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(30px, 4vh, 48px); opacity: 0; transform: translateY(20px); transition: opacity .8s .5s, transform 1s var(--ease-out) .5s; }
.is-ready .hero__actions { opacity: 1; transform: none; }

.hero__dots { display: flex; gap: clamp(14px, 2vw, 36px); flex: 1; max-width: 760px; }
.hero__dot { flex: 1; text-align: left; font-size: 13px; color: rgba(255,255,255,.55); transition: color .3s; }
.hero__dot.is-active, .hero__dot:hover { color: #fff; }
.hero__dot .bar { display: block; height: 2px; background: rgba(255,255,255,.2); margin-bottom: 12px; overflow: hidden; }
.hero__dot .bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active .bar i { animation: heroBar var(--dur, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-active .bar i { animation-play-state: paused; }
@keyframes heroBar { to { transform: scaleX(1); } }
.hero__dot b { font-weight: 600; margin-right: 8px; color: #fff; }
@keyframes scrollCue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrows button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.hero__arrows button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero__arrows svg { width: 18px; height: 18px; }

/* ==========================================================================
   INNER PAGE HERO
   ========================================================================== */
.page-hero { position: relative; min-height: clamp(300px, 42vh, 420px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero .media { position: absolute; inset: 0; }
.page-hero .media img { transform: scale(1.12); animation: phZoom 2.4s var(--ease-out) forwards; }
@keyframes phZoom { to { transform: scale(1); } }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,30,56,.6) 0%, rgba(6,30,56,.2) 35%, rgba(6,30,56,.85) 100%); }
.page-hero .container { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 28px); padding-bottom: clamp(36px, 4.5vw, 64px); }
.page-hero h1 { font-size: clamp(32px, 3.8vw, 60px); line-height: .92; font-weight: 800; letter-spacing: -.045em; max-width: 14ch; }
.page-hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.page-hero h1 .line > span { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.page-hero h1 .line:nth-child(2) > span { transition-delay: .1s; }
.is-ready .page-hero h1 .line > span { transform: none; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }
.crumbs span:last-child { color: #fff; }

/* sub-navigation bar under page hero (student pages, program pages) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: top .6s var(--ease-out); }
body.hdr-hidden .subnav { top: 0; }
.subnav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 22px 18px; font-size: 15px; font-weight: 600; color: var(--muted); position: relative; white-space: nowrap; transition: color .3s; }
.subnav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .4s var(--ease-out); }
.subnav a:hover, .subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }

/* ==========================================================================
   HOME SECTIONS
   ========================================================================== */
/* Intro */
.intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: end; }
.intro-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.intro-meta h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.intro-meta p { font-size: 18px; font-weight: 600; }
.intro-collage { position: relative; aspect-ratio: 4 / 5; }
.intro-collage .media { position: absolute; border-radius: var(--radius); }
.intro-collage .m1 { inset: 0 18% 18% 0; }
.intro-collage .m2 { width: 52%; aspect-ratio: 1; right: 0; bottom: 0; border: 8px solid var(--paper); }

/* Program cards */
.program-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 36px); }
.program-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: clamp(520px, 46vw, 760px); isolation: isolate; }
.program-card .media { position: absolute; inset: 0; z-index: -2; }
.program-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,30,56,.15), rgba(6,30,56,.85)); transition: background .5s; }
.program-card:hover .media img { transform: scale(1.06); }
.program-card__inner { position: absolute; inset: 0; padding: clamp(28px, 3vw, 52px); display: flex; flex-direction: column; justify-content: space-between; }
.program-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 100px; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.program-card__code { font-size: clamp(64px, 8vw, 140px); font-weight: 800; letter-spacing: -.05em; line-height: .8; opacity: .95; }
.program-card h3 { font-size: clamp(26px, 2.4vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; max-width: 18ch; margin: 18px 0 24px; }
.program-card__facts { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); font-size: 14px; color: rgba(255,255,255,.75); }
.program-card__facts b { display: block; color: #fff; font-size: 17px; }
.circle-arrow { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .6s var(--ease-out), background .3s, color .3s; }
.circle-arrow svg { width: 22px; height: 22px; transform: rotate(-45deg); transition: transform .6s var(--ease-out); }
.program-card:hover .circle-arrow { background: var(--accent); color: #fff; }
.program-card:hover .circle-arrow svg { transform: rotate(0); }

/* Facilities accordion (home) */
.fac-acc { display: flex; gap: 14px; height: clamp(520px, 44vw, 720px); }
.fac-item { position: relative; flex: 1; border-radius: var(--radius); overflow: hidden; color: #fff; cursor: pointer; transition: flex 1s var(--ease); isolation: isolate; min-width: 0; }
.fac-item.is-open { flex: 3.2; }
.fac-item .media { position: absolute; inset: 0; z-index: -2; }
.fac-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,30,56,.25), rgba(6,30,56,.88)); }
.fac-item__num { position: absolute; top: 28px; left: 28px; font-size: 14px; font-weight: 600; }
.fac-item__vert { position: absolute; left: 28px; bottom: 28px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 24px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: opacity .4s; }
.fac-item.is-open .fac-item__vert { opacity: 0; }
.fac-item__body { position: absolute; left: clamp(28px, 3vw, 48px); right: clamp(28px, 3vw, 48px); bottom: clamp(28px, 3vw, 48px); max-width: 560px; opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .5s var(--ease-out); pointer-events: none; }
.fac-item.is-open .fac-item__body { opacity: 1; transform: none; transition: opacity .6s .45s, transform .9s var(--ease-out) .45s; pointer-events: auto; }
.fac-item__body h3 { font-size: clamp(30px, 3vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 16px; }
.fac-item__body p { color: rgba(255,255,255,.78); margin-bottom: 22px; }

/* Approach pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.pillar { padding: 40px 32px 40px 0; border-right: 1px solid var(--line-light); }
.pillar + .pillar { padding-left: 32px; }
.pillar:last-child { border-right: 0; }
.pillar__icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.06); display: grid; place-items: center; margin-bottom: 64px; color: var(--accent); transition: background .4s, color .4s, transform .6s var(--ease-out); }
.pillar:hover .pillar__icon { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.01em; }
.pillar p { color: var(--muted-light); font-size: 16px; }

/* Work grid (projects preview) */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.work-card { position: relative; display: block; cursor: pointer; }
.work-card .media { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.work-card:hover .media img { transform: scale(1.06); }
.work-card .media::after { content: ""; position: absolute; inset: 0; background: rgba(10,44,79,.0); transition: background .4s; }
.work-card:hover .media::after { background: rgba(10,44,79,.2); }
.work-card__play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; transform: scale(0); transition: transform .5s var(--ease-out); }
.work-card:hover .work-card__play { transform: scale(1); }
.work-card__meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; }
.work-card__meta h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.work-card__meta p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.work-card__cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.work-grid .w-a { grid-column: span 7; }
.work-grid .w-b { grid-column: span 5; }
.work-grid .w-b .media { aspect-ratio: 4 / 4.2; }
.work-grid .w-c { grid-column: span 4; }
.work-grid .w-d { grid-column: span 8; }

/* Split CTA (alumni & thesis) */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 36px); }
.split-cta__card { position: relative; padding: clamp(36px, 4vw, 64px); border-radius: var(--radius); background: var(--white); min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .6s var(--ease-out); }
.split-cta__card.dark { background: var(--ink); color: #fff; }
.split-cta__card:hover { transform: translateY(-6px); }
.split-cta__card .big { font-size: clamp(96px, 12vw, 220px); font-weight: 800; letter-spacing: -.06em; line-height: .8; position: absolute; right: -10px; bottom: -20px; color: rgba(10,44,79,.05); pointer-events: none; }
.split-cta__card.dark .big { color: rgba(255,255,255,.05); }
.split-cta__card h3 { font-size: clamp(30px, 3vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 20px 0 16px; max-width: 14ch; }
.split-cta__card p { color: var(--muted); max-width: 44ch; }
.split-cta__card.dark p { color: var(--muted-light); }

/* News */
.news-card { display: block; }
.news-card .media { aspect-ratio: 16 / 11; border-radius: var(--radius); margin-bottom: 22px; }
.news-card:hover .media img { transform: scale(1.06); }
.news-card time { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.news-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin: 8px 0 14px; }

/* Big CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.cta-band .container { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(48px, 7vw, 130px); font-weight: 800; letter-spacing: -.045em; line-height: .9; }
.cta-band p { color: var(--muted); font-size: 19px; margin-bottom: 30px; max-width: 40ch; }
.cta-band .btn-ghost-light { color: var(--ink); border-color: var(--line); }
.cta-band .btn-ghost-light::before { background: var(--ink); }
.cta-band .btn-ghost-light:hover { color: #fff; border-color: var(--ink); }
.cta-band__ring { position: absolute; right: -10vw; top: -20vw; width: 50vw; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.cta-band__ring.r2 { right: -2vw; top: -12vw; width: 34vw; }

/* ==========================================================================
   GENERIC CONTENT BLOCKS (inner pages)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: center; }
.split--top { align-items: start; }
.split .media { border-radius: var(--radius); aspect-ratio: 4 / 5; }
.split .media.wide { aspect-ratio: 4 / 3; }
.prose p { color: var(--muted); margin-bottom: 18px; font-size: 18px; }
.prose p:first-child { color: var(--ink); font-size: clamp(20px, 1.6vw, 25px); line-height: 1.45; font-weight: 500; }
.section--dark .prose p { color: var(--muted-light); }
.section--dark .prose p:first-child { color: #fff; }

.feature-list { display: grid; gap: 0; }
.feature-list li { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .n { font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 4px; }
.feature-list h4 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.feature-list p { color: var(--muted); font-size: 16px; }
.section--dark .feature-list li { border-color: var(--line-light); }
.section--dark .feature-list p { color: var(--muted-light); }

.card { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 2.6vw, 44px); transition: transform .6s var(--ease-out), box-shadow .6s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(6,30,56,.2); }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--paper); color: var(--accent); display: grid; place-items: center; margin-bottom: 40px; transition: background .4s, color .4s; }
.card:hover .card__icon { background: var(--accent); color: #fff; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 16px; }
.section--dark .card { background: var(--ink-2); }
.section--dark .card p { color: var(--muted-light); }
.section--dark .card__icon { background: rgba(255,255,255,.06); }

.quote-block { display: grid; grid-template-columns: 420px 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.quote-block .media { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.quote-block blockquote { margin: 0; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.22; font-weight: 500; letter-spacing: -.02em; }
.quote-block blockquote::before { content: "\201C"; display: block; font-family: var(--font-serif); font-size: 140px; line-height: .6; color: var(--accent); margin-bottom: 10px; }
.quote-block cite { display: block; margin-top: 34px; font-style: normal; font-size: 16px; color: var(--muted); }
.quote-block cite b { display: block; color: var(--ink); font-size: 19px; }

.aff-band { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(28px, 4vw, 70px); align-items: center; padding: clamp(32px, 4vw, 60px); background: var(--white); border-radius: var(--radius); }
.aff-band__seal { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.aff-band__seal svg { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.aff-band__seal b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
@keyframes spin { to { transform: rotate(360deg); } }
.aff-band h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.aff-band p { color: var(--muted); }

/* Program detail */
.facts-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.facts-bar > div { padding: 32px clamp(20px, 2.4vw, 40px); border-right: 1px solid var(--line); }
.facts-bar > div:last-child { border-right: 0; }
.facts-bar span { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.facts-bar b { font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.01em; }

.curriculum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sem { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.sem summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; cursor: pointer; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sem summary::-webkit-details-marker { display: none; }
.sem summary small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.sem summary .plus { position: relative; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--paper); transition: background .3s, transform .5s var(--ease-out); }
.sem summary .plus::before, .sem summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .4s var(--ease-out); }
.sem summary .plus::after { transform: rotate(90deg); }
.sem[open] summary .plus { background: var(--accent); color: #fff; transform: rotate(180deg); }
.sem[open] summary .plus::after { transform: rotate(0); }
.sem ul { padding: 0 30px 26px; }
.sem li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.sem li span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.career-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.career-tags span { padding: 14px 24px; border: 1px solid var(--line-light); border-radius: 100px; font-size: 16px; transition: background .3s, color .3s; }
.career-tags span:hover { background: #fff; color: var(--ink); }

.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 22px 28px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-size: 15px; }
.compare tbody th { font-weight: 600; width: 22%; color: var(--muted); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* Facilities page */
.facility { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; padding-block: clamp(60px, 7vw, 110px); border-top: 1px solid var(--line); }
.facility:first-child { border-top: 0; padding-top: 0; }
.facility:nth-child(even) .facility__media { order: 2; }
.facility__media { position: relative; }
.facility__media .media { border-radius: var(--radius); aspect-ratio: 5 / 4; }
.facility__media .media.sm { position: absolute; width: 38%; aspect-ratio: 1; right: -24px; bottom: -40px; border: 8px solid var(--paper); }
.facility:nth-child(even) .facility__media .media.sm { right: auto; left: -24px; }
.facility__num { font-size: clamp(80px, 9vw, 150px); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: .9; margin-bottom: 24px; }
.facility h2 { font-size: clamp(36px, 3.8vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-bottom: 22px; }
.facility .lead { margin-bottom: 30px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.check-list li { position: relative; padding-left: 30px; font-size: 16px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ==========================================================================
   STUDENTS — filters, alumni, thesis, projects
   ========================================================================== */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.search { position: relative; flex: 1; max-width: 460px; min-width: 240px; }
.search input { width: 100%; height: 56px; padding: 0 22px 0 54px; border-radius: 100px; border: 1px solid var(--line); background: var(--white); outline: none; transition: border-color .3s, box-shadow .3s; }
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,44,79,.06); }
.search svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 44px; padding: 0 20px; border-radius: 100px; border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.select { height: 56px; padding: 0 48px 0 22px; border-radius: 100px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 15px; outline: none; cursor: pointer; }

/* Alumni */
.alumni-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 4vw, 72px); align-items: start; }
.year-rail { position: sticky; top: 110px; }
.year-rail h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.year-rail ul { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.year-rail button { position: relative; display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 12px 0 12px 24px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: rgba(10,44,79,.35); transition: color .3s, padding .4s var(--ease-out); text-align: left; }
.year-rail button small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.year-rail button::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.year-rail button:hover { color: var(--ink); }
.year-rail button.is-active { color: var(--ink); padding-left: 30px; }
.year-rail button.is-active::before { transform: scaleY(1); }
.batch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.batch-head h2 { font-size: clamp(56px, 7vw, 120px); font-weight: 800; letter-spacing: -.05em; line-height: .85; }
.batch-head h2 .serif { font-size: .45em; letter-spacing: -.01em; margin-right: 10px; color: var(--muted); }
.batch-stats { display: flex; gap: 32px; }
.batch-stats div { font-size: 14px; color: var(--muted); }
.batch-stats b { display: block; font-size: 28px; color: var(--ink); letter-spacing: -.02em; }
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.alum { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--white); border-radius: 14px; opacity: 0; transform: translateY(16px); animation: fadeUp .6s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 30ms); transition: box-shadow .3s; }
.alum:hover { box-shadow: 0 16px 40px -24px rgba(6,30,56,.35); }
.alum__av { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; background: var(--ink); }
.alum__av.b { background: var(--accent); }
.alum h4 { font-size: 17px; font-weight: 700; line-height: 1.25; }
.alum p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.alum .tag { margin-left: auto; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 100px; background: var(--paper); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.empty { padding: 60px 0; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Thesis */
.thesis-list { border-top: 1px solid var(--line); }
.thesis { border-bottom: 1px solid var(--line); opacity: 0; animation: fadeUp .6s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 35ms); transform: translateY(14px); }
.thesis__head { width: 100%; display: grid; grid-template-columns: 90px 1fr 220px 120px 44px; gap: 24px; align-items: center; padding: 28px 0; text-align: left; }
.thesis__year { font-size: 15px; font-weight: 600; color: var(--muted); }
.thesis__title { font-size: clamp(18px, 1.5vw, 23px); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; transition: color .3s; }
.thesis__head:hover .thesis__title { color: var(--accent); }
.thesis__author { font-size: 15px; }
.thesis__author small { display: block; color: var(--muted); font-size: 13px; }
.thesis__prog { font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 6px 12px; border-radius: 100px; background: var(--white); justify-self: start; }
.thesis__toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, transform .5s var(--ease-out), border-color .3s; }
.thesis__toggle::before, .thesis__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .4s var(--ease-out); }
.thesis__toggle::after { transform: rotate(90deg); }
.thesis.is-open .thesis__toggle { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(180deg); }
.thesis.is-open .thesis__toggle::after { transform: rotate(0); }
.thesis__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.thesis.is-open .thesis__body { grid-template-rows: 1fr; }
.thesis__body > div { overflow: hidden; }
.thesis__inner { display: grid; grid-template-columns: 90px 1fr 340px; gap: 24px; padding: 0 0 34px; }
.thesis__inner p { color: var(--muted); max-width: 70ch; }
.thesis__meta { display: grid; gap: 10px; font-size: 14px; }
.thesis__meta span { color: var(--muted); }
.thesis__meta div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.thesis__meta div b { text-align: right; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.project-grid .work-card { opacity: 0; animation: fadeUp .7s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 50ms); transform: translateY(18px); }
.project-grid .work-card:nth-child(6n+1), .project-grid .work-card:nth-child(6n+5) { grid-column: span 2; }
.project-grid .work-card:nth-child(6n+1) .media, .project-grid .work-card:nth-child(6n+5) .media { aspect-ratio: auto; height: calc(100% - 76px); min-height: 300px; }
.project-grid .work-card .media { aspect-ratio: 4 / 3.4; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: var(--gutter); visibility: hidden; pointer-events: none; }
.lightbox.is-open { visibility: visible; pointer-events: auto; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(10,44,79,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s; }
.lightbox.is-open .lightbox__bg { opacity: 1; }
.lightbox__panel { position: relative; width: min(1240px, 100%); max-height: 88vh; overflow: auto; display: grid; grid-template-columns: 1.4fr 1fr; background: var(--paper); border-radius: var(--radius); opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .5s, transform .7s var(--ease-out); }
.lightbox.is-open .lightbox__panel { opacity: 1; transform: none; }
.lightbox__panel .media { min-height: 420px; }
.lightbox__info { padding: clamp(28px, 3vw, 52px); display: flex; flex-direction: column; gap: 18px; }
.lightbox__info h3 { font-size: clamp(28px, 2.6vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.lightbox__info p { color: var(--muted); }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .5s var(--ease-out), background .3s, color .3s; }
.lightbox__close:hover { transform: rotate(90deg); background: var(--accent); color: #fff; }
.lightbox__close svg { width: 18px; height: 18px; }
.kv { display: grid; gap: 10px; font-size: 15px; margin-top: auto; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.kv span { color: var(--muted); }

/* ==========================================================================
   ADMISSIONS & CONTACT
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; }
.step__dot { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); border: 1px solid var(--line-light); font-weight: 700; margin-bottom: 34px; z-index: 1; transition: background .4s; }
.step:hover .step__dot { background: var(--accent); border-color: var(--accent); }
.step::before { content: ""; position: absolute; top: 32px; left: 64px; right: 0; height: 1px; background: var(--line-light); }
.step:last-child::before { display: none; }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted-light); font-size: 16px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); outline: none; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,44,79,.06); }
.field.has-error input, .field.has-error select { border-color: var(--accent); }
.form-note { grid-column: 1 / -1; display: none; padding: 18px 22px; border-radius: 12px; background: var(--ink); color: #fff; }
.form-note.is-show { display: block; animation: fadeUp .6s var(--ease-out) forwards; opacity: 0; transform: translateY(10px); }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(48px, 6vw, 90px); }
.contact-card { padding: 34px; border-radius: var(--radius); background: var(--white); }
.contact-card h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; font-weight: 600; }
.contact-card p, .contact-card a { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.contact-card a:hover { color: var(--accent); }
.map { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 520px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; filter: grayscale(1) contrast(1.05); }

.doc-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 1px solid var(--line); }
.doc-list svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 0; cursor: pointer; font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease-out), background .3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .4s; }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(180deg); background: var(--ink); color: #fff; }
.faq details[open] .plus::after { transform: rotate(0); }
.faq details p { padding: 0 60px 26px 0; color: var(--muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #fff; padding-top: clamp(80px, 9vw, 140px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 80px); padding-bottom: clamp(60px, 6vw, 100px); }
.footer-brand img { height: var(--logo-h); filter: invert(1); margin-bottom: 30px; }
.footer-brand p { color: var(--muted-light); max-width: 38ch; margin-bottom: 28px; }
.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 22px; }
.footer-col li + li { margin-top: 12px; }
.footer-col a { color: rgba(255,255,255,.8); transition: color .3s, padding .4s var(--ease-out); }
.footer-col a:hover { color: #fff; padding-left: 6px; }
.footer-col address { font-style: normal; color: rgba(255,255,255,.8); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid var(--line-light); font-size: 14px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.8); }
.footer-bottom a:hover { color: var(--accent); }
.to-top { display: inline-flex; align-items: center; gap: 10px; }
.to-top svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 1s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(12% 12% 12% 12% round var(--radius)); transition: clip-path 1.4s var(--ease); }
.reveal-img img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.reveal-img.is-in img { transform: scale(1); }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 18ms); }
.split-words.is-in .w > span { transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  .main-nav { display: none; }
  .mo-body { grid-template-columns: 1.2fr 1fr; }
  .mo-info { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .thesis__head { grid-template-columns: 70px 1fr 180px 44px; }
  .thesis__prog { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 84px; --logo-h: 58px; }
  .grid-3, .grid-4, .pillars { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar + .pillar { padding: 34px 24px 34px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .pillar__icon { margin-bottom: 30px; }
  .intro-grid, .split, .quote-block, .facility, .cta-band .container, .alumni-layout { grid-template-columns: 1fr; }
  .facility:nth-child(even) .facility__media { order: 0; }
  .facility__media .media.sm { display: none; }
  .program-cards, .split-cta, .curriculum { grid-template-columns: 1fr; }
  .fac-acc { flex-direction: column; height: auto; }
  .fac-item { min-height: 120px; flex: none; height: 120px; transition: height .9s var(--ease); }
  .fac-item.is-open { height: 480px; flex: none; }
  .fac-item__vert { writing-mode: horizontal-tb; transform: none; left: 28px; bottom: auto; top: 58px; }
  .work-grid > * { grid-column: span 12 !important; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-grid .work-card:nth-child(n) { grid-column: span 1; }
  .project-grid .work-card:nth-child(n) .media { aspect-ratio: 4 / 3.4; height: auto; min-height: 0; }
  .year-rail { position: static; }
  .year-rail ul { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .year-rail button { padding: 12px 18px; white-space: nowrap; gap: 8px; }
  .year-rail button.is-active { padding-left: 18px; }
  .year-rail button::before { left: 12px; right: 12px; top: auto; bottom: -1px; width: auto; height: 2px; transform: scaleX(0); }
  .year-rail button.is-active::before { transform: scaleX(1); }
  .facts-bar, .steps { grid-template-columns: 1fr 1fr; }
  .facts-bar > div:nth-child(2) { border-right: 0; }
  .facts-bar > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step { padding-bottom: 40px; }
  .step:nth-child(2)::before { display: none; }
  .lightbox__panel { grid-template-columns: 1fr; }
  .lightbox__panel .media { min-height: 280px; aspect-ratio: 16 / 10; }
  .contact-cards { grid-template-columns: 1fr; }
  .aff-band { grid-template-columns: 1fr; text-align: left; }
  .thesis__inner { grid-template-columns: 1fr; }
  .mo-body { grid-template-columns: 1fr; align-items: start; }
  .mo-preview { display: none; }
  .quote-block .media { max-width: 420px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-actions .btn { display: none; }
  .mt-label, .mc-label { display: none; }
  .menu-toggle { padding: 0; border: 0; }
  .mt-icon { width: 46px; height: 46px; }
  .mt-icon i { left: 15px; width: 16px; }
  .mt-icon i:nth-child(1) { top: 17px; } .mt-icon i:nth-child(2) { top: 22px; width: 10px; } .mt-icon i:nth-child(3) { top: 27px; }
  .grid-2, .grid-3, .grid-4, .pillars, .form, .check-list, .intro-meta, .facts-bar, .steps, .project-grid { grid-template-columns: 1fr; }
  .facts-bar > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .step::before { display: none; }
  .hero__dot span.t { display: none; }

  .hero__arrows button { width: 44px; height: 44px; }
  .thesis__head { grid-template-columns: 1fr 44px; gap: 10px 16px; }
  .thesis__year { grid-column: 1; }
  .thesis__title { grid-column: 1; }
  .thesis__author { grid-column: 1; }
  .thesis__toggle { grid-column: 2; grid-row: 1 / span 3; }
  .compare th, .compare td { padding: 16px; font-size: 14px; }
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 620px; }
  .mo-foot span:last-child { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   LIGHT BRAND THEME — white surfaces, logo blue/green/steel, black body text.
   Overrides the dark surfaces above so loader, menu, footer and
   "dark" sections all sit on white, matching the Polygon logo.
   ========================================================================== */
.section--dark, .menu-overlay, .loader, .site-footer {
  --muted-light: var(--muted);
  --line-light: var(--line);
}

/* Sections */
.section--dark { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark .card { background: var(--paper); }
.section--dark .card__icon, .pillar__icon { background: var(--white); border: 1px solid var(--line); }
.section--dark .card:hover .card__icon, .pillar:hover .pillar__icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.career-tags span:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.step__dot { background: var(--white); color: var(--ink); }
.step:hover .step__dot { background: var(--ink); color: #fff; border-color: var(--ink); }
.split-cta__card.dark { background: var(--paper-2); color: var(--ink); }
.split-cta__card.dark .big { color: rgba(10,44,79,.05); }
.alum__av.b { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.dropdown a:hover .dd-tag { background: var(--accent-alt); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.form-note { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.statement .accent, .accent { color: inherit; }

/* Loader */
.loader { background: var(--white); color: var(--ink); }
.loader__logo img { filter: none; }
.loader__logo .ghost { opacity: .1; }
.loader__bar { background: var(--line); }
.loader__bar span, .loader__dot { background: var(--ink); }
.loader__meta { color: var(--muted); }
.loader__meta b { color: var(--ink); }

/* Toggle menu */
.menu-overlay { color: var(--ink); }
.mo-bg { background: var(--white); }
.mo-bg::after { background: radial-gradient(70% 60% at 85% 0%, rgba(10,44,79,.04), transparent 60%); }
.mo-top .brand img { filter: none; }
.mc-btn .c-track { stroke: var(--line); }
.mc-btn .c-draw { stroke: var(--ink); }
.mc-btn i { background: var(--ink); }
.mc-btn::after { background: var(--paper); }
.mo-eyebrow, .mo-info h4 { color: var(--muted); }
.mo-link .mo-num { color: var(--muted); }
.mo-link .mo-text span + span { color: var(--ink); font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.mo-sub a { color: var(--muted); }
.mo-sub a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.mo-info { color: var(--muted); }
.mo-info a:hover { color: var(--ink); }
.mo-social a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.mo-foot { color: var(--muted); }
.mo-foot b { color: var(--ink) !important; }
.mo-frame { background: var(--paper); }

/* Footer */
.site-footer { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.footer-brand img { filter: none; }
.footer-col h4 { color: var(--muted); }
.footer-col a, .footer-col address { color: var(--ink); }
.footer-col a:hover { color: var(--muted); }
.footer-bottom { color: var(--muted); }
.footer-bottom a { color: var(--ink); }
.footer-bottom a:hover { color: var(--muted); }

/* ==========================================================================
   POLYGON TRIANGLE MOTIF — animated, alternating colour & side per section
   (injected by main.js into every .section)
   ========================================================================== */
.section { overflow-x: clip; }
.section > .container { position: relative; z-index: 1; }
.split-cta__card.dark p { color: var(--muted); }
.field > .btn { align-self: flex-start; }
.mc-btn i { z-index: 1; }
.alumni-layout > * { min-width: 0; }
.alumni-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }

/* ==========================================================================
   LOGO BRAND — titles in logo blue, body copy in black
   ========================================================================== */
h1, h2, h3, h4, .display, .h2, .h3, .statement { color: var(--ink); }
.statement .dim { color: rgba(10,44,79,.45); }
.prose p:first-child { color: var(--text); }
/* titles sitting on photos stay white */
.hero h1, .hero h2, .page-hero h1, .program-card h3, .fac-item h3, .lightbox__panel .media h3 { color: #fff; }
.hero__title, .program-card__code { color: #fff; }
/* body-ish text stays black */
.feature-list p, .card p, .doc-list li, .sem li, .compare td, .alum p, .thesis__author, .footer-col address, .contact-card p { color: var(--text); }
.card p, .feature-list p { opacity: .72; }
.contact-card a, .footer-col a, .footer-bottom a { color: var(--ink); }
.btn-dark { background: var(--ink); }
.btn-dark::before { background: var(--ink-deep); }
.loader__meta b { color: var(--ink); }
.mo-caption { color: #fff; }
.cta-band__ring { display: none; }

/* ==========================================================================
   LOGO — coloured mark + wordmark (wordmark turns white over photos)
   ========================================================================== */
.brand { display: flex; align-items: center; }
.brand img { height: var(--logo-h); width: auto; }
.site-header .brand img, .mo-top .brand img, .footer-brand img { filter: none; }
.site-header:not(.is-solid) .brand .brand-word { filter: brightness(0) invert(1); }
.footer-brand .brand { margin-bottom: 30px; }

/* Shared SVG mark (three facets of the Polygon triangle) */
.pg-mark { display: block; overflow: visible; }
.pg-mark .f { transform-box: fill-box; transform-origin: center; }
.pg-mark .f-green { fill: url(#pgGreen); }
.pg-mark .f-blue { fill: url(#pgBlue); }
.pg-mark .f-steel { fill: url(#pgSteel); }

/* ==========================================================================
   LOADER — facets assemble, then the wordmark wipes in
   ========================================================================== */
.loader__brand { display: flex; align-items: center; width: 100%; }
.loader__brand .pg-mark { height: clamp(90px, 13vw, 140px); width: auto; flex-shrink: 0; }
.loader__word { position: relative; height: clamp(90px, 13vw, 140px); }
.loader__word img { height: 100%; width: auto; }
.loader__word .ghost { opacity: .08; }
.loader__word .fill { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); animation: loaderWipe 1.2s var(--ease) .9s forwards; }
.loader__inner { width: min(560px, 86vw); }
.loader .pg-mark .f { opacity: 0; animation: facetIn 1s var(--ease-out) forwards; }
.loader .pg-mark .f-green { --fx: -60px; --fy: 0px; animation-delay: .05s; }
.loader .pg-mark .f-blue { --fx: 40px; --fy: -50px; animation-delay: .2s; }
.loader .pg-mark .f-steel { --fx: 40px; --fy: 50px; animation-delay: .35s; }
@keyframes facetIn {
  from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(-25deg) scale(.6); }
  to { opacity: 1; transform: none; }
}
.loader__bar span { background: linear-gradient(90deg, var(--green), var(--ink)); }
.loader__dot { background: var(--green); }

/* ==========================================================================
   POLYGON MARK MOTIF — logo triangle in every section,
   alternating colourway and side (injected by main.js)
   ========================================================================== */
.tri { position: absolute; z-index: 0; pointer-events: none; width: clamp(150px, 17vw, 300px); }
.tri--right { right: calc(clamp(150px, 17vw, 300px) * -.38); top: 36px; }
.tri--left { left: calc(clamp(150px, 17vw, 300px) * -.38); bottom: 36px; transform: scaleX(-1); }
.tri__float { animation: triFloat 10s ease-in-out infinite; }
.tri .pg-mark { width: 100%; height: auto; }
.tri .f { opacity: 0; transition: opacity 1s, transform 1.6s var(--ease-out); }
.tri .f-green { transform: translate(-30%, 0) rotate(-20deg); }
.tri .f-blue { transform: translate(20%, -30%) rotate(20deg); transition-delay: .15s; }
.tri .f-steel { transform: translate(20%, 30%) rotate(-20deg); transition-delay: .3s; }
.tri.is-in .f { opacity: 1; transform: none; }
/* colourways */
.tri--full { opacity: .9; }
.tri--blue .f { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.tri--blue.is-in .f-blue { fill: rgba(0,106,186,.12); }
.tri--green .f { fill: none; stroke: var(--green); stroke-width: 2.5; }
.tri--green.is-in .f-green { fill: rgba(63,174,73,.18); }
.tri--steel .f { fill: var(--steel); }
.tri--steel .f-blue { fill: #d8e1e6; } .tri--steel .f-green { fill: #e6ecef; }
@keyframes triFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(6deg); } }
@media (max-width: 720px) { .tri { width: 130px; opacity: .55; } }

/* ==========================================================================
   POPUP — borderless image with close + link button only
   ========================================================================== */
.popup { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.popup.is-open { visibility: visible; pointer-events: auto; }
.popup__bg { position: absolute; inset: 0; background: rgba(6,30,56,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.popup.is-open .popup__bg { opacity: 1; }
.popup__box { position: relative; width: min(560px, 100%); max-height: 88vh; padding: 0; border: 0; line-height: 0; opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .5s, transform .8s var(--ease-out); }
.popup.is-open .popup__box { opacity: 1; transform: none; }
.popup__box img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; display: block; }
.popup__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(6,30,56,.3); transition: transform .5s var(--ease-out), background .3s, color .3s; }
.popup__close:hover { transform: rotate(90deg); background: var(--green); color: #fff; }
.popup__close svg { width: 18px; height: 18px; }
.popup__link { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); line-height: 1; box-shadow: 0 12px 30px rgba(6,30,56,.35); }

/* Brand buttons — green hover with white text */
.btn-accent:hover, .btn-dark:hover { color: #fff; }
.btn-dark::before { background: var(--green); }
.mo-link .mo-text span + span { color: var(--green); }
.mo-link:hover .mo-num { color: var(--green); }
.hero__dot .bar i { background: linear-gradient(90deg, var(--lime), #fff); }
.subnav a::after, .year-rail button::before, .main-nav > ul > li > a::after { background: var(--green); }
.check-list li::before { border-color: var(--green); }
.feature-list .n, .work-card__cat { color: var(--green); }
.alum__av.b { border-color: var(--green); color: var(--green); }
.eyebrow::before { background: var(--green); opacity: 1; height: 2px; }

/* ==========================================================================
   ABOUT — principal message, profile, team, faculty, class details
   ========================================================================== */
.msg { display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.msg__photo { position: sticky; top: calc(var(--header-h) + 80px); aspect-ratio: 822 / 992; border-radius: var(--radius); }
.msg__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--green), var(--ink) 60%, var(--steel)); }
.msg__text { margin-top: 28px; }
.msg__text p { font-size: clamp(17px, 1.2vw, 19px); color: var(--text); opacity: .82; margin-bottom: 18px; }
.msg__text .msg__lead { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: -.015em; color: var(--ink); opacity: 1; }
.msg__text .msg__lead::before { content: "\201C"; display: block; font-family: var(--font-serif); font-size: 120px; line-height: .55; color: var(--green); margin-bottom: 4px; }
.msg__sign { display: flex; align-items: center; gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.msg__signature { font-family: var(--font-serif); font-style: italic; font-size: clamp(34px, 3vw, 48px); color: var(--ink); line-height: 1; }
.msg__sign b { display: block; color: var(--ink); font-size: 18px; }
.msg__sign span:last-child { color: var(--muted); font-size: 15px; }

.bio { display: grid; grid-template-columns: 360px 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.bio__side { position: sticky; top: calc(var(--header-h) + 80px); display: grid; gap: 18px; }
.bio__card { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.bio__card .media { aspect-ratio: 1; }
.bio__card-body { padding: 24px 26px 28px; }
.bio__card-body h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; }
.bio__card-body p { font-size: 14px; color: var(--muted); }
.bio__facts { background: var(--white); border-radius: var(--radius); padding: 8px 26px; }
.bio__facts li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bio__facts li:last-child { border-bottom: 0; }
.bio__facts b { color: var(--ink); font-size: 17px; }
.bio__facts span { font-size: 14px; color: var(--muted); }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.highlights div { padding: 24px 26px; border-radius: 14px; background: var(--white); border-left: 3px solid var(--green); transition: transform .5s var(--ease-out), border-color .3s; }
.highlights div:nth-child(2) { border-left-color: var(--ink); }
.highlights div:nth-child(3) { border-left-color: var(--steel); }
.highlights div:hover { transform: translateY(-4px); }
.highlights b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.highlights span { font-size: 14px; color: var(--muted); }

.person__role { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.person { background: var(--paper); border-radius: var(--radius); overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s; }
.person:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,44,79,.3); }
.person__photo { aspect-ratio: 4 / 3.4; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--paper-2), #dbe5eb); position: relative; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.person:hover .person__photo img { transform: scale(1.05); }
.person__photo span { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -.03em; box-shadow: 0 0 0 8px rgba(255,255,255,.5); }
.person__body { padding: 24px 26px 28px; }
.person__body h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 8px; }
.person__body p { font-size: 15px; color: var(--muted); }

.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.fac-card { background: var(--white); border-radius: var(--radius); padding: 28px 26px; transition: transform .6s var(--ease-out), box-shadow .6s; border-top: 3px solid transparent; }
.fac-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,44,79,.3); border-top-color: var(--green); }
.fac-card__av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ink), var(--navy)); }
.fac-card:nth-child(3n+2) .fac-card__av { background: linear-gradient(135deg, var(--lime), var(--green)); }
.fac-card:nth-child(3n) .fac-card__av { background: linear-gradient(135deg, #dfe7eb, #9fb2bc); color: var(--navy); }
.fac-card h3 { font-size: 19px; font-weight: 700; margin: 6px 0 10px; }
.fac-card__sub { font-size: 15px; color: var(--text); }
.fac-card__qual { font-size: 13px; color: var(--muted); margin-top: 6px; }

.schedule thead th { background: var(--ink); }
.schedule tbody tr { opacity: 0; animation: fadeUp .5s var(--ease-out) forwards; animation-delay: calc(var(--i) * 50ms); transform: translateY(8px); }
.schedule tbody tr:hover td { background: var(--paper); }
.schedule td b { color: var(--ink); font-weight: 600; }
.schedule .room { display: inline-block; padding: 4px 12px; border-radius: 100px; background: rgba(63,174,73,.12); color: #2c8a36; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.is-active { background: var(--ink); border-color: var(--ink); }

/* Home — principal teaser */
.principal-teaser { display: grid; grid-template-columns: 420px 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.principal-teaser .media { aspect-ratio: 822 / 992; border-radius: var(--radius); }
.principal-teaser blockquote { margin: 26px 0 0; font-size: clamp(24px, 2.3vw, 38px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.principal-teaser blockquote::before { content: "\201C"; display: block; font-family: var(--font-serif); font-size: 130px; line-height: .55; color: var(--green); }

@media (max-width: 1024px) {
  .msg, .bio, .principal-teaser { grid-template-columns: 1fr; }
  .msg__photo, .bio__side { position: static; max-width: 460px; }
  .team-grid, .faculty-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .team-grid, .faculty-grid, .highlights { grid-template-columns: 1fr; }
  .schedule { min-width: 680px; }
}

/* ==========================================================================
   STICKY SCROLL-TO-TOP — progress ring + animated arrow
   ========================================================================== */
.to-top-btn {
  position: fixed; right: clamp(16px, 2.4vw, 36px); bottom: clamp(16px, 2.4vw, 36px); z-index: 800;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: 0 14px 34px -10px rgba(10,44,79,.4);
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.8);
  transition: opacity .45s, visibility .45s, transform .6s var(--ease-out), background .3s, color .3s;
}
.to-top-btn.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top-btn:hover { background: var(--ink); color: #fff; }
.ttb-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ttb-ring circle { fill: none; stroke-width: 2.5; }
.ttb-track { stroke: rgba(10,44,79,.1); }
.ttb-prog { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s linear; }
.to-top-btn:hover .ttb-track { stroke: rgba(255,255,255,.2); }
.to-top-btn:hover .ttb-prog { stroke: var(--lime); }
.ttb-arrows { position: relative; width: 20px; height: 20px; overflow: hidden; }
.ttb-arrows svg { position: absolute; inset: 0; width: 20px; height: 20px; transition: transform .45s var(--ease-out); }
.ttb-arrows svg + svg { transform: translateY(120%); }
.to-top-btn:hover .ttb-arrows svg:first-child { transform: translateY(-120%); }
.to-top-btn:hover .ttb-arrows svg + svg { transform: translateY(0); }
.to-top-btn.is-visible:not(:hover) .ttb-arrows svg:first-child { animation: ttbNudge 2.4s var(--ease-out) infinite; }
.to-top-btn.is-end { background: var(--green); color: #fff; }
.to-top-btn.is-end .ttb-track { stroke: rgba(255,255,255,.25); }
.to-top-btn.is-end .ttb-prog { stroke: #fff; }
.to-top-btn.is-launch .ttb-arrows svg { animation: ttbLaunch .6s var(--ease) forwards; }
@keyframes ttbNudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-4px); } 90% { transform: translateY(1px); } }
@keyframes ttbLaunch { 0% { transform: translateY(0); } 45% { transform: translateY(-140%); } 46% { transform: translateY(140%); } 100% { transform: translateY(0); } }
html.menu-open .to-top-btn, html.is-locked .to-top-btn { opacity: 0; visibility: hidden; }
@media (max-width: 720px) { .to-top-btn { width: 52px; height: 52px; } }

/* ==========================================================================
   ALUMNI CARDS — large image on top, text below
   ========================================================================== */
.alumni-grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.alum { display: block; padding: 0; overflow: hidden; border-radius: var(--radius); background: var(--white); transition: transform .6s var(--ease-out), box-shadow .6s; }
.alum:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,44,79,.35); }
.alum__photo { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--paper-2); }
.alum__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.alum:hover .alum__photo img { transform: scale(1.06); }
.alum__ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #2b8ad3 0%, var(--ink) 45%, var(--navy) 100%); transition: transform 1.2s var(--ease-out); }
.alum:nth-child(3n+2) .alum__ph { background: radial-gradient(120% 90% at 20% 0%, var(--lime) 0%, var(--green) 45%, #1f7a3a 100%); }
.alum:nth-child(3n) .alum__ph { background: radial-gradient(120% 90% at 20% 0%, #f1f5f7 0%, #c9d6dc 50%, #8fa5b0 100%); }
.alum__ph b { position: relative; z-index: 1; font-size: clamp(54px, 5vw, 76px); font-weight: 800; letter-spacing: -.04em; color: rgba(255,255,255,.95); }
.alum:nth-child(3n) .alum__ph b { color: var(--navy); }
.alum:hover .alum__ph { transform: scale(1.05); }
.alum .tag { position: absolute; top: 14px; left: 14px; margin: 0; z-index: 2; background: rgba(255,255,255,.92); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.alum__body { padding: 18px 20px 22px; }
.alum__body h4 { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.alum__body p { font-size: 14px; color: var(--text); opacity: .7; margin-top: 4px; }
.alum__year { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }

/* ==========================================================================
   ABOUT — explore cards linking to sub-pages
   ========================================================================== */
.explore-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(260px, auto); gap: clamp(14px, 1.6vw, 22px); }
.explore-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s; }
.explore-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,44,79,.3); }
.explore-card--photo { grid-row: span 2; color: #fff; }
.explore-card--photo .media { position: absolute; inset: 0; }
.explore-card--photo .media img { object-position: top; }
.explore-card--photo:hover .media img { transform: scale(1.05); }
.explore-card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6,30,56,.9)); }
.explore-card--photo .explore-card__body { position: relative; z-index: 1; }
.explore-card--photo h3 { color: #fff; }
.explore-card--photo p { color: rgba(255,255,255,.8); }
.explore-card--photo .person__role { color: var(--lime); }
.explore-card__num { position: absolute; top: 22px; right: 26px; font-size: 54px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: rgba(0,106,186,.1); transition: color .4s; }
.explore-card:hover .explore-card__num { color: var(--green); }
.explore-card__body { padding: clamp(24px, 2.4vw, 36px); }
.explore-card h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 10px; }
.explore-card p { font-size: 15px; color: var(--muted); margin-bottom: 18px; max-width: 36ch; }
@media (max-width: 1024px) { .explore-grid { grid-template-columns: 1fr 1fr; } .explore-card--photo { grid-column: span 2; grid-row: auto; min-height: 420px; } }
@media (max-width: 720px) { .explore-grid { grid-template-columns: 1fr; } .explore-card--photo { grid-column: auto; } }

/* ==========================================================================
   DESKTOP — hide the menu toggle where the full navigation is shown
   ========================================================================== */
@media (min-width: 1281px) { .menu-toggle { display: none; } }
.site-header.is-hidden .dropdown { opacity: 0 !important; visibility: hidden !important; }

/* Footer bottom — crafted by only */
.footer-bottom { justify-content: space-between; align-items: center; text-align: left; }
.footer-bottom .copy { font-size: 15px; color: var(--muted); }
.footer-bottom .crafted { font-size: 15px; color: var(--muted); }
.footer-bottom .crafted a { font-weight: 700; color: var(--ink); background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.footer-bottom .crafted a:hover { background-size: 100% 2px; color: var(--ink); }

/* ==========================================================================
   SOCIAL ICONS — bigger, animated
   ========================================================================== */
.mo-social { gap: 12px; flex-wrap: wrap; }
.mo-social a { position: relative; width: 56px; height: 56px; overflow: hidden; isolation: isolate; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  transition: transform .5s var(--ease-out), border-color .3s, color .3s, box-shadow .4s; }
.mo-social a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--ink));
  transform: scale(0); transition: transform .5s var(--ease-out); }
.mo-social a svg { width: 22px; height: 22px; transition: transform .4s var(--ease-out); }
.mo-social a:hover { color: #fff; border-color: transparent; transform: translateY(-5px) rotate(-6deg); box-shadow: 0 14px 30px -10px rgba(0,106,186,.55); background: var(--white); }
.mo-social a:hover::before { transform: scale(1); }
.mo-social a:hover svg { animation: socialPop .55s var(--ease-out); }
@keyframes socialPop { 0% { transform: translateY(0); } 45% { transform: translateY(-160%); } 46% { transform: translateY(160%); } 100% { transform: translateY(0); } }
/* gentle staggered idle bob so they feel alive */
.mo-social a:nth-child(1) { animation: socialBob 4s ease-in-out infinite; }
.mo-social a:nth-child(2) { animation: socialBob 4s ease-in-out .25s infinite; }
.mo-social a:nth-child(3) { animation: socialBob 4s ease-in-out .5s infinite; }
.mo-social a:nth-child(4) { animation: socialBob 4s ease-in-out .75s infinite; }
.mo-social a:hover { animation-play-state: paused; }
@keyframes socialBob { 0%, 80%, 100% { translate: 0 0; } 88% { translate: 0 -4px; } 94% { translate: 0 1px; } }

/* ==========================================================================
   PEOPLE — big-thumbnail cards (team + faculty)
   ========================================================================== */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.pcard { display: block; border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .6s var(--ease-out), box-shadow .6s; }
.section--white .pcard { background: var(--paper); }
.pcard:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(10,44,79,.4); }
.pcard__photo { position: relative; aspect-ratio: 4 / 4.7; overflow: hidden; background: var(--paper-2); }
.pcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out), filter .6s; }
.pcard:hover .pcard__photo img { transform: scale(1.07); }
.pcard__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--ink), var(--steel)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.pcard:hover .pcard__photo::after { transform: scaleX(1); }
.pcard__ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 20% 0%, #2b8ad3 0%, var(--ink) 45%, var(--navy) 100%); }
.pcard__ph b { font-size: clamp(54px, 5vw, 80px); font-weight: 800; letter-spacing: -.04em; color: #fff; }
.pcard__go { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink);
  transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease-out); }
.pcard__go svg { width: 18px; height: 18px; }
.pcard:hover .pcard__go { transform: scale(1) rotate(0); }
.pcard__body { padding: 20px 22px 24px; }
.pcard__body h3 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; margin: 6px 0 6px; }
.pcard__sub { font-size: 14px; color: var(--text); opacity: .7; min-height: 2.6em; }
.pcard__more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--green); padding-bottom: 2px; }
@media (max-width: 1100px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .people-grid { grid-template-columns: 1fr; } }

/* Profile detail page */
.bio__main .prose p:first-child { font-size: clamp(18px, 1.4vw, 22px); }
.bio__card .media { position: relative; aspect-ratio: 1; }
.bio__card .media img { object-position: top; }
.bio__card .link-arrow { margin-top: 12px; font-size: 14px; color: var(--ink); word-break: break-all; }
.bio__h { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 40px 0 16px; }
.career-tags.light span { border-color: var(--line); background: var(--white); color: var(--ink); font-size: 15px; padding: 10px 18px; }
.career-tags.light span:hover { background: var(--ink); color: #fff; }
.course-list li { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.course-list b { color: var(--ink); }
.course-list span { color: var(--muted); }
.profile-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.pnav { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 14px; background: var(--white); transition: background .3s, color .3s, transform .5s var(--ease-out); }
.pnav span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.pnav b { color: var(--ink); font-size: 17px; }
.pnav--next { text-align: right; }
.pnav--all { text-align: center; }
.pnav:hover { background: var(--ink); transform: translateY(-3px); }
.pnav:hover b, .pnav:hover span { color: #fff; }
@media (max-width: 720px) { .profile-nav { grid-template-columns: 1fr; } .pnav--next, .pnav--all { text-align: left; } .course-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Class schedule — teacher with avatar link */
.teacher { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.teacher img, .teacher span { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.teacher span { display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; }
.teacher:hover { color: var(--green); }

/* ==========================================================================
   ADMISSIONS — downloads & fees
   ========================================================================== */
.dl-list { display: grid; gap: 14px; }
.dl-card { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 2.4vw, 32px); align-items: center; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--radius); background: var(--white);
  border: 1px solid transparent; transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s; }
.dl-card:hover { transform: translateY(-4px); border-color: rgba(63,174,73,.4); box-shadow: 0 24px 50px -30px rgba(10,44,79,.35); }
.dl-card__icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(0,106,186,.08); color: var(--ink); transition: background .3s, color .3s; }
.dl-card__icon svg { width: 28px; height: 28px; }
.dl-card:hover .dl-card__icon { background: var(--ink); color: #fff; }
.dl-card h3 { font-size: clamp(18px, 1.4vw, 22px); font-weight: 700; margin-bottom: 4px; }
.dl-card p { font-size: 15px; color: var(--text); opacity: .7; }
.dl-card__meta { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.dl-card__btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 100px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; transition: background .3s; }
.dl-card__btn svg { width: 18px; height: 18px; }
.dl-card:hover .dl-card__btn { background: var(--green); }
.dl-card:hover .dl-card__btn svg { animation: dlBounce .7s var(--ease-out); }
@keyframes dlBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(4px); } 70% { transform: translateY(-2px); } }
@media (max-width: 640px) { .dl-card { grid-template-columns: auto 1fr; } .dl-card__btn { grid-column: 1 / -1; justify-content: center; } }
.fee-table .amt { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
.fee-table thead th:last-child { text-align: right; }
.fee-table tfoot td { background: rgba(63,174,73,.1); border-top: 2px solid var(--green); font-size: 17px; }
.fee-table tbody tr:hover td { background: var(--paper); }

/* ==========================================================================
   HERO — drag / touch with zoom transition
   ========================================================================== */
.hero { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero a, .hero button { cursor: pointer; }
.hero.is-dragging { cursor: grabbing; }
.hero img { -webkit-user-drag: none; pointer-events: none; }
/* zoom-through: inactive slides sit zoomed in; the active one eases back to 1 */
.hero__slide .media { transform: scale(1.14); transition: transform 1.6s var(--ease); will-change: transform; }
.hero__slide.is-active .media { transform: scale(1); }
.hero.is-dragging .hero__slide, .hero.is-dragging .hero__slide .media, .hero.is-dragging .hero__titles { transition: none !important; }
.hero__slide.is-peek { z-index: 2; }
.hero.is-settling .hero__slide .media { transition: transform .9s var(--ease-out); }
.hero.is-settling .hero__titles { transition: transform .7s var(--ease-out), opacity .5s; }
.hero.is-settling .hero__slide.is-peek { transition: opacity .5s; }
/* small drag hint on the slide counter */
.footer-bottom { padding-right: 84px; } @media (max-width: 720px) { .footer-bottom { padding-right: 0; padding-bottom: 88px; } }

/* Select wrapper — CSS-only chevron (no images in CSS) */
.select-wrap { position: relative; display: inline-block; }
.select-wrap::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.select { appearance: none; -webkit-appearance: none; }

/* ==========================================================================
   WORDPRESS THEME ADDITIONS
   ========================================================================== */
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; transition: top .3s; }
.skip-link:focus { top: 16px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note.is-error { border-color: var(--error); color: var(--error); background: #fff5f5; }
.btn.is-sending { opacity: .7; pointer-events: none; }
.select-wrap--block { display: block; }
.select-wrap--block select { width: 100%; padding: 18px 44px 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); outline: none; appearance: none; -webkit-appearance: none; }
.select-wrap--block select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,44,79,.06); }
.toolbar__note { color: var(--muted); font-size: 15px; }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar__count { font-size: 14px; color: var(--muted); padding-left: 8px; }
.card__code { font-size: 13px; font-weight: 800; letter-spacing: .04em; }
a.card { display: block; color: inherit; }
.contact-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; letter-spacing: -.02em; }
.entry-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.result-list { display: grid; gap: 14px; }
.result-list a { display: block; padding: 24px 28px; border-radius: var(--radius); background: var(--white); transition: transform .5s var(--ease-out), box-shadow .5s; }
.result-list a:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(10,44,79,.35); }
.result-list h3 { font-size: 22px; margin: 6px 0; }
.result-list p { color: var(--muted); font-size: 15px; }
.search--page { max-width: 560px; }
.nav-links { display: flex; gap: 8px; margin-top: 32px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--line); font-weight: 600; }
.nav-links .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.project-grid.is-filtered .work-card:nth-child(n) { grid-column: span 1; }
.project-grid.is-filtered .work-card:nth-child(n) .media { aspect-ratio: 4 / 3.4; height: auto; min-height: 0; }
.brand-custom { height: var(--logo-h); width: auto; }
.footer-brand .brand img { height: var(--logo-h); width: auto; }
.lightbox__info .link-arrow { margin-top: 6px; color: var(--ink); align-self: flex-start; }
.lightbox [data-lb="media"] img { width: 100%; height: 100%; object-fit: cover; }

/* Hero — single video */
.hero--video .hero__slide { opacity: 1; }
.hero__video video, .hero__video .hero__yt, .hero__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.hero__video .hero__yt { width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hero__video .hero__poster { z-index: -1; }
.hero--video .hero__video { transform: scale(1.08); transition: transform 2.4s var(--ease-out); }
.hero--video.is-on .hero__video { transform: scale(1); }
.hero--video .hero__title .line > span { transform: translate3d(0, 115%, 0); opacity: 0; }
.is-ready .hero--video .hero__title .line > span { transform: none; opacity: 1; transition: transform 1.2s var(--ease-out), opacity .6s; }
.is-ready .hero--video .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.hero__vctrl { position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(24px, 5vh, 48px); display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 100px; background: rgba(6,30,56,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hv-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); color: #fff; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.hv-btn:hover { background: #fff; color: var(--ink); border-color: #fff; transform: scale(1.06); }
.hv-btn svg { width: 18px; height: 18px; }
.hv-progress { width: clamp(80px, 12vw, 180px); height: 2px; background: rgba(255,255,255,.25); overflow: hidden; margin: 0 14px 0 6px; border-radius: 2px; }
.hv-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), #fff); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.dropdown .dd-tag { width: auto; min-width: 44px; padding: 0 7px; font-size: 10.5px; letter-spacing: .02em; }

/* Hero slide counters + arrows (no container bar) */
.hero__bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter) clamp(28px, 5vh, 48px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.hero--video .hero__content { bottom: clamp(70px, 12vh, 130px); }
@media (max-width: 720px) {
  .hero__content { bottom: clamp(110px, 16vh, 150px); }
  .hero__bottom { gap: 16px; }
  .hero__dots { gap: 10px; }
}

/* ==========================================================================
   MAIN MENU — bold uppercase (dropdown items keep normal case)
   ========================================================================== */
.main-nav > ul > li > a { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Dropdown thumbnail = linked page's featured image (Polygon mark if none) */
.dropdown .dd-thumb { flex-shrink: 0; width: 54px; height: 54px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, #eaf2f8, #d6e4ee); transition: transform .4s var(--ease-out), box-shadow .4s; }
.dropdown .dd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dropdown .dd-thumb .pg-mark { width: 26px; height: auto; }
.dropdown a:hover .dd-thumb { transform: scale(1.06); box-shadow: 0 8px 18px -8px rgba(0,106,186,.5); }
.dropdown { min-width: 360px; }

/* ==========================================================================
   OVERLAY (TOGGLE) MENU — blue background, white text, green hover,
   real collapsible sub-menus
   ========================================================================== */
.menu-overlay { color: #fff; --accent: #fff; --on-accent: var(--ink); --accent-alt: var(--green); --line-light: rgba(255,255,255,.16); }
.menu-overlay .mo-bg { background: var(--ink); }
.menu-overlay .mo-bg::after { background: radial-gradient(70% 60% at 85% 0%, rgba(141,198,63,.18), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(10,44,79,.55), transparent 60%); }
.menu-overlay .mo-top .brand .brand-word { filter: brightness(0) invert(1); }
.menu-overlay .mc-label { color: #fff; }
.menu-overlay .mc-btn .c-track { stroke: rgba(255,255,255,.3); }
.menu-overlay .mc-btn .c-draw { stroke: var(--lime); }
.menu-overlay .mc-btn i { background: #fff; }
.menu-overlay .mc-btn::after { background: rgba(255,255,255,.12); }
.menu-overlay .mo-eyebrow, .menu-overlay .mo-info h4 { color: rgba(255,255,255,.6); }
.menu-overlay .mo-info, .menu-overlay .mo-info a { color: rgba(255,255,255,.88); }
.menu-overlay .mo-info a:hover { color: #fff; }
.menu-overlay .mo-foot { color: rgba(255,255,255,.6); border-top-color: rgba(255,255,255,.16); }
.menu-overlay .mo-foot b { color: #fff !important; }
.menu-overlay .mo-frame { background: rgba(255,255,255,.08); }
.menu-overlay .mo-social a { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.menu-overlay .btn-accent:hover { color: #fff; }

.mo-list > li { overflow: visible; border-top: 1px solid rgba(255,255,255,.16); }
.mo-list > li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.mo-row { display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 12px; transition: background .3s; }
.mo-row:hover, .mo-item.is-open > .mo-row { background: var(--green); }
.mo-link { flex: 1; color: #fff; padding: 12px 6px; }
.menu-overlay .mo-link .mo-num { color: rgba(255,255,255,.6); }
.menu-overlay .mo-link:hover .mo-num, .mo-row:hover .mo-num { color: #fff; }
.menu-overlay .mo-link .mo-text { color: #fff; font-family: var(--font-sans); font-style: normal; }
.menu-overlay .mo-link.is-active .mo-text { color: var(--lime); }
.mo-row:hover .mo-link.is-active .mo-text { color: #fff; }
.mo-subtoggle { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); transition: transform .45s var(--ease-out), background .3s, border-color .3s; }
.mo-subtoggle span::before, .mo-subtoggle span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease-out); }
.mo-subtoggle span::after { transform: rotate(90deg); }
.mo-item.is-open .mo-subtoggle { transform: rotate(180deg); background: #fff; border-color: #fff; }
.mo-item.is-open .mo-subtoggle span::before, .mo-item.is-open .mo-subtoggle span::after { background: var(--green); }
.mo-item.is-open .mo-subtoggle span::after { transform: rotate(0); }
.mo-sub { display: grid; grid-template-rows: 0fr; padding: 0; margin: 0; transition: grid-template-rows .5s var(--ease-out); }
.mo-sub > ul { overflow: hidden; min-height: 0; padding: 0 8px 0 46px; }
.mo-item.is-open > .mo-sub { grid-template-rows: 1fr; }
.mo-item.is-open > .mo-sub > ul { padding-top: 6px; padding-bottom: 12px; }
.mo-sub li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.88); border: 0; background: transparent; transition: background .3s, color .3s, padding .4s var(--ease-out); }
.mo-sub li a svg { width: 14px; height: 14px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease-out); }
.mo-sub li a:hover, .mo-sub li a.is-active { background: var(--green); color: #fff; padding-left: 18px; }
.mo-sub li a:hover svg { opacity: 1; transform: none; }

/* ==========================================================================
   ALUMNI — slim year rail, 5 columns (2 on mobile)
   ========================================================================== */
.alumni-layout { grid-template-columns: 104px 1fr; gap: clamp(20px, 2.6vw, 44px); }
.year-rail h4 { font-size: 11px; letter-spacing: .12em; margin-bottom: 12px; }
.year-rail button { font-size: 16px; padding: 9px 0 9px 14px; }
.year-rail button.is-active { padding-left: 18px; }
.year-rail button small { font-size: 11px; }
.alumni-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); }
.alum__body { padding: 14px 14px 16px; }
.alum__body h4 { font-size: 15px; }
.alum__body p { font-size: 13px; }
.alum__year { font-size: 11px; margin-top: 8px; }
.alum .tag { top: 10px; left: 10px; font-size: 10px; padding: 3px 8px; }
.alum__ph b { font-size: clamp(40px, 3.4vw, 60px); }
@media (max-width: 1200px) { .alumni-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .alumni-layout { grid-template-columns: 1fr; } .alumni-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .alumni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   NEWS & NOTICES
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 30px); }
.news-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card { display: flex; flex-direction: column; color: inherit; }
.news-card .media { position: relative; aspect-ratio: 16 / 10.5; border-radius: var(--radius); margin-bottom: 18px; }
.news-card:hover .media img { transform: scale(1.05); }
.news-card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #eaf2f8, #cfe0ec); }
.news-card__ph .pg-mark { width: 22%; height: auto; opacity: .85; }
.news-card__type { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--ink); }
.news-card__type--notice { background: var(--green); color: #fff; }
.news-single__meta .news-card__type { position: static; }
.news-card time { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.news-card.is-pinned time { color: var(--green); }
.news-card h3 { font-size: clamp(18px, 1.4vw, 22px); font-weight: 700; line-height: 1.3; margin: 8px 0 10px; transition: color .3s; }
.news-card:hover h3 { color: var(--green); }
.news-card p { font-size: 15px; color: var(--text); opacity: .7; margin-bottom: 14px; }
.news-card .link-arrow { margin-top: auto; align-self: flex-start; font-size: 14px; color: var(--ink); }
.home-news { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.side-box { padding: clamp(22px, 2.2vw, 30px); border-radius: var(--radius); background: var(--paper); }
.section--white .side-box { background: var(--paper); }
.side-box h4 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.notice-board .link-arrow { margin-top: 18px; font-size: 14px; color: var(--ink); }
.notice-list { display: grid; }
.notice-row { display: grid; grid-template-columns: 58px 1fr 20px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit; }
.notice-row:last-child { border-bottom: 0; }
.notice-row__date { display: grid; place-items: center; text-align: center; height: 58px; border-radius: 12px; background: var(--ink); color: rgba(255,255,255,.85); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; transition: background .3s; }
.notice-row__date b { display: block; font-size: 20px; color: #fff; letter-spacing: -.02em; }
.notice-row__title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); transition: color .3s; }
.notice-row__title em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--green); padding: 2px 7px; border-radius: 100px; vertical-align: 2px; }
.notice-row__go svg { width: 16px; height: 16px; color: var(--muted); transition: transform .4s var(--ease-out), color .3s; }
.notice-row:hover .notice-row__date { background: var(--green); }
.notice-row:hover .notice-row__title { color: var(--ink); }
.notice-row:hover .notice-row__go svg { transform: translate(2px, -2px); color: var(--green); }
.news-single { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.news-single__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.news-single__title { margin-bottom: 28px; max-width: 24ch; }
.news-single__img { aspect-ratio: 16 / 9; border-radius: var(--radius); margin: 0 0 32px; }
.news-single__side { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 18px; }
.news-share { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-share > span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.news-share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.news-share a:hover { background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-3px); }
.news-share svg { width: 16px; height: 16px; }
.nav-links .page-numbers svg { width: 16px; height: 16px; }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-news, .news-single { grid-template-columns: 1fr; } .news-single__side { position: static; } }
@media (max-width: 640px) { .news-grid, .news-grid--2 { grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER — quick contact with icons, simple full-width wave, mobile 2 cols
   ========================================================================== */
.qc-list { display: grid; gap: 16px; }
.qc-list li { display: flex; gap: 14px; align-items: flex-start; }
.qc-list li + li { margin-top: 0; }
.qc-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,106,186,.08); color: var(--ink); transition: background .3s, color .3s; }
.qc-ic svg { width: 18px; height: 18px; }
.qc-list li:hover .qc-ic { background: var(--green); color: #fff; }
.qc-list small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.qc-list a, .qc-list span { word-break: break-word; }
.footer-wave { position: relative; width: 100%; height: 64px; overflow: hidden; margin-top: clamp(20px, 3vw, 40px); }
.footer-wave__svg { position: absolute; left: 0; top: 0; width: 200%; max-width: none; height: 100%; animation: waveSlide 18s linear infinite; }
.footer-wave__svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.footer-wave__svg .w1 { stroke: var(--green); stroke-width: 2; opacity: .8; }
.footer-wave__svg .w2 { stroke: var(--ink); stroke-width: 1.5; opacity: .45; }
@keyframes waveSlide { to { transform: translateX(-50%); } }
.footer-wave + .container .footer-bottom { border-top: 0; }
@media (max-width: 1024px) and (min-width: 721px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-top .footer-brand, .footer-top .footer-contact { grid-column: 1 / -1; }
}
