/* Osteopatiya Akademiyası — site.css
   Tokens · base · layout · header · components · pages · accessibility modes · print */

:root {
  /* palette derived from the academy logo: #0058A3, #00A3E0, #00A651, #00843D, #FFFFFF */
  --ink: #0B2E56;
  --ink-2: #103A6B;
  --ink-3: #174880;
  --blue: #0058A3;
  --blue-2: #004A8A;
  --blue-soft: #E2EEF8;
  --sky: #00A3E0;
  --sky-2: #33B5E8;
  --sky-soft: #E3F4FC;
  --green: #00A651;
  --green-2: #00843D;
  --green-3: #006B32;
  --green-soft: #E4F5EB;
  --mint: #5FD39A;
  --paper: #F7FAFD;
  --paper-2: #EDF5F0;
  --paper-3: #DCE9E2;
  --card: #FFFFFF;
  --line: #C9D8E6;
  --line-2: #DEE7F0;
  --text: #0B2E56;
  --muted: #4B5D72;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9DBEC;
  --focus: #0B2E56;
  --focus-halo: rgba(0, 163, 224, .5);
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-1: 0 1px 2px rgba(11, 46, 86, .05), 0 8px 22px rgba(11, 46, 86, .06);
  --shadow-2: 0 2px 6px rgba(11, 46, 86, .07), 0 16px 40px rgba(11, 46, 86, .11);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --a11y-scale: 1;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: calc(100% * var(--a11y-scale));
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
em, i, cite, dfn, var, address { font-style: normal; }
em, i { font-weight: 600; }
b, strong { font-weight: 600; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; font-weight: 600; transition: color .2s; }
a:hover { color: var(--green-2); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .55em;
  color: inherit;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h3 { font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.25; }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--sky); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--focus-halo);
  border-radius: 6px;
}
.on-dark :focus-visible, .section--dark :focus-visible,
.site-footer :focus-visible, .hero--home :focus-visible, .hero--photo :focus-visible {
  --focus: var(--sky);
  --focus-halo: rgba(255, 255, 255, .35);
}
.section--teal :focus-visible { --focus: #fff; --focus-halo: rgba(255, 255, 255, .35); }

.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;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html.dlg-open { overflow: hidden; }
main:focus { outline: none; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 1000;
  background: var(--sky); color: var(--ink); font-weight: 700; padding: 12px 18px;
  border-radius: 999px; text-decoration: none; box-shadow: var(--shadow-2);
}
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding: clamp(48px, 6vw, 88px) 0; position: relative; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--sand { background: var(--paper-2); }
.section--card { background: var(--card); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--teal { background: var(--green-2); color: #fff; }
.section--dark a { color: var(--sky); }
.section--dark a:hover { color: var(--on-dark); }
.section--teal a { color: #fff; }
.section--teal a:hover { color: #E3F4FC; }
.section--dark .muted, .section--teal .muted { color: var(--on-dark-muted); }
.section__head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); max-width: 860px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; font-size: 1.05rem; color: var(--muted); }
.section__head .kicker { font-size: .8125rem; color: var(--green-2); }
.section--dark .section__head .kicker { color: var(--mint); }
.section--teal .section__head .kicker { color: #fff; }
.section--sand .kicker, .section--sand .section__head .kicker { color: var(--green-3); }
.section--dark .section__head p { color: var(--on-dark-muted); }
.section--teal .section__head p, .section--teal .muted, .section--teal .section__note, .section--teal p { color: #F2FAF5; }
.section__foot { margin-top: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.15rem); line-height: 1.65; font-weight: 400; color: var(--muted); max-width: 70ch; }
/* kicker = icon badge + label; the label has its own span, so a lang span inside it never becomes a flex column */
.kicker {
  display: inline-flex; align-items: center; gap: .85em;
  font-family: var(--font-body); font-weight: 700; font-size: .8125rem; line-height: 1.45;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-2);
  margin: 0 0 14px;
}
.kicker > span { min-width: 0; }
.kicker > .kicker__ico {
  flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--green-soft); color: var(--green-2);
}
.kicker__ico .ico { width: 1.05rem; height: 1.05rem; stroke-width: 2.1; }
.section--dark .kicker, .hero--home .kicker, .hero--photo .kicker { color: var(--mint); }
.section--teal .kicker { color: #fff; }
.section--dark .kicker__ico, .section--teal .kicker__ico, .hero--home .kicker__ico, .hero--photo .kicker__ico,
.hero--dark .kicker__ico, .band .kicker__ico, .ticket--dark .kicker__ico { background: rgba(95, 211, 154, .16); color: var(--mint); }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 1rem; }

/* ---------- buttons & links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn--cta { --btn-bg: var(--green-2); --btn-fg: #fff; }
.btn--cta:hover { --btn-bg: var(--green-3); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--on-dark); }
.btn--wa { --btn-bg: var(--green-2); --btn-fg: #fff; }
.btn--wa:hover { --btn-bg: var(--green-3); }
.link-arrow {
  display: inline; width: fit-content; font-weight: 600; text-decoration: none;
  color: var(--blue); background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease); padding-bottom: 2px;
}
.link-arrow::after { content: "→"; display: inline-block; margin-left: .45em; transition: transform .3s var(--ease); }
.link-arrow:hover { background-size: 100% 2px; color: var(--green-2); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--dark .link-arrow, .hero--home .link-arrow { color: var(--sky); }
.section--dark .link-arrow:hover, .hero--home .link-arrow:hover { color: var(--on-dark); }
.section--teal .link-arrow { color: #fff; }
.section--teal .link-arrow:hover { color: #E3F4FC; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--fill { fill: currentColor; stroke: none; }


/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
/* the blur sits on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block of the position:fixed mobile/docked CTA and pin that button over the logo row */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(11, 46, 86, .08); border-bottom-color: var(--line-2); }
.hdr { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand__sub { font-weight: 600; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-2); margin-top: 4px; }
.nav { margin-left: auto; min-width: 0; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; margin: 0; }
.nav__link, .nav__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  border-radius: 999px; border: 0; background: transparent; color: var(--ink);
  font-weight: 400; font-size: .98rem; text-decoration: none; white-space: nowrap;
}
.nav__link, .nav__btn { transition: background-color .2s, color .2s; }
.nav__link:hover, .nav__btn:hover, .nav__btn[aria-expanded="true"] { background: var(--paper-2); color: var(--blue); }
.nav__link[aria-current="page"], .nav__btn[data-active="true"] { box-shadow: inset 0 -3px 0 var(--green); border-radius: 12px 12px 4px 4px; }
.nav__btn .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav__btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(700px, 92vw); background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 14px; z-index: 70;
}
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__panel--sm { width: min(400px, 92vw); }
.nav__panel--sm .nav__sub { grid-template-columns: minmax(0, 1fr); }
.nav__sub { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.nav__sub li { margin: 0; }
.nav__sub a {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink);
}
.nav__sub a:hover { background: var(--paper-2); }
.nav__sub a[aria-current="page"] { background: var(--sky-soft); }
.nav__sub strong { font-size: .98rem; font-weight: 400; }
.nav__sub span { font-size: .84rem; font-weight: 400; color: var(--muted); line-height: 1.4; }
.hdr__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; height: 46px;
  padding: 0 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--card);
  color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--green-2); color: var(--green-2); transform: translateY(-1px); }
.icon-btn .ico { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.icon-btn:hover .ico { transform: scale(1.1); }
.icon-btn__label { white-space: nowrap; }
.menu-btn { display: none; }
.hdr__cta { margin-left: 4px; }
html.nav-compact .nav { display: none; }
html.nav-compact .menu-btn { display: inline-flex; }
html.nav-compact .hdr__tools { margin-left: auto; }
.nav__link, .nav__btn { padding: 8px 10px; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .9rem; font-weight: 500; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line); font-weight: 400; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }
.hero--photo .crumbs li, .hero--photo .crumbs a, .hero--dark .crumbs li, .hero--dark .crumbs a { color: var(--on-dark-muted); }
.hero--photo .crumbs [aria-current="page"], .hero--dark .crumbs [aria-current="page"] { color: var(--on-dark); }

/* ---------- heroes ---------- */
.hero { position: relative; overflow: hidden; overflow: clip; }
.hero--type { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 96px); background: var(--paper); }
.hero--type::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: min(60vw, 720px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(0, 163, 224, .18), transparent 70%); pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__crumbs { margin-bottom: clamp(24px, 4vw, 44px); }
.hero h1 { max-width: 18ch; margin-bottom: .35em; }
.hero--wide h1 { max-width: 24ch; }
.hero .lead { margin-bottom: 0; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.spine-rule { display: flex; gap: 6px; align-items: center; margin: 0 0 22px; }
.spine-rule i { display: block; height: 10px; border-radius: 10px; background: var(--sky); }
.spine-rule i:nth-child(1) { width: 26px; background: var(--sky); }
.spine-rule i:nth-child(2) { width: 34px; }
.spine-rule i:nth-child(3) { width: 42px; }
.spine-rule i:nth-child(4) { width: 50px; }

.hero--dark { background: var(--ink); color: var(--on-dark); padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 96px); }
.hero--dark .lead { color: var(--on-dark-muted); }
.hero--dark .kicker { color: var(--mint); }

