/* =========================================================================
   V ACADEMY — International Sport Education
   Stylesheet · dark-first, motion-rich rebuild
   ------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout utilities
   4.  Motion primitives (reveal, split text, keyframes)
   5.  Preloader & scroll progress
   6.  Header & navigation
   7.  Buttons & links
   8.  Hero (video background)
   9.  Section furniture
   10. Marquee
   11. Course cards & black-square media
   12. Stats counters
   13. Timeline (next intakes)
   14. About / split content
   15. Partners
   16. CTA band
   17. Course detail pages
   18. Forms & FAQ
   19. Footer
   20. Cookie banner, back-to-top, cursor glow
   21. Responsive
   22. Reduced motion
   ========================================================================= */

/* ============================== 1. TOKENS =============================== */

:root {
  /* Brand. The light blue of the mark stays the accent; on a light ground the
     text-bearing blue is a deeper shade so it keeps its contrast. */
  --brand:          #2f76b0;
  --brand-bright:   #6dace0;
  --brand-deep:     #14497a;
  --brand-violet:   #5a49d6;
  --on-brand:       #ffffff;
  --btn-hi-a:       #2f76b0;
  --btn-hi-b:       #5a49d6;

  /* Stops for .grad headline text */
  --grad-1:         #2f76b0;
  --grad-2:         #1f5f96;
  --grad-3:         #5a49d6;

  /* Light surface stack (default) */
  --bg:             #f7f9fc;
  --bg-2:           #ffffff;
  --surface:        #ffffff;
  --surface-2:      #f1f4f9;
  --line:           rgba(16, 26, 40, .10);
  --line-strong:    rgba(16, 26, 40, .18);

  --ink:            #0f1826;
  --ink-soft:       #3a4553;
  --muted:          #64707f;

  --shadow-sm:      0 1px 3px rgba(16, 30, 50, .06);
  --shadow-md:      0 14px 40px -20px rgba(16, 30, 50, .22);
  --shadow-glow:    0 0 0 1px rgba(47, 118, 176, .22), 0 16px 44px -24px rgba(47, 118, 176, .32);

  /* Type */
  --font-display:   "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-body:      "Roboto", "Segoe UI", system-ui, sans-serif;
  --font-mono:      "Roboto Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Rhythm */
  --shell:          1240px;
  --shell-wide:     1440px;
  --gutter:         clamp(1.25rem, 4vw, 3.5rem);
  --section-y:      clamp(4rem, 8vw, 7rem);
  --radius:         14px;
  --radius-lg:      18px;

  /* Motion */
  --ease-out:       cubic-bezier(.16, 1, .3, 1);
  --ease-in-out:    cubic-bezier(.7, 0, .3, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --brand:          #6dace0;
  --brand-bright:   #a8ddff;
  --brand-deep:     #2b6ea8;
  --brand-violet:   #7c6cff;
  --on-brand:       #04070c;
  --btn-hi-a:       #a8ddff;
  --btn-hi-b:       #7c6cff;

  --grad-1:         #a8ddff;
  --grad-2:         #6dace0;
  --grad-3:         #7c6cff;

  --bg:             #05070b;
  --bg-2:           #090d14;
  --surface:        #0f151e;
  --surface-2:      #141b26;
  --line:           rgba(255, 255, 255, .09);
  --line-strong:    rgba(255, 255, 255, .18);

  --ink:            #ffffff;
  --ink-soft:       #c6cedb;
  --muted:          #7d8899;

  --shadow-sm:      0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md:      0 18px 50px -18px rgba(0, 0, 0, .8);
  --shadow-glow:    0 0 0 1px rgba(109, 172, 224, .35), 0 24px 70px -30px rgba(109, 172, 224, .55);

  color-scheme: dark;
}

/* =========================== 2. RESET & BASE ============================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  /* Reveal animations start off-canvas horizontally; contain them here so
     they never produce a horizontal scrollbar. `clip` is preferred over
     `hidden` because it does not turn the root into a scroll container,
     which would break `position: sticky` further down the page. */
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html { overflow-x: clip; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: clamp(1rem, .35vw + .93rem, 1.075rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}

body.is-locked { overflow: hidden; }

/* One very soft tint behind the page - no moving blobs, no grain. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(60vmax 45vmax at 78% -10%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%);
}



h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  font-weight: 900;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.7rem); }
h4 { font-size: 1.075rem; letter-spacing: 0; }

p  { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .3s var(--ease-out);
}
a:hover { color: var(--brand-bright); }

img, svg, iframe { display: block; max-width: 100%; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--brand); color: var(--on-brand); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  border-radius: 0 0 10px 10px;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ========================= 3. LAYOUT UTILITIES ========================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: var(--shell-wide); }
.shell--narrow { max-width: 880px; }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-2); }
.section--edge { border-top: 1px solid var(--line); }


.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.stack > * + * { margin-top: 1.15rem; }
.lead { font-size: clamp(1.075rem, .6vw + .95rem, 1.3rem); color: var(--ink-soft); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Holds the logo <symbol> at the top of <body>. Without this an inline <svg>
   takes its default 300x150 box and pushes the whole page down. */
.va-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Gradient text used on key words in headings */
.grad {
  background: linear-gradient(100deg, var(--grad-1), var(--grad-2) 45%, var(--grad-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: grad-pan 9s linear infinite;
}

/* ======================== 4. MOTION PRIMITIVES ========================== */

@keyframes aura-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}
@keyframes grad-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}
@keyframes float-y {
  from { transform: translateY(-7px); }
  to   { transform: translateY(7px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(.75); opacity: .85; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes marquee-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes scan-sweep {
  0%   { transform: translateY(-120%); }
  100% { transform: translateY(220%); }
}
@keyframes draw-stroke { to { stroke-dashoffset: 0; } }
@keyframes letter-in {
  from { opacity: 0; transform: translateY(.62em) rotate(4deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
@keyframes dash-run { to { stroke-dashoffset: -220; } }

/* Scroll-reveal: elements start hidden, .is-visible is added by the observer */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .85s var(--ease-out),
    transform .85s var(--ease-out),
    filter .85s var(--ease-out),
    clip-path 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  filter: blur(6px);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-38px, 0, 0); }
[data-reveal="right"] { transform: translate3d(38px, 0, 0); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="clip"] {
  opacity: 1;
  filter: none;
  transform: none;
  clip-path: inset(0 100% 0 0);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

/* Per-letter headline animation (spans injected by JS) */
.split-line { display: block; }
/* Keeps a word together: the per-letter spans inside are inline-block, so
   without this wrapper a line could break between any two letters. */
.split-word {
  display: inline-block;
  white-space: nowrap;
}
.split-char {
  display: inline-block;
  white-space: pre;
}
/* The characters are only hidden once JS has actually started the reveal, so
   a heading is never left invisible if the script or the animation fails. */
.is-split-in .split-char {
  opacity: 0;
  animation: letter-in .8s var(--ease-out) forwards;
  animation-delay: var(--char-delay, 0ms);
}

/* ==================== 5. PRELOADER & SCROLL PROGRESS ==================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease-out), visibility .7s;
  /* Belt and braces: it clears itself even with no JS at all, so a stalled
     script can never leave the visitor staring at a blank screen. */
  animation: preloader-failsafe 0s linear 4s forwards;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes preloader-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.preloader__inner { display: grid; justify-items: center; gap: 1.4rem; }
.preloader__logo {
  width: clamp(190px, 48vw, 310px);
  color: var(--ink);
}
.preloader__logo .logo__svg { width: 100%; transition: none; }
.preloader__bar {
  width: clamp(140px, 28vw, 240px);
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  transition: width .45s var(--ease-out);
}

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--brand-bright));
  box-shadow: 0 0 18px rgba(109, 172, 224, .8);
}

/* ====================== 6. HEADER & NAVIGATION ========================== */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: clamp(.9rem, 1.6vw, 1.5rem);
  border-bottom: 1px solid transparent;
  transition:
    padding .45s var(--ease-out),
    background-color .45s var(--ease-out),
    border-color .45s var(--ease-out),
    backdrop-filter .45s var(--ease-out),
    transform .5s var(--ease-out);
}
.header.is-stuck {
  padding-block: .55rem;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-115%); }

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* --- Logo, rebuilt as vector + type (no raster asset) --- */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex: 0 0 auto;
}
/* The supplied logo already contains the mark, the wordmark and the tagline.
   Its wording is currentColor, so it follows the theme - and the inverted
   header over the hero video - without a second file. */
.logo__svg {
  display: block;
  width: clamp(138px, 17vw, 205px);
  height: auto;
  transition: transform .5s var(--ease-out);
}
.logo:hover .logo__svg { transform: translateY(-2px); }
.logo:hover { color: var(--ink); }

/* --- Desktop nav --- */
.nav { display: flex; align-items: center; gap: clamp(.25rem, 1.2vw, .8rem); }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.05rem, .8vw, .5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: .55rem .78rem;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 999px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .78rem; right: .78rem; bottom: .3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.nav__link--ghost {
  border: 1px solid var(--line-strong);
  margin-left: .35rem;
  transition: border-color .35s, background-color .35s, color .3s;
}
.nav__link--ghost::after { display: none; }
.nav__link--ghost:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}

