/* Whales College website. Design tokens and components. */
:root {
  --abyss: #0A1B33;
  --abyss-2: #102846;
  --blue: #1F4FA8;
  --blue-deep: #173D84;
  --seaglass: #8FD8E8;
  --gold: #F4B740;
  --gold-deep: #D99A1E;
  --foam: #F2F6FA;
  --white: #FFFFFF;
  --ink: #13213A;
  --ink-soft: #4A5872;
  --line: #D6DEE8;
  --line-dark: rgba(143, 216, 232, 0.18);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 4rem);
  --step-5: clamp(2.9rem, 2rem + 4.6vw, 6.4rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--foam);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: inherit;
  font-weight: 750;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--abyss); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--gold); color: var(--abyss);
  font-size: var(--step--1); font-weight: 600;
}
.announce .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; padding-top: 8px; padding-bottom: 8px; text-align: center; flex-wrap: wrap; }
.announce a { color: var(--abyss); font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242, 246, 250, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.96); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--abyss); flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 10px 10px; white-space: nowrap; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem;
}
.nav a:hover { background: rgba(31, 79, 168, 0.08); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
  width: 46px; height: 46px; cursor: pointer; color: var(--abyss);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Mobile menu (full screen overlay) ---------- */
.announce-short { display: none; }
.mnav { position: fixed; inset: 0; z-index: 300; background: var(--abyss); color: var(--white); display: flex; flex-direction: column; padding: 14px var(--gutter) 28px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mnav[hidden] { display: none; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.mnav-top img { height: 36px; width: auto; }
.mnav-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; }
.mnav-close svg { width: 22px; height: 22px; }
.mnav ul { list-style: none; margin: 10px 0 0; padding: 0; }
.mnav li { margin: 0; border-bottom: 1px solid rgba(143,216,232,.15); }
.mnav nav a { display: block; padding: 11px 2px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); text-decoration: none; letter-spacing: -0.01em; }
.mnav nav a[aria-current="page"] { color: var(--seaglass); }
.mnav-actions { display: grid; gap: 10px; margin-top: 22px; }
.mnav-actions .btn { width: 100%; }
.mnav-actions .btn-ghost { color: var(--white); }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--abyss); }
.btn-gold:hover { background: var(--gold-deep); color: var(--abyss); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .btn-ghost { color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--abyss); border-color: var(--white); }
.btn-sm { padding: 11px 16px; font-size: 0.93rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(44px, 6vw, 72px) 0; }
.on-dark { background: var(--abyss); color: #DCE6F2; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark a:not(.btn) { color: var(--seaglass); }
.on-white { background: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.on-dark .section-head p { color: #B9C7DA; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.on-dark .lead { color: #C3D0E1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(3.1rem, 1.6rem + 6.4vw, 7.6rem); line-height: 0.92; letter-spacing: -0.04em; margin-bottom: 0.3em; color: var(--abyss); font-weight: 800; }
.hero h1 .line { display: block; }
.hero h1 .line-2 { color: var(--blue); }
.hero .lead { max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-media { position: relative; aspect-ratio: 4 / 5; }
.hero-media .ph {
  position: absolute; overflow: hidden; border-radius: var(--radius-l); background: var(--abyss-2);
  box-shadow: 0 30px 60px -30px rgba(10, 27, 51, 0.55);
}
.hero-media .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .ph-a { inset: 0 18% 22% 0; }
.hero-media .ph-b { right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 6px solid var(--foam); }
.hero-badge {
  position: absolute; left: -6%; bottom: 8%; z-index: 2;
  background: var(--gold); color: var(--abyss); border-radius: var(--radius-m); padding: 14px 18px;
  font-family: var(--font-display); font-weight: 800; line-height: 1.05; font-size: 1.05rem;
  box-shadow: 0 16px 30px -18px rgba(10, 27, 51, 0.6); max-width: 210px;
}
.hero-badge strong { display: block; font-size: 2.2rem; letter-spacing: -0.03em; }

/* Signature: the day strip */
.daystrip { margin-top: clamp(40px, 6vw, 72px); padding: 28px 0 34px; background: var(--abyss); color: #CFDBEA; }
.daystrip-inner { display: grid; grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.daystrip h2 { font-size: var(--step-2); color: var(--white); margin: 0 0 6px; }
.daystrip p { margin: 0; font-size: var(--step--1); color: #A9B8CC; }
.strip { position: relative; }
.strip-bar { display: flex; height: 64px; border-radius: 14px; overflow: hidden; background: #0F2A4D; }
.strip-seg { display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; }
.seg-sleep { flex: 8; background: #0C223F; color: #6D85A6; }
.seg-college { flex: 6; background: var(--blue); color: var(--white); }
.seg-free { flex: 8; background: linear-gradient(90deg, var(--seaglass), #C9F0F7); color: var(--abyss); }
.seg-rest { flex: 2; background: #0C223F; color: #6D85A6; }
.strip-scale { position: relative; height: 18px; font-size: 0.78rem; color: #7890B0; margin-top: 8px; font-variant-numeric: tabular-nums; }
.strip-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.strip-scale span:first-child { transform: none; }
.strip-scale span:last-child { transform: translateX(-100%); }
.strip-note { margin-top: 12px; font-size: 0.95rem; color: #CFDBEA; }
.strip-note strong { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .js .strip-seg { transform-origin: left center; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
  .js .seg-college { animation-delay: .25s; }
  .js .seg-free { animation-delay: .5s; }
  .js .seg-rest { animation-delay: .7s; }
  .js .hero h1 .line { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
  .js .hero h1 .line-2 { animation-delay: .12s; }
}
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Proof strip (stats) ---------- */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > div { padding: 28px 22px; border-left: 1px solid var(--line); }
.proof > div:first-child { border-left: 0; padding-left: 0; }
.proof b { display: block; font-family: var(--font-display); font-size: var(--step-4); line-height: 1; letter-spacing: -0.03em; color: var(--abyss); }
.proof span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.4; }

/* ---------- Promise / split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split-media { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5 / 4; background: var(--abyss-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 38px; margin: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.on-dark .ticks li::before { background-color: var(--seaglass); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1B33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* ---------- Programmes ---------- */
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.program {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.program h3 { margin: 0; }
.program .subjects { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; padding: 0; list-style: none; }
.program .subjects li { margin: 0; font-size: 0.85rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #E8EFF8; color: var(--blue-deep); }
.program .leads-to { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.program .leads-to strong { color: var(--ink); }
.program-accent { position: absolute; top: 0; left: 28px; right: 28px; height: 4px; border-radius: 0 0 4px 4px; }
.pa-sci { background: var(--blue); }
.pa-com { background: var(--gold); }
.pa-gen { background: var(--seaglass); }

/* ---------- Results ---------- */
.scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.score {
  background: var(--abyss-2); border: 1px solid var(--line-dark); border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column;
}
.score-top { padding: 22px 22px 16px; }
.score-num { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.score-sub { color: var(--white); font-weight: 700; margin-top: 6px; }
.score-name { color: #A9B8CC; font-size: 0.93rem; margin-top: 2px; }
.score img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; margin-top: auto; background: #0C223F; }
.results-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; align-items: center; }

/* ---------- Event cards ---------- */
.events-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.event-card {
  grid-column: span 4; background: var(--white); border-radius: var(--radius-m); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--line); text-decoration: none; color: inherit;
  cursor: pointer; text-align: left; padding: 0; font: inherit;
}
.event-card:hover { border-color: var(--blue); color: inherit; }
.event-card:hover img { transform: scale(1.03); }
.event-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: #DCE5F0; position: relative; }
.event-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card .count { position: absolute; right: 12px; bottom: 12px; background: rgba(10,27,51,.82); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.event-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card time { font-size: 0.87rem; color: var(--ink-soft); font-weight: 600; }
.event-card h3 { font-size: var(--step-1); margin: 0; line-height: 1.2; }
.event-card p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }
.event-card .tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #E8EFF8; color: var(--blue-deep); }
.event-card.feature { grid-column: span 8; }
.event-card.feature .media { aspect-ratio: 16 / 9; }
.event-card.feature h3 { font-size: var(--step-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit; font-weight: 600; font-size: 0.93rem; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--abyss); color: var(--white); border-color: var(--abyss); }
.month-head { grid-column: 1 / -1; font-family: var(--font-display); font-size: var(--step-2); margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Lightbox / event dialog ---------- */
.dialog { border: 0; padding: 0; width: min(1100px, 94vw); max-height: 92vh; border-radius: var(--radius-m); background: var(--white); color: var(--ink); }
.dialog::backdrop { background: rgba(6, 15, 30, 0.82); }
.dialog-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); max-height: 92vh; }
.dialog-media { background: #050E1C; position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.dialog-media img { max-height: 80vh; width: 100%; object-fit: contain; }
.dialog-text { padding: 28px; overflow: auto; max-height: 92vh; }
.dialog-text time { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.dialog-text h3 { margin: 6px 0 14px; }
.dialog-text .desc { white-space: pre-line; font-size: 0.98rem; color: var(--ink); }
.dialog-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-size: 22px; line-height: 1; color: var(--abyss); }
.dialog-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); cursor: pointer; font-size: 22px; color: var(--abyss); }
.dialog-prev { left: 10px; } .dialog-next { right: 10px; }
.dialog-counter { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.thumbs button { width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #E8EFF8; }
.thumbs button[aria-current="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--abyss); }
.value { padding: 28px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value h3 { font-size: var(--step-3); margin-bottom: 10px; }
.on-dark .values { border-top-color: var(--seaglass); }
.on-dark .value + .value { border-left-color: var(--line-dark); }

/* ---------- Steps (real sequences) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); margin: 0; }
.steps > li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--blue); }
.steps h3 { margin: 0 0 6px; font-size: var(--step-1); }
.steps p { margin: 0; color: var(--ink-soft); }
.on-dark .steps > li { border-top-color: var(--line-dark); }
.on-dark .steps > li::before { color: var(--seaglass); }
.on-dark .steps p { color: #B9C7DA; }
.steps-h { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps-h > li { counter-increment: step; padding: 22px 18px 0 0; border-top: 3px solid var(--line-dark); margin: 0; position: relative; }
.steps-h > li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.steps-h h3 { font-size: var(--step-1); margin: 0 0 8px; }
.steps-h p { font-size: 0.95rem; margin: 0; }

/* ---------- Quote ---------- */
.quote { margin: 0; padding: 0; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1.18; letter-spacing: -0.02em; }
.quote figcaption { margin-top: 18px; font-weight: 600; color: var(--ink-soft); }
.on-dark .quote figcaption { color: #A9B8CC; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quotes .quote { background: var(--white); border-radius: var(--radius-m); padding: 28px; border: 1px solid var(--line); }
.quotes .quote blockquote { font-family: var(--font-body); font-weight: 500; font-size: 1.04rem; line-height: 1.6; letter-spacing: 0; }

/* ---------- Mosaic gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 10px; }
.mosaic a, .mosaic button { display: block; border-radius: 10px; overflow: hidden; background: #DCE5F0; padding: 0; border: 0; cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img, .mosaic button:hover img { transform: scale(1.04); }
.mosaic .w2 { grid-column: span 2; } .mosaic .h2 { grid-row: span 2; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #EAF0F7; font-weight: 700; color: var(--abyss); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 400; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq .answer p { max-width: 75ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--step-5); max-width: 15ch; color: var(--abyss); }
.page-hero .lead { max-width: 60ch; }
.page-hero.on-dark h1 { color: var(--white); }
.crumbs { font-size: 0.9rem; margin-bottom: 18px; color: var(--ink-soft); }
.crumbs a { color: inherit; }
.page-hero-media { margin-top: 36px; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 21 / 8; background: var(--abyss-2); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.panel h3 { font-size: var(--step-1); margin-bottom: 8px; }
.panel p:last-child { margin-bottom: 0; }
.on-dark .panel { background: var(--abyss-2); border-color: var(--line-dark); }
.facility { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.facility svg { width: 40px; height: 40px; color: var(--blue); }
.facility h3 { font-size: 1.12rem; margin: 6px 0 4px; }
.facility p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #E6EEFA; border-radius: var(--radius-l); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center; }
.cta-band h2 { color: var(--white); font-size: var(--step-4); margin-bottom: 10px; }
.cta-band p { margin: 0; color: #D3E0F5; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn-ghost { color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--blue); border-color: var(--white); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; margin: 0; }
.contact-list svg { width: 26px; height: 26px; color: var(--blue); margin-top: 3px; }
.contact-list b { display: block; }
.map { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius-m); background: #DCE5F0; }
form .field { display: grid; gap: 6px; margin-bottom: 16px; }
form label { font-weight: 600; font-size: 0.95rem; }
form input, form select, form textarea {
  font: inherit; padding: 13px 14px; border-radius: 10px; border: 1px solid #B9C6D6; background: var(--white); color: var(--ink); width: 100%;
}
form input:focus, form select:focus, form textarea:focus { outline: 3px solid rgba(31,79,168,.25); border-color: var(--blue); }
form .hint { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--abyss); color: #B9C7DA; padding: clamp(56px, 7vw, 88px) 0 24px; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-size: 1.05rem; color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #DCE6F2; text-decoration: none; }
.site-footer a:hover { color: var(--seaglass); text-decoration: underline; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #9FB0C6; max-width: 38ch; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(143,216,232,.1); }
.socials a:hover { background: var(--seaglass); color: var(--abyss); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; color: #8396B0; }
.credit { text-align: center; font-size: 11px; color: #7C8DA6; padding: 16px 0 4px; }
.credit a { color: #7C8DA6 !important; text-decoration: underline !important; }

/* ---------- Faculty ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.fac { display: flex; flex-direction: column; text-align: left; background: none; border: 0; padding: 0; cursor: zoom-in; font: inherit; color: inherit; }
.fac img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 12px; background: #DCE5F0; transition: transform .3s; }
.fac:hover img { transform: translateY(-3px); }
.fac-name { font-weight: 700; margin-top: 10px; line-height: 1.25; }
.fac-sub { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Score cards as buttons, light variant, MDCAT ---------- */
button.score { font: inherit; text-align: left; padding: 0; cursor: zoom-in; color: inherit; }
button.score:hover { border-color: var(--gold); }
.scores-light .score { background: var(--white); border-color: var(--line); }
.scores-light .score-num { color: var(--blue); }
.scores-light .score-sub { color: var(--ink); }
.scores-light .score-name { color: var(--ink-soft); }
.scores-light .score img { background: #EAF0F7; }
.mdcat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.mdcat li { margin: 0; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-dark); display: flex; gap: 14px; align-items: baseline; }
.mdcat b { font-family: var(--font-display); font-size: var(--step-2); color: var(--gold); letter-spacing: -0.02em; min-width: 4.4ch; }
.mdcat span { color: #DCE6F2; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45);
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Reveal (single, subtle) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 1080px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--foam); }
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .header-cta { margin-left: 0; }

  .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-card, .event-card.feature { grid-column: span 6; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-h { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .faculty-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mdcat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .split, .section-head, .grid-2, .cta-band, .daystrip-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-badge { left: 0; }
  .programs, .grid-3, .quotes, .values { grid-template-columns: minmax(0, 1fr); }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .on-dark .value + .value { border-top-color: var(--line-dark); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faculty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaic .w2 { grid-column: span 2; }
  .dialog-inner { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .dialog-text { max-height: none; }
  .page-hero-media { aspect-ratio: 4 / 3; }
  .split-media { order: -1; }
}
@media (max-width: 600px) {
  .announce-long { display: none; }
  .announce-short { display: inline; }
  .announce .wrap { gap: 6px 10px; padding-top: 7px; padding-bottom: 7px; }
  .site-header .wrap { gap: 10px; }
  .brand img { height: 32px; }
  .header-cta .btn-primary { padding: 10px 12px; font-size: .85rem; }
  .menu-toggle { width: 42px; height: 42px; }
  .event-card, .event-card.feature { grid-column: 1 / -1; }
  .scores { grid-template-columns: minmax(0, 1fr); }
  .steps-h { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdcat { grid-template-columns: minmax(0, 1fr); }
  .strip-seg { font-size: .74rem; padding: 0 6px; }
  .seg-rest { font-size: 0 !important; }
  .seg-sleep { justify-content: center; color: #8FA6C4; }
  .seg-long { display: none; }
  .strip-scale span:nth-child(4) { display: none; }
  .steps > li { grid-template-columns: 48px minmax(0, 1fr); }
  .steps > li::before { font-size: 2rem; }
  th, td { padding: 10px 12px; }
}

/* ---------- Home: faculty, results, life ---------- */
.section-head.head-row { grid-template-columns: minmax(0, 1fr) auto; }
.section-head.head-row p { margin-top: 12px; max-width: 62ch; }
.mdcat-title, .recent-title { font-size: var(--step-2); margin: clamp(36px, 5vw, 56px) 0 16px; }
.on-dark .mdcat-title { color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.life-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.life-tile { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; color: var(--white); text-decoration: none; background: var(--abyss); }
.life-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s; }
.life-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,27,51,0) 25%, rgba(10,27,51,.75) 55%, rgba(10,27,51,.97) 100%); }
.life-tile span { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; font-size: .93rem; line-height: 1.4; color: #DCE6F2; }
.life-tile b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 4px; }
.life-tile:hover img { transform: scale(1.05); }
.life-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 900px) {
  .life-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head.head-row { grid-template-columns: minmax(0, 1fr); }
  .section-head.head-row .btn { justify-self: start; }
}
@media (max-width: 600px) {
  .faculty-rail, .scores-rail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
  .faculty-rail { grid-auto-columns: 44%; }
  .faculty-rail > *, .scores-rail > * { scroll-snap-align: start; }
  .life-tile { aspect-ratio: 3 / 4; }
  .life-tile span { padding: 12px; font-size: .82rem; }
  .life-tile b { font-size: 1.05rem; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 1080px) {
  .header-cta .btn-sm { min-height: 42px; }
  .site-header .brand { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 600px) {
  .announce a { display: inline-block; padding: 6px 0; }
  .site-footer a { display: inline-block; padding: 4px 0; }
}
@media (max-width: 600px) {
  .scores:not(.scores-rail) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .scores:not(.scores-rail) .score-top { padding: 14px 12px 10px; }
  .scores:not(.scores-rail) .score-num { font-size: 1.85rem; }
  .scores:not(.scores-rail) .score-sub { font-size: .84rem; line-height: 1.3; }
  .scores:not(.scores-rail) .score-name { font-size: .8rem; }
}
@media (max-width: 600px) {
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .mini-grid .panel { padding: 14px; }
  .mini-grid .panel h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .mini-grid .panel p { font-size: .86rem; line-height: 1.4; }
}
@media (max-width: 600px) {
  .events-grid { gap: 12px; }
  .event-card:not(.feature) { flex-direction: row; align-items: stretch; }
  .event-card:not(.feature) .media { flex: 0 0 38%; aspect-ratio: auto; min-height: 132px; }
  .event-card:not(.feature) .count { right: 6px; bottom: 6px; font-size: .7rem; padding: 3px 7px; }
  .event-card:not(.feature) .body { padding: 12px 14px; gap: 5px; }
  .event-card:not(.feature) h3 { font-size: 1.02rem; }
  .event-card:not(.feature) .tag { font-size: .7rem; padding: 3px 8px; }
  .event-card:not(.feature) time { font-size: .78rem; }
  .event-card:not(.feature) p { font-size: .84rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .filter { flex: 0 0 auto; }
}
.mnav-top, .mnav nav, .mnav-actions { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