.hero--photo { color: var(--on-dark); background: var(--ink); min-height: clamp(460px, 68vh, 680px); display: flex; align-items: flex-end; }
.hero--photo .hero__media { position: absolute; inset: 0; }
.hero--photo .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 46, 86, .55) 0%, rgba(11, 46, 86, .35) 35%, rgba(11, 46, 86, .92) 100%);
}
.hero--photo .hero__inner { padding: 36px 0 clamp(40px, 6vw, 72px); width: 100%; }
.hero--photo .hero__crumbs { margin-bottom: auto; }
.hero--photo .lead { color: #DCEBF7; }
.hero--photo .hero__top { position: absolute; top: 28px; left: 0; right: 0; z-index: 1; }

/* home hero */
.hero--home { background: var(--ink); color: var(--on-dark); padding: clamp(40px, 6vw, 84px) 0 0; }
.hero--home::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(0, 163, 224, .22), transparent 60%),
    radial-gradient(700px 420px at 5% 90%, rgba(0, 163, 224, .12), transparent 60%);
  pointer-events: none;
}
.hero--home .hero__inner { display: grid; gap: 24px; }
.hero--home h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: 16ch; line-height: 1.06; margin: 0; }
.hero--home h1 .hl { color: var(--sky); }
.hero--home .lead { color: var(--on-dark-muted); max-width: 62ch; }
.hero__links { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.hero__links a { font-size: 1rem; }

/* filmstrip */
.filmstrip { position: relative; margin-top: clamp(36px, 5vw, 64px); padding-bottom: 28px; }
.filmstrip__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.filmstrip__track { display: flex; gap: 18px; width: max-content; animation: film 70s linear infinite; list-style: none; margin: 0; padding: 0; }
.filmstrip:hover .filmstrip__track, .filmstrip:focus-within .filmstrip__track, .filmstrip.is-paused .filmstrip__track { animation-play-state: paused; }
.filmstrip__item { margin: 0; flex: none; width: clamp(240px, 26vw, 380px); aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; position: relative; background: var(--ink-3); }
.filmstrip__item:nth-child(even) { transform: translateY(18px); }
.filmstrip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.filmstrip__item:hover img { transform: scale(1.04); }
.filmstrip__toggle {
  position: absolute; right: var(--gutter); bottom: 0; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .1); color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; min-height: 36px;
}
.filmstrip__toggle:hover { background: rgba(255, 255, 255, .2); }
.filmstrip__toggle .ico { width: 16px; height: 16px; }
@keyframes film { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .18); }
.fact { padding: 26px 22px 30px 0; border-right: 1px solid rgba(255, 255, 255, .18); margin-right: 22px; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.1; color: var(--sky); display: block; }
.fact__label { display: block; margin-top: 8px; font-weight: 400; color: var(--on-dark-muted); font-size: .92rem; line-height: 1.45; }
.facts--light { border-top-color: var(--line); }
.facts--light .fact { border-right-color: var(--line); }
.facts--light .fact__num { color: var(--blue); }
.facts--light .fact__label { color: var(--muted); }

/* ---------- editorial intro ---------- */
.intro-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.4; letter-spacing: -.005em; max-width: 38ch; margin: 0; }
.intro-big a { color: var(--blue); }
.split-note { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--green); }
.milestones li { margin: 0; padding: 0 0 22px 22px; position: relative; }
.milestones li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--card); border: 3px solid var(--blue); }
.milestones strong { display: block; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); }
.milestones span { font-weight: 400; }

