/* =====================================================================
   UFDA design system
   One file shared by every page. Page-specific styles live in
   assets/css/home.css and assets/css/pages/{page}.css.

   Rules (keep them):
   - Accent: flag yellow only. Red appears only inside the tri-stripe.
   - Radius: interactive controls are pills (--pill); media and panels use --radius (6px). Nothing else.
   - Display type: Archivo condensed (font-stretch 68%), uppercase, heavy. Body: Archivo normal width.
   - Mono (JetBrains Mono) is for dates, numbers and match data only.
   - Motion is added by assets/js/main.js only when html has .motion (JS on, no reduced-motion).
   - z-index scale: header 50, menu 60, intro 100, skip-link 110.
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-wdth-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-wdth-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono.woff2") format("woff2-variations");
}

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --flag-black: #121311;
  --flag-yellow: #ffcd00;
  --flag-red: #d7261e;

  --bg: #f3f3f0;
  --bg-2: #e9e9e4;
  --surface: #fbfbf9;
  --ink: #121311;
  --ink-2: #3f403b;
  --muted: #62635c;
  --line: rgb(18 19 17 / 0.13);
  --line-strong: rgb(18 19 17 / 0.28);
  --accent: #ffcd00;
  --accent-ink: #121311;
  --accent-text: #7a5e00;
  --stripe-1: #121311;
  --on-media: #f4f4f0;
  --scrim: rgb(10 11 9 / 0.62);
  --shadow: 0 24px 60px -28px rgb(34 36 22 / 0.35);

  --radius: 6px;
  --pill: 999px;
  --wrap: 1400px;
  /* Safe-area insets are 0 in a normal browser tab. They only take effect on notched phones when the page
     is drawn edge to edge (viewport-fit=cover) or installed as an app; --gutter then keeps every
     .wrap, the header, the menu and the intro buttons clear of the notch and rounded corners. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section: clamp(88px, 11vw, 168px);
  --header-h: calc(72px + var(--safe-top));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 5.25rem);
  --step-5: clamp(3.25rem, 2rem + 6.6vw, 9.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0e0c;
    --bg-2: #151613;
    --surface: #1b1c19;
    --ink: #f1f1ec;
    --ink-2: #cfd0c8;
    --muted: #a2a39a;
    --line: rgb(241 241 236 / 0.12);
    --line-strong: rgb(241 241 236 / 0.3);
    --accent-text: #ffcd00;
    --stripe-1: #f1f1ec;
    --shadow: 0 24px 60px -28px rgb(0 0 0 / 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0e0c;
  --bg-2: #151613;
  --surface: #1b1c19;
  --ink: #f1f1ec;
  --ink-2: #cfd0c8;
  --muted: #a2a39a;
  --line: rgb(241 241 236 / 0.12);
  --line-strong: rgb(241 241 236 / 0.3);
  --accent-text: #ffcd00;
  --stripe-1: #f1f1ec;
  --shadow: 0 24px 60px -28px rgb(0 0 0 / 0.7);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps a focused field, an error summary or an in-page jump clear of the fixed header. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
/* :where() keeps this reset at zero specificity, so any single class can still set its own list padding. */
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.skip-link {
  position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); top: -60px; z-index: 110;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: var(--pill); font-weight: 650;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: max(12px, var(--safe-top)); }

