@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --indigo: #160e3a;
  --indigo-2: #241757;
  --violet: #6c3bff;
  --magenta: #ff3d7f;
  --magenta-deep: #c8145a;
  --saffron: #ffc93c;
  --white: #ffffff;
  --lilac: #d6ccff;          /* secondary text on indigo, 10:1 */
  --mist: #f5f1ff;

  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* destination field, set per body[data-dest] */
  --field: var(--violet);
  --fg: var(--white);
  --fg-soft: #ece6ff;
  --pill-on-bg: var(--white);
  --pill-on-fg: var(--violet);
  --pill-off-bg: rgba(22, 14, 58, 0.24);
}
body[data-dest="au"] { --field: var(--saffron); --fg: var(--indigo); --fg-soft: #4a3a14; --pill-on-bg: var(--indigo); --pill-on-fg: var(--saffron); --pill-off-bg: rgba(22, 14, 58, 0.1); }
body[data-dest="eu"] { --field: var(--indigo); --fg: var(--white); --fg-soft: var(--lilac); --pill-on-bg: var(--saffron); --pill-on-fg: var(--indigo); --pill-off-bg: rgba(255, 255, 255, 0.12); }
body[data-dest="jp"] { --field: var(--white); --fg: var(--indigo); --fg-soft: #4a4170; --pill-on-bg: var(--magenta-deep); --pill-on-fg: var(--white); --pill-off-bg: rgba(22, 14, 58, 0.07); }
body[data-dest="us"] { --field: var(--magenta-deep); --fg: var(--white); --fg-soft: #ffe3ee; --pill-on-bg: var(--white); --pill-on-fg: var(--magenta-deep); --pill-off-bg: rgba(22, 14, 58, 0.24); }

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--violet) var(--indigo); }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--indigo);
  color: var(--white);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--saffron);
}
::selection { background: var(--saffron); color: var(--indigo); }
img, video, canvas { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
h1 .ok, h2 .ok, h3 .ok { margin: 0 0.04em 0 0.02em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--saffron); color: var(--indigo); padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 1rem; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- intro: the logo draws itself, then flies to the nav ---------- */
.intro { display: none; }
.has-intro .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.has-intro body { overflow: hidden; }
.intro__warp { position: absolute; inset: 0; display: flex; }
.intro__warp span { flex: 1; height: 100%; background: var(--indigo); transform-origin: top; }
.intro__logo { position: relative; width: min(560px, 78vw); }
.intro__svg { width: 100%; height: auto; overflow: visible; }
.has-intro .nav__logo { opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 3.25rem; padding: 0 1.6rem; border-radius: 999px;
  font: 600 1.0625rem/1 var(--text); text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--saffron { background: var(--saffron); color: var(--indigo); }
.btn--saffron:hover { background: #ffd666; }
.btn--indigo { background: var(--indigo); color: var(--white); }
.btn--ghost { background: rgba(255, 255, 255, 0.1); color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 12px 28px -10px rgba(0, 0, 0, 0.45); }
.btn--small { min-height: 2.75rem; padding: 0 1.15rem; font-size: 0.98rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--gutter);
  background: var(--indigo);
  transition: box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}
.nav.is-solid { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { width: clamp(120px, 12vw, 150px); height: auto; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-weight: 500; color: var(--lilac); transition: color 0.2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden; isolation: isolate;
}
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__grid { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: end; }
.hero__body { min-width: 0; }
@media (min-width: 1101px) {
  /* the headline runs across both columns; the board sits beside the text block under it */
  .hero__grid { row-gap: 0; }
  .hero__body { display: contents; }
  .hero__title { grid-column: 1 / -1; max-width: none; }
  .hero__body > :not(.hero__title) { grid-column: 1; }
  .board { grid-column: 2; grid-row: 2 / span 5; align-self: end; margin-top: 1.6rem; }
}
@media (max-width: 1100px) { .hero__grid { grid-template-columns: 1fr; } }

/* ---------- split-flap departure board ---------- */
.board { align-self: center; background: rgba(10, 6, 30, 0.82); border-radius: 22px; padding: clamp(0.9rem, 1.6vw, 1.4rem); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); font-family: var(--text); }
.board__head { display: flex; align-items: center; gap: 1rem; padding: 0.2rem 0.3rem 0.9rem; font-weight: 700; letter-spacing: 0.08em; }
.board__title { font-family: var(--display); font-size: 1.15rem; color: var(--saffron); letter-spacing: 0.04em; }
.board__from { color: var(--lilac); font-size: 0.85rem; }
.board__note { margin: 0.7rem 0.3rem 0; font-size: 0.72rem; color: #a99fd6; }
.board__clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--white); font-size: 1rem; }
.board__row { display: grid; grid-template-columns: 5fr 11fr 17fr 9fr; gap: 0.6rem; padding: 0.28rem 0.3rem; align-items: center; }
.board__row--cols { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: #a99fd6; padding-bottom: 0.4rem; }
.flapcell { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; container-type: inline-size; }
.flapcell i { display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: min(0.95rem, calc((100cqi - (var(--n) - 1) * 2px) / var(--n) * 1.02)); line-height: 1; height: 1.9em; border-radius: 3px; color: var(--white); background: #1d1446; position: relative; overflow: hidden; isolation: isolate; font-variant-numeric: tabular-nums; }
.flapcell i::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.6); }
.flapcell i.f { animation: flap 0.12s ease-out; }
@keyframes flap { from { transform: perspective(200px) rotateX(-80deg); filter: brightness(1.6); } to { transform: none; filter: none; } }
.board__row > .flapcell:first-child i { color: var(--saffron); }
.board__row[data-stage="UCHISH"] > .flapcell:nth-child(4) i { color: var(--saffron); }
.board__row[data-stage="VIZA"] > .flapcell:nth-child(4) i { color: var(--magenta); }
@media (max-width: 640px) {
  /* phones: each departure takes two lines, time/city/stage above, the university below */
  .board__row { grid-template-columns: 5fr 10fr 6fr; grid-template-areas: "t c s" "u u u"; gap: 0.3rem 0.45rem; padding: 0.4rem 0.3rem; }
  .board__row > :nth-child(1) { grid-area: t; }
  .board__row > :nth-child(2) { grid-area: c; }
  .board__row > :nth-child(3) { grid-area: u; }
  .board__row > :nth-child(4) { grid-area: s; }
  .board__row + .board__row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .board__row--cols { display: none; }
  .board__from { display: none; }
}
.hero__title { font-size: clamp(2.5rem, 8.2vw, 6rem); font-weight: 800; letter-spacing: -0.04em; max-width: 12ch; }
.hero__lead { margin-top: 1.1rem; max-width: 50ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--lilac); }
.hero__fact { margin-top: 1rem; min-height: 1.6em; font-weight: 600; color: var(--saffron); font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .w > span { display: inline-block; }
@media (max-width: 480px) {
  .hero { padding-top: 6rem; }
  .hero__title { font-size: max(2.1rem, calc((100vw - 2 * var(--gutter)) / 10.2)); }
}

/* ---------- destination switch ---------- */
.switch { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.switch__pill {
  min-height: 2.75rem; padding: 0 1.15rem; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 0.98rem/1 var(--text); color: var(--white); background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.switch__pill:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.switch__pill[aria-selected="true"] { background: var(--saffron); color: var(--indigo); }
.switch--light { margin-top: 0; }
.switch--light .switch__pill { color: var(--fg); background: var(--pill-off-bg); }
.switch--light .switch__pill[aria-selected="true"] { background: var(--pill-on-bg); color: var(--pill-on-fg); }
.unis :focus-visible { outline-color: var(--fg); }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding: clamp(5rem, 11vw, 9rem) max(var(--gutter), calc((100% - var(--max)) / 2));
  background: var(--indigo); color: var(--white); overflow: hidden;
}
.about__title { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.about__lead { margin-top: 1.4rem; font-size: 1.18rem; color: var(--lilac); max-width: 48ch; }
.about__collage { position: relative; aspect-ratio: 1 / 1; }
.about__img { position: absolute; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.45); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--a { left: 0; top: 4%; width: 62%; aspect-ratio: 4 / 5; }
.about__img--b { right: 0; top: 0; width: 46%; aspect-ratio: 3 / 4; }
.about__img--c { right: 8%; bottom: 0; width: 54%; aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__collage { aspect-ratio: 4 / 3.4; }
}

/* ---------- universities ---------- */
.unis {
  background: var(--field); color: var(--fg);
  padding: clamp(4.5rem, 10vw, 8rem) max(var(--gutter), calc((100% - var(--max)) / 2));
  transition: background-color 0.7s var(--ease), color 0.5s var(--ease);
}
.unis__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.unis__title { font-size: clamp(2rem, 5vw, 4.2rem); }

.panel[hidden] { display: none; }
.panel__intro { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.panel__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.panel__lead { margin-top: 1rem; font-size: 1.15rem; }
.panel__note { margin-top: 1.1rem; font-size: 0.95rem; color: var(--fg-soft); }
.panel .btn { margin-top: 1.8rem; }

.plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.plate { display: flex; flex-direction: column; gap: 0.25rem; }
.plate__media { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: rgba(22, 14, 58, 0.25); margin-bottom: 0.7rem; }
.plate__media img, .plate__media canvas { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.plate:hover .plate__media img { transform: scale(1.06); }
.plate__qs { position: absolute; left: 0.75rem; top: 0.75rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--white); color: var(--indigo); font: 700 0.8rem/1 var(--text); font-variant-numeric: tabular-nums; }
.plate__name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.25; }
.plate__place { font-size: 0.92rem; color: var(--fg-soft); }

.panel--feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.panel--feature .panel__intro { margin-bottom: 0; }
.feature { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.feature img { width: 100%; height: 100%; object-fit: cover; }
.countries { margin: 1.8rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.countries dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--saffron); }
.countries dd { margin: 0.3rem 0 0; color: var(--fg-soft); font-size: 0.98rem; }
@media (max-width: 900px) { .panel--feature { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .countries { grid-template-columns: 1fr; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; }
  .plate__media { border-radius: 16px; }
  .plate__name { font-size: 0.9rem; }
  .plate__place { font-size: 0.82rem; }
}

/* ---------- life abroad ---------- */
.life { background: var(--indigo); padding: clamp(5rem, 11vw, 8rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; }
.life__intro { padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2)); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.life__title { font-size: clamp(2.2rem, 6vw, 5rem); }
.life__hint svg { width: 1.1em; height: 1.1em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.life__hint { display: none; margin-top: 0.8rem; font-size: 0.9rem; font-weight: 600; color: var(--saffron); }
.life__lead { margin-top: 1.2rem; font-size: 1.2rem; color: var(--lilac); max-width: 46ch; }
.life__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2)); }
.js-motion .life__track { display: flex; width: max-content; }
.js-motion .moment { width: clamp(280px, 34vw, 480px); flex: none; }
.moment figure { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; margin-bottom: 1.2rem; }
.moment:nth-child(even) figure { aspect-ratio: 1 / 1; margin-top: clamp(2rem, 6vw, 5rem); }
.moment img { width: 100%; height: 100%; object-fit: cover; }
.moment h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); color: var(--saffron); }
.moment p { margin-top: 0.6rem; color: var(--lilac); max-width: 38ch; }
.moment .moment__ep { margin-top: 0.8rem; font-size: 0.95rem; font-weight: 600; color: var(--white); }
@media (min-width: 861px) {
  .life { min-height: 100vh; padding-top: clamp(4rem, 8vh, 6rem); padding-bottom: 2rem; }
  .life__intro { margin-bottom: clamp(1.5rem, 4vh, 3rem); }
  .life__title { font-size: clamp(2.2rem, 7vh, 5rem); }
  .js-motion .moment { width: min(34vw, 40vh); }
  .moment:nth-child(even) figure { margin-top: 6vh; aspect-ratio: 1 / 1; }
}
@media (max-width: 860px) {
  .life__track, .js-motion .life__track { display: flex; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 1rem; scrollbar-width: none; }
  .life__track::-webkit-scrollbar { display: none; }
  .moment, .js-motion .moment { width: 80vw; flex: none; scroll-snap-align: start; }
  .moment figure, .moment:nth-child(even) figure { aspect-ratio: 4 / 5; margin-top: 0; }
  .life__hint { display: block; }
}

