/* Let's Ace — one stylesheet for both sites. Final design: the answer sheet, softened with the 2026-10 look.
   Kept from the old look: Archivo for all text (2026-11-22: same type on every page), rounded sheets and pill buttons, cobalt + gold (Global),
   deep green + ivory + gold (IMAT), dark bands, the departures board and perforated stamp photos.
   The IMAT is a bubble-sheet exam, so the system borrows from it:
   - anything you can CHOOSE is a bubble (filters, destinations, quiz, form choices, hero city picker)
   - anything you can DO is a box (buttons)
   - ballpoint "pen" ink marks your choices; a highlighter marks the one thing to act on
   - type width carries the role: expanded = headings, normal = reading, condensed = numbers
   body.site-global = blue pen. body.site-imat = green pen. Light mode only.
   Breakpoints: phone < 768, tablet 768-1023, desktop >= 1024. */

/* ---------- Tokens ---------- */
:root {
  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 66px;
  --r: 12px;         /* inputs and small boxes */
  --r-sheet: 22px;   /* sheets of paper */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --section: clamp(72px, 9vw, 120px);

  --paper: #eef1f5;      /* the desk: cool copier-paper grey, never cream */
  --sheet: #ffffff;      /* a sheet on the desk */
  --sunk: #e3e8ef;       /* small fills */
  --ink: #141a33;        /* printed text */
  --muted: #4c5570;
  --rule: #cdd5e1;       /* printed form lines */
  --rule-strong: #9aa6bb;
  --hi: #ffe94a;         /* highlighter */
  --hi-deep: #f2d500;
  --wrong: #c22f3d;
  --night: #050a1f;      /* globe sky + footer */
  --night-ink: #eef1ff;
  --night-muted: #a9b3d6;
  --night-line: rgba(255, 255, 255, .13);
  color-scheme: light;
}
.site-global {
  --paper: #f5f2ea; --sunk: #ebe6da; --ink: #0d1530; --muted: #4f5568; --rule: #e2dccf; --rule-strong: #b3ab9b;
  --pen: #1f5eff; --pen-deep: #1749d6; --pen-wash: #e3eaff;
  --hi: #ffb81c; --hi-deep: #ffc845; --band: #0c0f17; --night: #0c0f17; --band-muted: #aab4d8; --band-line: rgba(255, 255, 255, .12);
}
.site-imat {
  /* 2026-11-22: clean white and ink with one royal blue, shared with the Global site. Headings in Archivo, not the quirky display face */
  --paper: #f4f6f9; --sheet: #ffffff; --sunk: #e9edf3; --ink: #0f1a2a; --muted: #53617a; --rule: #dfe4ec; --rule-strong: #a9b3c4;
  --pen: #1d4ed8; --pen-deep: #1a3fb0; --pen-wash: #e5ecff; --wrong: #c2412d;
  --hi: #a9c4ff; --hi-deep: #c3d5ff; --band: #0f1a2a; --band-muted: #a7b3c7; --band-line: rgba(255, 255, 255, .12);
  --night: #0f1a2a; --night-muted: #a7b3c7;
}
.site-imat .btn--accent { background: var(--pen); border-color: var(--pen); color: #fff; }
.site-imat .btn--accent:hover { background: var(--pen-deep); border-color: var(--pen-deep); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
html.menu-open .announce, html.menu-open .chat { display: none; } /* keeps the header at the top so the menu sheet starts right under it */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  caret-color: var(--pen); accent-color: var(--pen);
}
::selection { background: var(--hi); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0 0 .5em; text-wrap: balance; color: inherit; font-family: var(--display); font-stretch: 100% !important; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.25rem); font-weight: 760; line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 760; line-height: 1.06; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--pen); outline-offset: 3px; border-radius: 3px; }
.num, [data-cd] { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }
.head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.head p { color: var(--muted); font-size: 1.12rem; margin: 0; max-width: 40em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.22rem); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.textlink { color: var(--pen); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.textlink:hover { text-decoration-thickness: 3px; }
 .quiz, .form, .map, .uni, .note-box, .unis-empty, .path, .cta {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sheet);
}

/* ---------- Boxes (buttons) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border: 1.5px solid var(--pen); border-radius: 999px; background: var(--pen); color: #fff;
  font: 650 1rem/1.1 var(--font); font-stretch: 104%; text-decoration: none; text-align: center; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .2s var(--ease);
}
.btn:hover { background: var(--pen-deep); border-color: var(--pen-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
/* the one thing to act on gets the highlighter */
.btn--accent { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.btn--accent:hover { background: var(--hi-deep); border-color: var(--hi-deep); }
.btn--ghost { background: transparent; border-color: var(--rule-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Bubbles (choices) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.chip, .dest, .choice span, .map__list button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 10px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: .95rem;
  transition: background-color .15s, color .15s;
}
.chip::before, .dest::before, .choice span::before, .map__list button::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--rule-strong); background: transparent; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.chip:hover, .choice span:hover, .map__list button:hover { background: var(--sunk); }
.chip:hover::before, .choice span:hover::before, .map__list button:hover::before { border-color: var(--pen); }
.chip[aria-pressed="true"]::before, .choice input:checked + span::before, .map__list button.is-active::before {
  border-color: var(--pen); background: var(--pen); box-shadow: inset 0 0 0 3px var(--sheet);
}
.chip[aria-pressed="true"], .map__list button.is-active { color: var(--pen); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--r); font: 650 .82rem/1.2 var(--font); background: var(--sunk); color: var(--muted); }
.pill--live { background: var(--hi); color: var(--ink); }