/* ------------------------------------------------------------------ type */
/* word-spacing: the condensed face has a very narrow space, so two-word titles would read as one word. */
.display, .h1, .h2 {
  font-weight: 860;
  font-stretch: 68%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  word-spacing: 0.14em;
  text-wrap: balance;
}
.display { font-size: var(--step-5); line-height: 0.86; }
.h1 { font-size: clamp(3rem, 1.9rem + 5.4vw, 7.5rem); line-height: 0.88; }
.h2 { font-size: var(--step-4); line-height: 0.9; }
.h3 { font-size: var(--step-2); line-height: 1.15; font-weight: 700; font-stretch: 88%; letter-spacing: -0.01em; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--accent-text); padding-right: 0.04em; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.body-copy { color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
/* Small label above a headline. Budget: at most one per three sections. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: linear-gradient(90deg, var(--stripe-1) 0 33.3%, var(--flag-yellow) 0 66.6%, var(--flag-red) 0); }

.prose { color: var(--ink-2); max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: var(--ink); font-weight: 750; font-stretch: 85%; line-height: 1.15; margin-top: 1.8em; }
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent-text); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-text); }
.prose strong { color: var(--ink); font-weight: 680; }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 980px; }
.section-head .body-copy, .section-head .lead { max-width: 58ch; }
.stack { display: grid; gap: var(--stack, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--row, 12px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------------ brand marks */
/* Diagonal flag sash, taken from the national team jersey. Decorative, aria-hidden. */
.sash {
  position: absolute;
  height: clamp(36px, 5vw, 64px);
  width: 160%;
  background: linear-gradient(180deg, var(--flag-black) 0 33.4%, var(--flag-yellow) 0 66.7%, var(--flag-red) 0);
  transform-origin: left center;
  pointer-events: none;
}
.tri-rule { height: 6px; width: 72px; background: linear-gradient(90deg, var(--stripe-1) 0 33.3%, var(--flag-yellow) 0 66.6%, var(--flag-red) 0); border-radius: 1px; }

/* Temporary mark until the official logo arrives: a disc seen from above, in the flag rings. */
.disc-mark {
  width: var(--size, 34px); height: var(--size, 34px); border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--surface) 0 30%, var(--flag-red) 0 41%, var(--surface) 0 47%, var(--flag-yellow) 0 58%, var(--surface) 0 64%, var(--flag-black) 0 75%, var(--surface) 0 100%);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  --btn-fill: var(--accent);
  --btn-fill-fg: var(--accent-ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 8px 0 26px;
  border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-stretch: 92%; font-size: 1rem; letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); }