/* ---------- bento / tiles ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.tile {
  grid-column: span 4; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--line); }
.tile--wide { grid-column: span 8; }
.tile--half { grid-column: span 6; }
.tile--dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.tile--dark p { color: var(--on-dark-muted); }
.tile--teal { background: var(--green-2); color: var(--on-dark); border-color: var(--green-2); }
.tile--teal p { color: #fff; }
.tile--sun { background: var(--sky-soft); color: var(--ink); border-color: #BFE3F5; }
.tile h3 { margin-bottom: .4em; }
.tile p { margin: 0; color: var(--muted); }
.tile .ico-badge { margin-bottom: 18px; }
.ico-badge {
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px 16px 16px 5px;
  background: var(--sky-soft); color: var(--blue);
}
.ico-badge .ico { width: 28px; height: 28px; }
.tile--dark .ico-badge { background: rgba(255, 255, 255, .12); color: var(--sky); }
.tile--teal .ico-badge { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 28px); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { box-shadow: var(--shadow-1); }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card__link { text-decoration: none; color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link:hover { color: var(--blue); }
.card__tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); margin-bottom: 10px; }
.card__meta { font-size: .9rem; font-weight: 500; color: var(--muted); margin-top: 14px; }

/* ---------- year rail (home) ---------- */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: yr; }
.rail__year {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.rail__year--now { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rail__no { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.rail__year--now .rail__no { color: var(--mint); }
.rail__period { font-size: .85rem; font-weight: 400; color: var(--muted); text-align: right; }
.rail__year--now .rail__period { color: var(--on-dark-muted); }
.rail__badge { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.rail__year--now .rail__badge { background: var(--green-2); color: #fff; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line-2); font-size: .84rem; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.rail__year--now .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: var(--on-dark); }
.rail__empty { font-weight: 400; color: var(--muted); margin: 0; }

/* ---------- mosaic (photos) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 14px; }
.mosaic__item { margin: 0; border-radius: 18px; overflow: hidden; position: relative; background: var(--paper-3); }
.mosaic__item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic__item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.mosaic__item:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.mosaic__item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.mosaic__item:nth-child(5) { grid-column: span 3; grid-row: span 1; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__cap {
  position: absolute; left: 10px; bottom: 10px; right: 10px; padding: 6px 12px; border-radius: 10px;
  background: rgba(11, 46, 86, .78); color: var(--on-dark); font-size: .8rem; font-weight: 700; width: fit-content; max-width: calc(100% - 20px);
}

/* gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin: 0 0 16px; }
.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--paper-3);
  position: relative; text-align: left;
}
.gallery__btn img { width: 100%; transition: transform .6s var(--ease), filter .3s; }
.gallery__btn:hover img { transform: scale(1.03); }
.gallery__zoom {
  position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(11, 46, 86, .75); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .25s;
}
.gallery__btn:hover .gallery__zoom, .gallery__btn:focus-visible .gallery__zoom { opacity: 1; }
.gallery__cap { font-size: .9rem; font-weight: 700; color: var(--muted); margin-top: 8px; }

/* photo band */
.band { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--ink); color: var(--on-dark); min-height: clamp(300px, 42vw, 480px); display: flex; align-items: flex-end; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 46, 86, 0) 25%, rgba(11, 46, 86, .88) 100%); }
.band__text { position: relative; z-index: 1; padding: clamp(22px, 3.5vw, 44px); max-width: 760px; }
.band__text h2, .band__text h3 { margin-bottom: .3em; }
.band__text p { margin: 0; color: #DCEBF7; font-weight: 400; }

/* ---------- instructor cards ---------- */
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.icard {
  position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.icard:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--line); }
.icard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icard__mono {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em;
  background: var(--ink); color: var(--sky);
}
.icard--de .icard__mono { background: var(--blue); color: #fff; }
.icard--az .icard__mono { background: var(--green-2); color: #fff; }
.icard__flag { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.icard__name { margin: 4px 0 0; font-size: 1.12rem; }
.icard__name a { color: var(--ink); text-decoration: none; }
.icard__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.icard__name a:hover { color: var(--blue); }
.icard__role { margin: 0; color: var(--muted); font-weight: 400; font-size: .92rem; line-height: 1.5; }
.icard__mods { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.icard__mods li { margin: 0; font-size: .88rem; font-weight: 400; color: var(--ink); display: flex; gap: 8px; }
.icard__mods li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .45em; border-radius: 5px 5px 5px 1px; background: var(--green); }
.icard--static:hover { transform: none; }

.person-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.person-hero__mono {
  width: clamp(96px, 12vw, 148px); aspect-ratio: 1; border-radius: 34px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.2rem); background: var(--ink); color: var(--sky);
  box-shadow: 12px 12px 0 var(--sky);
}
.person-hero--de .person-hero__mono { background: var(--blue); color: #fff; box-shadow: 12px 12px 0 var(--ink); }
.person-hero--az .person-hero__mono { background: var(--sky); color: var(--ink); box-shadow: 12px 12px 0 var(--blue); }
.person-hero h1 { margin-bottom: .2em; max-width: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; background: var(--card); border: 1px solid var(--line);
}
.badge--sun { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.badge--teal { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); }
.modlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.modlist li { margin: 0; }
.modlist a, .modlist div {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center;
  padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink);
}
.modlist a:hover { border-color: var(--ink); }
.modlist__date { grid-row: span 2; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--blue); min-width: 9.5em; }
.modlist__title { font-weight: 700; }
.modlist__meta { font-size: .88rem; color: var(--muted); font-weight: 600; }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.linklist li { margin: 0; }
.linklist a { display: inline-flex; align-items: center; gap: 8px; }
.linklist .ico { width: 18px; height: 18px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.t { min-width: 560px; font-size: .95rem; }
.t caption { text-align: left; padding: 16px 18px 0; font-weight: 700; }
.t th, .t td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.t thead th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); background: var(--paper-2); border-bottom: 2px solid var(--line); }
.t tbody tr:last-child th, .t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: #F7FAFD; }
.t tbody th { font-weight: 600; }
.t .num { font-family: var(--font-display); font-weight: 700; color: var(--blue); white-space: nowrap; width: 3.5em; }
.t .date { white-space: nowrap; font-weight: 600; }
.t a { font-weight: 600; }
.t--kv th { width: 32%; }
.t--compact { min-width: 0; }
.table-note { font-size: .92rem; color: var(--muted); font-weight: 600; margin: 12px 4px 0; }
/* two-column key/value tables stack on phones instead of scrolling sideways */
@media (max-width: 600px) {
  .t--kv { min-width: 0; }
  .t--kv thead { display: none; }
  .t--kv, .t--kv tbody, .t--kv tr, .t--kv th, .t--kv td { display: block; width: auto; }
  .t--kv tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .t--kv tbody tr:last-child { border-bottom: 0; }
  .t--kv tbody th, .t--kv tbody td { padding: 0; border: 0; }
  .t--kv tbody th { margin-bottom: 4px; color: var(--ink); }
}

/* ---------- tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.tabs__tab {
  border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; min-height: 46px; display: inline-flex; align-items: center; gap: 10px;
}
.tabs__tab:hover { border-color: var(--ink); }
.tabs__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.tabs__tab small { font-size: .78rem; font-weight: 700; opacity: .8; }
.tabs__panel { outline: none; }
.tabs__panel h3 { margin-bottom: .35em; }
.no-js .tabs__list { display: none; }
.no-js .tabs__panel[hidden] { display: block !important; }
.no-js .tabs__panel + .tabs__panel { margin-top: 36px; }

/* ---------- accordion (details) ---------- */
.acc { display: grid; gap: 12px; }
.acc__item { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.acc__item:hover { border-color: var(--line); }
.acc__item[open] { border-color: var(--line); box-shadow: var(--shadow-1); }
.acc__item > summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: flex-start; gap: 16px;
  font-weight: 600; font-size: 1.02rem; line-height: 1.4; border-radius: 16px;
}
.acc__item > summary::-webkit-details-marker { display: none; }
.acc__item > summary::after {
  content: ""; flex: none; width: 28px; height: 28px; margin-left: auto; border-radius: 50%;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2E56' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.acc__item[open] > summary::after { transform: rotate(45deg); background-color: var(--green-soft); }
.acc__item > summary:hover { color: var(--blue); }
.acc__body { padding: 0 20px 20px; color: var(--ink); }
.acc__body p:last-child, .acc__body ul:last-child { margin-bottom: 0; }
.acc__group + .acc__group { margin-top: clamp(32px, 4vw, 52px); }
.acc__group h2 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); }

/* ---------- callouts ---------- */
.callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); border-left: 6px solid var(--blue);
}
.callout .ico { width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }
.callout strong:first-child { display: block; margin-bottom: 4px; }
.callout--warn { border-left-color: var(--green-2); background: var(--green-soft); }
.callout--warn .ico { color: var(--green-2); }
.callout--science { border-left-color: var(--ink); background: #EEF4F9; }
.callout--science .ico { color: var(--ink); }
.callout--answer { border-left-color: var(--mint); background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.callout--answer .ico { color: var(--mint); }

/* ---------- lists ---------- */
.checklist, .numlist { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.checklist li, .numlist li { margin: 0; position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300843D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.section--dark .checklist li::before, .section--teal .checklist li::before { background-color: rgba(255, 255, 255, .14); }
.numlist { counter-reset: n; }
.numlist li { counter-increment: n; padding-left: 44px; min-height: 30px; }
.numlist li::before {
  content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; background: var(--ink); color: var(--sky); font-weight: 700; font-size: .9rem; font-family: var(--font-display);
}
.dashlist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.dashlist li { margin: 0; padding-left: 22px; position: relative; }
.dashlist li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 10px; height: 10px; border-radius: 7px 7px 7px 2px; background: var(--green); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11.5em; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--blue), var(--green)); border-radius: 3px; }
.timeline li { margin: 0; display: grid; grid-template-columns: 11.5em minmax(0, 1fr); gap: 0 34px; padding: 0 0 26px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: calc(11.5em - 7px); top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); }
.timeline__when { font-family: var(--font-display); font-weight: 700; color: var(--blue); text-align: right; padding-right: 22px; line-height: 1.3; }
.timeline__what { font-weight: 600; padding-left: 8px; }
.timeline__what strong { display: block; }
.section--card .timeline li::after { background: var(--card); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.steps li { margin: 0; counter-increment: st; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.steps li::before { content: counter(st, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--blue); line-height: 1; margin-bottom: 12px; }
.steps li p { margin: 0; font-weight: 400; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* day schedule */
.day { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.day__slot { border-radius: 16px; padding: 18px; background: var(--card); border: 1px solid var(--line-2); display: grid; gap: 6px; align-content: start; }
.day__slot time { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.day__slot--lesson { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.day__slot--lesson time { color: var(--mint); }
.day__slot--break { background: var(--sky-soft); border-color: #BFE3F5; }
.day__slot span { font-weight: 400; font-size: .95rem; }

/* ---------- partner cards ---------- */
.partners { display: grid; gap: 22px; }
.partner {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 48px);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-l); padding: clamp(22px, 3.2vw, 40px);
}
.partner__mark {
  border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px;
  background: var(--ink); color: var(--on-dark);
}
.partner__mark--teal { background: var(--blue); }
.partner__mark--sun { background: var(--sky); color: var(--ink); }
.partner__abbr { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; }
.partner__role { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.partner h2 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }

/* ---------- videos ---------- */
.video { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .3s, transform .6s var(--ease); }
.video__play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: linear-gradient(180deg, rgba(11, 46, 86, .1), rgba(11, 46, 86, .75));
  color: #fff; display: grid; place-items: center; text-align: center;
}
.video__play:hover + .video__poster, .video:hover .video__poster { transform: scale(1.03); opacity: .6; }
.video__btn {
  width: clamp(72px, 9vw, 96px); height: clamp(72px, 9vw, 96px); border-radius: 50%; background: var(--sky); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(0, 163, 224, .25); transition: transform .3s var(--ease), box-shadow .3s;
}
.video__play:hover .video__btn { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(0, 163, 224, .22); }
.video__btn .ico { width: 34px; height: 34px; margin-left: 4px; }
.video__label { position: absolute; left: 20px; bottom: 18px; right: 20px; text-align: left; font-weight: 700; font-size: 1rem; }
.video__label span { display: block; font-weight: 400; font-size: .88rem; color: #C9DBEC; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block { display: grid; gap: 22px; }
.video-block + .video-block { margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.video-block__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.vteasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vteaser { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--on-dark); aspect-ratio: 4 / 5; display: flex; align-items: flex-end; }
.vteaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: transform .6s var(--ease), opacity .3s; }
.vteaser:hover img { transform: scale(1.05); opacity: .5; }
.vteaser__body { position: relative; padding: 22px; min-width: 0; overflow-wrap: anywhere; }
.vteaser__day { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--mint); }
.vteaser h3 { margin: 8px 0 6px; font-size: 1.2rem; }
.vteaser h3 a { color: var(--on-dark); text-decoration: none; }
.vteaser h3 a::after { content: ""; position: absolute; inset: 0; }
.vteaser p { margin: 0; color: #C9DBEC; font-weight: 400; font-size: .9rem; }
.vteaser__icon { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--sky); color: var(--ink); display: grid; place-items: center; }
.vteaser__icon .ico { width: 22px; height: 22px; margin-left: 3px; }

/* ---------- events ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.events li { margin: 0; }
.event {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 20px;
}
.event__date {
  width: 86px; border-radius: 16px; background: var(--ink); color: var(--on-dark); text-align: center; padding: 10px 6px; line-height: 1.1;
}
.event__day { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--mint); font-variant-numeric: tabular-nums; }
.event__mon { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.event__title { font-weight: 600; font-size: 1.05rem; margin: 0 0 2px; }
.event__meta { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.event__tag { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.section--dark .event { background: var(--ink-2); border-color: rgba(255, 255, 255, .14); }
.section--dark .event__date { background: var(--sky); color: var(--ink); }
.section--dark .event__day { color: var(--ink); }
.section--dark .event__meta { color: var(--on-dark-muted); }
.archive { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.archive li { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; }
.archive time { font-weight: 700; color: var(--blue); font-family: var(--font-display); }

/* ---------- toc / article ---------- */
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc__title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.35; border-left: 3px solid transparent; }
.toc a:hover { background: var(--paper); }
.toc a.is-active { border-left-color: var(--sky); background: var(--paper); }
.toc-mobile { display: none; margin-bottom: 24px; }
.prose { font-size: 1.0625rem; max-width: 76ch; }
.prose > * + h2 { margin-top: 2.2em; }
.prose > * + h3 { margin-top: 1.6em; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.prose h3 { font-size: clamp(1.05rem, 1.3vw, 1.15rem); }
.prose p, .prose li { color: #1D3A5C; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--blue); }
.prose .table-wrap, .prose .callout { margin: 1.4em 0; }
.prose .callout p, .prose .callout li { color: inherit; }
.prose > .callout--answer p { color: var(--on-dark); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sources { font-size: .95rem; }
.sources ol { padding-left: 1.3em; }
.sources li { color: var(--muted); font-weight: 600; }
.sources a { word-break: break-word; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- article cards / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 700; min-height: 42px;
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.filter:hover { border-color: var(--ink); }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.acard { display: flex; flex-direction: column; }
.acard__num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--muted); }
.acard h3 { margin-top: 8px; }
.acard p { color: var(--muted); }
.acard .card__meta { margin-top: auto; padding-top: 14px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .96rem; }
.field .req { color: #9A3412; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); font-weight: 600; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 163, 224, .18); }
.field__hint { font-size: .88rem; color: var(--muted); font-weight: 600; }
.field__error { font-size: .9rem; color: #9A3412; font-weight: 600; }
.field [aria-invalid="true"] { border-color: #9A3412; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 600; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--blue); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-l); padding: clamp(22px, 3.2vw, 40px); box-shadow: var(--shadow-1); }
.form-card h2 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }

/* contact tiles */
.ctiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ctile {
  display: grid; gap: 12px; justify-items: start; padding: 22px; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--line-2); color: var(--ink); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.ctile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--ink); color: var(--ink); }
.ctile strong { font-size: 1.1rem; }
.ctile span { color: var(--muted); font-weight: 600; font-size: .92rem; }
.ctile .ico-badge { width: 56px; height: 56px; }
button.ctile { font: inherit; text-align: left; width: 100%; cursor: pointer; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; max-width: 100vw; max-height: 100vh; }
dialog::backdrop { background: rgba(11, 46, 86, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg {
  width: min(680px, calc(100vw - 24px)); background: var(--card); border-radius: 24px; box-shadow: var(--shadow-2);
  margin: 8vh auto auto; display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: 84vh; overflow: hidden;
}
.dlg[open] { animation: dlg-in .28s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.dlg__title { margin: 0; font-size: 1.3rem; font-family: var(--font-display); font-weight: 700; }
.dlg__close { margin-left: auto; }
.dlg__body { padding: 18px; overflow: auto; min-height: 0; }
.search-field { position: relative; }
.search-field .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%; min-height: 58px; padding: 14px 16px 14px 52px; border-radius: 16px; border: 2px solid var(--ink);
  font-size: 1.1rem; font-weight: 700; background: var(--paper);
}
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sresults { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.sresults li { margin: 0; }
.sresults a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.sresults a:hover, .sresults a.is-active { background: var(--paper-2); border-color: var(--line); }
.sresults strong { font-size: 1rem; }
.sresults span { font-size: .88rem; color: var(--muted); font-weight: 600; line-height: 1.45; }
.sresults mark { background: var(--sky-soft); color: inherit; border-radius: 4px; padding: 0 2px; }
.sresults__url { font-size: .78rem !important; color: var(--blue) !important; font-weight: 700 !important; }
.search-empty, .search-hint { color: var(--muted); font-weight: 400; margin: 16px 4px 0; }
.search-hint kbd, .kbd { font-family: var(--font-body); font-weight: 700; font-size: .8rem; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; background: var(--card); color: var(--ink); }

/* vizitkart */
.vcard-dlg .dlg__body { display: grid; gap: 18px; }
.vcard { border-radius: 20px; background: var(--ink); color: var(--on-dark); padding: 24px; position: relative; overflow: hidden; }
.vcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 40px; background: var(--blue); opacity: .35; transform: rotate(18deg); }
.vcard::before { content: ""; position: absolute; right: 30px; top: -70px; width: 120px; height: 120px; border-radius: 30px; background: var(--green); opacity: .25; transform: rotate(32deg); }
.vcard__name { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; margin: 0; position: relative; }
.vcard__sub { color: var(--on-dark-muted); font-weight: 400; margin: 4px 0 16px; position: relative; }
.vcard__addr { display: flex; gap: 10px; font-weight: 400; position: relative; margin: 0; }
.vcard__addr .ico { color: var(--sky); }
.vcard__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vcard__actions .icon-btn { width: 100%; justify-content: flex-start; padding: 0 16px; height: 54px; }

/* drawer */
.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(420px, 100vw); }
.drawer[open] { animation: drawer-in .3s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__panel { height: 100%; background: var(--paper); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__body { overflow: auto; padding: 12px 16px 20px; min-height: 0; }
.drawer__foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.dnav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dnav li { margin: 0; }
.dnav > li > a, .dnav summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 14px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); font-weight: 400; font-size: 1.05rem; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none;
}
.dnav summary::-webkit-details-marker { display: none; }
.dnav summary > .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.dnav details[open] summary > .ico { transform: rotate(180deg); }
.dnav__lbl { display: inline-flex; align-items: center; gap: 10px; }
.dnav__lbl .ico { width: 20px; height: 20px; color: var(--blue); }
.dnav details ul { list-style: none; margin: 6px 0 4px; padding: 0 0 0 12px; display: grid; gap: 2px; }
.dnav details li { margin: 0; }
.dnav details a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 400; text-decoration: none; }
.dnav a[aria-current="page"] { background: var(--sky-soft); }
.drawer__search { margin-bottom: 14px; }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; background: rgba(4, 20, 40, .96); }
.lightbox::backdrop { background: transparent; }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.lightbox__count { font-weight: 700; }
.lightbox__stage { display: grid; place-items: center; padding: 0 64px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lightbox__cap { text-align: center; padding: 14px 16px 22px; font-weight: 400; color: #C9DBEC; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; font-weight: 400; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer__brand .brand { color: var(--on-dark); }
.footer__brand .brand__sub { color: var(--mint); }
.footer__brand p { color: var(--on-dark-muted); margin: 18px 0 20px; max-width: 42ch; }
.footer__icons { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__icons a, .footer__icons button {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); color: var(--on-dark); background: transparent;
}
.footer__icons a, .footer__icons button { transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.footer__icons a:hover, .footer__icons button:hover { background: var(--green-2); color: #fff; border-color: var(--green-2); text-decoration: none; transform: translateY(-2px); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer__col h2 { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--mint); margin-bottom: 14px; }
.footer__col h2 .ico { width: 16px; height: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col li { margin: 0; }
.footer__col a { font-size: .95rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-top: 24px; font-size: .9rem; color: var(--on-dark-muted); font-weight: 400; }
.footer__disclaimer { max-width: 70ch; margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.otx a { color: var(--mint); }

/* ---------- floating buttons, toast ---------- */
.fab-a11y {
  position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--sky); background: var(--ink); color: var(--sky);
  display: grid; place-items: center; box-shadow: var(--shadow-2); transition: transform .25s var(--ease);
}
.fab-a11y:hover { transform: scale(1.06); }
.fab-a11y .ico { width: 30px; height: 30px; }
html.fab-right .fab-a11y { left: auto; right: 18px; }
html.fab-hidden .fab-a11y { display: none; }
.no-js .fab-a11y, .no-js [data-open="a11y"] { display: none; }
.to-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 79; width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--card); color: var(--ink); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
html.fab-right .to-top { right: 88px; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 120; opacity: 0; visibility: hidden;
  background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-2);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
/* translate (not transform) so the components' own hover transforms keep working after the reveal */
.js [data-reveal] { opacity: 0; translate: 0 12px; transition: opacity .55s var(--ease), translate .55s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; translate: none; }
.js [data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal-delay="3"] { transition-delay: .24s; }

/* ---------- misc ---------- */
.pill-note { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: .9rem; }
.big-quote {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.28; margin: 0; max-width: 30ch;
}
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.value { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); }
.value:nth-child(3n+2), .value:nth-child(3n+3) { padding-left: 26px; border-left: 1px solid var(--line); }
.value h3 { font-size: 1.2rem; }
.value p { margin: 0; color: var(--muted); }
.outline-num { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.kv__item { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; }
.kv__k { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.kv__v { font-weight: 700; font-size: 1.02rem; line-height: 1.4; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.notfound { font-family: var(--font-display); font-weight: 700; font-size: min(clamp(6rem, 22vw, 16rem), 26vw); line-height: .9; color: var(--sky); -webkit-text-stroke: 3px var(--ink); margin: 0; }
.sitemap-list { columns: 3 240px; column-gap: 32px; }
.sitemap-list section { break-inside: avoid; margin-bottom: 26px; }
.sitemap-list h2 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; }
.sitemap-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sitemap-list li { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 166, 81, .22); }
.status--open::before { background: var(--green); box-shadow: 0 0 0 4px rgba(0, 166, 81, .25); animation: pulse 2.4s ease-in-out infinite; }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 36px); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ticket:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.ticket__side { border-left: 2px dashed var(--line); padding-left: 22px; display: grid; align-content: center; gap: 8px; min-width: 180px; }
.ticket__k { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.ticket__v { font-weight: 700; }
.ticket h3 a { color: var(--ink); text-decoration: none; }
.ticket h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ticket h3 a:hover { color: var(--blue); }
.ticket--dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.ticket--dark h3 a { color: var(--on-dark); }
.ticket--dark h3 a:hover { color: var(--sky); }
.ticket--dark .ticket__k { color: var(--on-dark-muted); }
.ticket--dark .ticket__side { border-left-color: rgba(255, 255, 255, .3); }
.ticket--dark p { color: var(--on-dark-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-right: 0; margin-right: 0; }
  .fact:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .18); }
  .facts--light .fact:nth-child(n+4) { border-top-color: var(--line); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .tile, .tile--wide, .tile--half { grid-column: span 6; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner { grid-template-columns: minmax(0, 1fr); }
  .partner__mark { min-height: 0; flex-direction: row; align-items: center; gap: 18px; }
  .split-note { grid-template-columns: minmax(0, 1fr); }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vteasers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(3n+2), .value:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .value:nth-child(2n) { padding-left: 26px; border-left: 1px solid var(--line); }
  .day { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .mosaic__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .vteasers { grid-template-columns: minmax(0, 1fr); }
  .vteaser { aspect-ratio: 16 / 9; }
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); padding-left: 36px; }
  .timeline li::after { left: 1px; }
  .timeline__when { text-align: left; padding: 0; }
  .timeline__what { padding-left: 0; }
  .archive li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket__side { border-left: 0; border-top: 2px dashed var(--line); padding: 16px 0 0; }
  .ticket--dark .ticket__side { border-top-color: rgba(255, 255, 255, .3); }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.no-cta { padding-bottom: 0; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.12rem; }
  .brand__sub { font-size: .64rem; }
  .hdr { gap: 10px; }
  .hdr__cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 75; margin: 0;
    min-height: 56px; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(11, 46, 86, .28);
  }
  .fab-a11y { bottom: calc(80px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.no-cta .fab-a11y, body.no-cta .to-top { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 20px 14px 22px 0; margin-right: 14px; }
  .fact:nth-child(n) { border-right: 1px solid rgba(255, 255, 255, .18); margin-right: 14px; border-top: 0; }
  .fact:nth-child(2n) { border-right: 0; margin-right: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); }
  .facts--light .fact:nth-child(n) { border-right-color: var(--line); }
  .facts--light .fact:nth-child(n+3) { border-top-color: var(--line); }
  .facts--light .fact:nth-child(2n) { border-right: 0; }
  .grid--2, .grid--3, .grid--4, .two-col, .form__row { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile--wide, .tile--half { grid-column: span 12; }
  .steps, .steps--3 { grid-template-columns: minmax(0, 1fr); }
  .event { grid-template-columns: auto minmax(0, 1fr); }
  .event__tag { grid-column: 2; justify-self: start; }
  .ctiles { grid-template-columns: minmax(0, 1fr); }
  .related { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .value:nth-child(n) { padding-left: 0; border-left: 0; }
  .person-hero { grid-template-columns: minmax(0, 1fr); }
  .lightbox__stage { padding: 0 8px; }
  .lightbox__nav { top: auto; bottom: 64px; transform: none; }
  .filmstrip__item:nth-child(even) { transform: none; }
  .vcard__actions { grid-template-columns: minmax(0, 1fr); }
  .dlg { margin-top: 12px; max-height: calc(100vh - 24px); }
  .day { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .partner__mark { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .brand__text { display: none; }
  .t { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .filmstrip__track { animation: none; }
  .filmstrip__viewport { overflow-x: auto; }
  .js [data-reveal] { opacity: 1; transform: none; translate: none; }
}

/* ================= page components (content pages) ================= */
.hero__claim {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.3; letter-spacing: 0; max-width: 32ch; margin: 0; color: var(--on-dark);
}
ul.facts { list-style: none; margin: 0; padding: 0; }
ul.facts li { margin-top: 0; }
.hero--home .facts { margin-top: clamp(18px, 3vw, 36px); }
.hero__note { margin: 18px 0 0; max-width: 70ch; font-size: .95rem; font-weight: 600; color: var(--muted); }
.lead-sm { font-size: 1.125rem; font-weight: 600; color: var(--muted); margin: 0; }
.section__note { margin: 22px 0 0; font-weight: 400; color: var(--muted); max-width: 80ch; }
.section--dark .section__note, .section--teal .section__note { color: var(--on-dark-muted); }
.stack--lg > * + * { margin-top: clamp(16px, 2vw, 24px); }
.grid > .tile { grid-column: auto; }
.tile.tile--dark p { color: var(--on-dark-muted); }
.tile.tile--teal p { color: #fff; }
.tile.tile--sun p { color: var(--ink); }
.intro-big + * { margin-top: 18px; }

/* bento photo tile */
.tile--photo { padding: 0; margin: 0; min-height: 240px; background: var(--paper-3); }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; transition: transform .7s var(--ease); }
.tile--photo:hover img { transform: scale(1.04); }
.tile--photo .mosaic__cap { z-index: 1; }

/* enlarged text (accessibility sizes up to 150%): long Azerbaijani words must never widen the page */
h1, h2, h3, h4, .kicker, .hero__claim, .intro-big, .big-quote, .acc__q, .ctile span, .ctile strong,
.linklist a, .badge, .chip, .toc a, .toc-mobile__list a, .card__tag, .icard__name, .modlist__title, .fact__num, .fact__label,
.partner__abbr, .tabs__tab, .event__title, .rail__title, .value h3, .tile h3, .doc h3 { overflow-wrap: anywhere; }
.kicker { max-width: 100%; }
.section__head, .hero--home .hero__inner { grid-template-columns: minmax(0, 1fr); }
.dashlist > li, .checklist > li, .numlist > li, .steps > li, .milestones > li, .events > li, .archive > li,
.modlist > li, .linklist > li, .sources > li, .acc > *, .grid > *, .bento > *, .kv > *, .igrid > *, .agrid > *,
.values > *, .rail > *, .ctiles > *, .partners > *, .stack > *, .form > *, .field > * { min-width: 0; }
.linklist a { max-width: 100%; }
.acc__item > summary > * { min-width: 0; }
/* Long single words (German compounds, Russian) at enlarged text on narrow screens: let them break inside
   their own box instead of widening breadcrumbs, footer and sitemap lists, cards and badges */
.crumbs li, .crumbs li > *, .footer__col li, .sitemap-list li, .card > *, .icard__top > *,
.video-block__head > *, .video-block__meta > *, .band > * { min-width: 0; }
.crumbs li, .footer__col li, .sitemap-list li, .card, .icard, .badge, .video-block__head, .band__text { overflow-wrap: anywhere; }
.icard__top { flex-wrap: wrap; }
.badge { max-width: 100%; }
@media (max-width: 720px) {
  .hdr__cta { white-space: normal; text-align: center; }
}
html.cta-dock .hdr__cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 75; margin: 0;
  min-height: 56px; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(11, 46, 86, .28); white-space: normal; text-align: center;
}
html.cta-dock body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
html.cta-dock body.no-cta { padding-bottom: 0; }
html.cta-dock .fab-a11y, html.cta-dock .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* long article and profile titles */
.p-article .hero h1 { font-size: clamp(1.75rem, 3.1vw, 2.7rem); max-width: 24ch; }

/* spacing and compact variants */
.steps + .callout { margin-top: 22px; }
.facts--light .fact__num { font-size: clamp(1.4rem, 1.9vw, 1.8rem); }
.steps .reach { margin-top: 12px; }
.steps .reach .icon-btn { min-width: 44px; width: 44px; height: 44px; padding: 0; }
.steps .reach .icon-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* closed dialogs never render, whatever display their component class sets */
dialog:not([open]) { display: none !important; }

/* photo hero: darker left side behind the text */
.hero--photo .hero__media::after {
  background:
    linear-gradient(90deg, rgba(11, 46, 86, .62) 0%, rgba(11, 46, 86, .2) 70%, rgba(11, 46, 86, 0) 100%),
    linear-gradient(180deg, rgba(11, 46, 86, .5) 0%, rgba(11, 46, 86, .4) 38%, rgba(11, 46, 86, .93) 100%);
}

/* photo hero keeps the container width */
.hero--photo > .container.hero__inner { width: min(100% - 2 * var(--gutter), var(--container)); }
.big-quote + .two-col { margin-top: clamp(22px, 3vw, 36px); }
.section--dark .big-quote, .section--dark .two-col p { color: var(--on-dark); }

/* mosaic: five tiles fill a 6 x 3 grid without holes */
.mosaic__item:nth-child(4) { grid-column: span 1; grid-row: span 2; }
.mosaic__item:nth-child(4) .mosaic__cap { font-size: .72rem; left: 8px; right: 8px; bottom: 8px; max-width: calc(100% - 16px); }

/* video teaser legibility */
.vteaser::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 46, 86, 0) 30%, rgba(11, 46, 86, .9) 100%); pointer-events: none; }
.vteaser__body, .vteaser__icon { z-index: 1; }
.vteaser h3 a::after { z-index: 2; }

/* instructor grids with three columns */
.igrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* band variants */
.band::after { background: linear-gradient(90deg, rgba(11, 46, 86, .9) 0%, rgba(11, 46, 86, .62) 48%, rgba(11, 46, 86, .12) 100%), linear-gradient(180deg, rgba(11, 46, 86, 0) 45%, rgba(11, 46, 86, .7) 100%); }
.band__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.25; margin: 0; color: var(--on-dark); }
.band__text .band__link { margin-top: 14px; }
.band .link-arrow { color: var(--sky); }
.band .link-arrow:hover { color: var(--on-dark); }

/* final call block */
.final { display: grid; gap: 16px; justify-items: start; max-width: 860px; }
.final h2 { margin: 0; }
.final p { margin: 0; font-size: 1.02rem; }
.section--teal .final .link-arrow { color: #fff; }

/* contact icon row (no phone numbers on screen, icons only) */
.reach { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.reach .icon-btn { height: 48px; }
.section--dark .reach .icon-btn, .section--teal .reach .icon-btn { border-color: transparent; }
.reach .icon-btn, .section--dark .reach .icon-btn, .section--teal .reach .icon-btn, .hero .reach .icon-btn { color: var(--ink); }
.reach .icon-btn .ico { color: var(--blue); }
.reach .icon-btn:hover .ico { color: var(--ink); }

/* chips as links */
a.chip { text-decoration: none; transition: border-color .2s, background-color .2s; }
a.chip:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.chips--lg .chip { font-size: 1rem; padding: 10px 16px; font-weight: 700; background: var(--card); }
.chips--lg a.chip { border-color: var(--line); }
.chips--lg a.chip::after { content: "→"; margin-left: 4px; color: var(--blue); }

/* definition lists styled as tickets / kv grids */
.ticket__side dt, .ticket__side dd, .kv dt, .kv dd { margin: 0; }
.ticket__side dd + dt { margin-top: 8px; }
dl.kv { margin: 0; }

/* navigation cards */
.card--nav { display: grid; gap: 10px; justify-items: start; text-decoration: none; color: var(--ink); }
.card--nav strong { font-size: 1.12rem; }
.card--nav:hover { color: var(--ink); border-color: var(--ink); }
.linklist--cards { gap: 10px; }
.linklist--cards a {
  display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 700;
}
.linklist--cards a:hover { border-color: var(--ink); }
.linklist--cards .ico { width: 22px; height: 22px; color: var(--blue); }

/* numbered list on dark */
.numlist--dark li::before { background: var(--sky); color: var(--ink); }
.section--dark .dashlist li::before { background: var(--mint); }

/* callout helpers */
.callout__title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin: 0 0 10px; letter-spacing: 0; }
.callout .dashlist { margin: 0; }
.callout .reach { margin-top: 10px; }
.callout--module { border-left-color: var(--blue); background: var(--sky-soft); border-color: #BFE3F5; }
.callout--module .ico { color: var(--ink); }
.two-col > .callout { align-self: start; }
.admission-notes { margin-top: clamp(20px, 3vw, 32px); align-items: start; }

/* day schedule as list */
ol.day { list-style: none; margin: 0; padding: 0; }
ol.day li { margin: 0; }

/* documents (diploma page) */
.doc {
  position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-l);
  padding: clamp(22px, 2.6vw, 32px); overflow: hidden;
}
.doc__n { position: absolute; right: 22px; top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--paper-3); }
.doc h3 { margin-bottom: .5em; }
.doc p { margin: 0; color: var(--muted); }
.steps li h3 { margin: 0; font-size: 1.2rem; }
.steps li h3 + p { margin-top: 8px; }

/* events page */
.events-intro .card .checklist { margin: 14px 0; }
.card__label { margin: 10px 0 6px; font-weight: 600; font-size: .95rem; }
.archive-groups { display: grid; gap: clamp(26px, 3vw, 40px); }
.archive-group h3 { font-size: 1.2rem; margin-bottom: 12px; }
.archive span { min-width: 0; }

/* FAQ */
.faq-tools { display: grid; gap: 10px; margin-bottom: clamp(26px, 3vw, 40px); }
.faq-tools__label { font-weight: 700; }
.faq-jump { margin-top: 6px; }
.faq-more { margin-top: clamp(32px, 4vw, 52px); }
.acc__q { font: inherit; margin: 0; letter-spacing: 0; line-height: inherit; color: inherit; }

/* table of contents column */
.with-toc > .toc-col { align-self: stretch; min-width: 0; }
.toc-mobile > summary { font-size: 1rem; }
.toc-mobile__list { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.toc-mobile__list a { font-weight: 700; }

/* myths and facts */
.myths { display: grid; gap: 12px; margin: 1.2em 0; }
.myth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); }
.myth p { margin: 0; padding: 16px 18px; }
.prose .myth__m { background: var(--paper-2); color: var(--muted); font-weight: 700; }
.prose .myth__f { color: var(--ink); }
.myth__tag { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; color: var(--blue); }
.myth__m .myth__tag { color: #9A3412; }

/* compact timeline inside prose */
.timeline--compact::before { left: 8.5em; }
.timeline--compact li { grid-template-columns: 8.5em minmax(0, 1fr); gap: 0 26px; padding-bottom: 20px; }
.timeline--compact li::after { left: calc(8.5em - 7px); }
.timeline--compact .timeline__when { font-size: .98rem; }

/* curriculum */
.mod-meta { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .98rem; }
.mod-links { margin: 10px 0 0; font-weight: 700; font-size: .95rem; }
.acc__body .callout { margin: 14px 0 0; }
.year-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 8px; }
.year-head h3 { margin: 0; }
.year-head .badge-row { margin: 0; }
.year-intro { max-width: 80ch; color: var(--muted); font-weight: 600; }
.badge .ico { width: 16px; height: 16px; }
.rail__title { margin: 0; font-size: 1.15rem; }
.rail__title a { color: inherit; text-decoration: none; }
.rail__title a:hover { text-decoration: underline; }
.rail__year--now .rail__title a { color: var(--on-dark); }
.rail__period { margin: 0; font-size: .85rem; font-weight: 400; color: var(--muted); text-align: left; }
.rail__year--now .rail__period { color: var(--on-dark-muted); }

/* mosaic with lightbox buttons */
.mosaic__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.mosaic__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic__item:hover .mosaic__btn img { transform: scale(1.05); }
.mosaic__cap { pointer-events: none; }

/* instructor pages */
.person-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.person-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.card__title { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 14px; }
.person-card .modlist a, .person-card .modlist div { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
.person-card .modlist__date { grid-row: auto; min-width: 0; font-size: .95rem; }
.person-card .linklist a { align-items: flex-start; }
.person-card .linklist .ico { margin-top: 3px; }

/* video blocks */
.video-block__head { display: grid; gap: 10px; }
.video-block__head h2 { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.video-block__topic { margin: 0; font-weight: 600; color: var(--muted); }
.video-note { display: flex; gap: 8px; align-items: center; margin: 0; font-size: .9rem; font-weight: 700; color: var(--muted); }
.video-note .ico { width: 18px; height: 18px; color: var(--blue); }
.video-block h3 { margin: 6px 0 0; }
.video-block .dashlist { margin: 0; }

/* articles */
.acard__title { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.2; margin: 8px 0 .45em; }
.article-meta .badge { font-weight: 700; }
.article-disclaimer { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--muted); }
.prose .article-disclaimer { color: var(--muted); }
.sources--people { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.sources-page h2 { margin-top: 1.6em; }

/* contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
.contact-info .card h3 { margin-bottom: .5em; }
.form__submit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__submit .btn { white-space: normal; text-align: center; }
.form-card > .muted { margin-bottom: 18px; }
.form-card .callout { margin-bottom: 18px; }

/* search page */
.search-page { display: flex; gap: 10px; align-items: stretch; margin-top: 18px; }
.search-page .search-field { flex: 1; min-width: 0; }
.search-page__btn { min-height: 58px; }
.search-suggest { margin-top: clamp(28px, 4vw, 48px); }
.search-suggest__title { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.notfound-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
.notfound-wrap h1, .notfound-wrap .lead { margin: 0; }
.notfound-wrap .search-page { width: min(100%, 640px); }
.notfound-links { margin-top: 8px; }

@media (max-width: 1024px) {
  .igrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .person-aside { position: static; }
}
@media (max-width: 860px) {
  .mosaic__item:nth-child(4) { grid-row: span 1; }
  .timeline--compact::before { left: 8px; }
  .timeline--compact li { grid-template-columns: minmax(0, 1fr); padding-left: 36px; }
  .timeline--compact li::after { left: 1px; }
}
@media (max-width: 720px) {
  .igrid--3 { grid-template-columns: minmax(0, 1fr); }
  .myth { grid-template-columns: minmax(0, 1fr); }
  .search-page { flex-direction: column; }
  .search-page__btn { min-height: 50px; }
  .tile--photo { min-height: 260px; }
  .year-head { flex-direction: column; align-items: flex-start; }
}

/* ================= icons in content ================= */
/* key facts */
.fact__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px 14px 14px 4px; margin-bottom: 16px; background: rgba(0, 163, 224, .14); color: var(--sky); }
.fact__ico .ico { width: 22px; height: 22px; }
.facts--light .fact__ico { background: var(--blue-soft); color: var(--blue); }
/* lesson-day slots */
.day__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; background: var(--paper-2); color: var(--blue); }
.day__ico .ico { width: 21px; height: 21px; }
.day__slot--lesson .day__ico { background: rgba(95, 211, 154, .16); color: var(--mint); }
.day__slot--break .day__ico { background: rgba(255, 255, 255, .72); color: var(--ink); }
/* steps keep their number on the left; the icon sits top right */
.step__ico { position: absolute; top: 18px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px 13px 13px 4px; background: var(--green-soft); color: var(--green-2); }
.step__ico .ico { width: 22px; height: 22px; }
/* badges in cards, documents and values */
.card:not(.card--nav) > .ico-badge, .doc > .ico-badge, .value > .ico-badge { margin-bottom: 16px; }
.doc > .ico-badge { background: var(--green-soft); color: var(--green-2); }
.tile--sun .ico-badge { background: var(--card); color: var(--blue); }


/* ================= motion (CSS only: opacity and transform; off with reduced motion or "pause animations") ================= */
/* page-to-page cross-fade; browsers without view transitions simply load the next page */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; animation-timing-function: var(--ease); }
html.a11y-pause::view-transition-group(*), html.a11y-pause::view-transition-old(*), html.a11y-pause::view-transition-new(*) { animation: none !important; }
/* dropdown panels and tab panels ease in */
.nav__panel { transition: opacity .22s var(--ease), translate .22s var(--ease); }
@starting-style { .nav__panel { opacity: 0; translate: 0 -6px; } }
.js .tabs__panel:not([hidden]) { animation: panel-in .38s var(--ease); }
@keyframes panel-in { from { opacity: 0; translate: 0 10px; } }
/* accordions open and close smoothly where the browser can animate to height:auto */
@supports (interpolate-size: allow-keywords) {
  .acc__item, .dnav details { interpolate-size: allow-keywords; }
  .acc__item::details-content, .dnav details::details-content {
    height: 0; overflow: clip; transition: height .32s var(--ease), content-visibility .32s allow-discrete;
  }
  .acc__item[open]::details-content, .dnav details[open]::details-content { height: auto; }
  html.a11y-pause .acc__item::details-content, html.a11y-pause .dnav details::details-content { transition: none !important; }
  @media (prefers-reduced-motion: reduce) {
    .acc__item::details-content, .dnav details::details-content { transition: none; }
  }
}
/* press feedback and icon nudges */
.btn:active, .icon-btn:active { transform: translateY(1px) scale(.98); }
.ico-badge, .step__ico, .fact__ico { transition: transform .35s var(--ease); }
.tile:hover .ico-badge, .card:hover > .ico-badge, .doc:hover > .ico-badge, .value:hover > .ico-badge, .steps li:hover .step__ico { transform: translateY(-2px) rotate(-6deg); }

/* ================= header submenu icons ================= */
.nav__sub a { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.nav__sub .nav__ico {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--paper-2); color: var(--blue); transition: background-color .2s, color .2s;
}
.nav__sub .nav__ico .ico { width: 20px; height: 20px; }
.nav__sub a:hover .nav__ico { background: var(--sky-soft); color: var(--ink); }
.nav__sub a[aria-current="page"] .nav__ico { background: var(--card); }
/* the wide two-column panels only where the centred panel still fits beside the first menu item */
@media (max-width: 1280px) { .nav__panel:not(.nav__panel--sm) { width: min(560px, 92vw); } }
.dnav details a .ico { width: 20px; height: 20px; flex: none; color: var(--blue); }
/* badges on dark heroes keep dark text */
.hero--dark .badge, .hero--photo .badge { color: var(--ink); }

/* ================= homepage hero (kept from the calmer revision) ================= */
.p-home .hero--home { padding-top: clamp(36px, 5vw, 64px); }
.p-home .hero--home::before { background: radial-gradient(640px 420px at 100% 0%, rgba(0, 163, 224, .22), transparent 60%), radial-gradient(640px 420px at 0% 100%, rgba(0, 166, 81, .2), transparent 60%), linear-gradient(180deg, var(--ink-2), var(--ink) 70%); }
.p-home .hero--home .hero__inner { gap: 18px; }
.p-home .hero--home h1 .hl { color: inherit; }
.p-home .hero__links { gap: 12px 26px; }
.p-home .hero--home .facts { margin-top: clamp(20px, 3vw, 32px); }
.p-home .hero--home .fact { padding: 20px 18px 24px 0; margin-right: 18px; }
.p-home .hero--home .fact__ico { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 12px; background: rgba(255, 255, 255, .08); color: var(--sky); }
.p-home .hero--home .fact__ico .ico { width: 18px; height: 18px; }
.p-home .hero--home .fact__num { font-size: clamp(1.4rem, 1.9vw, 1.8rem); color: var(--on-dark); }
.p-home .hero--home .fact__label { font-size: .9rem; margin-top: 6px; }
.p-home .filmstrip { margin-top: clamp(28px, 4vw, 48px); padding-bottom: 24px; }
.p-home .filmstrip__item:nth-child(even) { transform: none; }
.p-home .filmstrip__item { border-radius: 16px; }

/* ================= brand details and micro-interactions ================= */
/* blue-to-green line under the header and above the footer, the logo's two halves */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--sky) 45%, var(--green)); }
.site-footer { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--blue), var(--sky) 45%, var(--green)) 1; }
/* second, green glow on the light heroes */
.hero--type::before { content: ""; position: absolute; left: -12%; top: -30%; width: min(42vw, 480px); aspect-ratio: 1; background: radial-gradient(closest-side, rgba(0, 166, 81, .12), transparent 70%); pointer-events: none; }
/* photo strip: every photo opens the lightbox */
.filmstrip__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; color: inherit; font: inherit; }
.filmstrip__btn:focus-visible { outline-offset: -4px; }
.filmstrip__zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(11, 46, 86, .72); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease); }
.filmstrip__zoom .ico { width: 20px; height: 20px; }
.filmstrip__item:hover .filmstrip__zoom, .filmstrip__btn:focus-visible .filmstrip__zoom { opacity: 1; transform: none; }
.mosaic__btn { position: relative; }
/* petal-shaped icon holders elsewhere */
.day__ico, .nav__sub .nav__ico { border-radius: 12px 12px 12px 4px; }
/* reading polish */
h1, h2, h3, .lead, .hero__claim, .band__title { text-wrap: balance; }
p, li { text-wrap: pretty; }
.t, .modlist__date, .day__slot time, .event__date, .archive time, .rail__period { font-variant-numeric: tabular-nums; }
/* motion on the small things */
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.tabs__tab { transition: background-color .2s, border-color .2s, color .2s; }
.field input, .field select, .field textarea { transition: border-color .2s, box-shadow .2s; }
.icard__mono { transition: transform .35s var(--ease); }
.icard:hover .icard__mono { transform: rotate(-5deg) scale(1.04); }
.chip { transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.to-top:hover { transform: translateY(-3px); }
.dnav > li > a, .dnav summary, .dnav details a { transition: background-color .2s, border-color .2s, color .2s; }
.dnav > li > a:hover, .dnav summary:hover { border-color: var(--line); background: var(--paper-2); }
.dnav details a:hover { background: var(--paper-2); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(0, 166, 81, .25); } 50% { box-shadow: 0 0 0 7px rgba(0, 166, 81, .1); } }
@media (prefers-reduced-motion: reduce) { .status--open::before { animation: none; } }

