/* cyrillic */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/Onest-400-800-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/Onest-400-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ *\
   Lida Rudkovskaya

   Every colour and typeface goes through a variable, so the whole look
   swaps from two attributes on <html>: data-theme and data-font.
   Add ?preview to any URL to get the switcher and try them live.

   House rules: no borders, no shadows. Separation comes from colour
   blocks, spacing and type weight only.
\* ------------------------------------------------------------------ */

/* --- type ---------------------------------------------------------- */

:root {
  --display: "Onest", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Onest", -apple-system, BlinkMacSystemFont, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.035em;
  --display-lh: 0.98;
  --display-scale: 1;
  --quote-style: normal;
  --quote-weight: 600;
}

/* --- palettes ------------------------------------------------------ *\
   Island colours: sky, water, palm. One accent per palette, everything
   else is a near-white ground and an ink that carries the same hue.
   Every accent clears 4.5:1 against both white and its own background,
   so it works as a button fill and as small text.
\* ------------------------------------------------------------------- */

/* Lagoon is the default, so it goes first: :root and [data-theme=...] have
   equal specificity, and a :root further down would outrank every named
   palette above it. */
:root,
[data-theme="lagoon"] {
  --bg: #f5fafa;
  --bg-alt: #e2f0f0;
  --fg: #0d1e22;
  --fg-muted: #4f666b;
  --fg-faint: #8ba2a6;
  --accent: #0f7c8a;
  --accent-hover: #0b626e;
  --accent-fg: #ffffff;
  --inv-bg: #0a2a30;
  --inv-fg: #eff8f8;
  --inv-muted: rgba(239, 248, 248, 0.62);
  --inv-accent: #5ed3c2;
  --card-bg: #f5fafa;
  --header-scrim: 245, 250, 250;
}

/* Sky: clean azure on a cool white. */
[data-theme="sky"] {
  --bg: #f7f9fb;
  --bg-alt: #e8eff6;
  --fg: #0f1a23;
  --fg-muted: #56687a;
  --fg-faint: #93a3b2;
  --accent: #1b6fa8;
  --accent-hover: #155a8a;
  --accent-fg: #ffffff;
  --inv-bg: #0c2233;
  --inv-fg: #f2f7fa;
  --inv-muted: rgba(242, 247, 250, 0.62);
  --inv-accent: #7bc0ec;
  --card-bg: #f7f9fb;
  --header-scrim: 247, 249, 251;
}

/* Rose: the regat daylight-blue recipe rotated to pink. Unlike the three
   above, the ground is genuinely tinted rather than near-white, so cards
   sit on a lighter surface instead of a darker one. */
[data-theme="rose"] {
  --bg: #f4dce2;
  --bg-alt: #ecc9d2;
  --fg: #3c121d;
  --fg-muted: #7a4f5c;
  --fg-faint: #96707c;
  --accent: #832e43;
  --accent-hover: #6d2537;
  --accent-fg: #ffffff;
  --inv-bg: #2a0d16;
  --inv-fg: #f9eef1;
  --inv-muted: rgba(249, 238, 241, 0.62);
  --inv-accent: #e79aad;
  --card-bg: #fdf7f9;
  --header-scrim: 244, 220, 226;
}

/* Palm: deep jade, the green of the island itself. */
[data-theme="palm"] {
  --bg: #f6faf7;
  --bg-alt: #e6f0e9;
  --fg: #101f19;
  --fg-muted: #536a5f;
  --fg-faint: #8fa398;
  --accent: #1c7a58;
  --accent-hover: #156045;
  --accent-fg: #ffffff;
  --inv-bg: #0d2119;
  --inv-fg: #f1f7f3;
  --inv-muted: rgba(241, 247, 243, 0.62);
  --inv-accent: #74d1a4;
  --card-bg: #f6faf7;
  --header-scrim: 246, 250, 247;
}


/* --- base ---------------------------------------------------------- */