/* ---------- route ---------- */
.route {
  position: relative; background: var(--indigo-2); color: var(--white);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(5rem, 11vw, 9rem) max(var(--gutter), calc((100% - var(--max)) / 2));
}
.route__sticky { position: sticky; top: 7rem; align-self: start; max-width: 30rem; }
.route__title { font-size: clamp(2.1rem, 5vw, 4rem); }
.route__lead { margin-top: 1.2rem; font-size: 1.15rem; color: var(--lilac); max-width: 34ch; }
.stations { list-style: none; margin: 0; padding: 0 0 0 4rem; position: relative; max-width: 40rem; }
.station { position: relative; padding: 0 0 clamp(3.5rem, 8vw, 6rem); }
.station:last-child { padding-bottom: 0; }
.station::before {
  content: ""; position: absolute; z-index: 2; left: -4rem; top: 0.45rem; width: 1.25rem; height: 1.25rem; margin-left: -0.45rem;
  background: var(--indigo-2); box-shadow: inset 0 0 0 3px rgba(214, 204, 255, 0.5); border-radius: 50%;
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.station.is-on::before { background: var(--magenta); box-shadow: inset 0 0 0 3px var(--magenta), 0 6px 16px -4px rgba(0, 0, 0, 0.28); transform: scale(1.15); }
.station.is-on h3 { color: var(--saffron); }
.station h3 { transition: color 0.4s var(--ease); font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.station p { margin-top: 0.7rem; font-size: 1.12rem; color: var(--lilac); max-width: 46ch; }
.route__path { position: absolute; width: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); pointer-events: none; }
.route__trail { position: absolute; inset: 0; border-radius: 4px; background: var(--magenta); transform-origin: top; transform: scaleY(0); }
.route__plane { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--indigo); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.4); z-index: 3; }
.route__plane svg { width: 16px; height: 16px; fill: var(--saffron); }
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; }
  .route__sticky { position: static; }
}