/* ================= language selector (flags only) ================= */
.lang { position: relative; }
.lang__btn { padding: 0 9px 0 9px; gap: 3px; }
.lang__btn .lang__chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.flag { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(11, 46, 86, .14); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; list-style: none; margin: 0; padding: 6px; display: grid; gap: 4px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-2);
  transition: opacity .2s var(--ease), translate .2s var(--ease);
}
@starting-style { .lang__menu { opacity: 0; translate: 0 -6px; } }
.lang__menu li { margin: 0; }
.lang__menu a, .lang-row a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 2px solid transparent; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.lang__menu a:hover, .lang-row a:hover { background: var(--paper-2); transform: translateY(-1px); }
.lang__menu a[aria-current], .lang-row a[aria-current] { border-color: var(--green); }
.lang__menu a .flag, .lang-row a .flag { width: 24px; height: 24px; }
.lang-row { flex-basis: 100%; display: flex; gap: 6px; margin-bottom: 4px; }
.lang-row a { background: var(--card); border-color: var(--line-2); }
.lang-row a[aria-current] { border-color: var(--green); }
@media (max-width: 420px) { .lang__btn .lang__chev { display: none; } .lang__btn { padding: 0 11px; } }

/* ================= accessibility panel ================= */
.a11y-dlg { margin: 0 auto 0 0; height: 100%; max-height: 100%; width: min(440px, 100vw); }
html.fab-right .a11y-dlg { margin: 0 0 0 auto; }
.a11y-dlg[open] { animation: a11y-in .3s var(--ease); }
@keyframes a11y-in { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.a11y { height: 100%; background: var(--paper); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.a11y__head { background: var(--ink); color: var(--on-dark); display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.a11y__head h2 { margin: 0; font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; }
.a11y__head .kbd { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .4); }
.a11y__head .icon-btn { margin-left: auto; background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .35); }
.a11y__head .icon-btn:hover { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.a11y__body { overflow: auto; padding: 16px; min-height: 0; }
.a11y__switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); font-weight: 700; margin-bottom: 14px; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper-3); flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--sky); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.a11y__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a11y-tile {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center;
  min-height: 124px; padding: 16px 10px 20px; border-radius: 18px; border: 2px solid var(--line-2); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: .95rem; line-height: 1.25; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.a11y-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.a11y-tile .ico { width: 30px; height: 30px; }
.a11y-tile__state { font-size: .8rem; font-weight: 700; color: var(--muted); }
.a11y-tile.is-on { border-color: var(--ink); background: var(--sky-soft); }
.a11y-tile.is-on .a11y-tile__state { color: var(--ink); }
.a11y-tile__check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--sky); display: none; place-items: center; }
.a11y-tile__check .ico { width: 14px; height: 14px; }
.a11y-tile.is-on .a11y-tile__check { display: grid; }
.a11y-tile__dots { display: flex; gap: 4px; position: absolute; left: 14px; right: 14px; bottom: 9px; }
.a11y-tile__dots i { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); }
.a11y-tile__dots i.on { background: var(--ink); }
.a11y__actions { display: grid; gap: 10px; margin-top: 14px; }
.a11y__reset { width: 100%; justify-content: center; }
.a11y__more { margin-top: 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px 14px; }
.a11y__more summary { font-weight: 700; padding: 12px 0; cursor: pointer; }
.a11y__more ul { margin: 0 0 12px; }
.a11y__row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.a11y__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); font-weight: 700; }
html.a11y-big .a11y-tile { min-height: 150px; font-size: 1.1rem; }
html.a11y-big .a11y-tile .ico { width: 38px; height: 38px; }
html.a11y-big .a11y__grid { grid-template-columns: minmax(0, 1fr); }
html.a11y-big .a11y-dlg { width: min(560px, 100vw); }

