/* Design system (Downloads\DESIGN (1).md, style reference only): navy ink on cool marble.
   Navy #0b3558 for all text, one signal blue #006bff for primary actions and selected states,
   white cards on a #f8f9fb canvas with 1px hairlines and blue-tinted shadows, 8px buttons,
   24px cards, 16px photos, Manrope (Gilroy substitute). Flat surfaces, no background gradients.
   Variable names are kept from the earlier system so page scripts keep working. */

:root {
  --ink: #0b3558;           /* Ink Navy: all text, icons, dark buttons */
  --white: #ffffff;
  --paper: #f8f9fb;         /* Cloud: page canvas */
  --paper-2: #ffffff;       /* Paper: cards and raised surfaces */
  --fill: #f0f3f8;          /* Pebble: input fills, hover washes */
  --ash: #a6bbd1;           /* Mist Gray: inactive labels, light strokes */
  --ash-text: #476788;      /* Slate Gray: secondary copy */
  --pebble: #d4e0ed;        /* Hairline: borders and dividers */
  --hull: #0b3558;          /* dark surface (navy) */
  --deck: #082a47;
  --clay: #006bff;          /* the one accent card per page is now Signal Blue */
  --blue: #006bff;
  --blue-hover: #0057d1;
  --cobalt: #004eba;
  --badge: #e6f0ff;

  --shadow-card: rgba(71,103,136,.04) 0 4px 5px 0, rgba(71,103,136,.03) 0 8px 15px 0, rgba(71,103,136,.08) 0 30px 50px 0;
  --shadow-link: rgba(71,103,136,.04) 0 4px 5px 0, rgba(71,103,136,.03) 0 4px 10px 0, rgba(71,103,136,.05) 0 10px 20px 0;
  --shadow-btn: rgba(71,103,136,.04) 0 4px 5px 0, rgba(71,103,136,.03) 0 8px 15px 0, rgba(71,103,136,.06) 0 15px 30px 0;

  --font: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1200px;
  --gutter: 16px;
  --section: 64px;
  --pill: 9999px;           /* badges only */
  --r-btn: 8px;
  --r-card: 24px;
  --r-photo: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; --section: 96px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 700; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: var(--section) 0; }
.band-tight { padding: 48px 0; }
.band-dark { background: var(--hull); color: var(--white); }
.band-deck { background: var(--deck); color: var(--white); }
.band-sky { background: var(--paper); }