/* --- Controls --- */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease-out);
}
.icon-btn:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  transform: translateY(-2px);
}
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.burger { display: none; }
.burger__box { display: grid; gap: 5px; width: 19px; }
.burger__box i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.burger[aria-expanded="true"] .burger__box i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile overlay menu --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  align-content: center;
  padding: 6rem var(--gutter) 3rem;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(22px);
  clip-path: circle(0% at calc(100% - 3rem) 3rem);
  transition: clip-path .7s var(--ease-in-out), visibility .7s;
  visibility: hidden;
}
.mobile-nav.is-open {
  clip-path: circle(150% at calc(100% - 3rem) 3rem);
  visibility: visible;
}
.mobile-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mobile-nav__list li {
  margin: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--i) * 65ms);
}
.mobile-nav.is-open .mobile-nav__list li { opacity: 1; transform: none; }
.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .45rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7.5vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color .3s, padding-left .35s var(--ease-out);
}
.mobile-nav__link span {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--brand);
  letter-spacing: .1em;
}
.mobile-nav__link:hover { color: var(--brand); padding-left: .6rem; }
.mobile-nav__foot {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .06em;
}

/* ========================= 7. BUTTONS & LINKS =========================== */

.btn {
  --btn-bg: var(--brand);
  --btn-ink: var(--on-brand);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), color .3s, border-color .3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, var(--btn-hi-a), var(--btn-hi-b));
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
/* Sheen that wipes across on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  z-index: -1;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease-out);
}
.btn:hover {
  color: var(--on-brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.btn:hover::before { opacity: 1; }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--on-brand); border-color: transparent; }

.btn--lg { padding: 1.2rem 2.4rem; font-size: .88rem; }
.btn--block { width: 100%; justify-content: center; }

/* Text link with an animated underline + arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  padding-bottom: .25rem;
  background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .3s, gap .3s;
}
.arrow-link:hover { background-size: 100% 1px; gap: .9rem; }
.arrow-link svg { width: 15px; height: 15px; }

/* =============================== 8. HERO ================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(6.5rem, 11vh, 9rem) clamp(3.2rem, 6vh, 4.5rem);
}

/* The one embedded YouTube video from the original site, as a muted backdrop */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #000;
}
.hero__video iframe {
  position: absolute;
  top: 50%; left: 50%;
  /* 16:9 cover: whichever axis is short gets over-sized */
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%) scale(1.06);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
}
.hero__video.is-playing iframe { opacity: 1; }