.a11y-guide { position: fixed; left: 0; right: 0; height: 12px; margin-top: -6px; background: var(--sky); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); z-index: 2000; pointer-events: none; top: 50%; }
.a11y-mask { position: fixed; left: 0; right: 0; background: rgba(0, 0, 0, .62); z-index: 2000; pointer-events: none; }
.a11y-mask--top { top: 0; height: 40%; }
.a11y-mask--bottom { bottom: 0; height: 40%; }
.a11y-tip { position: fixed; z-index: 2100; max-width: 320px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: .9rem; font-weight: 700; pointer-events: none; box-shadow: var(--shadow-2); }
.a11y-alt { display: none; }
html.a11y-noimg .a11y-alt { display: block; padding: 10px 12px; border: 2px dashed currentColor; border-radius: 10px; font-weight: 700; font-size: .92rem; margin: 6px 0; }
.structure-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.structure-list li { margin: 0; }
.structure-list a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.structure-list a:hover { background: var(--paper); }
.structure-list .lvl { font-size: .72rem; font-weight: 700; background: var(--ink); color: var(--sky); border-radius: 6px; padding: 2px 6px; flex: none; }
.structure-list .lvl-3 { margin-left: 18px; }
.structure-list .lvl-4 { margin-left: 36px; }

/* ----- a11y modes (classes set on <html> by boot.js / a11y.js) ----- */
/* filter on the root element keeps position:fixed children tied to the viewport (Filter Effects spec) */
html.a11y-filter { filter: var(--a11y-f-inv, ) var(--a11y-f-sat, ); }
html.a11y-contrast-1 img, html.a11y-contrast-1 video, html.a11y-contrast-1 iframe, html.a11y-contrast-1 .video__poster { filter: invert(1) hue-rotate(180deg); }