:root {
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(5rem, 12vw, 11rem);
  --measure: 34rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  line-height: var(--display-lh);
  letter-spacing: var(--display-tracking);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- shared -------------------------------------------------------- */

.wrap {
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 1.75rem;
  font-variant-numeric: tabular-nums;
}

.section-title {
  font-size: calc(clamp(2.5rem, 6vw, 4.5rem) * var(--display-scale));
}

.lead {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 30ch;
}

/* --- buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.05rem 2rem;
  border: 0;
  border-radius: 100px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: currentColor;
}

.btn--solid {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn--solid:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  padding-inline: 0.25rem;
}

.btn--ghost::after {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.btn--ghost:hover::after {
  width: 2.4rem;
}

.btn--inv {
  background: var(--inv-bg);
  color: var(--inv-fg);
}

.btn--onInv {
  background: color-mix(in srgb, var(--inv-fg) 12%, transparent);
  color: var(--inv-fg);
}

.btn--onInv:hover {
  background: color-mix(in srgb, var(--inv-fg) 20%, transparent);
}

.btn--onAccent {
  background: var(--accent-fg);
  color: var(--accent);
}

/* Sits on an inverted surface, so it flips back to the page colours. */
.btn--inv-on {
  background: var(--inv-fg);
  color: var(--inv-bg);
}

/* --- header -------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 1.25rem;
  transition: padding 0.3s ease;
}

/* The blur lives on a pseudo-element, not on .header itself: a filter on an
   ancestor would become the containing block for the position:fixed mobile
   nav and trap it inside the header. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--header-scrim), 0.92);
  backdrop-filter: saturate(150%) blur(14px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.header.is-stuck::before {
  opacity: 1;
}

.header.is-stuck {
  padding-block: 0.75rem;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg-muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--fg);
}

.lang {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}

.header .btn {
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--fg);
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- hero ---------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: stretch;
  min-height: 100svh;
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(7rem, 14vh, 10rem) clamp(1.25rem, 5vw, 5rem)
    clamp(3rem, 8vh, 5rem);
}

.hero__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
}

.hero__name {
  font-size: calc(clamp(3.25rem, 9vw, 7.5rem) * var(--display-scale));
  font-weight: var(--display-weight);
  line-height: var(--display-lh);
  letter-spacing: var(--display-tracking);
  margin: 0 0 clamp(1.5rem, 3.5vh, 2.25rem);
}

.hero__tagline {
  font-size: clamp(1.2rem, 0.95rem + 0.95vw, 1.7rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 24ch;
  margin: 0 0 1.25rem;
  color: var(--fg);
}

.hero__location {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin: 0 0 clamp(2rem, 5vh, 3rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

/* Absolute so a tall portrait fills the row instead of stretching it. */
.hero__media picture,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

/* --- roles --------------------------------------------------------- */

.roles {
  background: var(--bg-alt);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.roles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  counter-reset: role;
}

.role {
  counter-increment: role;
}

.role__title {
  font-family: var(--display);
  font-size: calc(clamp(1.5rem, 2.2vw, 2rem) * var(--display-scale));
  margin: 0 0 0.75rem;
}

.role__title::before {
  content: counter(role, decimal-leading-zero);
  display: block;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.role p {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 30ch;
}

/* --- about --------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.about__media img {
  width: 100%;
  border-radius: 2px;
}

.about__body > * + * {
  margin-top: 1.5rem;
}

.about__body p {
  color: var(--fg-muted);
  max-width: var(--measure);
}

.about__body .lead {
  color: var(--fg);
  margin-top: 2rem;
}

.quote {
  font-family: var(--display);
  font-style: var(--quote-style);
  font-weight: var(--quote-weight);
  font-size: calc(clamp(1.35rem, 1.05rem + 1vw, 2rem) * var(--display-scale));
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  max-width: 28ch;
  quotes: "«" "»";
}

:lang(en) .quote {
  quotes: "\201C" "\201D";
}

.quote::before {
  content: open-quote;
  color: var(--accent);
}

.quote::after {
  content: close-quote;
  color: var(--accent);
}

.closer {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent) !important;
  margin-top: 2rem !important;
}

/* --- inverted block (listen) --------------------------------------- */

.inv {
  background: var(--inv-bg);
  color: var(--inv-fg);
}

.inv .section-title {
  color: var(--inv-fg);
}

.inv .lead {
  color: var(--inv-muted);
}

.inv .eyebrow {
  color: var(--inv-accent);
}

.listen__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.listen__body {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

/* Deliberately the same two columns as .listen__head, so the video sits on
   the title's axis and the note lands under the lead. A narrower grid here
   would put this row on its own axes and read as scattered. */
.listen__body--clip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.listen__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.clip {
  position: relative;
  display: block;
  width: 100%;
  max-width: 17rem;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--inv-fg) 8%, transparent);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.clip:hover {
  transform: translateY(-4px);
}

.clip__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip__cue {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  background: var(--inv-fg);
  color: var(--inv-bg);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.25s ease;
}

.clip__cue svg {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
}

.clip:hover .clip__cue {
  background: #fff;
}

/* --- lightbox ------------------------------------------------------ */

.lightbox {
  position: fixed;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  width: min(92vw, 25rem);
  max-height: 88svh;
  overflow: visible;
  opacity: 0;
  transform: scale(0.94) translateY(10px);
  transition: opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    overlay 0.32s ease allow-discrete, display 0.32s ease allow-discrete;
}

.lightbox[open] {
  opacity: 1;
  transform: none;
}

/* Entry values, so opening animates instead of snapping into place. */
@starting-style {
  .lightbox[open] {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
}

.lightbox::backdrop {
  background: rgba(8, 10, 9, 0.5);
  backdrop-filter: blur(18px) saturate(120%);
  opacity: 0;
  transition: opacity 0.32s ease, overlay 0.32s ease allow-discrete,
    display 0.32s ease allow-discrete;
}

.lightbox[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .lightbox[open]::backdrop {
    opacity: 0;
  }
}

.lightbox__media {
  display: block;
  width: 100%;
  max-height: 88svh;
  border-radius: 10px;
  background: #000;
}

.lightbox__close {
  position: absolute;
  top: -3rem;
  right: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox__close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.listen__empty {
  font-size: 1.05rem;
  color: var(--inv-muted);
  max-width: 40ch;
}

.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
}

.track__meta {
  margin-top: 0.9rem;
}

.track__name {
  font-family: var(--display);
  font-size: calc(1.35rem * var(--display-scale));
  font-weight: var(--display-weight);
}

.track__role {
  font-size: 0.85rem;
  color: var(--inv-muted);
  margin-top: 0.25rem;
}

/* --- students ------------------------------------------------------ */

.students__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.case__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bg-alt);
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stand-in portrait: initials on a tinted field, so an empty slot still
   reads as a designed card rather than a broken image. */
.case__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: var(--display-weight);
  letter-spacing: -0.04em;
  color: var(--accent);
  background: var(--bg-alt);
}

.case__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case__name {
  font-family: var(--display);
  font-size: calc(1.35rem * var(--display-scale));
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  margin: 1rem 0 0.35rem;
}

.case__role {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.case__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-muted);
}