/* ---------- Announcement bar (IMAT) ---------- */
.announce { background: var(--ink); color: #c9cfe2; font-size: .9rem; }
.announce .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.announce p { margin: 0; }
.announce a { color: #fff; font-weight: 650; text-underline-offset: 3px; }
.announce p a { background: var(--hi); color: var(--ink); padding: 1px 6px; border-radius: 2px; text-decoration: none; }

@media (max-width: 767px) {  .announce .wrap { justify-content: center; text-align: center; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
/* blur lives on a layer: a backdrop-filter on .header itself would trap the fixed menu sheet inside the bar */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header.is-scrolled { border-bottom-color: var(--rule); }
.header__bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; min-height: 44px; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .15s; }
.nav > a:hover, .nav > a.is-active, .nav > a[aria-current="page"] { color: var(--ink); }
/* the section you're in is underlined like a pen stroke */
.nav > a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 9px; height: 2px; background: var(--pen); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav > a.is-active::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav__extra { display: none; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1023px) {
  .header__actions { margin-left: auto; }
  .menu-btn { display: inline-block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 59; margin: 0; padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s; }
  .nav > a { min-height: 58px; padding: 0; border-bottom: 1px solid var(--rule); color: var(--ink); font: 720 1.4rem/1.2 var(--display); }
  .nav > a::after { display: none; }
  .nav > a.is-active { color: var(--pen); }
  .nav__extra { display: grid; gap: 12px; margin-top: auto; padding-top: 28px; }
  .nav__extra .btn { width: 100%; }
  .nav__extra p { margin: 0; font-size: .92rem; color: var(--muted); }
  .nav__extra a:not(.btn) { color: inherit; font-weight: 650; }
}
@media (max-width: 479px) { .header__actions .btn { display: none; } }

/* Reading progress: a pen line along the top */
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 61; height: 2px; background: var(--pen); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- Motion: one entrance on load, quiet reveals after ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s var(--out) both; animation-delay: calc(var(--d, 0) * 80ms + 60ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.motion [data-reveal] { opacity: 0; transition: opacity .6s var(--out); }
.motion [data-reveal].is-in { opacity: 1; }

/* ============================================================
   GLOBAL: Earth hero (the one bold moment on the Global page)
   ============================================================ */
.earth {
  position: relative; isolation: isolate; overflow: hidden; color: var(--night-ink);
  background: url("assets/night-sky.png") center / cover, var(--night);
}
.earth h1 { color: #fff; max-width: 15em; }
.earth .lead { color: var(--night-muted); max-width: 34em; }

.earth .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.earth .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.earth__stage { position: relative; z-index: 0; }
.earth__stage::before { /* stand-in planet while textures load, or without WebGL */
  content: ""; position: absolute; left: 50%; top: 50%; width: min(78%, 520px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #10295e 0%, #06112e 40%, #040a1c 70%); box-shadow: 0 -2px 0 rgba(150, 196, 255, .8), 0 -10px 30px rgba(79, 140, 255, .55), 0 -40px 90px rgba(79, 127, 217, .35); transition: opacity 1.2s;
}
.earth.is-live .earth__stage::before { opacity: 0; }
.earth__copy { position: relative; z-index: 3; }
.earth__bar { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.earth__now {
  margin: 0; display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r);
  background: rgba(5, 10, 31, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #c3cbea; font-size: .95rem; line-height: 1.35;
}
.earth__now b { color: #fff; }
/* destinations are bubbles on a dark strip */
.dests { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(5, 10, 31, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dest { color: #e6eaff; padding-right: 16px; }
.dest small { font-weight: 500; color: var(--night-muted); font-size: .82rem; }
.dest::before { border-color: rgba(255, 255, 255, .5); }
.dest:hover { background: rgba(255, 255, 255, .08); }
.dest[aria-pressed="true"] { background: #fff; color: var(--ink); }
.dest[aria-pressed="true"] small { color: var(--muted); }
.dest[aria-pressed="true"]::before { border-color: var(--pen); background: var(--pen); box-shadow: inset 0 0 0 3px #fff; }
.earth__from { display: inline-flex; align-items: center; gap: 8px; color: var(--night-muted); font-size: .9rem; }
.earth__from select { min-height: 44px; padding: 0 34px 0 14px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .3); background: rgba(5, 10, 31, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23c3cbea' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; color: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; }
.earth__from select option { color: var(--ink); }

/* Globe pins */
.pin { position: relative; width: 0; height: 0; }
.pin i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(5, 10, 31, .6), 0 2px 6px rgba(0, 0, 0, .4); }
.pin--you i { left: -7px; top: -7px; width: 14px; height: 14px; background: var(--hi); }
.pin--you i::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid var(--hi); animation: radar 2.4s var(--out) infinite; }
@keyframes radar { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.pin__tag { position: absolute; left: 14px; top: -14px; white-space: nowrap; padding: 4px 9px; border-radius: var(--r); background: #fff; color: var(--ink); font: 650 .8rem/1.2 var(--font); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); pointer-events: none; }
.pin--dest button { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.pin--dest button i { left: 17px; top: 17px; }
.pin--dest .pin__tag { left: 12px; top: -30px; display: flex; gap: 6px; align-items: baseline; opacity: .82; transition: opacity .3s, transform .4s var(--out); transform: scale(.92); transform-origin: left bottom; }
.pin--dest .pin__tag small { font-weight: 500; color: var(--muted); }
.pin--dest.is-up i { background: var(--hi); }
.pin--dest.is-up .pin__tag { opacity: 1; transform: none; background: var(--hi); }

/* Phone: copy, then the planet, then the controls */
.earth__copy { padding-top: clamp(40px, 9vw, 64px); }
.earth .btn-row { margin-top: 28px; }
.earth__stage { height: min(92vw, 520px); margin-top: 8px; }
.earth__bar { padding-bottom: 36px; }
.earth__from { display: none; }
@media (pointer: coarse) { .earth__stage canvas { pointer-events: none; } } /* touch scrolls the page, never spins the globe */
/* Phone: no 3D globe (it reads as clutter on a small screen). Big type over the stars, and Earth's
   curved edge glowing at the bottom, as seen from orbit. Pure CSS, nothing to download. */
@media (max-width: 767px) {
  .earth { min-height: calc(100svh - var(--header-h) - 40px); display: flex; flex-direction: column; padding-bottom: 34vw; }
  .earth__stage, .earth__bar { display: none; }
  .earth h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .earth .btn-row .btn { flex: 1 1 100%; }
  .earth::after {
    content: ""; position: absolute; z-index: 1; left: 50%; bottom: -172vw; width: 210vw; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
    background: radial-gradient(circle at 50% 0%, #10295e 0%, #06112e 40%, #040a1c 70%);
    box-shadow: 0 -2px 0 rgba(150, 196, 255, .8), 0 -10px 30px rgba(79, 140, 255, .55), 0 -40px 90px rgba(79, 127, 217, .35);
  }
}
/* Tablet and desktop: copy over a planet whose curved horizon rises from the bottom edge */
@media (min-width: 768px) {
  .earth { display: flex; flex-direction: column; min-height: max(calc(100svh - var(--header-h)), calc(var(--copy-end, 520px) + 320px)); }
  .earth__copy { padding-top: clamp(40px, 8vh, 88px); }
  .earth__stage { position: absolute; left: 0; right: 0; top: calc(var(--copy-end, 520px) - 145px); height: calc(max(calc((100% - var(--copy-end, 520px)) * 2), 220vw) + 290px); margin: 0; cursor: grab; } /* 145px of sky above the crest, see HEADROOM in script.js */
  .earth__stage:active { cursor: grabbing; }
  .earth__stage::before { width: auto; height: calc(100% - 300px); }
  .earth__bar { margin-top: auto; padding-top: 24px; padding-bottom: 24px; }
  .earth__from { display: inline-flex; }
}
@media (min-width: 1024px) { .earth__bar { flex-wrap: nowrap; padding-right: 140px; } .dests { flex: none; flex-wrap: nowrap; } .earth__now { flex: 1 1 auto; } }  /* right padding clears the fixed Ask Ace button */
/* Grand, minimal: one centred statement above the planet */
@media (min-width: 768px) {
  .earth__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .earth h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); max-width: 12em; letter-spacing: -.045em; line-height: .98; }
  .earth .lead { font-size: 1.2rem; }
  .earth .btn-row { justify-content: center; }
}
@media (min-width: 768px) and (max-height: 820px) {
  .earth__copy { padding-top: 28px; }
  .earth h1 { font-size: clamp(2.8rem, 5.4vw, 4.6rem); }
  .earth .btn-row { margin-top: 20px; }
}

/* ============================================================
   GLOBAL: What we offer
   ============================================================ */

.facts-row { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.facts-row li { display: inline-flex; align-items: center; gap: 8px; }
/* included = a filled-in bubble */
.facts-row li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--pen); box-shadow: inset 0 0 0 2.5px var(--sheet), 0 0 0 1.5px var(--pen); }

/* Coming soon: a departures board printed on paper */

.flight { display: grid; grid-template-columns: 6.6rem 1fr auto; align-items: center; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.flight:last-child { border-bottom: 1px solid var(--rule); }

@media (max-width: 479px) {
  .flight { grid-template-columns: auto 1fr; }
  
}

/* ============================================================
   Steps: a real sequence, so they get numbers. The pen line fills as you scroll.
   ============================================================ */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-left: 60px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--rule-strong); color: var(--muted); font: 700 1rem/1 var(--font); font-stretch: 80%;
  transition: background-color .3s, color .3s, border-color .3s;
}
.steps li.is-on::before { background: var(--pen); border-color: var(--pen); color: #fff; }
.steps h3 { margin: 8px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--rule); }
.steps::after { background: var(--pen); transform-origin: top; transform: scaleY(var(--fill, 0)); }
@media (min-width: 1024px) {
  .steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps--row li { padding: 64px 0 0; }
  .steps--row h3 { margin-top: 0; }
  .steps--row::before, .steps--row::after { left: 20px; right: calc((100% - 96px) / 4 - 20px); top: 19px; bottom: auto; width: auto; height: 2px; }
  .steps--row::after { transform-origin: left; transform: scaleX(var(--fill, 0)); }
}

/* ============================================================
   GLOBAL: About + team
   ============================================================ */
.about { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 1024px) { .about { grid-template-columns: .95fr 1.05fr; align-items: start; } }
.about .lead { margin-bottom: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
.ticks li:last-child { border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; grid-row: span 2; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--pen); box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1.5px var(--pen); }
.ticks b { font: 680 1.08rem/1.3 var(--display); }
.ticks span { color: var(--muted); }

/* ============================================================
   FAQ (both sites)
   ============================================================ */
.faq { display: grid; gap: 28px 64px; }
@media (min-width: 1024px) { .faq { grid-template-columns: .8fr 1.2fr; } .faq__intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq__intro p { color: var(--muted); }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font: 650 1.1rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--r); border: 1px solid var(--rule-strong); background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23141a33' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { border-color: var(--ink); }
.faq details p { margin: 0; padding: 0 48px 22px 0; color: var(--muted); max-width: 40em; }

/* ============================================================
   CTA sheet (Global contact, universities page)
   ============================================================ */
.cta { display: grid; gap: 28px; padding: clamp(28px, 5vw, 56px); border: 1.5px solid var(--ink); }
.cta h2 { max-width: 16em; margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 36em; margin: 0; }
.cta .btn-row { align-self: end; }
@media (min-width: 1024px) { .cta { grid-template-columns: 1.3fr auto; align-items: end; } }
.contact-lines { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; }
.contact-lines svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.contact-lines a { font-weight: 650; text-underline-offset: 3px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--night); color: var(--night-muted); padding: clamp(56px, 7vw, 88px) 0 calc(88px + env(safe-area-inset-bottom)); font-size: .95rem; } /* bottom room keeps the Ask Ace button off the last line */
.footer .brand { color: #fff; }

.footer__top { display: grid; gap: 36px 48px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); } .footer__about { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.4fr repeat(var(--cols, 2), minmax(0, 1fr)); } .footer__about { grid-column: auto; } }
.footer__about p { margin: 16px 0 0; max-width: 30em; }
.footer__about a { color: #fff; }
.footer h3 { font: 700 .95rem/1.2 var(--display); color: #fff; margin: 6px 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer li a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid var(--night-line); font-size: .86rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-underline-offset: 3px; }
.footer__bottom a:hover { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (max-width: 767px) { .footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer__cols > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 768px) { .footer__cols { display: contents; } }

/* ============================================================
   Ask Ace chat
   ============================================================ */
.chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55; }
.chat__launcher {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 650; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 30px -14px rgba(0, 0, 0, .55);
}
.chat__launcher:active { transform: translateY(1px); }
.chat__launcher svg { width: 36px; height: 36px; }
.chat__panel {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100svh - 120px));
  display: flex; flex-direction: column; overflow: hidden; background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-sheet);
  box-shadow: 0 30px 60px -30px rgba(20, 26, 51, .45); transform-origin: bottom right; animation: pop .22s var(--out);
}
.chat__panel[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--rule); }
.chat__head svg.avatar-mark { width: 36px; height: 36px; }
.chat__head b { display: block; font-family: var(--display); }
.chat__head small { color: var(--muted); }
.chat__close { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; cursor: pointer; }
.chat__close:hover { background: var(--sunk); }
.chat__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 8px; align-content: start; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 12px; font-size: .95rem; line-height: 1.45; animation: pop .22s var(--out) both; }
.msg--bot { background: var(--paper); border-bottom-left-radius: 3px; justify-self: start; }
.msg--me { background: var(--pen); color: #fff; border-bottom-right-radius: 3px; justify-self: end; }
.msg--typing { display: flex; gap: 4px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat__chips .chip { min-height: 38px; font-size: .85rem; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r); }
.chat__chips .chip::before { display: none; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.chat__form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--rule-strong); background: var(--sheet); }
@media (max-width: 767px) {
  .chat__launcher { padding: 8px; }
  .chat__launcher span { display: none; }
  .chat__panel { position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; max-height: calc(100svh - 160px); }
}

/* ============================================================
   IMAT: hero — who we are on the left, a real medical-school city on the right
   ============================================================ */

/* Countdown and exam facts: the header strip of the paper */

.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cd div { display: grid; gap: 2px; }
.cd b { font: 760 clamp(2rem, 4.4vw, 3.1rem)/1 var(--font); font-stretch: 70%; letter-spacing: -.01em; }
.cd b { color: var(--pen); }
.cd span { color: var(--muted); font-size: .88rem; }

@media (max-width: 479px) { .cd { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; } }

/* ============================================================
   IMAT: the exam (split, marking, calculator)
   ============================================================ */

/* one hue, five strengths: the subjects are parts of one paper, not five brands */

/* ============================================================
   IMAT: requirements
   ============================================================ */

@media (max-width: 479px) { .btn { white-space: normal; padding-block: 12px; } } /* long labels wrap instead of widening the page */

/* ============================================================
   IMAT: cut-off table (cards on phone)
   ============================================================ */

.search { width: min(100%, 300px); min-height: 44px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--rule-strong); background: var(--sheet); }
.search:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-wash); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--rule); }
th { padding: 6px 10px; font-size: .85rem; color: var(--muted); background: var(--paper); }
th button { min-height: 40px; padding: 0 8px; border: 0; background: none; font-weight: 650; cursor: pointer; border-radius: var(--r); color: inherit; }
th button:hover { background: var(--sunk); }
th button[data-dir="asc"]::after { content: " ↑"; }
th button[data-dir="desc"]::after { content: " ↓"; }
tbody tr:hover { background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; font-stretch: 80%; font-size: 1.05rem; }

@media (max-width: 767px) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tbody tr, tbody td { display: block; }
  tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  tbody td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; }
  tbody td::before { content: attr(data-label); color: var(--muted); font-weight: 500; font-size: .9rem; text-align: left; font-stretch: 100%; }
  tbody td:first-child { display: block; padding-bottom: 6px; text-align: left; font-size: 1.05rem; }
  tbody td:first-child::before { display: none; }
  .search { width: 100%; }
}

/* ============================================================
   IMAT: universities teaser
   ============================================================ */

/* ============================================================
   IMAT: practice question
   ============================================================ */
.try { display: grid; gap: 32px; }
@media (min-width: 1024px) { .try { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; } }
.quiz { padding: clamp(22px, 3vw, 32px); }

.quiz__opt {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 6px 10px; border-radius: var(--r); border: 0;
  background: transparent; text-align: left; cursor: pointer; font-weight: 500; transition: background-color .15s;
}
.bubble { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--rule-strong); background: var(--sheet); font: 700 .85rem var(--font); font-stretch: 80%; color: var(--muted); transition: background-color .15s, color .15s, border-color .15s; }
.quiz__opt:hover:not(:disabled) { background: var(--paper); }
.quiz__opt:hover:not(:disabled) .bubble { border-color: var(--pen); color: var(--pen); }
.quiz__opt:disabled { cursor: default; }
.quiz__opt.is-right { background: var(--pen-wash); }
.quiz__opt.is-right .bubble { background: var(--pen); border-color: var(--pen); color: #fff; }
.quiz__opt.is-wrong { background: color-mix(in srgb, var(--wrong) 9%, var(--sheet)); }
.quiz__opt.is-wrong .bubble { background: var(--wrong); border-color: var(--wrong); color: #fff; }

/* ============================================================
   IMAT: course
   ============================================================ */
.course { display: grid; gap: 32px; }
@media (min-width: 1024px) { .course { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: stretch; } }
.includes { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.includes li { display: grid; gap: 4px 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .includes li { grid-template-columns: 12rem 1fr; } }
.includes b { font: 700 1.15rem/1.3 var(--display); }
.includes span { color: var(--muted); }
.path { padding: clamp(24px, 3.4vw, 34px); }
.path > h3 { font-size: 1.35rem; font-weight: 680; margin-bottom: 24px; }
.path .steps li::before { background: var(--sheet); }
.path .steps li.is-on::before { background: var(--pen); }
.path .btn { margin-top: 28px; }

/* ============================================================
   IMAT: stories, guides, papers, centres
   ============================================================ */

.video { margin: 0; }

.video h3 { margin: 14px 0 2px; font-size: 1.12rem; }
.video p { margin: 0; color: var(--muted); font-size: .95rem; }

/* 15 papers: 3 or 5 columns so no tile is left alone on the last row */
.papers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .papers { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 479px) { .paper { padding: 14px 12px; } .paper span { font-size: .8rem; } }
.paper {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-sheet); background: var(--sheet); border: 1px solid var(--rule); text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.paper:hover { border-color: var(--ink); }
.paper b { font: 800 1.7rem/1.05 var(--font); font-stretch: 72%; font-variant-numeric: tabular-nums; }
.paper span { font-size: .88rem; color: var(--muted); }
.paper em { font-style: normal; font-weight: 650; font-size: .88rem; color: var(--pen); }

/* ============================================================
   IMAT: enrol form
   ============================================================ */
.enrol { display: grid; gap: 36px; }
@media (min-width: 1024px) { .enrol { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } }
.form { display: grid; grid-template-columns: 1fr; gap: 18px; padding: clamp(22px, 3vw, 32px); }
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field legend { font-weight: 650; font-size: .95rem; }
/* inputs are printed answer boxes: a line underneath, filled in pen when focused */
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--rule-strong); background: var(--sheet); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-wash); }
.field input[aria-invalid="true"] { border-color: var(--wrong); }
.field__err { margin: 0; color: var(--wrong); font-size: .88rem; font-weight: 600; }
.field__err:empty { display: none; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 4px; }
fieldset legend { width: 100%; margin-bottom: 6px; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice input:checked + span { color: var(--pen); }
.choice input:focus-visible + span { outline: 2.5px solid var(--pen); outline-offset: 2px; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: var(--r); background: var(--pen-wash); color: var(--ink); font-weight: 600; }
.form .btn { width: 100%; }

/* ============================================================
   Universities page
   ============================================================ */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 80px); }