/* ---------- why ---------- */
.why {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.why__phone { position: relative; width: min(300px, 70vw); aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden; background: var(--indigo-2); box-shadow: 0 0 0 10px var(--indigo-2), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.why__phone video { width: 100%; height: 100%; object-fit: cover; }
.why__sound { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 999px; background: rgba(22, 14, 58, 0.82); color: var(--white); font: 600 0.9rem/1 var(--text); cursor: pointer; }
.why__sound[aria-pressed="true"] { background: var(--saffron); color: var(--indigo); }
.why__title { font-size: clamp(2.1rem, 5vw, 4rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.why__line { padding: 1.4rem 0; }
.why__line h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--saffron); }
.why__line p { margin-top: 0.55rem; color: var(--lilac); font-size: 1.1rem; max-width: 52ch; }
@media (max-width: 800px) { .why { grid-template-columns: 1fr; justify-items: center; } .why__text { justify-self: stretch; } }

/* ---------- close ---------- */
.close {
  position: relative; background: var(--saffron); color: var(--indigo);
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  text-align: center; overflow: hidden;
}
.close__title { font-size: clamp(1.9rem, 4.6vw, 3.6rem); max-width: 18ch; margin: 0 auto; }
.close__phones { display: flex; flex-direction: column; align-items: center; gap: clamp(0.6rem, 1.5vw, 1rem); margin-top: clamp(2rem, 4vw, 3rem); }
.close__phones a { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; text-decoration: none; font-variant-numeric: tabular-nums; border-radius: 12px; }
.close :focus-visible { outline-color: var(--indigo); }
/* phone flaps size themselves from the viewport, not from a container: size containment would collapse the link to zero width */
.flapcell--phone { container-type: normal; display: inline-grid; grid-auto-columns: auto; gap: clamp(2px, 0.4vw, 4px); }
.flapcell--phone i { width: clamp(1rem, 4.4vw, 2.5rem); height: clamp(1.6rem, 6.6vw, 3.7rem); font-family: var(--display); font-size: clamp(0.85rem, 3.4vw, 2rem); color: var(--saffron); background: var(--indigo); border-radius: clamp(3px, 0.6vw, 6px); }
.close__phones a:hover .flapcell--phone i { background: var(--violet); color: var(--white); }

/* ---------- footer ---------- */
.foot { padding: 3rem var(--gutter) 3.5rem; display: grid; gap: 0.9rem; justify-items: center; text-align: center; color: var(--lilac); }
.foot__small { font-size: 0.85rem; max-width: 60ch; color: #a99fd6; }
.credits { max-width: 70ch; font-size: 0.85rem; color: #a99fd6; text-align: left; }
.credits summary { cursor: pointer; text-align: center; color: var(--lilac); font-weight: 600; list-style: none; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary::after { content: " +"; color: var(--saffron); }
.credits[open] summary::after { content: " −"; }
.credits ul { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.credits a { color: var(--lilac); }

@media (max-width: 480px) {
  .unis__title, .life__title, .route__title, .why__title, .about__title { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