.case__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.case__link::after {
  content: "";
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.case__link:hover::after {
  width: 1.9rem;
}

/* --- services ------------------------------------------------------ */

.services {
  background: var(--bg-alt);
}

.services__head {
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.card--featured {
  background: var(--inv-bg);
  color: var(--inv-fg);
}

.card__name {
  font-family: var(--display);
  font-size: calc(1.45rem * var(--display-scale));
  line-height: 1.2;
  margin: 0;
  min-height: 3.4rem;
}

/* Prices are data, not decoration: body face, heavy, tabular, tight. */
.card__price {
  font-family: var(--body);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin: 1.5rem 0 0.35rem;
}

.card--featured .card__price {
  color: var(--inv-accent);
}

.card__unit {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--fg-faint);
  margin: 0 0 1.75rem;
}

.card--featured .card__unit {
  color: var(--inv-muted);
}

.card__points {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.card__points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fg-muted);
}

.card--featured .card__points li {
  color: var(--inv-muted);
}

.card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.card--featured .card__points li::before {
  background: var(--inv-accent);
}

.card .btn {
  width: 100%;
  padding-block: 0.9rem;
}

/* --- faq ----------------------------------------------------------- */

.faq__grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq__item {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 0.35rem clamp(1.1rem, 2.2vw, 1.75rem);
  transition: background-color 0.25s ease;
}

.faq__item[open] {
  background: var(--inv-bg);
  color: var(--inv-fg);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
  color: var(--inv-accent);
}

.faq__item p {
  padding-bottom: 1.4rem;
  max-width: 46ch;
  color: var(--fg-muted);
  font-size: 1rem;
}

.faq__item[open] p {
  color: var(--inv-muted);
}