.page-hero .lead { max-width: 40em; }
.page-hero__photo { margin: 32px 0 0; aspect-ratio: 16 / 10; border-radius: var(--r-sheet); overflow: hidden; background: var(--sunk); }
.page-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .page-hero__photo { margin: 0; aspect-ratio: 4 / 5; }
  .page-hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 32px; border-radius: var(--r-sheet); overflow: hidden; background: var(--rule); border: 1px solid var(--rule); }
.stats div { display: grid; gap: 2px; padding: 16px 20px; background: var(--sheet); }
.stats b { font: 800 2.3rem/1 var(--font); font-stretch: 70%; color: var(--pen); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .92rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; } }

.map { display: grid; overflow: hidden; }
@media (min-width: 1024px) { .map { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); } }
.map__canvas { position: relative; min-height: 420px; background: #0b1a14; }
@media (min-width: 1024px) { .map__canvas { min-height: 580px; } }

.map__hint { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; margin: 0; padding: 6px 12px; border-radius: var(--r); background: rgba(11, 26, 20, .78); color: #fff; font-size: .8rem; white-space: nowrap; pointer-events: none; }
.mpin { position: relative; display: inline-flex; align-items: center; gap: 6px; translate: -11px -11px; padding: 0; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 650 .78rem/22px var(--font); white-space: nowrap; cursor: pointer; pointer-events: auto; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.mpin::before { content: ""; position: absolute; inset: -11px; } /* 44px tap area */
.mpin i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pen); color: #fff; font-style: normal; font-size: .72rem; }
.mpin span { display: none; padding: 0 10px 0 2px; }
.mpin:hover, .mpin:focus-visible, .mpin.is-active { z-index: 2; background: var(--hi); }
.mpin:hover span, .mpin:focus-visible span, .mpin.is-active span { display: inline; }
.map__panel { padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.map__info { padding: 20px; border-radius: var(--r-sheet); background: var(--paper); min-height: 150px; }
.map__info small { color: var(--pen); font-weight: 650; font-size: .85rem; }
.map__info h3 { margin: 6px 0 12px; font-size: 1.7rem; font-weight: 680; }
.map__info p { margin: 0; color: var(--muted); }
.map__info.flash { animation: pop .3s var(--out); }
.glimpse { display: grid; gap: 8px; }
.glimpse__card { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 6px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--rule); color: inherit; text-decoration: none; }
.glimpse__card:hover { border-color: var(--ink); }
.glimpse__card img { width: 64px; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.glimpse__card b { display: block; font-size: .95rem; line-height: 1.3; }
.glimpse__card small { color: var(--muted) !important; font-weight: 500 !important; }
.map__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.map__list button { font-size: .9rem; }
.map__list button small { color: var(--muted); font-weight: 600; font-stretch: 80%; }
.map__note { margin: 0; font-size: .88rem; color: var(--muted); }

.note-box { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; padding: 18px 20px; }
.note-box p { margin: 0; color: var(--muted); }
.note-box p b { color: var(--ink); }
.note-box .bubble { background: var(--hi); border-color: var(--ink); color: var(--ink); }
.dir-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.dir-tools .search { margin-left: auto; width: min(100%, 360px); }
@media (max-width: 1023px) { .dir-tools .search { margin-left: 0; width: 100%; } }
.dir-count { margin: 0 0 20px; font-size: .92rem; color: var(--muted); }
.unis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.uni { display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 20px); transition: border-color .15s; }
.uni:hover { border-color: var(--rule-strong); }
.uni:target { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hi); }
.uni__photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sunk); }
.uni__photo img { width: 100%; height: 100%; object-fit: cover; }
.uni__city { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: var(--r); background: #fff; color: var(--ink); font-weight: 650; font-size: .8rem; }
.uni__body { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; flex: 1; }
.uni__body h3 { margin: 0; font-size: 1.28rem; font-weight: 680; }
.uni__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r); font-size: .8rem; font-weight: 600; background: var(--sunk); color: var(--muted); }
.tag--imat { background: var(--hi); color: var(--ink); }
.progs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.progs li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.4; transition: opacity .25s; }