html.a11y-contrast-2 body, html.a11y-contrast-2 body *:not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon):not(img):not(video):not(iframe) {
  background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important;
}
html.a11y-contrast-2 a, html.a11y-contrast-2 a * { color: #FFE600 !important; text-decoration: underline !important; }
html.a11y-contrast-2 .btn, html.a11y-contrast-2 .btn * { color: #000 !important; background-color: #FFE600 !important; text-decoration: none !important; }
html.a11y-contrast-2 .hero--photo .hero__media::after, html.a11y-contrast-2 .band::after { background: rgba(0, 0, 0, .78) !important; }
html.a11y-contrast-2 dialog::backdrop { background: rgba(0, 0, 0, .9); }

html.a11y-contrast-3 body, html.a11y-contrast-3 body *:not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon):not(img):not(video):not(iframe) {
  background-color: #fff !important; background-image: none !important; color: #000 !important; border-color: #000 !important; box-shadow: none !important; text-shadow: none !important;
}
html.a11y-contrast-3 a, html.a11y-contrast-3 a * { color: #0000C8 !important; text-decoration: underline !important; }
html.a11y-contrast-3 .btn, html.a11y-contrast-3 .btn * { color: #fff !important; background-color: #000 !important; text-decoration: none !important; }
html.a11y-contrast-3 .hero--photo .hero__media, html.a11y-contrast-3 .band img, html.a11y-contrast-3 .band::after, html.a11y-contrast-3 .hero--photo .hero__media::after { opacity: .18; }

html.a11y-links a { outline: 3px solid var(--sky) !important; outline-offset: 2px; text-decoration: underline !important; text-decoration-thickness: 2px !important; background-color: #FFF3C4 !important; color: #0B2E56 !important; }
html.a11y-links a * { color: #0B2E56 !important; }

html.a11y-spacing-1 body *:not(.ico):not(svg) { letter-spacing: .06em !important; word-spacing: .12em !important; }
html.a11y-spacing-2 body *:not(.ico):not(svg) { letter-spacing: .1em !important; word-spacing: .24em !important; }
html.a11y-spacing-3 body *:not(.ico):not(svg) { letter-spacing: .16em !important; word-spacing: .4em !important; }

html.a11y-lineh-1 body *:not(.ico):not(svg) { line-height: 1.85 !important; }
html.a11y-lineh-2 body *:not(.ico):not(svg) { line-height: 2.15 !important; }
html.a11y-lineh-3 body *:not(.ico):not(svg) { line-height: 2.5 !important; }

html.a11y-align-1 main *, html.a11y-align-1 .site-footer * { text-align: left !important; }
html.a11y-align-2 main *, html.a11y-align-2 .site-footer * { text-align: center !important; }
html.a11y-align-3 main *, html.a11y-align-3 .site-footer * { text-align: right !important; }
html.a11y-align-4 main p, html.a11y-align-4 main li, html.a11y-align-4 .site-footer p { text-align: justify !important; }

html.a11y-font-1 body, html.a11y-font-1 body *:not(.ico) { font-family: Verdana, Tahoma, Arial, sans-serif !important; }
html.a11y-font-2 body, html.a11y-font-2 body *:not(.ico) { font-family: Verdana, Tahoma, Arial, sans-serif !important; letter-spacing: .05em !important; word-spacing: .16em !important; }
html.a11y-font-2 main p, html.a11y-font-2 main li { line-height: 1.9 !important; max-width: 64ch; }

html.a11y-pause *, html.a11y-pause *::before, html.a11y-pause *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-pause [data-reveal], html.a11y-pause [data-anim] { opacity: 1 !important; transform: none !important; translate: none !important; }
html.a11y-pause .filmstrip__viewport { overflow-x: auto; }
html.a11y-pause .filmstrip--reel .filmstrip__viewport { overflow-y: auto; }

html.a11y-noimg main img, html.a11y-noimg main picture, html.a11y-noimg .video__poster { visibility: hidden !important; }
html.a11y-noimg .hero--photo .hero__media img, html.a11y-noimg .band img, html.a11y-noimg .mosaic__item img, html.a11y-noimg .filmstrip__item img, html.a11y-noimg .vteaser img { display: none !important; }
html.a11y-noimg .filmstrip__item, html.a11y-noimg .mosaic__item { background: var(--ink-3); }

html.a11y-cursor-1, html.a11y-cursor-1 * { cursor: url("../img/cursor-big.svg") 6 4, auto !important; }
html.a11y-cursor-1 a, html.a11y-cursor-1 a *, html.a11y-cursor-1 button, html.a11y-cursor-1 button *, html.a11y-cursor-1 summary, html.a11y-cursor-1 label { cursor: url("../img/cursor-big-hand.svg") 16 4, pointer !important; }

/* ================= hero photo reel, icon-only contacts, teacher portraits, section motion ================= */

/* ---------- home hero: text on the left, photo reel on the right ---------- */
.p-home .hero--home .hero__text { display: grid; gap: 18px; min-width: 0; }
.filmstrip--reel { margin: 0; padding: 0; position: relative; min-width: 0; }
.filmstrip--reel .filmstrip__viewport { display: grid; gap: 14px; overflow: hidden; }
.filmstrip--reel .filmstrip__track { gap: 14px; will-change: transform; }
.filmstrip--reel .filmstrip__item { border-radius: 18px; }
.filmstrip--reel .filmstrip__toggle { right: 10px; bottom: 10px; z-index: 2; background: rgba(11, 46, 86, .78); }
.filmstrip--reel .filmstrip__toggle:hover { background: var(--ink); }
.filmstrip.is-offscreen .filmstrip__track { animation-play-state: paused; }
@keyframes reel { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@media (min-width: 1024px) {
  .p-home .hero--home .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(32px, 4.5vw, 72px); align-items: center; }
  .p-home .hero--home .hero__text { grid-column: 1; grid-row: 1; }
  .p-home .hero--home .filmstrip--reel { grid-column: 2; grid-row: 1; height: clamp(440px, 40vw, 580px); }
  .p-home .hero--home .facts { grid-column: 1 / -1; }
  .filmstrip--reel .filmstrip__viewport {
    grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  }
  .filmstrip--reel .filmstrip__track { flex-direction: column; width: auto; animation: reel 52s linear infinite; }
  .filmstrip--reel .filmstrip__track--rev { animation-duration: 42s; animation-direction: reverse; margin-top: -64px; }
  .filmstrip--reel .filmstrip__item { width: auto; aspect-ratio: 4 / 5; }
}
@media (max-width: 1023px) {
  .p-home .hero--home .filmstrip--reel { padding-bottom: 50px; }
  .filmstrip--reel .filmstrip__viewport { grid-template-columns: minmax(0, 1fr); }
  .filmstrip--reel .filmstrip__track { animation: film 60s linear infinite; }
  .filmstrip--reel .filmstrip__track--rev { animation-duration: 48s; animation-direction: reverse; }
  .filmstrip--reel .filmstrip__item { width: clamp(180px, 40vw, 260px); aspect-ratio: 4 / 3; }
  .filmstrip--reel .filmstrip__toggle { right: 0; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .filmstrip--reel .filmstrip__viewport { overflow: auto; }
}

/* ---------- contact icons without text (the text lives in aria-label) ---------- */
.ctiles { display: flex; flex-wrap: wrap; gap: 14px; }
.ctiles .ctile { width: 84px; height: 84px; padding: 0; place-items: center; justify-items: center; border-radius: 24px 24px 24px 8px; }
.ctiles .ctile .ico-badge { width: 52px; height: 52px; margin: 0; }
.vcard__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vcard__actions .icon-btn { width: 54px; height: 54px; padding: 0; justify-content: center; }
.reach .icon-btn { width: 48px; padding: 0; }

/* ---------- teacher portraits (initials when there is no photo) ---------- */
.icard__photo, .icard__mono { width: 88px; height: 88px; border-radius: 50%; flex: none; }
.icard__photo { display: block; object-fit: cover; background: var(--paper-2); box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--green-soft); transition: scale .35s var(--ease); }
.icard--de .icard__photo { box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--blue-soft); }
.icard__mono { font-size: 1.5rem; }
.icard:hover .icard__photo { scale: 1.04; }
.person-hero__photo {
  display: block; width: clamp(140px, 18vw, 240px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 34px;
  background: var(--paper-2); box-shadow: 12px 12px 0 var(--sky);
}
.person-hero--de .person-hero__photo { box-shadow: 12px 12px 0 var(--ink); }
.person-hero--az .person-hero__photo { box-shadow: 12px 12px 0 var(--blue); }

/* ---------- section motion: each component enters in its own way (JS sets data-anim and --i) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero: text rises line by line, the reel fades in, the glow drifts slowly */
  .js:not(.a11y-pause) .p-home .hero__text > * { animation: a-rise .8s var(--ease) both; }
  .js:not(.a11y-pause) .p-home .hero__text > :nth-child(2) { animation-delay: .08s; }
  .js:not(.a11y-pause) .p-home .hero__text > :nth-child(3) { animation-delay: .16s; }
  .js:not(.a11y-pause) .p-home .hero__text > :nth-child(4) { animation-delay: .24s; }
  .js:not(.a11y-pause) .p-home .hero__text > :nth-child(5) { animation-delay: .32s; }
  .js:not(.a11y-pause) .p-home .filmstrip--reel { animation: a-fade 1.2s var(--ease) .25s both; }
  .js:not(.a11y-pause) .p-home .hero--home::before { animation: a-drift 18s ease-in-out infinite alternate; }

  .js:not(.a11y-pause) [data-anim]:not(.is-visible) { opacity: 0; }
  .js:not(.a11y-pause) [data-anim].is-visible { animation: a-rise .7s var(--ease) calc(var(--i, 0) * 80ms) both; }
  .js:not(.a11y-pause) [data-anim="pop"].is-visible { animation-name: a-pop; animation-duration: .55s; }
  .js:not(.a11y-pause) [data-anim="slide"].is-visible, .js:not(.a11y-pause) [data-anim="timeline"].is-visible { animation-name: a-slide; }
  .js:not(.a11y-pause) [data-anim="step"].is-visible { animation-name: a-step; }
  .js:not(.a11y-pause) [data-anim="zoom"].is-visible { animation-name: a-zoom; }
  .js:not(.a11y-pause) [data-anim="tile"].is-visible { animation-name: a-tile; }
  .js:not(.a11y-pause) [data-anim="fade"].is-visible { animation-name: a-fade; animation-duration: 1s; }

  /* programme strengths: tiles rise, their icons turn into place, the photo tile opens like a curtain */
  .js:not(.a11y-pause) [data-anim="tile"].is-visible .ico-badge { animation: a-badge .7s var(--ease) calc(var(--i, 0) * 80ms + .18s) both; }
  .js:not(.a11y-pause) [data-anim="tile"].tile--photo.is-visible { animation-name: a-mask; animation-duration: 1s; }
  .js:not(.a11y-pause) [data-anim="tile"].tile--photo.is-visible img { animation: a-unzoom 1.4s var(--ease) calc(var(--i, 0) * 80ms) both; }
  /* history: the timeline line draws down, each milestone dot pops as its entry slides in */
  .js:not(.a11y-pause) .milestones.is-visible { animation: a-draw 1.1s var(--ease) both; }
  .js:not(.a11y-pause) [data-anim="timeline"].is-visible::before { animation: a-pop .5s var(--ease) calc(var(--i, 0) * 80ms + .2s) both; }
  /* study years: cards arrive one after another like steps, the status badge pops */
  .js:not(.a11y-pause) [data-anim="step"].is-visible .rail__badge { animation: a-pop .5s var(--ease) calc(var(--i, 0) * 80ms + .3s) both; }
  /* teachers: each card rises and its portrait opens from the centre */
  .js:not(.a11y-pause) [data-anim="portrait"].is-visible :is(.icard__photo, .icard__mono) { animation: a-portrait .9s var(--ease) calc(var(--i, 0) * 80ms + .15s) both; }
  /* videos: teasers zoom in, the play button sends out a slow ring */
  .js:not(.a11y-pause) [data-anim="zoom"].is-visible .vteaser__icon::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sky);
    animation: a-ring 2.8s ease-out calc(var(--i, 0) * 350ms + .8s) infinite;
  }
  /* events: the date turns over like a calendar page */
  .js:not(.a11y-pause) [data-anim="flip"] { perspective: 700px; }
  .js:not(.a11y-pause) [data-anim="flip"].is-visible .event__date { transform-origin: 50% 0; animation: a-flip .8s var(--ease) calc(var(--i, 0) * 80ms + .1s) both; }
  /* section heads: the kicker icon pops; the osteopathy band text rises over its photo */
  .js:not(.a11y-pause) .section__head.is-visible .kicker__ico { animation: a-pop .55s var(--ease) .12s both; }
  .js:not(.a11y-pause) [data-anim="fade"].is-visible .band__text { animation: a-rise .9s var(--ease) .15s both; }
  @supports (animation-timeline: view()) {
    .js:not(.a11y-pause) .band img { scale: 1.12; animation: a-parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
  /* closing call to action: light drifts slowly across the green block */
  .p-home .section--teal { position: relative; overflow: hidden; overflow: clip; }
  .p-home .section--teal > .container { position: relative; z-index: 1; }
  .js:not(.a11y-pause) .p-home .section--teal::before {
    content: ""; position: absolute; inset: -30%; pointer-events: none;
    background: radial-gradient(40% 50% at 30% 40%, rgba(255, 255, 255, .14), transparent 70%), radial-gradient(35% 45% at 72% 62%, rgba(0, 163, 224, .24), transparent 70%);
    animation: a-drift 16s ease-in-out infinite alternate;
  }
}
@keyframes a-rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }
@keyframes a-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes a-pop { 0% { opacity: 0; scale: .6; } 60% { opacity: 1; scale: 1.08; } 100% { opacity: 1; scale: 1; } }
@keyframes a-slide { from { opacity: 0; translate: -26px 0; } to { opacity: 1; translate: none; } }
@keyframes a-step { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: none; } }
@keyframes a-zoom { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes a-tile { from { opacity: 0; translate: 0 28px; scale: .96; } to { opacity: 1; translate: none; scale: 1; } }
@keyframes a-mask { from { opacity: 1; clip-path: inset(100% 0 0 0 round var(--radius)); } to { opacity: 1; clip-path: inset(0 0 0 0 round var(--radius)); } }
@keyframes a-unzoom { from { scale: 1.18; } to { scale: 1; } }
@keyframes a-portrait { from { clip-path: circle(0% at 50% 60%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes a-badge { from { scale: .5; rotate: -30deg; } to { scale: 1; rotate: 0deg; } }
@keyframes a-flip { from { opacity: 0; rotate: x -85deg; } to { opacity: 1; rotate: x 0deg; } }
@keyframes a-ring { from { scale: 1; opacity: .7; } to { scale: 1.7; opacity: 0; } }
@keyframes a-draw { from { clip-path: inset(0 0 100% -24px); } to { clip-path: inset(0 0 0 -24px); } }
@keyframes a-drift { from { translate: -4% -3%; scale: 1; } to { translate: 4% 3%; scale: 1.08; } }
@keyframes a-parallax { from { translate: 0 -5%; } to { translate: 0 5%; } }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer .footer__icons, .fab-a11y, .to-top, .toast, .filmstrip, .hdr__cta, dialog, .video__play, .filters, .toc, .toc-mobile { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .section, .hero { padding: 16px 0 !important; background: #fff !important; color: #000 !important; }
  .hero--photo { min-height: 0; }
  .hero--photo .hero__media { display: none; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; translate: none !important; }
}
