/* ==========================================================================
   Fit für die Sek – main.css
   Concept: the Swiss maths exercise book. Grid paper, fountain-pen ink
   (CD blue #3366ff), pencil grey (CD #666666), a rare highlighter stroke.
   The italic logo's slant appears as a forward-leaning skew on labels/buttons.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* palette */
  --paper: #fcfcfa;        /* exercise-book white */
  --grid: #dfe6fb;         /* 5 mm grid line */
  --tint: #f1f4fe;         /* section tint, derived from ink */
  --ink: #3366ff;          /* CD secondary – fountain-pen ink */
  --ink-text: #2149d9;     /* ink darkened for AA text contrast */
  --pencil: #666666;       /* CD primary – pencil grey */
  --graphite: #1b1d24;     /* body text */
  --hl: #fff06a;           /* highlighter – used sparingly */
  --night: #0e1846;        /* ink-night for dark bands */
  --line: #d9dce5;

  /* type */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);
  --step-5: clamp(2.9rem, 1.8rem + 5vw, 6.4rem);

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --slant: -10deg;
  --shadow: 0 1px 2px rgb(14 24 70 / .06), 0 8px 28px -10px rgb(14 24 70 / .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 var(--step-0)/1.65 var(--f-body);
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--ink-text); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--night); }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--hl); color: var(--graphite); }

.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; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--night); color: #fff; padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--pencil); }
.small { font-size: var(--step--1); }

/* ---------- signature: grid paper ---------- */
.grid-paper {
  position: relative;
  isolation: isolate;
}
.grid-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 19px 19px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  opacity: .9;
  pointer-events: none;
}

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font: 700 var(--step--1)/1 var(--f-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-text);
  position: relative;
  padding: .45em .8em .4em;
  isolation: isolate;
}
.eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tint);
  border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 6px;
  transform: skewX(var(--slant));
}
.display-2 { font-size: var(--step-4); }
.display-3 { font-size: var(--step-3); margin-bottom: .6em; }
.lead { font-size: var(--step-1); line-height: 1.55; color: #3b3e48; max-width: 62ch; }

mark.hl {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%);
  padding-inline: .08em;
}