/* Same treatment for a self-hosted MP4 dropped in place of the embed
   (see README). object-fit does the cropping a video element can do
   natively, so no over-sizing trick is needed here. */
.hero__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
}
.hero__video.is-playing video { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 55%, transparent) 34%, transparent 72%),
    linear-gradient(105deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, transparent 62%),
    radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--brand-deep) 32%, transparent), transparent 60%);
}



.hero__body { position: relative; max-width: 62rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.4rem;
  padding: .45rem 1rem .45rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}
.eyebrow__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-ring 2.4s var(--ease-out) infinite;
}

.hero h1 {
  font-size: clamp(2.15rem, 5.9vw, 4.8rem);
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.hero h1 > span { display: block; }
.hero__sub {
  max-width: 44rem;
  font-size: clamp(1.02rem, .6vw + .92rem, 1.25rem);
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.8rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3.4vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.hero__meta div { display: grid; gap: .2rem; }
.hero__meta dt,
.hero__meta .k {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta .v {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .01em;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__cue i {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--brand), transparent);
  animation: bob 2.4s var(--ease-in-out) infinite;
}

/* Sound / video toggle chip on the hero */
.hero__vidctl {
  position: absolute;
  right: var(--gutter);
  top: clamp(6rem, 14vh, 9rem);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s, color .3s, transform .3s var(--ease-out);
}
.hero__vidctl:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.hero__vidctl i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 0 0 10px #ff5f56;
}
.hero__vidctl.is-on i { background: var(--brand); box-shadow: 0 0 10px var(--brand); }

/* ========================= 9. SECTION FURNITURE ========================= */

.sec-head {
  display: grid;
  gap: 1rem;
  max-width: 62rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brand);
}
.sec-head__kicker::before {
  content: "";
  width: clamp(24px, 5vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
}
.sec-head--center .sec-head__kicker::after {
  content: "";
  width: clamp(24px, 5vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 46rem; }

/* Oversized watermark numeral / word behind a section.
   right stays at 0: a negative offset at this font-size pushes the glyph
   past the viewport edge and gives the page a horizontal scrollbar. */
.watermark {
  position: absolute;
  right: 0;
  top: -.28em;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 20rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}

/* ============================= 10. MARQUEE ============================== */

.marquee {
  position: relative;
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.2rem;
  animation: marquee-run 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 3.2rem;
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s;
}
.marquee__item::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}
.marquee:hover .marquee__item { color: var(--ink-soft); }

/* ================== 11. COURSE CARDS & BLACK-SQUARE MEDIA =============== */

.course-grid { display: grid; gap: clamp(1.4rem, 2.6vw, 2.2rem); }
.course-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform .5s var(--ease-out),
    border-color .4s,
    box-shadow .5s var(--ease-out),
    background-color .4s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: var(--shadow-glow);
}
/* Cursor-tracked glow inside the card (x/y set by JS) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    22rem 22rem at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--brand) 20%, transparent),
    transparent 70%
  );
  transition: opacity .45s var(--ease-out);
}
.card:hover::before { opacity: 1; }

.card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  flex: 1;
  padding: clamp(1.4rem, 2.4vw, 2rem);
}
.card__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  padding: .3rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
}
.card__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.5vw, 1.42rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .002em;
}
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand); }
.card__text {
  margin: 0;
  font-size: .96rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.card__start {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__start b { color: var(--ink); font-weight: 500; }

/* --- The black square standing in for every embedded photo --------------
   The original site places a photo here. Per the brief the image is left
   out and simulated with a black square: pure black block, brand corner
   brackets, a slow sheen, and the original alt text as a mono caption. */