.btn:active { transform: scale(0.98); }
.btn__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--btn-fg); color: var(--btn-bg);
  transition: transform 0.45s var(--ease-out), background 0.35s, color 0.35s;
}
.btn:hover .btn__icon { transform: rotate(-45deg); background: var(--btn-fill-fg); color: var(--btn-fill); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-fill: var(--ink); --btn-fill-fg: var(--bg); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost .btn__icon { background: var(--ink); color: var(--bg); }
.btn--plain { padding: 0 26px; }
.on-media .btn--ghost { --btn-fg: var(--on-media); box-shadow: inset 0 0 0 1.5px rgb(244 244 240 / 0.55); }
.on-media .btn--ghost .btn__icon { background: var(--on-media); color: #121311; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-stretch: 92%;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.4s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow .icon { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); box-shadow: none; }

/* Filter toggles (events, gallery, schools). Use aria-pressed. */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px; padding: 0 18px; border-radius: var(--pill);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-weight: 600; font-stretch: 92%; font-size: 0.9375rem;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.filter:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: var(--pill);
  background: var(--bg-2); color: var(--ink-2);
  font-size: 0.8125rem; font-weight: 600; font-stretch: 92%;
}
.chip--accent { background: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------------------ media */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--zoom > img { transition: transform 1.1s var(--ease-out); }
a:hover .media--zoom > img, .media--zoom:hover > img { transform: scale(1.045); }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: transform 0.5s var(--ease-out), background 0.4s, color 0.4s, box-shadow 0.4s;
}
.site-header__inner { height: 100%; padding-top: var(--safe-top); display: flex; align-items: center; gap: 28px; }
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
html[data-header="overlay"] .site-header:not(.is-solid) { color: var(--on-media); }
html[data-header="overlay"] .site-header:not(.is-solid) .icon-btn { box-shadow: inset 0 0 0 1.5px rgb(244 244 240 / 0.45); }
html[data-header="overlay"] .site-header:not(.is-solid) .icon-btn:hover { background: var(--on-media); color: #121311; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 880; font-stretch: 70%; font-size: 1.5rem; letter-spacing: 0.01em; line-height: 1; flex: none; }
/* The crane mark sits on a light disc so its black strokes read over photos and in dark mode. */
.brand__badge {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px; border-radius: 50%;
  background: #f6f6f2; box-shadow: inset 0 0 0 1px rgb(18 19 17 / 0.12);
  transition: transform 0.6s var(--ease-out);
}
.brand__badge img { height: 40px; width: auto; }
.brand:hover .brand__badge { transform: rotate(-12deg); }
.brand__name { display: grid; }
.brand__name small { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; font-stretch: 100%; margin-top: 3px; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 1.6vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 6px 0;
  font-weight: 600; font-stretch: 90%; font-size: 0.9688rem; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { height: 46px; padding-left: 20px; font-size: 0.9375rem; }
.header-actions .btn__icon { width: 32px; height: 32px; }
.menu-toggle { display: none; }

@media (max-width: 1180px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
/* 320px phones: brand (181px) + two 44px buttons need 339px at the default gaps. Tighten only the gaps so the
   menu button keeps its full gutter; the tagline stays. Below 320px (fold covers) it is dropped. */
@media (max-width: 359px) {
  .site-header__inner { gap: 12px; }
  .brand { gap: 8px; }
  .header-actions { gap: 6px; }
}
@media (max-width: 319px) {
  .brand__name small { display: none; }
}

/* Full-screen menu: opens as a circle from the menu button (the disc). */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg); color: var(--ink);
  display: grid; grid-template-rows: var(--header-h) 1fr auto;
  /* On a short screen (landscape phone, browser bars showing) the menu scrolls instead of cutting off links. */
  overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: var(--header-h);
  clip-path: circle(0 at var(--mx, calc(100% - 40px)) var(--my, 36px));
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
}
.menu.is-open { clip-path: circle(150% at var(--mx, calc(100% - 40px)) var(--my, 36px)); visibility: visible; transition: clip-path 0.8s var(--ease-in-out), visibility 0s; }
/* The top bar spans the whole grid so that it can stay pinned (position: sticky) while the links scroll under it. */
.menu__top {
  grid-area: 1 / 1 / 4 / 2; align-self: start; height: var(--header-h); padding-top: var(--safe-top);
  position: sticky; top: 0; z-index: 2; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
}
.menu > nav { grid-area: 2 / 1; }
.menu__links { align-self: center; display: grid; gap: 2px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(2.4rem, 9vw, 4.5rem); font-weight: 860; font-stretch: 68%; text-transform: uppercase; line-height: 1.02;
  word-spacing: 0.14em;
  transition: color 0.3s, transform 0.4s var(--ease-out);
}
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--accent-text); transform: translateX(8px); }
.menu__links .mono { color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.menu__foot { grid-area: 3 / 1; padding-block: 24px max(32px, var(--safe-bottom)); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.menu.is-open .menu__links li { animation: menu-in 0.7s var(--ease-out) both; animation-delay: calc(0.18s + var(--i) * 0.05s); }
@keyframes menu-in { from { opacity: 0; transform: translateY(28px); } }
/* Landscape phones: two columns of smaller links, so all nine links and the call to action fit in about 390px. */
@media (max-height: 560px) and (orientation: landscape) {
  .menu__links { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .menu__links a { align-items: center; min-height: 44px; font-size: clamp(1.75rem, 9vh, 2.5rem); line-height: 1.1; }
  .menu__foot { padding-block: 12px max(12px, var(--safe-bottom)); }
}

/* ------------------------------------------------------------------ inner page hero */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero__title { margin-top: 22px; }
.page-hero__lead { margin-top: 28px; }
.page-hero__media { margin-top: clamp(40px, 6vw, 80px); }
.page-hero__media .media { aspect-ratio: 21 / 9; }
@media (max-width: 767px) { .page-hero__media .media { aspect-ratio: 4 / 3; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); }
/* Touch target: the link text is 14px tall, so an invisible box grows the tap area to 44px without moving anything. */
.crumbs a { position: relative; }
.crumbs a::after { content: ""; position: absolute; inset: -15px -8px; }

/* ------------------------------------------------------------------ shared blocks */
/* Date block used in event rows and event pages. */
.date-block { display: grid; justify-items: start; line-height: 1; font-family: var(--font-mono); }
.date-block__day { font-family: var(--font-sans); font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 860; font-stretch: 68%; }
.date-block__month { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Event list row. Hovering shows the event photo next to the cursor (assets/js/main.js, [data-hover-reveal]). */
.event-list { border-top: 1px solid var(--line); }
.event-row {
  position: relative;
  display: grid; grid-template-columns: minmax(110px, 160px) 1fr auto; gap: clamp(16px, 3vw, 48px); align-items: center;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease-out);
}
.event-row__title { font-size: var(--step-3); font-weight: 820; font-stretch: 72%; text-transform: uppercase; line-height: 0.95; word-spacing: 0.14em; }
.event-row__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--muted); font-size: var(--step--1); }
.event-row__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-row__go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background 0.35s, color 0.35s, transform 0.5s var(--ease-out), box-shadow 0.35s; }
.event-row:hover .event-row__go { background: var(--accent); color: var(--accent-ink); box-shadow: none; transform: rotate(-45deg); }
.event-row:hover { padding-inline: 12px; }
@media (max-width: 767px) {
  .event-row { grid-template-columns: 1fr auto; }
  .event-row .date-block { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  .event-row .date-block__day { font-size: 1.75rem; }
  .event-row:hover { padding-inline: 0; }
}
.hover-reveal {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 300px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.85);
  box-shadow: var(--shadow);
}
.hover-reveal img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 900px) { .hover-reveal { display: none; } }