/* ---------- type ---------- */
.wordmark { font-size: clamp(72px, 14vw, 180px); line-height: 0.85; letter-spacing: -0.02em; font-weight: 700; }
.display { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.12; font-weight: 700; }
.h-lg { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.2; font-weight: 700; }
.h { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.21; font-weight: 700; }
.h-sm { font-size: 24px; line-height: 1.3; font-weight: 700; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ash-text); max-width: 42ch; }
.band-dark .lead, .band-deck .lead { color: #c3d3e4; }
.muted { color: var(--ash-text); }
.band-dark .muted, .band-deck .muted { color: #c3d3e4; }
.stat { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.1; font-weight: 700; }
.label { font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--ash-text); }
.band-dark .label, .clay .label { color: inherit; opacity: 0.85; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; padding: 10px 0; background: rgba(248,249,251,0.92); backdrop-filter: saturate(1.2) blur(8px); box-shadow: 0 1px 0 var(--pebble); }
.site-header.on-sky { background: transparent; backdrop-filter: none; position: absolute; left: 0; right: 0; }
.site-header .wrap { max-width: 1400px; }
.nav { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.brand { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a { font-size: 16px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: var(--r-btn); white-space: nowrap; }
.nav-links a:hover { background: var(--fill); }
.nav-links a[aria-current="page"] { color: var(--blue); }
.lang { display: flex; border: 1px solid var(--pebble); border-radius: var(--r-btn); padding: 3px; background: var(--paper-2); }
.lang a, .lang span { font-size: 14px; font-weight: 600; text-decoration: none; padding: 5px 10px; border-radius: 6px; line-height: 1.2; }
.lang a:hover { background: var(--fill); }
.lang span { background: var(--ink); color: var(--white); }
.menu-btn { width: 44px; height: 44px; border-radius: var(--r-btn); border: 0; background: var(--ink); color: var(--white); cursor: pointer; display: grid; place-items: center; flex: none; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { display: none; padding: 16px 0 8px; }
.mobile-nav.open { display: grid; gap: 4px; }
.mobile-nav a { font-size: 22px; font-weight: 700; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--pebble); }
@media (min-width: 1340px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- buttons ---------- */
/* .btn is the primary (Signal Blue); .btn-line is the white card button; .btn-white / .btn-ghost sit on photos and navy. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: var(--r-btn);
  background: var(--blue); color: var(--white); font: 600 17px/1.2 var(--font); text-decoration: none; border: 1px solid var(--blue); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-line { background: var(--paper-2); color: var(--ink); border-color: var(--pebble); }
.btn-line:hover { background: var(--fill); border-color: var(--pebble); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: var(--fill); border-color: var(--fill); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow::after { content: "→"; font-weight: 400; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 72px; min-height: min(86vh, 860px); display: flex; align-items: flex-end; }
.hero-grid { display: grid; gap: 40px; width: 100%; }
.hero-side { display: grid; gap: 24px; align-content: end; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.3fr 1fr; align-items: end; }
}
.page-hero { padding: 56px 0 48px; }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { margin-top: 20px; }

/* ---------- layout pieces ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.4fr; gap: 72px; } }
.grid-2 { display: grid; gap: 40px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.grid-cols { display: grid; gap: 40px; }
@media (min-width: 720px) { .grid-cols { grid-template-columns: repeat(2, 1fr); column-gap: 56px; } }
@media (min-width: 1040px) { .grid-cols { grid-template-columns: repeat(3, 1fr); } }
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { border-top: 1px solid var(--pebble); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.band-dark .feature, .band-deck .feature { border-color: rgba(255,255,255,.16); }
.feature p { color: var(--ash-text); }
.band-dark .feature p { color: #c3d3e4; }
.stack { display: grid; gap: 24px; }
.stack-lg { display: grid; gap: 48px; }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; }

/* cards */
.panel { background: var(--paper-2); padding: 24px; display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit;
  border: 1px solid var(--pebble); border-radius: var(--r-card); box-shadow: var(--shadow-link); }
a.panel:hover { box-shadow: var(--shadow-card); }
.clay { background: var(--clay); color: var(--white); padding: 56px; border-radius: var(--r-card); display: grid; gap: 20px; box-shadow: var(--shadow-card); }
@media (max-width: 719px) { .clay { padding: 32px 24px; } }
.clay .btn { background: var(--white); color: var(--ink); border-color: var(--white); justify-self: start; }
.clay .btn:hover { background: var(--fill); border-color: var(--fill); }

/* stats row: one white card split by hairlines */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--pebble); border: 1px solid var(--pebble);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-link); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--paper-2); padding: 24px; display: grid; gap: 8px; }
.band-sky .stats > div { background: var(--paper-2); }

/* tool list in navy band */
.tool { display: grid; gap: 12px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.16); text-decoration: none; }
@media (min-width: 900px) { .tool { grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 40px; } }
.tool:hover .btn-ghost { background: rgba(255,255,255,0.12); }

/* ---------- forms ---------- */
.filters { display: grid; gap: 12px; align-items: end; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .filters { grid-template-columns: 2fr repeat(5, 1fr); } }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
input[type="search"], input[type="number"], input[type="text"], select {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--pebble); border-radius: var(--r-btn);
  font: 400 16px/1.2 var(--font); color: var(--ink); background: var(--fill); appearance: none; -webkit-appearance: none;
}
input::placeholder { color: var(--ash-text); }
select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b3558' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input:hover, select:hover { border-color: var(--ash); }
input:focus, select:focus { outline: none; border-color: var(--blue); background-color: var(--paper-2); }