.media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

/* diagonal sheen sweeping slowly across the black */
.media::after {
  content: "";
  position: absolute;
  top: -60%; left: -140%;
  width: 60%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(109, 172, 224, .14), transparent);
  transform: rotate(18deg);
  transition: left 1.1s var(--ease-out);
}
.card:hover .media::after,
.media:hover::after { left: 160%; }

.media__brackets { position: absolute; inset: 0; pointer-events: none; }
.media__brackets i {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 60%, transparent);
  transition: width .5s var(--ease-out), height .5s var(--ease-out), border-color .4s;
}
.media__brackets i:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.media__brackets i:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.media__brackets i:nth-child(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.media__brackets i:nth-child(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.card:hover .media__brackets i,
.media:hover .media__brackets i { width: 26px; height: 26px; border-color: var(--brand-bright); }

.media__label {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  line-height: 1.4;
}
.media__label b {
  color: rgba(255, 255, 255, .62);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Gallery of black placeholder tiles (stands in for the photo gallery) */
.gallery {
  display: grid;
  gap: clamp(.6rem, 1.2vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.gallery .media {
  border: 1px solid var(--line);
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  transition: transform .5s var(--ease-out), border-color .4s;
}
.gallery .media:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
}
/* two tiles get double width so the grid does not read as a plain matrix */
@media (min-width: 760px) {
  .gallery .media:nth-child(3),
  .gallery .media:nth-child(8) { grid-column: span 2; aspect-ratio: 8 / 3; }
}
.gallery .media__label { font-size: .54rem; }

/* Caption under a placeholder explaining what the black block replaces */
.media-note {
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========================= 12. STATS COUNTERS =========================== */

/* Explicit tracks: auto-fit would leave a stray empty column, and with the
   1px gap acting as the divider that shows up as a hairline at the edge. */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--surface);
  transition: background-color .4s;
  overflow: hidden;
}
.stat:hover { background: var(--surface-2); }
.stat::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--brand), transparent);
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform .55s var(--ease-out);
}
.stat:hover::after { transform: scaleY(1); }
.stat__num {
  display: flex;
  align-items: baseline;
  gap: .1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.03em;
}
.stat__num small {
  font-size: .42em;
  color: var(--brand);
  letter-spacing: 0;
}
.stat__label {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ====================== 13. TIMELINE (NEXT INTAKES) ===================== */

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 0;
  width: 1px; height: 100%;
  background: var(--line);
}
/* the brand line grows as the section scrolls into view (JS sets --grow) */
.timeline::after {
  content: "";
  position: absolute;
  left: 7px; top: 0;
  width: 1px;
  height: calc(var(--grow, 0) * 100%);
  background: linear-gradient(to bottom, var(--brand-bright), var(--brand), var(--brand-violet));
  box-shadow: 0 0 14px rgba(109, 172, 224, .7);
  transition: height .25s linear;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: clamp(1.4rem, 2.6vw, 1.9rem) 0 clamp(1.4rem, 2.6vw, 1.9rem) clamp(2.2rem, 4vw, 3.2rem);
  border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--ease-out), background-color .4s;
}
.tl-item:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.tl-item::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brand);
  transition: transform .45s var(--ease-out), box-shadow .45s;
  z-index: 1;
}
.tl-item:hover::before { transform: scale(1.5); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); }
.tl-item__title {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.tl-item__title a { color: var(--ink); }
.tl-item__title a:hover { color: var(--brand); }
.tl-item__partner {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
}
.tl-item__date {
  justify-self: end;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.tl-item__date small {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: .2rem;
}

/* ==================== 14. ABOUT / SPLIT CONTENT ========================= */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.split--reverse > :first-child { order: 2; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0;
  padding: 1.15rem 1.3rem;
  background: var(--surface);
  transition: background-color .35s, transform .35s var(--ease-out);
}
.feature-list li:hover { background: var(--surface-2); transform: translateX(4px); }
.feature-list__ico {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  flex: 0 0 auto;
}
.feature-list__ico svg { width: 17px; height: 17px; }
.feature-list h4 { margin: 0 0 .2rem; }
.feature-list p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ============================ 15. PARTNERS ============================== */

.partners { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.partner {
  position: relative;
  display: grid;
  gap: .5rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .45s var(--ease-out), border-color .4s, box-shadow .45s;
}
.partner:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  box-shadow: var(--shadow-md);
}
.partner__crest {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: .5rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.partner h3 { margin: 0; font-size: 1.1rem; text-transform: none; letter-spacing: 0; }
.partner span {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================= 16. CTA BAND ============================= */

.cta {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 50% 120%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%),
    var(--bg-2);
}
.cta__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 1.4rem; }
.cta h2 { max-width: 34rem; margin: 0; }
.cta p { max-width: 40rem; margin: 0; color: var(--ink-soft); }
.cta__mail {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.cta__mail a { color: var(--brand); }

/* ====================== 17. COURSE DETAIL PAGES ========================= */

.page-hero {
  position: relative;
  padding-block: clamp(9rem, 20vh, 14rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 80% at 15% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 65%);
}
.page-hero__inner { position: relative; max-width: 60rem; }
.page-hero h1 { font-size: clamp(2rem, 5.6vw, 4.2rem); }
.page-hero .lead { max-width: 44rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .5; }

/* Key facts panel */
.facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fact {
  display: grid;
  gap: .35rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  transition: background-color .35s;
}
.fact:hover { background: var(--surface-2); }
.fact dt {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact dt svg { width: 14px; height: 14px; color: var(--brand); flex: 0 0 auto; }
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.fact dd a { font-weight: 700; }
.fact dd small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: .2rem; }

/* Prose block for long course copy */
.prose { max-width: 54rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-top: 2.8rem; }
.prose h3 { margin-top: 2rem; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .04em; }
.prose > :first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.prose ul li {
  position: relative;
  padding-left: 1.7rem;
  margin: 0;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: .1rem; top: .68em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}

/* Module accordion / semester blocks */
.sem-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.sem-tab {
  padding: .6rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .35s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.sem-tab:hover { transform: translateY(-2px); border-color: var(--brand); }
.sem-tab.is-active { background: var(--brand); color: var(--on-brand); border-color: transparent; }

.sem-panel { display: none; animation: panel-in .5s var(--ease-out); }
.sem-panel.is-active { display: block; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.modules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.2rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  transition: background-color .35s, transform .35s var(--ease-out);
}
.module:hover { background: var(--surface-2); transform: translateX(4px); }
.module__n {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--brand);
  padding-top: .2rem;
}
.module__name { margin: 0; font-size: 1rem; color: var(--ink); font-family: var(--font-display); font-weight: 800; }
.module__who { margin: .25rem 0 0; font-size: .88rem; color: var(--muted); }
.module__who b { color: var(--ink-soft); font-weight: 500; }

/* Sub-topics listed under a module (scouting course) */
.module__topics {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  gap: .3rem;
}
.module__topics li {
  position: relative;
  margin: 0;
  padding-left: 1.1rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.module__topics li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* Sticky aside used on course pages */
.detail-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .detail-aside { position: sticky; top: 6.5rem; }
}
.aside-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.aside-card h3 { margin: 0; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.aside-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.aside-card__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}
.aside-card__price small { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; margin-bottom: .3rem; }

/* Simple scoring table on one course page */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.grade {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .92rem;
}
table.grade th, table.grade td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.grade thead th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
table.grade tbody tr { transition: background-color .3s; }
table.grade tbody tr:hover { background: var(--surface); }
table.grade td:first-child { color: var(--ink); font-weight: 500; }

/* "Coming soon" placeholder block */
.soon {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.soon__dots { display: flex; gap: .45rem; }
.soon__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
  animation: bob 1.4s var(--ease-in-out) infinite;
}
.soon__dots i:nth-child(2) { animation-delay: .16s; }
.soon__dots i:nth-child(3) { animation-delay: .32s; }

/* ========================== 18. FORMS & FAQ ============================= */

.form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.form__row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { position: relative; display: grid; gap: .45rem; }
.field > label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field > label b { color: var(--brand); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236dace0' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.6rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.field__err {
  display: none;
  font-size: .78rem;
  color: #ff8b7a;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #ff8b7a; }
.field.has-error .field__err { display: block; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  font-size: .9rem;
  color: var(--muted);
}
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: .15rem; }

.form__note {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--muted);
  line-height: 1.7;
}
.form__ok {
  display: none;
  gap: .8rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--ink);
  font-size: .95rem;
}
.form__ok.is-shown { display: flex; animation: panel-in .5s var(--ease-out); }
.form__ok svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; }