/* Card with media + text, used for programmes, schools and news. */
.card { position: relative; display: grid; gap: 18px; align-content: start; }
.card__title { font-size: var(--step-2); font-weight: 760; font-stretch: 82%; line-height: 1.1; }
.card__body { color: var(--ink-2); }
.card__link::after { content: ""; position: absolute; inset: 0; }

/* Partner call to action band. */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px); }
.cta-band .h2 { max-width: calc(14ch + 0.6em); } /* + 0.6em: room for the extra word spacing of .h2 */
.cta-band p { max-width: 46ch; margin-top: 22px; font-size: var(--step-1); }
.cta-band .btn { margin-top: 36px; --btn-bg: var(--flag-black); --btn-fg: #f3f3f0; --btn-fill: #f3f3f0; --btn-fill-fg: var(--flag-black); }
.cta-band .btn__icon { background: #f3f3f0; color: var(--flag-black); }

.empty-state { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); display: grid; gap: 12px; justify-items: start; color: var(--ink-2); }
.empty-state .icon { width: 32px; height: 32px; color: var(--accent-text); }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 8px; }
.field label { font-weight: 620; font-size: 0.9375rem; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 160px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.help { font-size: var(--step--1); color: var(--muted); }
.error-text { font-size: var(--step--1); color: #b3261e; font-weight: 600; }
:root[data-theme="dark"] .error-text { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error-text { color: #ff8a80; } }
.notice { padding: 16px 18px; border-radius: var(--radius); background: var(--bg-2); border-left: 4px solid var(--accent); }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; overflow: hidden; background: var(--bg-2); padding-top: clamp(72px, 9vw, 128px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px 32px; }
.footer-grid h2 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a:hover { color: var(--accent-text); }
/* Phones and touch screens: text links get a 44px row (the social .icon-btn and the .link-arrow keep their own size). */
@media (pointer: coarse), (max-width: 767px) {
  .footer-grid .list li + li { margin-top: 0; }
  .footer-grid .list li > a:not(.link-arrow):not(.icon-btn) { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-grid .list li:has(> .link-arrow) { margin-top: 8px; }
}
.footer-statement { font-size: var(--step-2); font-weight: 720; font-stretch: 84%; line-height: 1.15; max-width: 22ch; }
.footer-social { display: flex; gap: 8px; margin-top: 28px; }
.footer-word {
  margin-top: clamp(56px, 8vw, 120px);
  font-size: clamp(6rem, 31vw, 30rem); font-weight: 900; font-stretch: 62%; line-height: 0.74;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--ink); opacity: 0.94;
  white-space: nowrap; user-select: none;
  transform: translateY(14%);
}
.footer-base { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 28px max(28px, var(--safe-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ intro overlay (home only) */
.intro { display: none; }
/* The intro always plays on a dark stage (the disc is white), then opens into the site in either theme. */
html.intro-pending .intro {
  display: block;
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(120% 90% at 50% 80%, #181916 0%, #0d0e0c 62%);
  color: #f1f1ec;
  -webkit-mask: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--ir, 0px), #000 calc(var(--ir, 0px) + 1px));
  mask: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--ir, 0px), #000 calc(var(--ir, 0px) + 1px));
}
html.intro-pending body { overflow: hidden; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__caption {
  position: absolute; left: var(--gutter); bottom: max(32px, var(--safe-bottom));
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a2a39a;
  animation: intro-caption 0.8s 0.15s both;
}
@keyframes intro-caption { from { opacity: 0; transform: translateY(8px); } }
.intro__skip {
  position: absolute; right: var(--gutter); bottom: max(22px, var(--safe-bottom));
  height: 40px; padding: 0 18px; border-radius: var(--pill);
  box-shadow: inset 0 0 0 1.5px rgb(241 241 236 / 0.35);
  font-weight: 600; font-size: 0.875rem; color: #f1f1ec;
}
.intro__skip:hover { background: #f1f1ec; color: #0d0e0c; }
@media (pointer: coarse), (max-width: 420px) { .intro__skip { height: 44px; } }
/* Narrow phones: the one-line caption would run under the Skip button, so it wraps in the space beside it,
   centred on the button (button 44px tall, bottom 22px; caption two lines of 18px). */
@media (max-width: 420px) {
  .intro__caption { max-width: calc(100% - 2 * var(--gutter) - 112px); line-height: 1.5; bottom: max(26px, calc(var(--safe-bottom) + 4px)); }
}

/* Short entrance on inner pages: the same white disc (CSS only, no 3D) spins in, is caught, and opens the page.
   Ring radii match the 3D disc face: black, yellow, red, then a fine line around the crest. */
.intro__disc {
  --d: min(40vmin, 300px);
  position: absolute; left: 50%; top: 50%;
  width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    #f6f6f2 0 63.5%, #121311 63.5% 64.7%, #f6f6f2 64.7% 66.9%, #d7261e 66.9% 70.8%, #f6f6f2 70.8% 72.5%,
    #ffcd00 72.5% 76.4%, #f6f6f2 76.4% 78.2%, #121311 78.2% 82.6%, #f6f6f2 82.6% 97%, #d9d9d3 97% 100%, transparent 100%);
  box-shadow: 0 40px 70px -30px rgb(0 0 0 / 0.75), inset 0 -8px 18px rgb(0 0 0 / 0.14), inset 0 6px 12px rgb(255 255 255 / 0.7);
  transform: translate3d(-70vw, 30vh, 0) scale(0.5);
  will-change: transform;
}
.intro__disc img { height: 48%; width: auto; }

/* ------------------------------------------------------------------ motion hooks */
/* Content is only hidden for animation when main.js confirms motion is allowed. */
html.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
html.motion [data-reveal="fade"] { transform: none; }
html.motion [data-split] { visibility: hidden; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split-line > * { display: inline-block; }

/* Page-to-page transition: the new page opens as a growing disc from where you clicked (Chromium). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-hold 0.75s linear both; }
::view-transition-new(root) { animation: vt-disc 0.75s var(--ease-in-out) both; }
@keyframes vt-hold { to { opacity: 1; } }
@keyframes vt-disc {
  from { clip-path: circle(0% at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to { clip-path: circle(150% at var(--vt-x, 50%) var(--vt-y, 50%)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