.quiz { display: grid; gap: 0; }
.q { display: grid; gap: 24px; padding: 40px 0; border-top: 1px solid var(--pebble); }
@media (min-width: 900px) { .q { grid-template-columns: 1fr 1.6fr; gap: 72px; } }
.q-body { display: grid; gap: 20px; }
.q-body .row { display: grid; gap: 16px; }
@media (min-width: 720px) { .q-body .row { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--pebble); border-radius: var(--r-btn);
  background: var(--paper-2); font-weight: 600; font-size: 16px; }
.choice span:hover { background: var(--fill); }
.choice input:checked + span { background: var(--blue); color: var(--white); border-color: var(--blue); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.form-error { font-weight: 600; padding: 22px 0; }

/* ---------- university list ---------- */
.uni-card { min-height: 260px; }
.uni-card .h-sm { max-width: 18ch; }
.uni-card .fee { margin-top: auto; display: grid; gap: 6px; }
.uni-card .stat, .panel .stat { font-size: clamp(28px, 3.2vw, 40px); }
.uni-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ash-text); font-size: 16px; }
.count { font-weight: 600; margin-bottom: 16px; }

/* chance result badges */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--pill); font-size: 14px; font-weight: 600; border: 1px solid transparent; line-height: 1.4; justify-self: start; }
.pill-high { background: var(--blue); color: var(--white); }
.pill-medium { background: var(--badge); color: var(--cobalt); }
.pill-low, .pill-none { background: var(--fill); color: var(--ash-text); border-color: var(--pebble); }
.reasons { margin: 0; padding-left: 20px; color: var(--ash-text); font-size: 16px; display: grid; gap: 4px; }