.faq { display: grid; gap: .8rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .35s, background-color .35s;
}
.faq__item.is-open { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  padding: 1.15rem 1.35rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.faq__q i {
  position: relative;
  width: 16px; height: 16px;
  flex: 0 0 auto;
}
.faq__q i::before, .faq__q i::after {
  content: "";
  position: absolute;
  background: var(--brand);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.faq__q i::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__q i::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item.is-open .faq__q i::after { transform: rotate(90deg); opacity: 0; }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 1.35rem 1.35rem; margin: 0; font-size: .95rem; color: var(--muted); }

/* ============================== 19. FOOTER ============================== */

.footer {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  height: 100%;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.footer__top {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer h4 {
  margin: 0 0 1.2rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
/* The footer closes with the real logo rather than a typographic stand-in.
   Its wording is currentColor, so it follows the theme like the header one. */
.footer__brand { display: flex; align-items: flex-start; }
.footer__logo {
  display: block;
  width: clamp(210px, 26vw, 330px);
  height: auto;
  color: var(--ink);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__list li { margin: 0; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink-soft);
  font-size: .95rem;
  transition: color .3s, transform .35s var(--ease-out);
}
.footer__list a:hover { color: var(--brand); transform: translateX(4px); }
.footer__list svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; }
.footer__list .k {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer__legal li { margin: 0; }
.footer__legal a { color: var(--muted); font-size: .82rem; }
.footer__legal a:hover { color: var(--brand); }

/* Socials as bordered pills with an icon that slides */
.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.social {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: transform .4s var(--ease-out), border-color .35s, background-color .35s, color .3s;
}
.social:hover {
  transform: translateY(-4px) rotate(-6deg);
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand-bright);
}
.social svg { width: 18px; height: 18px; }

/* ============= 20. COOKIE BANNER, BACK-TO-TOP, CURSOR GLOW ============== */

.cookie {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.2rem;
  z-index: 130;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  max-width: 62rem;
  margin-inline: auto;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  transform: translateY(150%);
  transition: transform .7s var(--ease-out), opacity .5s;
}
.cookie.is-shown { transform: none; }
.cookie p { margin: 0; font-size: .86rem; color: var(--muted); }
.cookie strong { display: block; margin-bottom: .2rem; color: var(--ink); font-family: var(--font-display); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie .btn { padding: .75rem 1.3rem; font-size: .7rem; }

.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 110;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(.85);
  pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), border-color .3s, background-color .3s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 20%, transparent); }
.to-top svg { width: 18px; height: 18px; }


/* ============================ 21. RESPONSIVE ============================ */

@media (max-width: 1080px) {
  .nav__list { display: none; }
  .burger { display: inline-grid; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  /* Sideways entrances are noisy on a narrow screen - and they are what
     pushes content past the right edge before being revealed. */
  [data-reveal="left"],
  [data-reveal="right"] { transform: translateY(24px); }

  .hero { align-items: center; }
  .hero__vidctl { top: auto; bottom: 5.5rem; right: auto; left: var(--gutter); }
  .hero__cue { display: none; }
  .tl-item { grid-template-columns: minmax(0, 1fr); }
  .tl-item__date { justify-self: start; text-align: left; }
  .cookie { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
  .watermark { display: none; }
  .footer__bottom { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .cookie__actions { flex-direction: column; }
  .cookie .btn { width: 100%; justify-content: center; }
}

/* Nudge the fixed chrome away from very short viewports */
@media (max-height: 560px) {
  .hero { min-height: auto; padding-block: 7rem 3rem; }
}

/* ========================== 22. REDUCED MOTION ========================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .split-char, .is-split-in .split-char { opacity: 1 !important; }
  .preloader { animation: none; }
  .hero__video iframe { opacity: 1; }
}

/* Printing: drop the theatrics, keep the content readable */
@media print {
  body::before, body::after, .header, .mobile-nav, .cookie, .to-top, .progress,
  .preloader, .hero__video { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4 { color: #000; }
}


/* =========================================================================
   23. STRUCTURE PARITY WITH THE ORIGINAL SITE
   ------------------------------------------------------------------------
   The original opens with nothing but the top bar and the video; its course
   list is a stack of wide rows (picture left, text right); the gallery is a
   plain 2/3-column grid; every subpage ends with a share row. These rules
   bring the layout in line, while the visual treatment stays the new one.
   ========================================================================= */

/* --- Hero: top bar + video only ---------------------------------------- */
.hero {
  display: block;
  padding: 0;
  min-height: 100svh;
}

/* The heading sits behind the video, exactly as on the original: it is what
   you see until the embed fades in (and if the embed never loads at all). */
.hero__plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 6rem var(--gutter) 3rem;
  background:
    radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    var(--bg-2);
}
.hero__plate h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5.4vw, 4rem);
  text-align: center;
  padding: .5em .7em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(6px);
}
.hero__video { z-index: 1; background: transparent; }
.hero__scrim { z-index: 2; }
/* Only a soft fade at the very bottom, so the video meets the page cleanly */
.hero__scrim {
  background: linear-gradient(to top, var(--bg) 0%, transparent 22%);
}

/* --- Section title, centred + underlined as on the original ------------ */
.sec-title {
  margin: 0 0 clamp(1.8rem, 4vw, 3rem);
  padding-bottom: .35em;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

/* --- Course list: wide rows, picture left / text right ----------------- */
.course-list { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); }

.course-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.course-row:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: var(--shadow-glow);
}
.course-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(26rem 26rem at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
  transition: opacity .45s var(--ease-out);
}
.course-row:hover::before { opacity: 1; }

.course-row .media { border-bottom: 1px solid var(--line); }

@media (min-width: 820px) {
  /* col-lg-4 / col-lg-8, the original split */
  .course-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .course-row .media {
    height: 100%;
    aspect-ratio: auto;
    min-height: 260px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}

.course-row__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: clamp(1.3rem, 2.6vw, 2rem);
}
.course-row__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}
.course-row__title a { color: var(--ink); }
.course-row__title a:hover { color: var(--brand); }
.course-row__text { margin: 0; color: var(--muted); font-size: .98rem; }
.course-row__text strong { color: var(--ink-soft); }
.course-row__foot { margin-top: auto; padding-top: .4rem; }
.course-row__foot .btn { width: 100%; justify-content: center; }

/* --- Partner logos: the brief replaces embedded images with black squares */
.partners { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.partner { text-align: center; gap: .9rem; }
.partner .media {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.partner p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.3;
}

/* --- Gallery: plain grid, 2 up on phones and 3 up from tablet ---------- */
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery .media { aspect-ratio: 3 / 2; }
.gallery .media:nth-child(3),
.gallery .media:nth-child(8) { grid-column: auto; aspect-ratio: 3 / 2; }

/* --- Share row at the foot of every subpage ---------------------------- */
.share { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.share__btn {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: transform .4s var(--ease-out), border-color .35s, background-color .35s, color .3s;
}
.share__btn:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand-bright);
}
.share__btn svg { width: 18px; height: 18px; }

/* --- Page hero for the subpages: the original uses a tinted title band -- */
.page-hero { text-align: center; }
.page-hero__inner { margin-inline: auto; }
.page-hero .crumbs { justify-content: center; }
.page-hero .lead { margin-inline: auto; text-align: left; }
.page-hero h1 { text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .hero__video iframe, .hero__video video { opacity: 1; }
}


/* =========================================================================
   24. REAL IMAGERY
   ------------------------------------------------------------------------
   .media keeps its black ground (it still shows while a picture loads, and
   under a transparent one), but where an actual photo exists the placeholder
   affordances are gone and the picture simply covers the box.
   ========================================================================= */

.media--img { background: #000; }
.media--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out), opacity .6s var(--ease-out);
}
.course-row:hover .media--img img,
.gallery .media--img:hover img { transform: scale(1.04); }
/* the sweeping sheen would sit on top of a photo - keep it off */
.media--img::after { content: none; }