/* --- contact ------------------------------------------------------- */

.contact {
  background: var(--accent);
  color: var(--accent-fg);
  text-align: center;
}

.contact .section-title {
  max-width: 18ch;
  margin-inline: auto;
}

.contact__lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: color-mix(in srgb, var(--accent-fg) 85%, transparent);
  max-width: 34ch;
  margin: 1.75rem auto 0;
}

.contact__channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* --- footer -------------------------------------------------------- */

.footer {
  background: var(--inv-bg);
  color: var(--inv-muted);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: baseline;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--display);
  font-size: calc(1.4rem * var(--display-scale));
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  color: var(--inv-fg);
  margin-bottom: 0.5rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--inv-fg);
}

.footer__legal {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--inv-fg) 32%, transparent);
}

/* --- back to top --------------------------------------------------- */

.totop {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.25s ease;
}

.totop.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.totop:hover {
  background: var(--accent-hover);
}

.totop svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* --- promo banner (built by app.js from /event.json) ---------------- */

.promo {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 70;
  width: 14rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--inv-bg);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.promo.is-in {
  opacity: 1;
  transform: none;
}

/* Positioned, so the caption is a child of the thing that scales: without
   this the overlay resolves against .promo and stays put while the picture
   grows underneath it. */
.promo__link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.promo__media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60svh;
  object-fit: cover;
}

.promo__body {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 0.9rem 0.9rem;
  color: #fff;
  /* Only drawn when there is something to read, so a bare photo stays clean. */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.45) 45%,
    transparent
  );
}

.promo__title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: var(--display-weight);
  line-height: 1.2;
  letter-spacing: var(--display-tracking);
}

.promo__text {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.promo__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.promo__close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.promo__close svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

/* The back-to-top circle owns the bottom right, so it steps aside rather
   than stacking on top of the banner. */
body[data-promo="on"] .totop {
  right: auto;
  left: clamp(1rem, 3vw, 2rem);
}

/* --- preview switcher (only on ?preview) --------------------------- */

.preview {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.75rem 1.1rem;
  border-radius: 100px;
  background: rgba(20, 16, 13, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  color: #fbf8f4;
  font-family: var(--body);
  font-size: 0.75rem;
}

.preview__group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.preview__label {
  opacity: 0.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.65rem;
  margin-right: 0.15rem;
}

.preview button {
  border: 0;
  border-radius: 100px;
  padding: 0.45rem 0.85rem;
  background: rgba(251, 248, 244, 0.12);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.preview button:hover {
  background: rgba(251, 248, 244, 0.22);
}

.preview button[aria-pressed="true"] {
  background: #fbf8f4;
  color: #14100d;
}

/* --- responsive ---------------------------------------------------- */

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__text {
    order: 2;
    padding-block: clamp(2.5rem, 8vw, 4rem) clamp(3rem, 8vw, 4rem);
  }

  .hero__media {
    order: 1;
    height: 78svh;
    min-height: 22rem;
  }

  /* Resting at the very top the bar carries no ground at all: the name and
     the menu sit straight on the photo. The base rules already fade the
     blurred panel in on .is-stuck, which is the first scroll. */

  .about__grid,
  .faq__grid,
  .listen__head,
  .students__head {
    grid-template-columns: 1fr;
  }

  .listen__body--clip {
    grid-template-columns: 1fr;
  }

  /* Centred here, unlike the copy: a lone portrait video pinned to the left
     edge reads as a stray column rather than a deliberate one. */
  .clip {
    max-width: 15rem;
    margin-inline: auto;
  }

  .lightbox__close {
    top: -2.75rem;
  }

  .promo {
    width: 10.5rem;
  }

  .about__media {
    max-width: 24rem;
  }

  .roles__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav[data-open="true"] {
    transform: translateY(0);
  }

  .nav a {
    font-family: var(--display);
    font-size: calc(2rem * var(--display-scale));
    color: var(--fg);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  .header .btn {
    display: none;
  }

  /* Lifted clear of the back-to-top circle, which owns the bottom right. */
  .preview {
    gap: 0.5rem 1rem;
    bottom: 5rem;
    max-width: calc(100vw - 1.5rem);
  }
}

@media (max-width: 30rem) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero__actions .btn--ghost {
    justify-content: center;
    padding-block: 0.5rem;
  }
}