/* hand-drawn ink */
.ink-word { position: relative; display: inline-block; white-space: nowrap; color: var(--ink); }
.ink-circle {
  position: absolute;
  left: -9%;
  top: -18%;
  width: 118%;
  height: 140%;
  overflow: visible;
  pointer-events: none;
}
.ink-circle path, .ink-underline path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.js .ink-circle path { stroke-dashoffset: 1; animation: ink-draw 1.3s .55s var(--ease) forwards; }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  --bd: var(--ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 48px;
  padding: .75em 1.35em;
  font: 700 var(--step-0)/1.1 var(--f-body);
  color: var(--fg);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  transition: color .2s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  border: 2px solid var(--bd);
  border-radius: 10px;
  transform: skewX(var(--slant));
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
}
.btn svg { transition: transform .25s var(--ease); flex: none; }
.btn:hover { color: var(--fg); }
.btn:hover::before { transform: skewX(var(--slant)) translate(-2px, -2px); box-shadow: 4px 4px 0 var(--night); }
.btn:hover svg { transform: translateX(3px); }
.btn:active::before { transform: skewX(var(--slant)); box-shadow: none; }
.btn--ghost { --bg: transparent; --fg: var(--graphite); --bd: var(--graphite); }
.btn--ghost:hover { --bg: #fff; }
.btn--light { --bg: #fff; --fg: var(--night); --bd: #fff; }
.btn--light:hover::before { box-shadow: 4px 4px 0 var(--hl); }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .7); }
.btn--ghost-light:hover::before { box-shadow: 4px 4px 0 var(--hl); }
.btn--sm { min-height: 40px; padding: .5em 1.05em; font-size: var(--step--1); }
.btn--copy { --bg: var(--ink); min-height: 44px; font-size: var(--step--1); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(252 252 250 / .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
          backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(14 24 70 / .5); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { text-decoration: none; margin-right: auto; }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__main {
  display: inline-block;
  font: 800 1.42rem/1 var(--f-display);
  transform: skewX(var(--slant));
  transform-origin: left bottom;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark__sub {
  margin-top: .3rem;
  font: 600 .7rem/1 var(--f-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pencil);
}

.nav__list { display: flex; gap: .25rem; }
.nav__list a {
  display: block;
  padding: .55rem .8rem;
  font-weight: 600;
  font-size: .98rem;
  color: var(--graphite);
  text-decoration: none;
  border-radius: 8px;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .3rem;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0) skewX(var(--slant));
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1) skewX(var(--slant)); }
.nav__list a[aria-current="page"] { color: var(--ink-text); }

.site-header__tools { display: flex; align-items: center; gap: .6rem; }
.lang {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font: 700 .85rem/1 var(--f-body);
  letter-spacing: .06em;
  color: var(--graphite);
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: border-color .2s, background .2s;
}
.lang:hover { border-color: var(--ink); background: #fff; color: var(--ink-text); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; margin-inline: auto; background: var(--graphite); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav { position: absolute; inset: 100% 0 auto; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgb(14 24 70 / .35);
    display: none;
  }
  .nav__list.is-open { display: flex; animation: drop .3s var(--ease); }
  .nav__list a { padding: .95rem 0; font: 700 var(--step-2)/1.1 var(--f-display); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a::after { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; max-width: var(--wrap); }
.section-head .display-3 { margin-bottom: .35em; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 5vw, 5rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-size: var(--step-5);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.022em;
  margin-bottom: 1.6rem;
  font-variation-settings: "opsz" 96;
}
.hero__lead { margin-bottom: 2rem; }
.hero__lead strong { color: var(--graphite); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }

.hero__media { position: relative; aspect-ratio: 1 / 1.02; }
.snap {
  position: absolute;
  background: #fff;
  padding: 10px 10px 12px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.snap img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.snap::before { /* tape */
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 84px; height: 24px;
  translate: -50% 0;
  background: color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: 2px;
  rotate: -4deg;
}
.snap--1 { width: 47%; aspect-ratio: 3 / 4; left: 0; top: 14%; rotate: -5deg; z-index: 2; }
.snap--2 { width: 58%; aspect-ratio: 4 / 3; right: 0; top: 0; rotate: 3.5deg; }
.snap--3 { width: 46%; aspect-ratio: 4 / 3.3; right: 6%; bottom: 0; rotate: -2deg; z-index: 3; }
.js .snap { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .9s var(--ease); }
.js .is-loaded .snap { opacity: 1; translate: 0 0; }
.js .is-loaded .snap--2 { transition-delay: .12s; }
.js .is-loaded .snap--3 { transition-delay: .24s; }

/* timetable card */
.timetable {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: #fff;
  border: 2px solid var(--graphite);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.timetable__title {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.4rem;
  font: 700 var(--step-0)/1.2 var(--f-body);
  letter-spacing: 0;
  background: var(--graphite);
  color: #fff;
}
.timetable__title span {
  display: inline-block;
  font: 800 var(--step-1)/1 var(--f-display);
  transform: skewX(var(--slant));
  color: var(--hl);
}
.timetable__grid { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; }
.timetable__grid > div { padding: 1.2rem 1.4rem 1.4rem; border-left: 1.5px solid var(--grid); }
.timetable__grid > div:first-child { border-left: 0; }
.timetable dt { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pencil); margin-bottom: .55rem; }
.timetable dd { margin: 0; font: 750 var(--step-1)/1.15 var(--f-display); color: var(--graphite); }
.timetable dd small { display: block; margin-top: .3rem; font: 500 var(--step--1)/1.3 var(--f-body); color: var(--pencil); }

/* ---------- mission ---------- */
.mission .display-2, .mission__cols { max-width: 1100px; }
.mission .display-2 { max-width: 20ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.mission__cols { columns: 2 340px; column-gap: clamp(2rem, 5vw, 4rem); font-size: var(--step-1); line-height: 1.6; color: #3b3e48; }
.mission__cols p { break-inside: avoid; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.pillar { background: #fff; border-radius: var(--radius-lg); padding: 10px 10px 1.6rem; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.pillar:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 2px 4px rgb(14 24 70 / .06), 0 24px 40px -18px rgb(14 24 70 / .3); }
.pillar__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius-lg) - 8px); margin-bottom: 1.25rem; }
.pillar__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.pillar:hover .pillar__img img { scale: 1.04; }
.pillar__title { font-size: var(--step-2); margin: 0 .9rem .5rem; }
.pillar p { margin: 0 .9rem; color: #4a4d57; }

/* ---------- path (signature) ---------- */
.path-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.path-head { position: sticky; top: 120px; margin-bottom: 0; }
.path-head .muted { margin-bottom: 1.75rem; }
.path { position: relative; padding-left: 64px; }
.path__line { position: absolute; left: 4px; top: 10px; bottom: 10px; width: 40px; height: calc(100% - 20px); overflow: visible; }
.path__line path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--p, 1));
}
.path__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3.25rem); counter-reset: step; }
.path__step { position: relative; counter-increment: step; background: rgb(252 252 250 / .92); padding: 1.4rem 1.6rem; border-radius: var(--radius); border: 1.5px solid var(--grid); }
.path__dot {
  position: absolute;
  left: -64px; top: 1.3rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font: 800 1.15rem/1 var(--f-display);
  color: var(--ink);
  transition: background .4s, color .4s;
}
.path__dot::before { content: counter(step); }
.path__step.is-in .path__dot { background: var(--ink); color: #fff; }
.path__step:last-child .path__dot { background: var(--hl); color: var(--graphite); border-color: var(--graphite); }
.path__title { font-size: var(--step-2); margin-bottom: .45rem; }
.path__step p { color: #4a4d57; }

/* ---------- marquee ---------- */
.strip-section { padding-bottom: clamp(3rem, 5vw, 5rem); overflow: hidden; }
.marquee { margin-top: .5rem; padding-block: 18px 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li { flex: none; }
.marquee li:nth-child(odd) { rotate: -1.2deg; }
.marquee li:nth-child(even) { rotate: 1deg; translate: 0 10px; }
.marquee img { height: clamp(170px, 18vw, 250px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 6px solid #fff; box-shadow: var(--shadow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split--reverse .split__text { order: 2; }
.split--faq { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.prose p { max-width: 64ch; }
.prose h2:not(.display-3) { font-size: var(--step-2); margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }

.framed { background: #fff; padding: 10px; border-radius: var(--radius-lg); box-shadow: var(--shadow); rotate: 1.2deg; }
.framed img { border-radius: calc(var(--radius-lg) - 8px); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed figcaption { padding: .8rem .5rem .25rem; font-size: var(--step--1); color: var(--pencil); }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage figure { background: #fff; padding: 8px; border-radius: var(--radius); box-shadow: var(--shadow); }
.collage figure:first-child { rotate: -2deg; margin-top: 2.5rem; }
.collage figure:last-child { rotate: 1.8deg; }
.collage img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; width: 100%; }

.ratio-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.8rem 1.6rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.ratio-card::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .1) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .1) 1px, transparent 1px); background-size: 19px 19px; pointer-events: none; }
.ratio-card__num { display: flex; align-items: baseline; gap: .3em; font: 800 var(--step-5)/.9 var(--f-display); letter-spacing: -0.04em; margin-bottom: .7rem; }
.ratio-card__plus { color: var(--hl); }
.ratio-card__label { font-weight: 600; max-width: 26ch; }

.schools { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; }
.schools__title { font-size: var(--step-1); margin-bottom: 1rem; }
.schools__list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.schools__list li { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; background: var(--tint); border-radius: 999px; font-weight: 600; font-size: .95rem; }
.schools__list svg { color: var(--ink); }
.schools__note { font-size: var(--step--1); color: var(--pencil); }

/* ---------- donate band ---------- */
.donate { background: var(--night); color: #e8ecfb; position: relative; isolation: isolate; overflow: hidden; }
.donate::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 19px 19px; }
.donate::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgb(51 102 255 / .55), transparent); }
.donate__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.donate .eyebrow { color: #fff; }
.donate .eyebrow::before { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .3); }
.donate h2 { color: #fff; }
.donate a { color: #fff; }
.donate__more a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }

.iban { background: #fff; border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.iban--dark { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .18); box-shadow: none; color: #fff; }
.iban__label { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pencil); margin-bottom: .6rem; }
.iban--dark .iban__label { color: #aeb9e8; }
.iban__holder { font-weight: 600; margin-bottom: .4rem; }
.iban__number { font: 750 clamp(1.15rem, 1rem + 1vw, 1.6rem)/1.2 var(--f-display); letter-spacing: .02em; margin-bottom: 1.2rem; word-spacing: .12em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq__item { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--tint); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font: 700 var(--step-1)/1.3 var(--f-display);
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--tint);
  transition: rotate .3s var(--ease);
}
.faq__item[open] summary::after { rotate: 45deg; }
.faq__a { padding: 0 1.3rem 1.25rem; color: #3b3e48; max-width: 70ch; }

/* ---------- supporters ---------- */
.supporters { padding-block: clamp(3rem, 5vw, 4.5rem); }
.supporters__title { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pencil); margin-bottom: 1.5rem; text-align: center; }
.supporters__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.supporters__list li { display: flex; flex-direction: column; gap: .15rem; padding: 1.3rem 1.4rem; background: #fff; border-radius: var(--radius); border: 1.5px solid var(--line); }
.supporters__list strong { font: 750 var(--step-1)/1.2 var(--f-display); }
.supporters__list span { font-weight: 600; }
.supporters__list small { color: var(--pencil); font-size: var(--step--1); }

/* ---------- page head ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-head__title { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.022em; line-height: .98; max-width: 16ch; margin-bottom: 1.4rem; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; background: #fff; border-radius: var(--radius-lg); border: 1.5px solid var(--line); overflow: hidden; }
.facts > div { padding: 1.3rem 1.6rem; border-bottom: 1.5px solid var(--grid); }
.facts > div:nth-child(odd) { border-right: 1.5px solid var(--grid); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-text); margin-bottom: .5rem; }
.facts dd { margin: 0; font-weight: 500; }

/* admission steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); counter-reset: s; margin-bottom: 2rem; }
.steps__item { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.6rem 1.8rem; position: relative; }
.steps__n { display: inline-block; font: 800 4.2rem/1 var(--f-display); transform: skewX(var(--slant)); color: var(--ink); margin-bottom: .6rem; }
.steps__item h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.steps__item:not(:last-child)::after { content: ""; position: absolute; top: 3rem; right: -1.2rem; width: 1.6rem; height: 2px; background: var(--ink); z-index: 1; }
.note { padding: 1.1rem 1.4rem; background: #fff; border-left: 4px solid var(--hl); border-radius: 0 10px 10px 0; max-width: 760px; }

/* modules */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.module { position: relative; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; background: #fff; border-radius: var(--radius-lg); border: 2px solid var(--graphite); box-shadow: 6px 6px 0 var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.module:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.module__n { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pencil); }
.module__title { font-size: var(--step-2); }

/* people */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.person { display: flex; flex-direction: column; align-items: flex-start; }
.person__img { position: relative; width: 168px; margin-bottom: 1.5rem; }
.person__img::before { content: ""; position: absolute; inset: 0; translate: 10px 10px; border-radius: 22px; background: var(--ink); transform: skewX(var(--slant)); }
.person__img img { position: relative; width: 168px; height: 168px; object-fit: cover; border-radius: 20px; border: 3px solid #fff; filter: saturate(.9); }
.person__role { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-text); margin-bottom: .5rem; }
.person__name { font-size: var(--step-2); margin-bottom: .75rem; }
.person__bio { color: #3b3e48; }
.person__mail { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; font-weight: 700; }

/* gallery */
.gallery { padding-block: clamp(2rem, 4vw, 3rem) var(--section); }
.filters {
  position: sticky;
  top: 76px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
  background: rgb(252 252 250 / .92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.chip { min-height: 40px; padding: .4rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink-text); }
.chip.is-active { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.event { display: grid; grid-template-columns: minmax(0, .32fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1.5px solid var(--line); }
.event[hidden] { display: none; }
.event__head { position: sticky; top: 150px; align-self: start; }
.event__date { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-text); margin-bottom: .6rem; }
.event__title { font-size: var(--step-2); margin-bottom: .75rem; }
.event__text { color: #3b3e48; font-size: .98rem; }
.event__count { font-size: var(--step--1); color: var(--pencil); }
.event__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 10px; }
.g-item { display: block; position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease), filter .3s; }
.g-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--ink); transition: box-shadow .25s; }
.g-item:hover img { scale: 1.06; }
.g-item:hover::after, .g-item:focus-visible::after { box-shadow: inset 0 0 0 4px var(--ink); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 12 32 / .94); color: #fff; }
.lightbox::backdrop { background: rgb(8 12 32 / .7); }
.lightbox[open] { display: grid; place-items: center; animation: fade .25s; }
.lightbox__fig { display: grid; gap: .8rem; justify-items: center; padding: 64px 72px; max-height: 100dvh; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox__cap { font-weight: 600; color: #cfd6f3; text-align: center; }
.lightbox__btn { position: fixed; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox__btn:hover { background: var(--ink); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
@keyframes fade { from { opacity: 0; } }

/* funding timeline */
.timeline { display: grid; gap: 0; border-left: 3px solid var(--ink); margin-left: .5rem; max-width: 880px; }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -11px; top: .3rem; width: 19px; height: 19px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.timeline li:last-child::before { background: var(--hl); border-color: var(--graphite); }
.timeline__when { font: 750 var(--step-1)/1.1 var(--f-display); margin-bottom: .35rem; color: var(--ink-text); }
.ext { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }

/* press */
.press { display: grid; gap: 1.25rem; }
.press__item { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.press__meta { font-size: var(--step--1); color: var(--pencil); font-weight: 600; margin-bottom: .5rem; }
.press__title { font-size: var(--step-2); margin-bottom: .7rem; }
.factsheet { background: #fff; border: 2px solid var(--graphite); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; box-shadow: 6px 6px 0 var(--ink); margin-bottom: 1.5rem; }
.factsheet--contact { box-shadow: 6px 6px 0 var(--hl); }
.factsheet__title { font-size: var(--step-1); margin-bottom: 1rem; }
.factsheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-size: .95rem; }
.factsheet dt { font-weight: 700; color: var(--pencil); }
.factsheet dd { margin: 0; }

/* contact */
.contact-cards { display: grid; gap: 1rem; margin-bottom: 2rem; }
.contact-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.contact-card__role { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-text); margin-bottom: .5rem; }
.contact-card__name { font: 750 var(--step-2)/1.1 var(--f-display); margin-bottom: .6rem; }
.contact-card__mail { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; word-break: break-all; }
.audience { display: grid; gap: .75rem; }
.audience li { padding-left: 1.4rem; position: relative; }
.audience li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--ink); transform: skewX(var(--slant)); }
.address-card { background: var(--tint); border-radius: var(--radius-lg); padding: 1.6rem; margin-bottom: 1.5rem; }
.address-card__label { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pencil); margin-bottom: .7rem; }
.address-card__lines { font: 700 var(--step-1)/1.4 var(--f-display); }

/* cta band */
.cta-band { background: var(--ink); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); position: relative; isolation: isolate; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / .1) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .1) 1px, transparent 1px); background-size: 19px 19px; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band__title { font-size: var(--step-3); margin-bottom: .5rem; }
.cta-band p { max-width: 52ch; color: #e6ebff; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* legal */
.legal h2 { font-size: var(--step-1); }

/* 404 */
.notfound { min-height: 60vh; }
.notfound__code { display: inline-block; font: 800 clamp(6rem, 20vw, 14rem)/.9 var(--f-display); transform: skewX(var(--slant)); color: var(--ink); margin-bottom: 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #c9d1f0; padding-top: clamp(3.5rem, 6vw, 5.5rem); font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--hl); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer .wordmark__main { color: #fff; font-size: 1.6rem; }
.site-footer .wordmark__sub { color: #aeb9e8; }
.site-footer__claim { margin-top: 1.2rem; font: 700 var(--step-1)/1.3 var(--f-display); color: #fff; max-width: 26ch; }
.site-footer__h { font: 700 var(--step--1)/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #8f9bd0; margin-bottom: 1rem; }
.site-footer__list { display: grid; gap: .45rem; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__addr { margin-bottom: .8rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; padding-block: 1.5rem 2rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: var(--step--1); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.credit { margin-left: auto !important; color: #8f9bd0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; translate: -50% 140%; padding: .8rem 1.3rem; border-radius: 999px; background: var(--graphite); color: #fff; font-weight: 700; box-shadow: var(--shadow); transition: translate .35s var(--ease), opacity .35s, visibility .35s; pointer-events: none; opacity: 0; visibility: hidden; }
.toast.is-on { translate: -50% 0; opacity: 1; visibility: visible; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .8s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .timetable__grid { grid-template-columns: repeat(3, 1fr); }
  .timetable__grid > div:nth-child(4) { border-left: 0; }
  .timetable__grid > div:nth-child(n+4) { border-top: 1.5px solid var(--grid); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__inner, .split, .split--faq, .path-wrap, .donate__inner, .event { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .hero__media { max-width: 520px; width: 100%; margin-inline: auto; }
  .path-head, .event__head { position: static; }
  .people, .steps, .supporters__list { grid-template-columns: 1fr; }
  .steps__item:not(:last-child)::after { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd) { border-right: 0; }
  .facts > div:nth-last-child(2) { border-bottom: 1.5px solid var(--grid); }
}
@media (max-width: 600px) {
  .pillars, .modules { grid-template-columns: 1fr; }
  .timetable__grid { grid-template-columns: 1fr 1fr; }
  .timetable__grid > div { border-left: 0; border-top: 1.5px solid var(--grid); }
  .timetable__grid > div:nth-child(odd) { border-right: 1.5px solid var(--grid); }
  .timetable__grid > div:first-child, .timetable__grid > div:nth-child(2) { border-top: 0; }
  .timetable__grid > div:last-child { grid-column: 1 / -1; border-right: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .credit { margin-left: 0 !important; }
  .lang { width: 40px; height: 40px; }
  .wordmark__main { font-size: 1.2rem; }
  .lightbox__fig { padding: 64px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track li:nth-child(n+13) { display: none; }
  .js .reveal, .js .snap { opacity: 1; translate: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .marquee, .filters, .toast, .btn { display: none !important; }
  .grid-paper::before { display: none; }
  body { background: #fff; }
}

[translate="no"] { white-space: nowrap; }
.eyebrow { line-height: 1.35; }
@media (max-width: 600px) { .page-head__title, .hero__title, .display-2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; } }