/* Partner logos: on a white plate so they read in either theme */
.partner__logo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: clamp(1rem, 2.4vw, 1.8rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform .5s var(--ease-out), border-color .4s;
}
.partner:hover .partner__logo { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.partner__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Gallery tiles become plain framed pictures */
.gallery .media--img { border-radius: 12px; overflow: hidden; }

/* Single wide photo at the top of the About page. No aspect-ratio and no
   cropping: a group photo shown through object-fit would lose the heads at
   the top or the bottom, so it keeps its own proportions. Swapping the
   picture is a matter of replacing photos/csoportkep.jpg. */
.group-photo {
  aspect-ratio: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.group-photo img { display: block; width: 100%; height: auto; }
.group-photo::after { content: none; }

/* Wide picture at the head of a course page */
.media--wide.media--img { aspect-ratio: 21 / 9; }
@media (max-width: 720px) { .media--wide.media--img { aspect-ratio: 16 / 10; } }


/* =========================================================================
   25. HEADER OVER THE HERO FOOTAGE
   ------------------------------------------------------------------------
   The hero backdrop is dark video. In the light theme the header's ink is
   near-black, which disappears against it, so while a video is actually
   playing (body.hero-media, set by main.js) the header switches to light ink
   and gets a soft scrim. Once it sticks it has its own solid background and
   the normal palette applies again.
   ========================================================================= */

body.hero-media .header:not(.is-stuck) {
  --ink:          #ffffff;
  --ink-soft:     rgba(255, 255, 255, .88);
  --muted:        rgba(255, 255, 255, .70);
  --line-strong:  rgba(255, 255, 255, .34);
}
body.hero-media .header:not(.is-stuck)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 260%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0));
}