.lvl { flex-shrink: 0; display: inline-grid; place-items: center; min-width: 72px; height: 22px; padding: 0 6px; border-radius: 2px; font: 650 .74rem/1 var(--font); font-stretch: 85%; }

.uni__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .9rem; }
.uni__foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--pen); text-underline-offset: 3px; }
.uni__foot small { color: var(--muted); }
.unis-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); }
.credit-line { margin: 24px 0 0; font-size: .88rem; color: var(--muted); }

/* ============================================================
   Credits page
   ============================================================ */
.credits { max-width: 860px; }
.credits ul { padding-left: 1.1em; display: grid; gap: 8px; color: var(--muted); }
.credits ul b { color: var(--ink); }
.credits a { color: var(--pen); text-underline-offset: 3px; }

/* ============================================================
   Dark bands (from the old look): a few sections sit on deep ink for rhythm
   ============================================================ */
 .cta, .path { background: var(--band); color: #f3f5ff; border-color: var(--band); }
 .cta p, .path .steps p { color: var(--band-muted); }

.flight { border-color: var(--band-line); }
.flight:last-child { border-bottom-color: var(--band-line); }

 .cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
 .cta .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta .contact-lines a { color: #fff; }
.path .steps li::before { background: var(--band); border-color: var(--hi); color: var(--hi); }
.path .steps li.is-on::before { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.path .steps::before { background: var(--band-line); }
.path .steps::after { background: var(--hi); }

.pill, .tag { border-radius: 999px; }

/* ============================================================
   IMAT: places reel. The section pins while the stamps slide past sideways
   (the "reel" scroll effect). Phones and reduced motion get a plain swipe row.
   ============================================================ */

/* a stamp: perforated edge cut with a radial mask, photo inside a paper margin */

/* ============================================================
   2026-11-22: resources hub, medical life path, videos, guides page
   ============================================================ */
/* Hero trust lines: three short facts, each with a tick */
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%230f1a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* Free resources hub: tabs across the top, one pane below */
.hub { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sheet); overflow: hidden; box-shadow: 0 24px 48px -32px rgba(15, 26, 42, .3); }

.years { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.year { min-height: 52px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); font: 700 1.1rem/1 var(--font); font-stretch: 80%; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--out); }
.year:hover { border-color: var(--pen); }
.year[aria-pressed="true"] { background: var(--pen); border-color: var(--pen); color: #fff; }
.year:active { transform: scale(.97); }

.paper-card__tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule); font-size: .82rem; font-weight: 700; }
.paper-card__tag::before { content: "PDF"; padding: 3px 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .7rem; letter-spacing: .04em; }
.paper-card__tag b { font: 760 1rem/1 var(--font); font-stretch: 75%; }

.planner { display: grid; gap: 24px; }
@media (min-width: 900px) { .planner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 44px; } }