/* ---------- detail and content ---------- */
.rows { display: grid; }
.rows > div { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--pebble); }
@media (min-width: 720px) { .rows > div { grid-template-columns: 1fr 2fr; gap: 24px; } }
.rows dt { font-weight: 600; }
.rows dd { margin: 0; color: var(--ash-text); }
.links { list-style: none; padding: 0; margin: 0; display: grid; }
.links li { border-top: 1px solid var(--pebble); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; font-weight: 600; }
.links a::after { content: "↗"; font-weight: 400; color: var(--blue); }
.links a:hover { color: var(--blue); }
.links .sub { display: block; font-weight: 400; color: var(--ash-text); font-size: 15px; margin-top: 4px; }
.band-dark .links li { border-color: rgba(255,255,255,.16); }
.band-dark .links a::after, .band-dark .links a:hover { color: inherit; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; gap: 10px; padding: 32px 0; border-top: 1px solid var(--pebble); }
@media (min-width: 900px) { .steps li { grid-template-columns: 120px 1fr 1.4fr; gap: 40px; } }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 38px; font-weight: 700; line-height: 1; color: var(--blue); }
.steps p { color: var(--ash-text); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 16px; }
table.data th { text-align: left; font-size: 14px; font-weight: 600; color: var(--ash-text); padding: 14px 16px 14px 0; border-bottom: 1px solid var(--pebble); white-space: nowrap; }
table.data td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--pebble); vertical-align: top; }
table.data td:first-child { font-weight: 600; }
table.data a { color: var(--blue); text-decoration-color: rgba(0,107,255,.3); }
.back { display: inline-flex; gap: 8px; text-decoration: none; font-weight: 600; margin-bottom: 32px; }
.back::before { content: "←"; font-weight: 400; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); color: var(--ink); padding: 72px 0 40px; border-top: 1px solid var(--pebble); }
.site-footer .wordmark { font-size: clamp(56px, 10vw, 112px); }
.foot-grid { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-links { display: grid; gap: 10px; align-content: start; }
.foot-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.foot-links a:hover { color: var(--blue); }
.foot-note { color: var(--ash-text); max-width: 46ch; font-size: 15px; }

/* ---------- photo hero ---------- */
.hero-photo { position: relative; overflow: hidden; color: var(--white); background: var(--hull);
  min-height: min(100svh, 980px); padding: 140px 0 0; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.slide.on { opacity: 1; z-index: 1; }
.slide.on, .slide.off { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.0); } }
.hero-shade { position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(6,30,52,.55) 0%, rgba(6,30,52,.08) 32%, rgba(6,30,52,.25) 58%, rgba(6,30,52,.82) 100%); }
.hero-photo .wrap { position: relative; z-index: 3; width: 100%; }
.hero-photo .hero-grid { padding-bottom: 40px; }
.hero-photo .lead { color: rgba(255,255,255,.88); }
.hero-foot { position: relative; z-index: 3; border-top: 1px solid rgba(255,255,255,.22); }
.hero-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 22px; }
.hero-city { font-size: 20px; font-weight: 700; }
.hero-city.swap { animation: cityIn .7s cubic-bezier(.2,.7,.2,1); }
@keyframes cityIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 44px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::before, .hero-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: 2px; }
.hero-dots button::before { background: rgba(255,255,255,.35); }
.hero-dots button::after { background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero-dots button.on::after { animation: dotFill 6.5s linear forwards; }
@keyframes dotFill { to { transform: scaleX(1); } }
@media (max-width: 719px) { .hero-dots button { width: 32px; } .hero-photo { padding-top: 120px; } }

/* header over the photo */
.site-header.on-photo { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; box-shadow: none; color: var(--white);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
.site-header.on-photo .nav-links a:hover { background: rgba(255,255,255,.14); }
.site-header.on-photo .lang { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }
.site-header.on-photo .lang a:hover { background: rgba(255,255,255,.14); }
.site-header.on-photo .lang span { background: var(--white); color: var(--ink); }
.site-header.on-photo .menu-btn { background: var(--white); color: var(--ink); }
.site-header.on-photo.solid { background: rgba(248,249,251,.94); backdrop-filter: saturate(1.2) blur(8px); color: var(--ink); box-shadow: 0 1px 0 var(--pebble); }
.site-header.on-photo.solid .lang { background: var(--paper-2); border-color: var(--pebble); }
.site-header.on-photo.solid .lang a:hover { background: var(--fill); }
.site-header.on-photo.solid .lang span { background: var(--ink); color: var(--white); }
.site-header.on-photo.solid .menu-btn { background: var(--ink); color: var(--white); }
.site-header.on-photo.solid .nav-links a:hover { background: var(--fill); }
.site-header .lang a, .site-header .lang span, .nav-links a { transition: background-color .25s ease, color .25s ease; }
.mobile-nav.open { animation: menuIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- motion ---------- */
/* page change (Chrome view transitions): the new page fades in over the
   old one, which stays solid underneath, so there is never a white frame. Not reliable on
   file:// (each file is its own origin), reliable when served over http. */
@view-transition { navigation: auto; }
::view-transition-image-pair(root) { isolation: auto; }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: vtIn .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vtIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-new(root) { animation: none; } }

.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .clay.reveal { transform: translateY(40px) scale(.985); }
.motion .clay.reveal.in { transform: none; }

/* hero text: letters of the wordmark rise one by one, then the rest */
.wm-letter { display: inline-block; }
.motion .hero-photo .wm-letter { animation: letterUp 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
@keyframes letterUp { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }
.wm-clip { display: inline-block; overflow: hidden; padding-bottom: .06em; }
.motion .hero-photo .hero-side > * { animation: riseIn .9s cubic-bezier(.2,.8,.2,1) both; }
.motion .hero-photo .hero-side > *:nth-child(1) { animation-delay: .55s; }
.motion .hero-photo .hero-side > *:nth-child(2) { animation-delay: .7s; }
.motion .hero-photo .hero-side > *:nth-child(3) { animation-delay: .85s; }
.motion .hero-foot { animation: riseIn .9s 1.05s cubic-bezier(.2,.8,.2,1) both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* interactive transitions */
.btn { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease; }
.btn:active { transform: scale(.97); }
.arrow::after { display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.btn:hover.arrow::after, a:hover .arrow::after, .tool:hover .arrow::after, .panel:hover .arrow::after { transform: translateX(4px); }
a.panel { transition: box-shadow .3s ease; }
.tool { transition: padding-left .35s cubic-bezier(.2,.7,.2,1); }
.tool:hover { padding-left: 12px; }
.links a { transition: padding-left .3s cubic-bezier(.2,.7,.2,1), color .2s ease; }
.links a:hover { padding-left: 8px; text-decoration: none; }
.links a::after { transition: transform .3s ease; }
.links a:hover::after { transform: translate(3px, -3px); }
.choice span { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
input, select { transition: border-color .2s ease, background-color .2s ease; }
.foot-links a { transition: color .2s ease; }
.pill { transition: transform .2s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slide.on { opacity: 1; }
}
@media (max-width: 719px) {
  .hero-shade { background: linear-gradient(180deg, rgba(6,30,52,.5) 0%, rgba(6,30,52,.15) 28%, rgba(6,30,52,.55) 52%, rgba(6,30,52,.88) 100%); }
}

/* ---------- tinted band (was lime): flat cool fill ---------- */
:root { --lime: #edf2f9; --lime-deep: var(--blue); --lime-ink: var(--ash-text); }
.band-lime { background: var(--lime); }
.band-lime .feature { border-color: var(--pebble); }
.band-lime .feature p, .band-lime .lead, .band-lime .label, .band-lime .muted { color: var(--lime-ink); }
.band-lime .stats > div { background: var(--paper-2); }
.band-lime table.data td { border-color: var(--pebble); }
.band-lime input, .band-lime select { background-color: var(--paper-2); }

/* ---------- photos ---------- */
.photo { position: relative; overflow: hidden; background: var(--fill); border-radius: var(--r-photo); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.photo-tall { aspect-ratio: 4 / 5; max-height: 560px; }
.photo-hero { position: relative; color: var(--white); min-height: min(68vh, 640px); display: flex; align-items: flex-end; overflow: hidden; background: var(--hull); }
.photo-hero .photo-hero-img { position: absolute; inset: 0; }
.motion .photo-hero .photo-hero-img img { animation: heroZoom 9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.photo-hero .hero-shade { background: linear-gradient(180deg, rgba(6,30,52,.55) 0%, rgba(6,30,52,.12) 35%, rgba(6,30,52,.78) 100%); }
.photo-hero-body { position: relative; z-index: 3; width: 100%; padding-top: 140px; padding-bottom: 56px; display: grid; gap: 20px; justify-items: start; }
.photo-hero .display { max-width: 18ch; }
.photo-hero .lead, .photo-hero .label { color: rgba(255,255,255,.88); }
.motion .photo-hero-body > * { animation: riseIn .9s cubic-bezier(.2,.8,.2,1) both; }
.motion .photo-hero-body > *:nth-child(2) { animation-delay: .1s; }
.motion .photo-hero-body > *:nth-child(3) { animation-delay: .2s; }
.motion .photo-hero-body > *:nth-child(4) { animation-delay: .3s; }
.back-light { color: var(--white); margin-bottom: 8px; }

.facts-layout { display: grid; gap: 48px; }
@media (min-width: 960px) { .facts-layout { grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; } }
.clay-split { grid-template-columns: 1fr; padding: 0; gap: 0; overflow: hidden; }
.clay-split > .stack { padding: 56px; align-content: center; }
.clay-photo { min-height: 280px; border-radius: 0; }
@media (min-width: 900px) { .clay-split { grid-template-columns: 1.1fr 1fr; } .clay-photo { min-height: 100%; } }
@media (max-width: 719px) { .clay-split > .stack { padding: 32px 24px; } }
.clay:hover .photo img, .tool:hover .photo img, .rank-row:hover .photo img { transform: scale(1.06); }

.tool-photo { grid-template-columns: 1fr; }
.tool-thumb { width: 100%; aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .tool-photo { grid-template-columns: 180px 1fr 1.2fr auto; } .tool-thumb { aspect-ratio: 4 / 3; } }

/* ---------- QS-style ranked list ---------- */
.filter-band { padding: 28px 0; position: sticky; top: 72px; z-index: 5; }
@media (max-width: 1079px) { .filter-band { position: static; } }
.filter-band .filters { margin: 0; }
.rank-list { border-top: 1px solid var(--pebble); }
.rank-head, .rank-row { display: grid; grid-template-columns: 120px minmax(0, 2.4fr) 1.35fr 1.1fr .8fr 150px; gap: 20px; align-items: center; }
.rank-head { padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--ash-text); border-bottom: 1px solid var(--pebble); }
.rank-row { padding: 18px 0; border-bottom: 1px solid var(--pebble); text-decoration: none; color: inherit; transition: background-color .25s ease; }
.rank-row:hover { background: var(--fill); }
.rank-no { font-size: 30px; font-weight: 700; line-height: 1; }
.rank-no.none { color: var(--ash-text); }
.rank-no small { font-size: 13px; font-weight: 600; color: var(--ash-text); display: block; line-height: 1.2; }
.rank-uni { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rank-uni strong { display: block; font-size: 19px; line-height: 1.25; }
.rank-uni .label { display: block; margin-top: 4px; }
.rank-thumb { width: 76px; height: 76px; flex: none; border-radius: 12px; }
.rank-val { font-size: 16px; }
.rank-val b { font-size: 19px; }
.rank-go { justify-self: end; }
@media (max-width: 1079px) {
  .rank-head { display: none; }
  .rank-row { grid-template-columns: auto 1fr; grid-template-areas: "no uni" "vals vals" "go go"; gap: 14px 16px; padding: 20px 0; }
  .rank-no { grid-area: no; font-size: 24px; }
  .rank-uni { grid-area: uni; }
  .rank-thumb { width: 60px; height: 60px; }
  .rank-uni strong { font-size: 18px; }
  .rank-val { display: grid; gap: 2px; }
  .rank-val::before { content: attr(data-label); font-size: 13px; color: var(--ash-text); }
  .rank-row > .rank-val { grid-column: span 2; }
  .rank-go { display: none; }
}
@media (min-width: 560px) and (max-width: 1079px) {
  .rank-row { grid-template-columns: auto 1fr 1fr 1fr; grid-template-areas: "no uni uni uni"; }
  .rank-row > .rank-val { grid-column: auto; }
  .rank-row > .rank-val:first-of-type { grid-column: 2; }
}

/* ---------- grants tabs ---------- */
.tab-band { padding: 14px 0; position: sticky; top: 72px; z-index: 5; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 10px 18px; border-radius: var(--r-btn); border: 1px solid var(--pebble); background: var(--paper-2);
  font: 600 16px/1 var(--font); color: var(--ink); cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.tabs button:hover { background: var(--fill); }
.tabs button[aria-selected="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.motion .tab-panel:not([hidden]) { animation: riseIn .5s cubic-bezier(.2,.8,.2,1) both; }
.grant-card { display: grid; gap: 18px; align-content: start; background: var(--paper-2); border: 1px solid var(--pebble); border-radius: var(--r-card);
  padding: 24px; box-shadow: var(--shadow-link); }
.grant-card .stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); box-shadow: none; border-radius: 16px; }
.grant-card .stat { font-size: clamp(24px, 2.8vw, 32px); }
.steps-compact li { grid-template-columns: 64px 1fr !important; padding: 20px 0; }
.steps-compact li::before { font-size: 26px; }
.steps-compact p { color: var(--ink); }
.rank-no.long { font-size: 20px; }
.rank-val b { white-space: nowrap; }
.stats.stats-auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats-auto .stat { font-size: clamp(26px, 3.2vw, 40px); }
.stats-lime .stat { font-size: clamp(24px, 2.6vw, 36px); white-space: nowrap; }

/* phone: compact filters and ranked rows */
@media (max-width: 719px) {
  .filter-band { padding: 20px 0; }
  .filters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .filters .field > span { font-size: 13px; }
  .filters input, .filters select { min-height: 44px; font-size: 16px; padding-left: 14px; }
}
@media (max-width: 559px) {
  .rank-row { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: none; gap: 12px; }
  .rank-no, .rank-uni { grid-area: auto; grid-column: 1 / -1; }
  .rank-no { font-size: 20px; }
  .rank-row > .rank-val { grid-column: auto; font-size: 15px; }
  .rank-val b { font-size: 16px; white-space: normal; }
  .rank-val::before { font-size: 12px; }
}

/* ---------- top navigation (sliding active marker) ---------- */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav .brand { justify-self: start; }
.nav .lang { justify-self: end; }
.tubelight { justify-self: center; }
.tl-bar { position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px;
  border: 1px solid var(--pebble); background: var(--paper-2); }
.site-header.on-photo:not(.solid) .tl-bar { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tl-item { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: var(--r-btn);
  font: 600 15px/1.2 var(--font); text-decoration: none; color: inherit; opacity: .8; white-space: nowrap; transition: opacity .25s ease, color .25s ease; }
.tl-item:hover, .tl-item[aria-current="page"], .tl-item.tl-on { opacity: 1; }
.tl-item[aria-current="page"] { color: var(--blue); }
.site-header.on-photo:not(.solid) .tl-item[aria-current="page"] { color: var(--white); }
.tl-icon { display: none; }
.tl-icon .ico { width: 20px; height: 20px; display: block; }
.tl-home { display: none; }
.tl-lamp { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: var(--r-btn); pointer-events: none; z-index: 0;
  background: var(--badge); opacity: 0; }
.site-header.on-photo:not(.solid) .tl-lamp { background: rgba(255,255,255,.16); }
.tl-lamp.tl-anim { transition: transform .45s cubic-bezier(.3,1.1,.5,1), width .45s cubic-bezier(.3,1.1,.5,1), opacity .2s ease; }
.tl-tube { display: none; }

@media (max-width: 1179px) {
  .nav { display: flex; justify-content: space-between; }
  /* no backdrop-filter on the header, so the fixed bar sticks to the screen, not the header */
  .site-header, .site-header.on-photo.solid { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.on-photo.solid { background: rgba(248,249,251,.97); }
  .tubelight { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; color: var(--ink); }
  .tubelight .tl-bar, .site-header.on-photo:not(.solid) .tl-bar { background: var(--paper-2); border-color: var(--pebble);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-card); }
  .tubelight .tl-lamp, .site-header.on-photo:not(.solid) .tl-lamp { background: var(--badge); }
  .site-header.on-photo:not(.solid) .tl-item[aria-current="page"] { color: var(--blue); }
  .tl-text { display: none; }
  .tl-icon, .tl-home { display: flex; }
  .tl-item { padding: 12px 18px; opacity: .75; }
  .site-footer { padding-bottom: 120px; }
}
@media (max-width: 400px) { .tl-item { padding: 12px 14px; } }

/* ---------- universities: one filter button ---------- */
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.list-bar .count { margin: 0; }
.filter-btn .ico { width: 18px; height: 18px; }
.filter-btn[aria-expanded="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill);
  background: var(--blue); color: var(--white); font-size: 13px; }
.filter-panel { background: var(--paper-2); border: 1px solid var(--pebble); border-radius: var(--r-card); box-shadow: var(--shadow-link); padding: 24px; margin-bottom: 28px; }
.motion .filter-panel:not([hidden]) { animation: riseIn .4s cubic-bezier(.2,.8,.2,1) both; }
.filter-panel .filters { margin: 0; }
@media (min-width: 1080px) { .filters { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.filter-reset .btn { width: 100%; }
@media (max-width: 719px) { .filter-panel { padding: 18px 16px; } }

/* ---------- apply: pinned step cards ---------- */
.hiw { position: relative; padding: 80px 0 100px; overflow: hidden; }
.hiw-lines { position: absolute; inset: 0; pointer-events: none; margin-top: 4px;
  background-image: linear-gradient(rgba(11,53,88,.07) 1px, transparent 1px); background-size: 100% 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); }
.hiw-board { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; position: relative; display: grid; gap: 32px; }
.hiw-path { display: none; }
.hiw-board.is-wide { display: block; }
.hiw-board.is-wide .hiw-path { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.hiw-path path { fill: none; stroke: var(--ash); stroke-width: 2; stroke-dasharray: 8 6; stroke-linecap: round; vector-effect: non-scaling-stroke;
  animation: hiwDash 3s linear infinite; }
@keyframes hiwDash { to { stroke-dashoffset: -140; } }
.hiw-card { --r: 1.5deg; position: relative; z-index: 1; transform: rotate(var(--r)); transition: transform .3s ease; }
.hiw-card.right { --r: -1.5deg; }
.hiw-card:hover { z-index: 30; transform: rotate(var(--r)) scale(1.05); }
.is-wide .hiw-card { position: absolute; width: min(440px, 44%); --r: 5deg; }
.is-wide .hiw-card.left { left: 1%; }
.is-wide .hiw-card.right { right: 1%; --r: -5deg; }
.hiw-paper { background: var(--paper-2); padding: 10px; border-radius: var(--r-card); border: 1px solid var(--pebble); box-shadow: var(--shadow-card); }
.hiw-pin { width: 32px; height: 32px; display: block; margin: 6px auto 18px; color: var(--c); }
.hiw-inner { background: var(--bg); border: 1px solid var(--bd); border-radius: 16px; padding: 28px 28px 30px; color: var(--white); }
.hiw-no { display: block; font-family: "Caveat", "Comic Sans MS", "Chalkboard SE", cursive; font-size: 54px; line-height: 1; color: var(--num); margin-bottom: 16px; }
.hiw-title { font-size: 26px; line-height: 1.2; margin-bottom: 12px; color: var(--white); }
.hiw-inner p { font-size: 17px; line-height: 1.55; color: #c3d3e4; }
/* all step cards: navy with white text; pin in signal blue, number in a lighter blue that reads on navy */
.hiw-card { --bg: var(--ink); --bd: var(--ink); --c: var(--blue); --num: #6aa8ff; }
@media (max-width: 719px) { .hiw { padding: 48px 0 64px; } }

/* ---------- OsonAdmission logo ---------- */
.logo { display: block; height: auto; }
.logo .lg-s { stroke: var(--logo-accent, #006bff); }
.logo .lg-f { fill: var(--logo-accent, #006bff); }
.brand { display: flex; align-items: center; color: inherit; }
.brand .logo { width: 196px; }
.site-header.on-photo:not(.solid) { --logo-accent: #ffffff; }
.hero-logo { color: var(--white); --logo-accent: #5aa2ff; }
.hero-logo .logo { width: min(100%, 640px); filter: drop-shadow(0 2px 14px rgba(5,25,45,.45)); }
.motion .hero-photo .hero-logo { animation: riseIn 1s .15s cubic-bezier(.2,.8,.2,1) both; }
.foot-logo .logo { width: clamp(240px, 40vw, 440px); }
@media (max-width: 559px) { .brand .logo { width: 164px; } }