/* =========================================================================
   26. HERO WITHOUT A BACKDROP
   ------------------------------------------------------------------------
   If neither the local promo nor the YouTube embed could start (opened from
   file://, offline, promo not converted yet), a full-viewport hero would look
   like an empty screen. Collapse it so the text below is visible at once.
   ========================================================================= */

body:not(.hero-media) .hero { min-height: min(58svh, 460px); }
body:not(.hero-media) .hero__plate { position: relative; inset: auto; }
body:not(.hero-media) .hero__vidctl { display: none; }


/* =========================================================================
   27. APPLICATION FORM EXTRAS
   ========================================================================= */

/* fieldset used as a labelled group */
.field--group { border: 0; margin: 0; padding: 0; }
.field--group legend {
  padding: 0 0 .45rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field--group legend b { color: var(--brand); }

/* radio options as selectable pills */
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: .92rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s, transform .3s var(--ease-out);
}
.radio:hover { transform: translateY(-2px); border-color: var(--brand); }
.radio input {
  appearance: none;
  width: 15px; height: 15px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex: 0 0 auto;
  transition: border-color .25s, box-shadow .25s;
}
.radio input:checked {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 4px var(--brand);
}
.radio:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--ink);
}
.radio input:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.field.has-error .radio { border-color: #c2410c; }

/* result line under the form */
.form__status {
  display: none;
  margin: 0;
  padding: .95rem 1.15rem;
  border-radius: 12px;
  font-size: .95rem;
  line-height: 1.55;
  /* Only matters for the ?debug output, which puts the endpoint and the
     raw answer on their own lines. Normal messages have no newlines, so
     nothing else changes. */
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.form__status.is-ok {
  display: block;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--ink);
}
.form__status.is-bad {
  display: block;
  border: 1px solid #c2410c;
  background: color-mix(in srgb, #c2410c 10%, transparent);
  color: var(--ink);
}

.form__note:empty { display: none; }

/* Honeypot. Not display:none - some bots skip hidden inputs but fill
   everything else, so it stays in the layout and just sits off-screen.
   tabindex="-1" and aria-hidden keep it away from keyboard and AT. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}


/* =========================================================================
   28. LANGUAGE SWITCHER
   ------------------------------------------------------------------------
   Both language trees are real static pages, so this is a two-option
   segmented control of plain links: the current language is a <span>, the
   other one an <a> pointing at the counterpart URL. Nothing here depends on
   JavaScript.
   ========================================================================= */

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .3s;
}
.lang:hover { border-color: var(--brand); }

.lang__opt {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 32px;
  padding: 0 .55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  text-decoration: none;
  transition: background-color .3s, color .3s;
}
a.lang__opt:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}
.lang__opt.is-active {
  background: var(--brand);
  color: var(--on-brand);
}