@media (max-width: 767px) {

  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Medical life: six years on a path that fills as you scroll */
.life { --fill: 1; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.life::before, .life::after { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; }
.life::before { background: var(--band-line); }
.life::after { background: var(--hi); transform-origin: top; transform: scaleY(var(--fill)); }
.life li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; align-items: start; }

.life h3 { margin: 6px 0 4px; font-size: 1.25rem; }
.life p { margin: 0; color: var(--band-muted); max-width: 34em; }
@media (min-width: 1024px) {
  .life { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
  .life::before, .life::after { display: none; }
  .life li { grid-template-columns: 1fr; row-gap: 0; }
  
}

/* What we promise, and what we don't */

/* Videos: YouTube thumbnails that become players, featured one opens up on scroll */
.yt { position: relative; display: block; overflow: hidden; border-radius: 16px; background: #000; aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--out), opacity .3s; }
.yt:hover img { transform: scale(1.03); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.yt.is-playing .yt__play { display: none; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0) 58%); pointer-events: none; }
.yt__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.yt__play svg { width: 64px; height: 64px; padding: 18px 16px 18px 20px; border-radius: 50%; background: var(--hi); fill: var(--band); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s var(--out); }
.yt__play:hover svg { transform: scale(1.08); }
.yt__play:focus-visible { outline-offset: -6px; }

/* Grid cards: the thumbnail already carries its own title art, so the caption sits below it */

/* YouTube blocked by the host: a quiet poster instead of a broken image */
.yt--off img { visibility: hidden; }
.yt--off { background: radial-gradient(120% 90% at 30% 20%, #23428f, #0f1a2a); }

/* Phone: the featured video gets the same caption-below treatment so text never sits on the thumbnail art */

/* Places table: programme name under the university */
.td-prog { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; font-weight: 500; }

/* Universities without a licensed photo: a calm typographic tile instead of a broken image */
.uni-mono { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: radial-gradient(120% 90% at 0% 0%, #24408f, transparent 60%), linear-gradient(160deg, #1a2d63, var(--night)); color: rgba(247, 244, 236, .9); font: 700 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); letter-spacing: -.02em; text-align: center; }
.uni__photo .uni-mono + .uni__city { display: none; }
.glimpse__card .uni-mono { position: relative; inset: auto; width: 64px; height: 48px; border-radius: 8px; font-size: .7rem; padding: 4px; flex: none; }
.progs .lvl { background: var(--pen-wash); color: var(--pen-deep); }
.progs .seats { display: block; width: 100%; margin-top: 2px; color: var(--muted); font-size: .84rem; }
.progs li { flex-wrap: wrap; }

/* Guides page */
.page-hero--guides h1 { max-width: 14em; }
.guides-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .guides-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; } }
.toc { padding: 20px 22px; border: 1px solid var(--rule); border-radius: 18px; background: var(--sheet); }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc__title { margin: 0 0 10px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--pen); text-decoration: underline; }
.guide-body { display: grid; gap: clamp(28px, 4vw, 44px); min-width: 0; }
.gdoc { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--rule); border-radius: var(--r-sheet); background: var(--sheet); scroll-margin-top: calc(var(--header-h) + 20px); }
.gdoc > p { max-width: 42em; }
.gdoc__meta { color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.gdoc h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.gsteps { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; counter-reset: gs; }
.gsteps li { position: relative; display: grid; gap: 2px; padding-left: 48px; counter-increment: gs; }
.gsteps li::before { content: counter(gs); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--pen); color: var(--pen); font: 700 .9rem/1 var(--font); }
.gsteps b { font-size: 1.05rem; }
.gsteps span, .gpoints li, .syl p, .phases li, .costs span { color: var(--muted); }
.gnote { margin: 24px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--pen-wash); color: var(--ink); max-width: none !important; }
.syl, .phases, .costs { display: grid; gap: 14px; margin: 24px 0; }
@media (min-width: 768px) { .syl, .costs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.syl section, .phases section, .costs div { padding: 18px 20px; border: 1px solid var(--rule); border-radius: 16px; }
.syl h3, .phases h3 { font-size: 1.12rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.syl h3 small { font: 650 .82rem/1.6 var(--font); color: var(--pen); }
.syl p { margin: 0; font-size: .96rem; }
.phases ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .96rem; }
.costs b { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 4px; }
.gpoints { margin: 20px 0; padding-left: 20px; display: grid; gap: 12px; max-width: 46em; }
.gpoints b { color: var(--ink); }

/* Focus reveal: headline words sharpen from a soft blur, one after another */

/* ---------- Reduced motion: everything still, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   2026-11-22 (v50): richer IMAT page, full-screen photo hero and photo bands
   ============================================================ */

/* Life: the anatomical theatre opens up as it scrolls in */

/* Statement band over a panorama of Padua */

/* Two campus photos, side by side */

/* Enrol: the page closes on a dark photo band */

/* ============================================================
   2026-11-22 (v52): premium university map, dark navy card, glowing pins, glass panel
   ============================================================ */
.map { --mline: rgba(255, 255, 255, .1); background: #0b1324; border-color: #0b1324; color: #fff; box-shadow: 0 30px 60px -30px rgba(10, 20, 45, .55); }
.map__canvas { background: radial-gradient(90% 80% at 50% 40%, #16264a, #070d1c); }
.map__canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px 6px rgba(7, 13, 28, .6); }
@media (min-width: 1024px) { .map__canvas::after { background: linear-gradient(90deg, transparent 80%, #0b1324); } }
.map__hint { z-index: 1; background: rgba(10, 18, 36, .6); border: 1px solid var(--mline); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; padding: 7px 14px; }

/* Pins: a glowing blue dot, the city name appears in a glass chip */
.mpin { translate: -12px -12px; gap: 8px; background: transparent; box-shadow: none; color: #fff; font: 650 .82rem/24px var(--font); }
.mpin i { position: relative; width: 24px; height: 24px; background: var(--pen); border: 2px solid #fff; font-size: .7rem; font-weight: 750; box-shadow: 0 0 0 4px rgba(29, 78, 216, .35), 0 0 18px 4px rgba(96, 140, 255, .55); transition: transform .25s var(--out); }
.mpin span { padding: 0 12px; border-radius: 999px; background: rgba(10, 18, 36, .78); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mpin:hover, .mpin:focus-visible, .mpin.is-active { background: transparent; }
.mpin:hover i, .mpin:focus-visible i { transform: scale(1.15); }
.mpin.is-active i { background: #fff; color: var(--pen); }
.mpin.is-active i::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid #8fb0ff; animation: radar 1.8s var(--out) infinite; }

/* Panel: glass on navy */
.map__panel { gap: 18px; }
.map__info { background: rgba(255, 255, 255, .05); border: 1px solid var(--mline); }
.map__info small { color: #a9c4ff; }
.map__info h3 { color: #fff; font-size: 2rem; font-weight: 760; letter-spacing: -.02em; }
.map__info p { color: rgba(255, 255, 255, .7); }
.glimpse { gap: 10px; }
.glimpse__card { grid-template-columns: 96px 1fr; gap: 16px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .06); border-color: var(--mline); transition: transform .25s var(--out), border-color .25s, background .25s; }
.glimpse__card:hover { transform: translateY(-2px); border-color: #8fb0ff; background: rgba(255, 255, 255, .1); }
.glimpse__card img { width: 96px; aspect-ratio: 4 / 3; border-radius: 9px; }
.glimpse__card b { color: #fff; }
.glimpse__card small { color: rgba(255, 255, 255, .62) !important; }

/* City list: clean rows with a count, not bubbles */
.map .map__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.map .map__list button { width: 100%; justify-content: space-between; min-height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--mline); color: rgba(255, 255, 255, .86); font-weight: 600; }
.map .map__list button::before { display: none; }
.map .map__list button:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.map .map__list button.is-active { background: var(--pen); border-color: var(--pen); color: #fff; }
.map .map__list button small { color: inherit; opacity: .6; }
.map__note { color: rgba(255, 255, 255, .55); }
@media (max-width: 420px) { .map .map__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .mpin.is-active i::after { animation: none; opacity: .6; } }
@media (max-width: 767px) { .glimpse__card { grid-template-columns: 76px 1fr; gap: 12px; } .glimpse__card img { width: 76px; } }

/* v53: flat satellite map instead of the blurry globe */
.map__flat { position: absolute; inset: 0; overflow: hidden; background: #0b1730; }
.map__layer { --k: 1; position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform 1.1s var(--out); will-change: transform; }
.map__layer img { width: 100%; height: 100%; }
.map__layer .mpin { position: absolute; transform-origin: 12px 12px; scale: calc(1 / var(--k)); transition: scale 1.1s var(--out); }
.mpin.is-active { z-index: 3; }
@media (max-width: 767px) { .map__canvas { min-height: 0; aspect-ratio: 1; } }
@media (prefers-reduced-motion: reduce) { .map__layer, .map__layer .mpin { transition: none; } }
@media (min-width: 768px) and (max-width: 1023px) { .map__canvas { min-height: 0; aspect-ratio: 4 / 3.4; } }

/* v53: premium "Flying from" picker, a glass pill that opens a searchable list upwards */
.cpick { position: relative; }
.cpick select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cpick__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(5, 10, 31, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font: 650 .95rem/1 var(--font); cursor: pointer; transition: border-color .2s, background .2s; }
.cpick__btn:hover, .cpick__btn[aria-expanded="true"] { border-color: rgba(255, 255, 255, .5); background: rgba(12, 20, 48, .78); }
.cpick__btn svg { width: 16px; height: 16px; fill: none; stroke: #c3cbea; stroke-width: 2.4; stroke-linecap: round; transition: transform .25s var(--out); transform: rotate(180deg); }
.cpick__btn[aria-expanded="true"] svg { transform: none; }
.cpick__pop { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 5; width: 280px; padding: 8px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(9, 15, 36, .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); animation: pop .25s var(--out); }
.cpick__find { width: 100%; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font: 500 .95rem var(--font); }
.cpick__find::placeholder { color: rgba(255, 255, 255, .5); }
.cpick__find:focus { outline: 2px solid #8fb0ff; outline-offset: 1px; }
.cpick__list { list-style: none; margin: 6px 0 0; padding: 0 4px 0 0; max-height: 224px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.cpick__list li { padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, .86); font-size: .93rem; cursor: pointer; }
.cpick__list li.is-at { background: rgba(255, 255, 255, .09); color: #fff; }
.cpick__list li[aria-selected="true"] { background: var(--pen); color: #fff; font-weight: 650; }
.cpick__list .cpick__none { color: rgba(255, 255, 255, .5); cursor: default; }
@media (prefers-reduced-motion: reduce) { .cpick__pop { animation: none; } }
.earth__from { flex: none; white-space: nowrap; } .earth__now { min-width: 0; }
/* The label sits inside the glass pill, so it stays readable over the bright planet */
.cpick { gap: 4px; padding-left: 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(5, 10, 31, .66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: rgba(255, 255, 255, .62); transition: border-color .2s; }
.cpick:hover, .cpick:has([aria-expanded="true"]) { border-color: rgba(255, 255, 255, .5); }
.cpick .cpick__btn { padding-left: 6px; border: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cpick .cpick__btn:hover, .cpick .cpick__btn[aria-expanded="true"] { background: transparent; }
@media (max-width: 1023px) { .cpick__pop { right: auto; left: 0; } } /* tablet: the pill wraps to the left edge, so the list opens rightwards */

/* ---------- v55: premium footer brought back (night sky, shooting stars, lamplit wordmark) ---------- */
.footer--sky { position: relative; overflow: hidden;
  background: radial-gradient(70% 50% at 50% 100%, rgba(255, 201, 74, .12), transparent 70%), url("assets/night-sky.png?v=2") center / 1200px auto, var(--night); }
.footer--sky > .wrap { position: relative; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--hi); border-color: var(--hi); color: #0d1530; }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__giant { margin: clamp(32px, 5vw, 56px) 0 0; text-align: center; font: 700 min(17vw, 15rem)/1.05 var(--display); letter-spacing: -.02em; white-space: pre; user-select: none; overflow: hidden;
  color: #ffb81c; text-shadow: 0 0 34px rgba(255, 184, 28, .35), 0 0 2px rgba(255, 210, 110, .6); }
.footer__giant span { display: inline-block; transition: color .35s, transform .5s var(--out); }
.footer__giant span:hover { color: #ffd36b; transform: translateY(-.05em); }
.footer--sky .footer__bottom { margin-top: 12px; }
.shooting { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shooting i { position: absolute; top: 12%; left: 70%; width: 140px; height: 1.5px; border-radius: 2px; opacity: 0; rotate: -24deg;
  background: linear-gradient(90deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); animation: shoot 9s linear infinite; }
.shooting i:nth-child(2) { top: 30%; left: 35%; width: 100px; animation-delay: 3.6s; animation-duration: 11s; }
.shooting i:nth-child(3) { top: 8%; left: 92%; width: 120px; animation-delay: 6.8s; animation-duration: 13s; }
@keyframes shoot { 0% { opacity: 0; transform: translateX(0); } 2% { opacity: 1; } 9% { opacity: 0; transform: translateX(-360px); } 100% { opacity: 0; transform: translateX(-360px); } }
@media (prefers-reduced-motion: reduce) { .shooting { display: none; } .footer__giant span { transition: none; } }

/* FAQ sits on the light page (v131): one dark surface only, the closing band */

/* ---------- v57: "More courses are boarding soon" panel matches the premium navy FAQ ---------- */

/* ---------- v58: IMAT "The IMAT in two minutes" on a soft royal-blue wash so it stands apart ---------- */

/* ---------- v59: places reel restyled to the site's clean white + royal blue (old perforated-stamp theme dropped) ---------- */

/* ---------- v60: IMAT practice question on a bold royal-blue band; the white quiz card pops off it ---------- */

/* ---------- v61: IMAT-site footer: Bologna arcade photo under a navy-to-royal-blue veil, giant glass "IMAT" ---------- */

/* ---------- v63: IMAT places table starts at 6 rows ---------- */

/* ---------- v64: IMAT footer redone: night sky + royal-blue aurora, white neon "IMAT" sign (replaces the muddy photo veil) ---------- */

/* ---------- v65: places drop the pinned sideways scroll; a calm grid on tablet/desktop, swipe row on phone ---------- */

/* ---------- v66: footer signs: glow no longer clipped into a box; IMAT sign in the same rich gold as the home page ---------- */
.footer__giant { overflow: visible; }

/* ---------- v68: coming-soon list without the airport board: glass rows, big exam names, gold pill ---------- */

/* ---------- v69: "How we get you in" moves slower: the line eases along and each step lights up in turn ---------- */
@media (prefers-reduced-motion: no-preference) {
  .steps::after { transition: transform .6s var(--out); }
  .steps li::before { transition: background-color .5s, color .5s, border-color .5s, box-shadow .5s; }
  .steps li.is-on::before { box-shadow: 0 0 0 6px var(--pen-wash); }
}

/* ---------- v70: statement band now the Bologna rooftops panorama; frame the dome and the Asinelli tower ---------- */

/* ---------- v72: practice band toned down to the deep royal navy used on the home FAQ (bright blue read cheap) ---------- */

/* ---------- v73: hero bar as one family of frosted-glass pills; no radio circles, gold mark on the chosen destination ---------- */
.dests, .earth__now, .cpick { border: 1px solid rgba(255, 255, 255, .16); background: rgba(8, 14, 40, .55); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 40px -20px rgba(0, 0, 0, .6); }
.dests { padding: 5px; gap: 2px; }
.earth__now { border-radius: 22px; padding: 8px 20px; color: #c9d1ef; }
.dest { gap: 8px; padding: 0 18px; letter-spacing: -.005em; }
.dest::before { display: none; }
.dest small { font-weight: 650; font-size: .72rem; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #b9c3e6; }
.dest[aria-pressed="true"] { background: linear-gradient(180deg, #fff, #eef2ff); color: #0d1530; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.dest[aria-pressed="true"] small { background: #ffb81c; color: #0d1530; }
.cpick:hover, .cpick:has([aria-expanded="true"]) { border-color: rgba(255, 200, 69, .55); }

/* ---------- v74: IMAT hero cycles through five university photos, each crossfading in with a slow push ---------- */

/* ---------- v75: resources hub reads as one premium object: navy tab rail with a gold marker, a navy "document" card for the chosen paper ---------- */
.hub { border: 1px solid rgba(10, 20, 64, .14); border-radius: 26px; box-shadow: 0 40px 80px -40px rgba(6, 12, 38, .45), 0 2px 6px rgba(6, 12, 38, .05); }

.year { border-radius: 14px; border-color: rgba(10, 20, 64, .14); }
.year:hover { border-color: #0c1848; }
.year[aria-pressed="true"] { background: #0c1848; border-color: #0c1848; color: #fff; box-shadow: inset 0 -2px 0 #ffc845; }

.paper-card__tag { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.paper-card__tag::before { background: #ffb81c; color: #0d1530; }

/* ---------- v76: "silk" shader behind the dark navy bands; the CSS gradient stays underneath as the fallback ---------- */
[data-silk] { position: relative; isolation: isolate; overflow: hidden; }
[data-silk] > .wrap { position: relative; z-index: 1; }

/* ============================================================
   v110 (2026-11-28): Global homepage rebuilt to the content brief + change plan.
   Study in Italy from India; Capped A logo; India -> Italy globe; trust strip, three routes,
   Why Italy + cost teaser, finder band, six steps, mentor, parents, packages, booking form, WhatsApp.
   ============================================================ */
/* Capped A on dark grounds: white A, navy cap */

.ico { width: 20px; height: 20px; flex-shrink: 0; }

/* Seminar banner */
.site-global .announce { background: #0a1233; color: #d5dbf0; }
.site-global .announce .wrap { justify-content: center; min-height: 44px; padding-block: 6px; text-align: center; }
.site-global .announce p a { background: var(--hi); color: var(--ink); padding: 2px 8px; margin-left: 6px; border-radius: 999px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.site-global .announce p a:hover { background: var(--hi-deep); }

/* Header: six links + two buttons need the full-screen menu below 1200px */
.nav__extra--pair { grid-template-columns: 1fr 1fr; }
.header--wide .nav > a { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1439px) { .header__wa { display: none; } }
@media (max-width: 1199px) and (min-width: 1024px) {
  .header--wide .header__actions { margin-left: auto; }
  .header--wide .menu-btn { display: inline-block; }
  .header--wide .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 59; margin: 0; padding: 12px var(--gutter) 28px;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s;
  }
  .header--wide .nav.is-open { opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s; }
  .header--wide .nav > a { min-height: 58px; padding: 0; border-bottom: 1px solid var(--rule); color: var(--ink); font: 720 1.4rem/1.2 var(--display); }
  .header--wide .nav > a::after { display: none; }
  .header--wide .nav__extra { display: grid; gap: 12px; margin-top: auto; padding-top: 28px; }
}
@media (max-width: 1199px) { .header--wide .header__wa { display: none; } }
@media (max-width: 479px) { .nav__extra--pair { grid-template-columns: 1fr; } }

/* Hero copy */
.intake { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(8, 14, 40, .55); color: #e8ecff; font-weight: 600; font-size: .92rem; }
.intake span { width: 8px; height: 8px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 4px rgba(255, 184, 28, .22); }
.earth h1 span { display: block; color: #c4cdf0; font-weight: 640; }
.earth .btn--ghost .ico { color: #25d366; }
.earth .btn--ghost:hover .ico { color: #0d7a3a; }

.earth .dest small { margin-left: 2px; }
@media (min-width: 768px) {
  .earth h1 span { font-size: .62em; letter-spacing: -.03em; margin-top: .25em; line-height: 1.08; }
  /* The tab bar must sit on the first screen, under the seminar banner too */
  .site-global .earth { min-height: max(calc(100svh - var(--header-h) - var(--announce-h, 0px)), calc(var(--copy-end, 520px) + 420px)); } /* room for a country seen from above */
  body:has(.announce:not([hidden])) { --announce-h: 44px; }
  .site-global .earth__copy { padding-top: clamp(28px, 5vh, 56px); }
  .site-global .earth .lead { max-width: 40em; }
  .intake { margin-bottom: 16px; }
  
}

/* Trust strip: four facts in one ruled row */
.trust { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.trust__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.trust__row > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: clamp(22px, 3vw, 34px) clamp(14px, 2vw, 28px); }
.trust__row > div:nth-child(odd) { padding-left: 0; }
.trust__row dd { margin: 0; font: 760 clamp(2rem, 4vw, 3rem)/1 var(--font); font-stretch: 72%; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.trust__row dt { color: var(--muted); font-size: .92rem; }
.trust__row > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.trust__row > div:nth-child(even) { border-left: 1px solid var(--rule); }
@media (min-width: 768px) {
  .trust__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust__row > div:nth-child(-n+2) { border-bottom: 0; }
  .trust__row > div + div { border-left: 1px solid var(--rule); }
  .trust__row > div:nth-child(odd) { padding-left: clamp(14px, 2vw, 28px); }
  .trust__row > div:first-child { padding-left: 0; }
}

/* Three routes */
.site-global .section + .section { border-top: 0; }
.routes { display: grid; gap: 20px; }
@media (min-width: 900px) { .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.route { display: flex; flex-direction: column; overflow: hidden; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sheet);
  color: inherit; text-decoration: none; transition: transform .3s var(--out), box-shadow .3s, border-color .2s; }
.route:hover { transform: translateY(-2px); border-color: var(--rule-strong); box-shadow: 0 24px 48px -28px rgba(13, 21, 48, .35); }
.route__photo { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sunk); }
.route__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--out); }
.route:hover .route__photo img { transform: scale(1.03); }
.route__photo .pill { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .4); }
.route__photo .pill--live { background: var(--hi); }
.route__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 30px); }
.route__body h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); font-weight: 720; letter-spacing: -.02em; margin: 0; }
.route__body p { margin: 0; color: var(--muted); }
.facts-row--stack { flex-direction: column; gap: 8px; }
.route__cta { margin-top: auto; padding-top: 8px; color: var(--pen); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.route__cta::after { content: "→"; transition: transform .25s var(--out); }
.route:hover .route__cta::after { transform: translateX(4px); }

/* Why Italy */
.why-band { background: var(--sheet); }
.why { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1024px) { .why { grid-template-columns: 1.25fr .75fr; align-items: stretch; } }
.why__grid { display: grid; gap: 0; margin: 0; border-top: 1.5px solid var(--ink); }
@media (min-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 44px); } }
.why__grid > div { padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.why__grid dt { font: 700 1.08rem/1.3 var(--display); letter-spacing: -.01em; }
.why__grid dt b { display: block; margin-bottom: 10px; font: 760 clamp(2rem, 3.4vw, 2.6rem)/1 var(--font); font-stretch: 72%; color: var(--pen); }
.why__grid dd { margin: 6px 0 0; color: var(--muted); }
.why__photo { overflow: hidden; border-radius: var(--r-sheet); min-height: 320px; background: var(--sunk); }
.why__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 1023px) { .why__photo { aspect-ratio: 16 / 9; min-height: 0; } }

/* Cost teaser */
.cost { display: grid; gap: 22px 40px; margin-top: clamp(28px, 4vw, 48px); padding: clamp(22px, 3vw, 36px); border-radius: var(--r-sheet);
  background: var(--night); color: #fff; }
.cost__intro h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 720; letter-spacing: -.02em; margin-bottom: 8px; }
.cost__intro p { margin: 0; color: #b9c3e6; max-width: 34em; }
.cost__fields { display: grid; gap: 14px; align-items: end; }
.cost .field label { color: #dfe5fa; }
.cost .field select { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.cost .field select option { color: var(--ink); }
.cost .btn { width: 100%; }
@media (min-width: 640px) { .cost__fields { grid-template-columns: 1fr 1fr 1fr; } .cost .btn { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .cost { grid-template-columns: .8fr 1.2fr; align-items: center; } }

/* Programme finder band */
.finder-band { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.finder { max-width: 880px; text-align: center; }
.finder h2 { color: var(--ink); }
.finder > p { color: var(--muted); font-size: 1.12rem; max-width: 40em; margin: 0 auto clamp(24px, 3vw, 36px); }
.finder__box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: #fff; color: var(--ink);
  border: 1.5px solid var(--rule-strong); }
.finder__box:focus-within { border-color: var(--pen); box-shadow: 0 0 0 4px var(--pen-wash); }
.finder__box svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.finder__box input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: transparent; font-size: 1.05rem; outline: none; }
.finder__box input::placeholder { color: #5f6886; }
.finder__levels { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.finder__levels .choice span { color: var(--ink); border: 1px solid var(--rule-strong); }
.finder__levels .choice span::before { border-color: var(--rule-strong); border-radius: 5px; }
.finder__levels .choice span:hover { background: var(--sunk); }
.finder__levels .choice input:checked + span { color: var(--ink); border-color: var(--pen); }
.finder__levels .choice input:checked + span::before { background: var(--pen); border-color: var(--pen); box-shadow: inset 0 0 0 3px #fff; }
@media (max-width: 599px) {
  .finder__box { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
  .finder__box svg { margin-left: 6px; }
  .finder__box .btn { width: 100%; }
}

/* Six steps */
@media (min-width: 1024px) {
  .steps--six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .steps--six::before, .steps--six::after { right: calc((100% - 120px) / 6 - 20px); }
  .steps--six h3 { font-size: 1.15rem; }
  .steps--six p { font-size: .95rem; }
}
.how__go { margin-top: clamp(32px, 4vw, 48px); }

/* Mentor */
.mentor-band { background: var(--sheet); }
.mentor { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .mentor { grid-template-columns: .85fr 1.15fr; } }

.mentor__copy p { color: var(--muted); max-width: 36em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0 28px; padding: 0; }
.badges li { padding: 8px 14px; border-radius: 999px; background: var(--pen-wash); color: var(--pen-deep); font-weight: 650; font-size: .92rem; }

/* Parents */
.parents { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1024px) { .parents { grid-template-columns: 1fr 1fr; align-items: center; } }
.parents__copy .lead { margin-bottom: 14px; }
.parents__copy > p:not(.lead) { color: var(--muted); }
.parents__copy .btn-row { margin-top: 26px; }
.parents__list { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sheet); padding: 6px clamp(20px, 3vw, 32px); }
.parents__list li:last-child { border-bottom: 0; }
.site-global .btn--accent .ico { color: #0d5c2d; }

/* Packages */
.packages-band { background: var(--sheet); }
.plans { display: grid; gap: 20px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--rule); border-radius: var(--r-sheet); background: var(--paper); }
.plan h3 { display: flex; align-items: baseline; gap: 8px; font-size: 1.5rem; font-weight: 720; letter-spacing: -.02em; margin: 0; }
.plan h3 small { font: 650 .8rem/1 var(--font); color: var(--muted); }
.plan__price { margin: 10px 0 20px; font: 700 1.05rem/1.3 var(--font); color: var(--pen-deep); }
.plan__list { list-style: none; margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.plan__list li { display: flex; gap: 12px; align-items: baseline; }
.plan__list li::before { content: ""; flex-shrink: 0; width: 12px; height: 7px; border-left: 2px solid var(--pen); border-bottom: 2px solid var(--pen); transform: rotate(-45deg) translateY(-3px); }
.plan .btn { margin-top: auto; width: 100%; }
.plan--main { background: var(--night); border-color: var(--night); color: #fff; }
.plan--main .plan__price { color: #ffc845; }
.plan--main .plan__list { border-top-color: rgba(255, 255, 255, .14); }
.plan--main .plan__list li::before { border-color: #ffc845; }
.track { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 20px; padding: 18px clamp(20px, 3vw, 28px);
  border: 1px solid var(--rule); border-radius: var(--r-sheet); background: var(--pen-wash); }
.track p { margin: 0; }
.track b { margin-right: 8px; }
.plans__note { margin: 20px 0 0; color: var(--muted); }
.partners { margin: 8px 0 0; color: var(--muted); }

/* Final call + booking form */
.book-band { color: #fff; background: var(--night); }
.book { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) { .book { grid-template-columns: 1fr 1fr; align-items: center; } }
.book__copy h2 { color: #fff; max-width: 13em; }
.book__copy > p { color: #b9c3e6; max-width: 34em; font-size: 1.1rem; }
.book .contact-lines { margin: 26px 0 30px; color: #e6eaff; }
.book .contact-lines a { color: #fff; }
.book__copy .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.book__copy .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.book__copy .btn--ghost .ico { color: #25d366; }
.book__copy .btn--ghost:hover .ico { color: #0d7a3a; }
.book__form { color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.book__form h3 { font-size: 1.4rem; font-weight: 720; margin: 0; }
.book__form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.book__form .chips { gap: 4px; }
.book__form .choice span { border: 1px solid var(--rule); }
.phone { display: grid; grid-template-columns: minmax(0, 8.5rem) 1fr; gap: 8px; }
.phone select, .phone input { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--rule-strong); background: var(--sheet); }
.phone select:focus, .phone input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-wash); }
.phone input[aria-invalid="true"], .field input[aria-invalid="true"] { border-color: var(--wrong); }

/* Floating WhatsApp: sits left of Ask Ace */

.footer__addr { padding: 8px 0; line-height: 1.45; }
/* The hero has its own WhatsApp button, so the floating one waits until the hero scrolls away */

.pin--flip .pin__tag { left: auto; right: 14px; transform-origin: right bottom; }
@media (max-width: 767px) { .earth h1 span { font-size: .72em; margin-top: .2em; letter-spacing: -.02em; } }
html.hero-in-view .chat__launcher[aria-expanded="false"] { opacity: 0; visibility: hidden; }
.chat__launcher { transition: opacity .25s, visibility 0s; }
@media (min-width: 1024px) { .site-global .earth__bar { padding-right: 0; } } /* Ask Ace and WhatsApp wait until the hero scrolls away */

/* Bachelor's and master's pages (same look as the Global homepage) */

@media (min-width: 960px) { .why__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .why__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .parents--top { align-items: start; } .parents--top .parents__copy { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-band .btn-row { margin-top: 24px; }
.btn--on-dark { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--on-dark .ico { color: #25d366; }

/* ---------- Doodles: one hand-drawn stroke per idea, drawn in once when it scrolls into view ---------- */
.doodle { position: absolute; max-width: none; pointer-events: none; overflow: visible; fill: none; stroke: var(--hi); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.doodles-on .doodle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.doodles-on .doodle.is-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--out) var(--dd, .15s); }
.mark { position: relative; display: inline-block; font-style: inherit; }
.doodle--under { left: -3%; bottom: -.16em; width: 106%; height: .34em; stroke-width: 4; }
.circled { position: relative; display: inline-block; }
.why__grid dt .circled { display: table; }
/* inset in em, not %: the ring hugs short numbers and long phrases alike */
.doodle--circle { left: -.32em; top: -.26em; width: calc(100% + .64em); height: calc(100% + .52em); stroke-width: 2.5; }

.doodle--laurel { position: relative; display: block; width: 76px; height: 76px; margin: 0 0 14px; stroke: var(--pen); stroke-width: 3.5; }

/* Trails: one long journey line across a section edge, drawn by the scroll itself */
.section:has(> .trail) { position: relative; }
.trail { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: clamp(56px, 9vw, 120px); transform: translateY(-50%); pointer-events: none; overflow: visible; fill: none; stroke: var(--hi); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trail--flip { transform: translateY(-50%) scaleX(-1); }
.trail--pen { stroke: var(--pen); }
/* shortcut: browsers without scroll-driven animations (Firefox today) just show the finished line */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .trail { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trail-draw linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  }
}
@keyframes trail-draw { to { stroke-dashoffset: 0; } }

/* ---------- Route landing pages (bachelor's, master's): promise left, photo with a boarding-pass ticket right ---------- */
.lp { padding: clamp(24px, 4vw, 56px) 0 var(--section); overflow: hidden; }
.lp__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) { .lp__grid { grid-template-columns: 1fr 1fr; } }
.kicker { margin: 22px 0 14px; font: 650 .92rem/1.3 var(--font); color: var(--muted); }
.lp__copy .lead { margin: 20px 0 30px; max-width: 32em; }
.lp__visual { position: relative; padding-bottom: 72px; }
.lp__photo { overflow: hidden; aspect-ratio: 4 / 4.3; border-radius: var(--r-sheet); background: var(--sunk); }
.lp__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ticket { position: absolute; left: clamp(-40px, -3vw, -16px); bottom: 0; width: min(420px, 90%); border-radius: 18px; background: var(--sheet); color: var(--ink); box-shadow: 0 30px 60px -28px rgba(13, 21, 48, .45), 0 0 0 1px var(--rule); }

@media (max-width: 1023px) {
  .lp__photo { aspect-ratio: 16 / 11; }
  .ticket { left: 16px; }
  
}
@media (max-width: 599px) {
  .lp__visual { padding-bottom: 0; }
  .ticket { position: relative; left: auto; width: auto; margin: -44px 10px 0; }

}

/* Who it suits (bachelor's) and the laurel wreath (master's): a photo beside the copy */
.fit, .wreath__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 1024px) { .fit { grid-template-columns: .9fr 1.1fr; } .wreath__grid { grid-template-columns: 1.2fr .8fr; } }
.fit__photo, .wreath__photo { overflow: hidden; border-radius: var(--r-sheet); background: var(--sunk); }
.fit__photo { aspect-ratio: 4 / 4.4; }
.wreath__photo { aspect-ratio: 3 / 2; }
.fit__photo img, .wreath__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fit__copy .lead { margin: 0 0 24px; }
.wreath__copy .lead { margin: 0; }
@media (max-width: 1023px) { .fit__photo { aspect-ratio: 16 / 10; } }

/* Mentor intro video on the homepage */
.mentor__video { position: relative; }
.mentor__video .yt { border-radius: var(--r-sheet); }

/* ---------- v131: "Why … in Italy?" bento, hero search, Ask Ace. Shared by styles.css and site.css, so colours fall back between the two palettes ---------- */

/* v132: "Why … in Italy": a ruled sheet of five numbered facts with highlighter marks, beside a campus photo */
.reasons { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1024px) { .reasons { grid-template-columns: 5fr 7fr; align-items: start; } .reasons__side { position: sticky; top: calc(var(--header-h, 66px) + 24px); } }
.reasons__side .head { display: block; max-width: none; margin-bottom: 24px; }
.reasons__side .head h2 { max-width: 13em; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.reasons__side .head p { max-width: 32em; margin-top: 12px; }
.reasons__photo { margin: 0; overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3; background: var(--card, var(--sunk)); }
.reasons__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reasons__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.reasons__list li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 16px; padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line, var(--rule)); }
.reasons__n { font: 760 1rem/1.9 var(--font); font-variant-numeric: tabular-nums; color: var(--muted); }
.reasons__list h3 { margin: 0 0 6px; font: 740 clamp(1.3rem, 2.2vw, 1.75rem)/1.2 var(--font); letter-spacing: -.02em; }
.reasons__list p { margin: 0; color: var(--muted); max-width: 36em; }
.reasons__list mark { padding: 0 .12em; margin: 0 -.06em; color: inherit; background: linear-gradient(transparent 58%, var(--w-acc) 58%, var(--w-acc) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (max-width: 599px) { .reasons__list li { grid-template-columns: 2.4rem 1fr; gap: 10px; } }
.whyit { --w-line: var(--line, var(--rule)); --w-dark: var(--navy, var(--night)); --w-acc: var(--gold, var(--hi)); --w-soft: var(--card, var(--sunk)); }
/* Bachelor's and master's hero: the search is the main action */
.lp__finder { margin-top: 4px; max-width: 560px; }
.lp__finder .finder__box { background: var(--sheet); }
.lp__alt { margin: 14px 0 0; max-width: 34em; font-size: .95rem; color: var(--muted); }

/* Ask Ace */
.chat__head { background: var(--navy, var(--night)); color: #fff; border-bottom: 0; }
.chat__head small { color: rgba(255, 255, 255, .7); }
.chat__close { color: #fff; }
.chat__close:hover { background: rgba(255, 255, 255, .12); }
.msg { white-space: pre-line; }
.msg__go { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 650 .85rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.msg__go::after { content: "→"; }
.msg__go:hover { background: var(--ink-2, #26304f); }
.chat__chips:empty { display: none; }
.chat__chips .chip { background: var(--sheet); color: var(--ink); }
.chat__form { align-items: center; }
.chat__send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--gold, var(--hi)); color: #111; cursor: pointer; }
.chat__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chat__send:active { transform: scale(.94); }
.chat__handoff { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 12px 12px; border: 0; background: transparent; color: var(--muted); font: 500 .85rem/1.3 var(--font); cursor: pointer; }
.chat__handoff b { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.chat__handoff .ico { width: 18px; height: 18px; color: #128c4a; flex: none; }
.chat__handoff:hover b { text-decoration-thickness: 2px; }

/* v131: one bright brand band. The programme search sits on the yellow, so nobody misses it */
.site-global .finder-band { background: var(--hi); border: 0; }
.site-global .finder-band + .section { border-top: 0; }
.site-global .finder > p { color: #2a2410; }
.site-global .finder-band .finder__box { border: 2px solid var(--ink); }
.site-global .finder-band .finder__box:focus-within { box-shadow: 0 0 0 4px rgba(13, 21, 48, .18); }
.site-global .finder-band .btn--accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.site-global .finder-band .btn--accent:hover { background: #24305a; border-color: #24305a; }
.site-global .finder-band .finder__levels .choice span { border-color: rgba(13, 21, 48, .35); background: rgba(255, 255, 255, .35); }
.site-global .finder-band .finder__levels .choice input:checked + span { border-color: var(--ink); background: #fff; }
.site-global .finder-band .finder__levels .choice input:checked + span::before { background: var(--ink); border-color: var(--ink); }
/* white sheets on the warm paper give each section an edge */
.whyit { background: var(--paper); }

/* Programme search results (v138): shown on the page; WhatsApp only on the visitor's own click */
.finder__results:empty { display: none; }
.finder__results { margin: 18px auto 0; max-width: 720px; text-align: left; color: var(--ink); }
.lp__finder + .finder__results { margin-left: 0; max-width: 560px; }
.finder__msg { margin: 0 0 12px; font-size: 1rem; line-height: 1.5; }
.finder__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.finder__list li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--rule); }
.finder__list b { font-size: .98rem; line-height: 1.3; }
.finder__list span { font-size: .88rem; color: var(--muted); }
.finder__list a { margin-top: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.finder__ask { margin-top: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.finder__ask:hover { background: var(--ink); color: #fff; }
.finder__ask:focus-visible, .finder__list a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* One night sky at the bottom (v138): the closing booking band and the footer share the same star photo, so no two-tone seam */
.footer--sky { background: radial-gradient(70% 50% at 50% 100%, rgba(255, 201, 74, .12), transparent 70%), url("assets/night-sky.png?v=2") center top / 1200px auto, #000; }
.book-band { background: url("assets/night-sky.png?v=2") center bottom / 1200px auto, #000; }
.finder__list li:nth-child(n+7) { display: none; }
.finder__list.is-all li { display: grid; }
.finder__more { margin: 10px 12px 0 0; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.lp__finder + .finder__results .finder__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* v139: same sky, but a clear edge between the closing call section and the footer (a faint gold horizon line) */
.footer--sky::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 201, 74, .85) 15%, rgba(255, 201, 74, .85) 85%, transparent); }
.footer--sky { padding-top: clamp(64px, 8vw, 104px); }

/* v139: the closing call section is the brand yellow, so it stands apart from the black footer */
.book-band { background: var(--hi); color: var(--ink); }
.book__copy h2 { color: var(--ink); }
.book__copy > p { color: rgba(13, 21, 48, .78); }
.book .contact-lines { color: var(--ink); }
.book .contact-lines a { color: var(--ink); }
.book__copy .btn--ghost { color: var(--ink); border-color: var(--ink); }
.book__copy .btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.book__copy .btn--ghost .ico, .book__copy .btn--ghost:hover .ico { color: currentColor; }
.book-band .book__form { box-shadow: 0 24px 60px -30px rgba(13, 21, 48, .45); }

/* Official logo images (header dark, footer light) */
.brand__logo { display: block; width: auto; height: 46px; max-width: none; }
.footer .brand__logo { height: 58px; }
@media (max-width: 380px) { header .brand__logo { height: 38px; } }
@media (min-width: 1024px) and (max-width: 1199px) { .header:not(.header--wide) .nav > a { padding: 0 6px; white-space: nowrap; } .header:not(.header--wide) .nav > a::after { left: 6px; right: 6px; } }