/* In the overlay menu it sits below the links, at touch size. */
.lang--block {
  margin-top: 1.6rem;
  padding: 4px;
}
.lang--block .lang__opt {
  min-width: 56px;
  height: 40px;
  font-size: .72rem;
}

/* The header bar is crowded on a phone; the overlay menu carries the
   switcher there instead. */
@media (max-width: 560px) {
  .header .lang { display: none; }
}


/* =========================================================================
   29. COUNTRY GROUPS & FILTER (courses)
   ------------------------------------------------------------------------
   The courses page keeps one group per country and filters on the same
   data-country value. Without JavaScript every group stays open, so the
   complete list is served either way.
   ========================================================================= */

/* .course-row is display:grid, which beats the UA rule for [hidden]. */
.course-row[hidden],
[data-country-group][hidden] { display: none !important; }

.flag {
  display: inline-block;
  width: 1.5em;
  height: .75em;
  flex: 0 0 auto;
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  vertical-align: -.06em;
}

/* --- the filter bar --- */
.filter {
  display: grid;
  gap: .8rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.4rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.filter__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter__bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter__bar .sem-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
/* count badge inside a filter button */
.filter__bar .sem-tab b {
  min-width: 1.35em;
  padding: 0 .35em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  font-size: .92em;
  font-weight: 800;
  text-align: center;
  transition: background-color .35s, color .3s;
}
.filter__bar .sem-tab.is-active b {
  background: color-mix(in srgb, var(--on-brand) 24%, transparent);
  color: var(--on-brand);
}
.filter__status {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}
.filter__status:empty { display: none; }

/* --- a country group --- */
.cgroup + .cgroup { margin-top: clamp(2.4rem, 5vw, 4rem); }

.cgroup__head {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  letter-spacing: .01em;
}
.cgroup__head .flag { width: 2em; height: 1em; }
.cgroup__n {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* --- country badge on a course row --- */
.course-row__tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  margin: 0;
  padding: .3rem .7rem .3rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 560px) {
  .cgroup__head { flex-wrap: wrap; }
  .cgroup__n { margin-left: 0; width: 100%; }
}


/* =========================================================================
   30. LEGAL PAGES (privacy notice, imprint)
   ------------------------------------------------------------------------
   Same two-column shape as a course detail page, so the legal texts are part
   of the site rather than a bare document. The numbered sections get a
   hanging number in the brand colour.
   ========================================================================= */

.legal {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) {
  .legal { grid-template-columns: minmax(0, 1fr) 320px; }
  .legal-aside { position: sticky; top: 6.5rem; }
}

.legal .prose h3 {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  text-transform: none;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: 0;
}
.legal__n {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .78em;
  font-weight: 400;
  color: var(--brand);
}

/* "the Hungarian text is authoritative" line above a translation */
.legal__note {
  margin: 0 0 2rem;
  padding: .9rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--bg-2);
  font-size: .9rem;
  color: var(--muted);
}

/* The imprint prints social links as full URLs. Their min-content width is
   the whole URL, which stretched the list past a 360px viewport, so let them
   break mid-string. */
.legal .prose a { overflow-wrap: anywhere; }

/* The imprint is label/value pairs; reuse the course fact cards. */
.facts--legal { margin-bottom: 0; }
