/* VCG website – design system
   One typeface (Lato, SIL Open Font License, self-hosted), navy as primary,
   orange as a single accent (underline, focus ring, small details), calm editorial layout. */

/* ---------- Fonts ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-ext-400-normal.woff2") format("woff2"); 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: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lato-latin-ext-400-italic.woff2") format("woff2"); 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: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-latin-ext-700-normal.woff2") format("woff2"); 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: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-latin-ext-900-normal.woff2") format("woff2"); 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; }

/* ---------- Tokens ---------- */
:root {
  --navy: #213B77;
  --navy-deep: #0F1E45;
  --navy-tint: #E8ECF5;
  --orange: #ED7D31;
  --orange-ink: #B4561A;      /* orange dark enough for text/lines on light (AA for large UI) */
  --ivory: #F7F5F0;
  --white: #FFFFFF;
  --ink: #14181F;
  --stone: #5B6271;           /* secondary text, AA on ivory and white */
  --line: rgba(20, 24, 31, .12);
  --line-light: rgba(255, 255, 255, .18);
  --error: #B42318;
  --success: #1E6B45;

  --font: "Lato", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .9375rem;   /* 15 */
  --fs-md: 1rem;       /* 16 */
  --fs-lg: 1.1875rem;  /* 19 */
  --fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);

  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 6.5rem;
  --radius: 4px;
  --container: 72rem;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Semantic colours (light). Components use only these; dark mode swaps them below. */
  --bg: var(--ivory);              /* page background, recessed fields */
  --surface: var(--white);         /* cards, forms, white sections */
  --tint: var(--navy-tint);        /* chips, hover fills, selected choices */
  --text: var(--ink);
  --muted: var(--stone);
  --heading: var(--navy-deep);
  --accent: var(--navy);           /* links, eyebrows, lines, outlines */
  --accent-soft: rgba(33, 59, 119, .32);
  --accent-mid: rgba(33, 59, 119, .45);
  --primary: var(--navy);          /* primary button fill */
  --primary-hover: var(--navy-deep);
  --light-btn-hover: var(--navy-tint); /* hover of the white button on dark images; stays light in every mode */
  --on-primary: var(--white);
  --band: var(--navy-deep);        /* footer, mobile menu */
  --band-accent: var(--navy);      /* navy feature sections */
  --header-bg: rgba(247, 245, 240, .5);
  --field-line: rgba(20, 24, 31, .25);
  --error-bg: #FCEDEB;
  --success-bg: #E9F5EE;
  --note-bg: #FFF7F1;
  --logo-chip: transparent;        /* behind logos: white plate in dark mode so dark logos stay visible */
  --logo-pad: 0;
  color-scheme: light;
}

/* Dark mode: chosen in the header (data-theme="dark"), or by the system setting while "System" is selected (no data-theme). */
:root[data-theme="dark"] {
  /* Dark mode: the logo blue #213B77 (also the theme colour of vcg-ev.de), darkened: cards ~#14244C, page #0B1530, footer #070E22. Same hue as the logo. */
  --bg: #0B1530;
  --surface: #14244C;
  --tint: #1E3466;
  --text: #EEF1F8;
  --muted: #B9C3DA;
  --heading: #FFFFFF;
  --accent: #AFC4F4;
  --accent-soft: rgba(175, 196, 244, .35);
  --accent-mid: rgba(175, 196, 244, .6);
  --primary: #FFFFFF;
  --primary-hover: #E8ECF5;
  --light-btn-hover: #DCE3F2;
  --on-primary: #0F1E45;
  --band: #070E22;
  --band-accent: #070E22;
  --header-bg: rgba(11, 21, 48, .5);
  --line: rgba(255, 255, 255, .14);
  --field-line: rgba(255, 255, 255, .32);
  --orange-ink: #F5A46E;
  --error: #FF9F93;
  --success: #86D9AA;
  --error-bg: rgba(255, 120, 100, .14);
  --success-bg: rgba(110, 210, 150, .14);
  --note-bg: rgba(237, 125, 49, .14);
  --logo-chip: #FFFFFF;
  --logo-pad: .35rem .5rem;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Dark mode: the logo blue #213B77 (also the theme colour of vcg-ev.de), darkened: cards ~#14244C, page #0B1530, footer #070E22. Same hue as the logo. */
    --bg: #0B1530;
    --surface: #14244C;
    --tint: #1E3466;
    --text: #EEF1F8;
    --muted: #B9C3DA;
    --heading: #FFFFFF;
    --accent: #AFC4F4;
    --accent-soft: rgba(175, 196, 244, .35);
    --accent-mid: rgba(175, 196, 244, .6);
    --primary: #FFFFFF;
    --primary-hover: #E8ECF5;
    --light-btn-hover: #DCE3F2;
    --on-primary: #0F1E45;
    --band: #070E22;
    --band-accent: #070E22;
    --header-bg: rgba(11, 21, 48, .5);
    --line: rgba(255, 255, 255, .14);
    --field-line: rgba(255, 255, 255, .32);
    --orange-ink: #F5A46E;
    --error: #FF9F93;
    --success: #86D9AA;
    --error-bg: rgba(255, 120, 100, .14);
    --success-bg: rgba(110, 210, 150, .14);
    --note-bg: rgba(237, 125, 49, .14);
    --logo-chip: #FFFFFF;
    --logo-pad: .35rem .5rem;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md)/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; color: var(--heading); }
h1 { font-size: var(--fs-3xl); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: var(--s2); }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
mark { background: linear-gradient(transparent 60%, rgba(237, 125, 49, .28) 60%); color: inherit; padding: 0 .1em; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }
ul.plain { list-style: none; margin: 0; padding: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--primary); color: var(--on-primary); padding: .75rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px)); }
@media (min-width: 48rem) { .container { padding-inline: 2rem; } }

.eyebrow, .micro-label {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: var(--s2); }
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--orange); }
.eyebrow--light { color: var(--white); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 42rem; }
.fineprint { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s2); }
.subhead { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: var(--s5) 0 var(--s2); }
.placeholder {
  display: inline; background: repeating-linear-gradient(-45deg, rgba(237,125,49,.12) 0 6px, rgba(237,125,49,.04) 6px 12px);
  color: var(--orange-ink); font-weight: 700; padding: .05em .35em; border-radius: 2px; border: 1px dashed rgba(180, 86, 26, .5);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 2px; border: 1px solid transparent;
  font: 700 var(--fs-sm)/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--tint); }
.btn--light { background: var(--white); color: var(--navy-deep); }
.btn--light:hover { background: var(--light-btn-hover); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent); text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 2px; }
.text-link .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--s3);
  max-width: var(--container); margin-inline: auto; height: var(--header-h);
  padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) { .site-header__inner { padding-inline: 2rem; } }
.site-header__logo { display: block; flex: none; }
.site-header__logo img { height: 48px; width: auto; }
.logo--white { display: none; }
:root[data-theme="dark"] .logo--color { display: none; }
:root[data-theme="dark"] .logo--white { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--color { display: none; }
  :root:not([data-theme="light"]) .logo--white { display: block; }
}

/* Colour scheme button: one button that cycles System -> Light -> Dark -> System and shows the icon of the
   current mode. Hidden without JavaScript: then the system setting applies. */
.theme-toggle {
  display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.js .theme-toggle { display: inline-grid; }
.theme-toggle .icon { width: 20px; height: 20px; grid-area: 1 / 1; display: none; }
.theme-toggle[data-mode="system"] .theme-toggle__system,
.theme-toggle[data-mode="light"] .theme-toggle__light,
.theme-toggle[data-mode="dark"] .theme-toggle__dark { display: block; }
.theme-toggle:hover { background: var(--tint); border-color: var(--accent-soft); }
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle .icon { animation: theme-icon-in .25s var(--ease); }
}
@keyframes theme-icon-in { from { opacity: 0; transform: rotate(-60deg) scale(.6); } to { opacity: 1; transform: none; } }
.js .site-header--overlay:not(.is-solid) .theme-toggle { color: var(--white); border-color: rgba(255,255,255,.35); }
.js .site-header--overlay:not(.is-solid) .theme-toggle:hover { background: rgba(255,255,255,.14); }
body.menu-open .theme-toggle { visibility: hidden; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.site-nav a, .mobile-menu__list a { text-decoration: none; }
.site-nav a {
  color: var(--text); font-weight: 700; font-size: var(--fs-sm); padding: .5rem 0; position: relative;
}
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__tools { display: flex; align-items: center; gap: var(--s2); }
.site-header__cta { min-height: 42px; padding: .6rem 1rem; white-space: nowrap; }
/* Between the mobile menu and wide screens the header gets tighter so the colour scheme switch fits. */
@media (min-width: 60.0625rem) and (max-width: 75rem) {
  .site-nav__list { gap: var(--s2); }
  .site-header__tools { gap: .75rem; }
}

.lang-switch { display: flex; align-items: center; gap: .35rem; font-size: var(--fs-sm); }
.lang-switch__item { color: var(--muted); text-decoration: none; font-weight: 400; padding: .25rem .1rem; }
.lang-switch__item.is-active { color: var(--text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--orange); }
.lang-switch__sep { color: var(--line); }
.lang-switch--light .lang-switch__item { color: rgba(255,255,255,.72); }
.lang-switch--light .lang-switch__item.is-active { color: var(--white); }
.lang-switch--light .lang-switch__sep { color: var(--line-light); }

/* Transparent header over a full-bleed hero (pages with overlay = true, until scrolled) */
.js .site-header--overlay:not(.is-solid) { background: transparent; border-color: transparent; backdrop-filter: none; }
.js .site-header--overlay:not(.is-solid) .logo--color { display: none; }
.js .site-header--overlay:not(.is-solid) .logo--white { display: block; }
.js .site-header--overlay:not(.is-solid) .site-nav a,
.js .site-header--overlay:not(.is-solid) .lang-switch__item.is-active { color: var(--white); }
.js .site-header--overlay:not(.is-solid) .lang-switch__item { color: rgba(255,255,255,.75); }
.js .site-header--overlay:not(.is-solid) .site-header__cta { background: var(--white); color: var(--navy-deep); }
.js .site-header--overlay:not(.is-solid) .menu-toggle__bars span { background: var(--white); }
.js .site-header--overlay { position: fixed; left: 0; right: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; border-radius: var(--radius); }
.menu-toggle__bars { display: grid; gap: 7px; justify-items: center; }
.menu-toggle__bars span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--band); color: var(--white);
  padding: var(--s5) max(1.5rem, env(safe-area-inset-left, 0px)) calc(var(--s4) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.mobile-menu__list a { color: var(--white); font-size: var(--fs-2xl); font-weight: 700; }
.mobile-menu__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--band); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
body.menu-open .site-header .logo--color { display: none; }
body.menu-open .site-header .logo--white { display: block; }
body.menu-open .menu-toggle__bars span { background: var(--white); }
body.menu-open .site-header__tools .lang-switch { visibility: hidden; }

@media (max-width: 60rem) {
  :root { --header-h: 64px; }
  .site-header__logo img { height: 40px; }
  .site-nav, .site-header__cta { display: none; }
  .site-header__tools { margin-left: auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
}
@media (max-width: 30rem) {
  .site-header__tools .lang-switch { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: rgba(255,255,255,.78); font-size: var(--fs-sm); }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); }
.site-footer__inner {
  max-width: var(--container); margin-inline: auto; padding: var(--s6) max(1rem, env(safe-area-inset-left, 0px)) var(--s5);
  display: grid; gap: var(--s5); grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .site-footer__inner { grid-template-columns: repeat(2, 1fr); padding-inline: 2rem; } }
@media (min-width: 64rem) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; } }
.site-footer__brand img { width: 170px; height: auto; margin-bottom: var(--s3); }
.site-footer__brand p { max-width: 22rem; }
.site-footer .micro-label { color: var(--white); margin: 0 0 var(--s2); }
.micro-label--spaced { margin-top: var(--s4) !important; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.social a { display: inline-flex; align-items: center; gap: .6rem; }
.footer-board li { display: grid; }
.footer-board__name { color: var(--white); font-weight: 700; }
.footer-board__role { color: rgba(255,255,255,.7); }
.site-footer__note { margin-top: var(--s2); font-size: var(--fs-xs); color: rgba(255,255,255,.6); }
.site-footer__bar {
  max-width: var(--container); margin-inline: auto; border-top: 1px solid var(--line-light);
  padding: var(--s3) max(1rem, env(safe-area-inset-left, 0px)) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; align-items: center;
}
@media (min-width: 48rem) { .site-footer__bar { padding-inline: 2rem; } }
.site-footer__bar ul { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); list-style: none; margin: 0; padding: 0; align-items: center; }
.to-top { display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s6); }
@media (min-width: 48rem) { .section { padding-block: var(--s7); } }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section--navy { background: var(--band-accent); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--white); }
.section--navy .lead { color: rgba(255,255,255,.8); }
.section-head { display: grid; gap: var(--s2); margin-bottom: var(--s5); max-width: 48rem; }
.section-head .eyebrow { margin-bottom: 0; }
.section__more { margin-top: var(--s4); }

/* Page hero (sub-pages) */
.page-hero { padding-block: var(--s6) var(--s5); border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .page-hero { padding-block: var(--s7) var(--s6); } }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: var(--s3); }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero--center .actions { justify-content: center; }

/* Home hero */
.hero { position: relative; isolation: isolate; color: var(--white); min-height: clamp(34rem, 88svh, 52rem); display: grid; align-items: end; overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 60%; z-index: -2; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,30,69,.72) 0%, rgba(15,30,69,.58) 45%, rgba(15,30,69,.82) 100%); }
.hero__content { position: relative; padding-top: calc(var(--header-h) + var(--s6)); padding-bottom: var(--s6); }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero__sub { margin-top: var(--s3); font-size: var(--fs-lg); max-width: 38rem; color: rgba(255,255,255,.88); }
/* Sub-page variant with background video (students page). The video is already darkened, so the scrim is lighter. */
.hero--page { min-height: 100vh; min-height: 100svh; }
.hero--page h1 { max-width: 18ch; }
.hero--page .hero__scrim { background: linear-gradient(180deg, rgba(15,30,69,.55) 0%, rgba(15,30,69,.35) 45%, rgba(15,30,69,.75) 100%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .6s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__video-toggle {
  position: absolute; right: 1rem; bottom: 1rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(15,30,69,.45); color: var(--white); cursor: pointer;
}
.hero__video-toggle[hidden] { display: none; }
.hero__video-toggle:hover { background: rgba(15,30,69,.7); }
.hero__video-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.hero__video-icon--pause { width: .75rem; height: .875rem; border-inline: .25rem solid currentColor; }
.hero__video-icon--play { width: 0; height: 0; margin-left: .2rem; border-block: .5rem solid transparent; border-left: .8rem solid currentColor; }
.hero__video-toggle.is-paused .hero__video-icon--pause,
.hero__video-toggle:not(.is-paused) .hero__video-icon--play { display: none; }
.hero__credit { position: absolute; right: 1rem; bottom: .75rem; font-size: var(--fs-xs); color: rgba(255,255,255,.65); }

/* Facts strip */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 48rem) { .facts__list { grid-template-columns: repeat(4, 1fr); } }
.fact { display: grid; align-content: start; gap: .25rem; padding: var(--s4) var(--s2); border-left: 1px solid var(--line); }
.fact dt { order: 2; }
.fact dd { order: 1; }
.fact:first-child, .fact:nth-child(3) { border-left: 0; }
@media (min-width: 48rem) { .fact:nth-child(3) { border-left: 1px solid var(--line); } }
.fact dt { font-size: var(--fs-sm); color: var(--muted); }
.fact dd { margin: 0; font-size: var(--fs-2xl); font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.fact--text dd { font-size: var(--fs-xl); }

/* Audience split */
.audience-grid { display: grid; gap: var(--s3); }
@media (min-width: 48rem) { .audience-grid { grid-template-columns: 1fr 1fr; } }
.audience { display: grid; gap: var(--s2); align-content: start; padding: var(--s5) var(--s4); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.audience .eyebrow { margin-bottom: 0; }
.audience h3 { font-size: var(--fs-xl); }
.audience .text-link { margin-top: var(--s2); justify-self: start; }

/* Services: numbered index */
.service-list { list-style: none; margin: 0; padding: 0; counter-reset: svc; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .service-list { grid-template-columns: repeat(2, 1fr); column-gap: var(--s5); } }
@media (min-width: 64rem) { .service-list { grid-template-columns: repeat(3, 1fr); } }
.service { counter-increment: svc; padding: var(--s3) 0 var(--s4); border-bottom: 1px solid var(--line); display: grid; gap: var(--s1); align-content: start; }
.service::before { content: counter(svc, decimal-leading-zero); font-weight: 900; color: var(--orange-ink); font-size: var(--fs-sm); letter-spacing: .08em; }
.service p { color: var(--muted); }

/* Three steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: st; border-top: 2px solid var(--accent); padding-top: var(--s3); display: grid; gap: var(--s1); align-content: start; }
.step::before { content: counter(st); font-size: var(--fs-2xl); font-weight: 900; color: var(--tint); -webkit-text-stroke: 1px var(--accent); line-height: 1; }
.step p { color: var(--muted); }

/* Featured quote */
.quote-feature { display: grid; gap: var(--s3); max-width: 56rem; }
.quote-feature__icon { width: 3rem; height: 3rem; color: var(--orange); }
.quote-feature blockquote { margin: 0; }
.quote-feature blockquote p { font-size: var(--fs-xl); line-height: 1.5; }
.quote-feature mark { background: none; color: var(--white); box-shadow: inset 0 -.18em 0 var(--orange); }
.quote-feature footer { margin-top: var(--s3); display: grid; gap: .25rem; }
.quote-feature cite { font-style: normal; font-weight: 700; }
.section--navy .fineprint { color: rgba(255,255,255,.7); margin-top: 0; }

/* About */
.about { display: grid; }
.about__text { max-width: 46rem; }
.about__text .section-head { margin-bottom: var(--s3); }

/* Avatars & people */
.avatar {
  display: inline-grid; place-items: center; border-radius: 50%; flex: none; aspect-ratio: 1;
  background: var(--tint); color: var(--accent); font-weight: 900; letter-spacing: .04em;
  border: 1px dashed var(--accent-soft);
}
.avatar--sm { width: 44px; font-size: var(--fs-xs); }
.avatar--md { width: 64px; font-size: var(--fs-sm); }
.avatar--lg { width: 88px; font-size: var(--fs-lg); }

.board-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.board-tile { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.board-tile h3 { font-size: var(--fs-md); }
.board-tile p { color: var(--muted); font-size: var(--fs-sm); }
.board-tile--rep { border-color: var(--accent-soft); background: var(--surface); }
.board-tile .avatar--lg { width: 64px; font-size: var(--fs-sm); }
.board-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; background: var(--tint); }

/* auto-fit: the people share the full width instead of leaving empty columns on the right */
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.person { display: grid; gap: var(--s1); justify-items: center; align-content: start; text-align: center; }
.person p { max-width: 18rem; }
.person .avatar { margin-bottom: var(--s1); }
.person__photo { width: 144px; height: 144px; border-radius: 50%; object-fit: cover; margin-bottom: var(--s1); background: var(--tint); }
.person h3 { font-size: var(--fs-md); }
.person p { font-size: var(--fs-sm); color: var(--muted); }

/* Partner grid (unified tiles) */
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }
.partner-grid--projects { display: flex; flex-wrap: wrap; }
.partner-grid--projects > li { flex: 1 1 11rem; }
.partner { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.partner > a, .partner > div, .partner > button {
  display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: var(--s2); position: relative;
  width: 100%; height: 100%; min-height: 9.5rem; padding: var(--s3) var(--s2); background: var(--surface); text-decoration: none;
  border: 0; font: inherit; color: inherit; cursor: default; overflow: hidden;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.partner > a, .partner > button { cursor: pointer; }
.partner img { align-self: center; max-height: 4.25rem; max-width: 85%; width: auto; object-fit: contain; background: var(--logo-chip); padding: var(--logo-pad); border-radius: 6px; box-sizing: content-box; filter: grayscale(1) contrast(1.1); transition: filter .35s var(--ease), transform .35s var(--ease); }
.partner:hover img, .partner:focus-within img { filter: none; transform: scale(1.12); }
.partner:hover > *, .partner:focus-within > * { box-shadow: inset 0 -3px 0 var(--orange); }
.partner__more {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-primary); background: var(--primary); transform: translateY(100%); transition: transform .3s var(--ease);
}
.partner--more:hover .partner__more, .partner--more:focus-within .partner__more { transform: none; }
.partner__placeholder { align-self: center; text-align: center; font-size: var(--fs-sm); }
.partner--placeholder > div { background: var(--bg); }
.partner-pop__detail { color: var(--muted); font-size: var(--fs-sm); margin-top: 0; }
.partner-pop__quote { margin: 0; padding-left: var(--s2); border-left: 2px solid var(--orange); font-style: italic; }
.partner--more .partner__type::after { content: " +"; color: var(--orange-ink); font-weight: 700; }

/* Partner pop-up (native popover) */
.partner-pop {
  width: min(34rem, calc(100vw - 2rem)); max-height: min(80vh, 40rem); overflow-y: auto; margin: auto; inset: 0;
  padding: var(--s4); border: 0; border-top: 4px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--text);
  box-shadow: 0 24px 60px rgba(15, 30, 69, .28);
}
.partner-pop::backdrop { background: rgba(15, 30, 69, .55); }
.partner-pop:popover-open { display: grid; gap: var(--s2); align-content: start; }
.partner-pop__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); }
.partner-pop__head img { max-height: 3.5rem; max-width: 12rem; width: auto; background: var(--logo-chip); padding: var(--logo-pad); border-radius: 6px; box-sizing: content-box; }
.partner-pop__type { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.partner-pop h3 { font-size: var(--fs-xl); }
.partner-pop p + p { margin-top: 0; }
.partner-pop__close {
  width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--bg);
  font: 400 1.6rem/1 var(--font); color: var(--accent); cursor: pointer; transition: background-color .2s, transform .2s var(--ease);
}
.partner-pop__close:hover { background: var(--tint); transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) {
  .partner-pop:popover-open { animation: pop-in .28s var(--ease); }
  .partner-pop:popover-open::backdrop { animation: fade-in .28s var(--ease); }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.partner__type { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; text-align: center; }

/* Projects */
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.project-card { display: grid; gap: var(--s1); align-content: start; padding: var(--s4) var(--s3); background: var(--surface); border: 1px solid var(--line); }
.section--tint .project-card { background: var(--bg); }
.project-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); min-height: 3rem; }
.project-card__top img { max-height: 3rem; max-width: 7rem; width: auto; object-fit: contain; background: var(--logo-chip); padding: var(--logo-pad); border-radius: 6px; box-sizing: content-box; }
.project-card__detail { color: var(--muted); font-size: var(--fs-sm); margin-top: 0; }
.project-card p { margin-top: 0; }
.project-card--placeholder { border-style: dashed; }
.chip { display: inline-block; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); background: var(--tint); padding: .25rem .6rem; border-radius: 999px; }
.project-card__quote { margin-top: var(--s2); border-top: 1px solid var(--line); padding-top: var(--s2); }
.project-card__quote summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: var(--fs-sm); }
.project-card__quote blockquote { margin: var(--s2) 0 0; padding-left: var(--s2); border-left: 2px solid var(--orange); font-style: italic; color: var(--text); }

/* Students */
.split { display: grid; gap: var(--s4); }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1.2fr; align-items: start; } .split .section-head { margin-bottom: 0; } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.check-list li { padding-left: 2rem; position: relative; font-size: var(--fs-lg); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 1rem; height: 2px; background: var(--orange); }
.check-list strong { color: var(--heading); }

.offer-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4) var(--s3); grid-template-columns: 1fr; }
@media (min-width: 36rem) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }
.offer { display: grid; gap: var(--s1); align-content: start; }
.offer .photo-placeholder, .offer .photo { margin-bottom: var(--s2); }
.offer p { color: var(--muted); }

/* Member voices: carousel like the previous website (two quotes side by side, arrows, name and picture below) */
.voices { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s2); }
.voices__track {
  grid-column: 2; list-style: none; margin: 0; padding: var(--s1) 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: 100%; column-gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.voices__track::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .voices__track { grid-auto-columns: calc((100% - var(--s3)) / 2); } }
.voices__nav {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: none;
  color: var(--accent); font-size: 2.5rem; line-height: 1; cursor: pointer; transition: background-color .2s var(--ease), opacity .2s var(--ease);
}
.voices__nav--prev { grid-column: 1; grid-row: 1; }
.voices__nav--next { grid-column: 3; grid-row: 1; }
.voices__nav:hover:not(:disabled) { background: var(--tint); }
.voices__nav:disabled { opacity: .3; cursor: default; }
.voice { scroll-snap-align: start; display: grid; grid-template-rows: 1fr auto; gap: var(--s3); text-align: center; }
.voice blockquote { margin: 0; display: grid; align-items: center; padding: var(--s4) var(--s3); background: var(--surface); border-radius: 6px; }
.section--tint .voice blockquote { background: var(--bg); }
.voice blockquote p { font-size: var(--fs-md); }
.voice mark { font-weight: 700; }
.voice__person { display: grid; justify-items: center; gap: .35rem; font-size: var(--fs-sm); color: var(--muted); }
.voice__person .avatar { margin-bottom: .25rem; }
.voice__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: .25rem; background: var(--tint); }
.voice__person strong { color: var(--text); font-size: var(--fs-md); }

.teaser { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3); }
.teaser .section-head { margin-bottom: 0; }

/* Companies */
.reason-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .reason-grid { grid-template-columns: repeat(3, 1fr); } }
.reason { display: grid; gap: var(--s1); align-content: start; padding-left: var(--s3); border-left: 3px solid var(--orange); }
.reason h3 { font-size: var(--fs-xl); }
.reason p { color: var(--muted); }

.process { list-style: none; margin: 0; padding: 0; counter-reset: pr; display: grid; gap: 0; position: relative; }
.process__step { counter-increment: pr; position: relative; display: grid; gap: var(--s1); align-content: start; padding: 0 0 var(--s4) 4rem; }
.process__step::before {
  content: counter(pr); position: absolute; left: 0; top: -.2rem; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 900;
}
.process__step:not(:last-child) .process__marker { position: absolute; left: 1.375rem; top: 2.75rem; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--tint)); }
.process__step p { color: var(--muted); max-width: 34rem; }
.process__step:last-child::before { background: var(--orange); }
@media (min-width: 64rem) {
  .process { grid-template-columns: repeat(5, 1fr); gap: var(--s3); }
  .process__step { padding: 4rem 0 0; }
  .process__step::before { top: 0; }
  .process__step:not(:last-child) .process__marker { left: 3.25rem; right: calc(-1 * var(--s3)); top: 1.375rem; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--accent), var(--tint)); }
}

.entry-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 48rem) { .entry-grid { grid-template-columns: repeat(3, 1fr); } }
.entry { display: grid; gap: var(--s2); align-content: start; padding: var(--s4) var(--s3); border: 1px solid var(--line-light); }
.entry p { color: rgba(255,255,255,.82); }
.entry .btn { justify-self: start; margin-top: var(--s2); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band__inner { display: grid; justify-items: center; gap: var(--s2); }
.cta-band h2 { max-width: 24ch; }
.cta-band .actions { justify-content: center; }

/* Events */
.tl { position: relative; margin-top: var(--s2); }
.tl__today { position: absolute; top: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; transform: translateX(-50%); display: none; }
.tl__list {
  /* No horizontal scrolling: the five events share the width (vertical list on small screens, see below). */
  list-style: none; margin: 0; padding: .5rem 0 2.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative;
}
/* Line drawn per item through the centre of the dot row, so it stays centred under every item. */
.tl__item::before { content: ""; position: absolute; left: 0; right: 0; top: calc(1.75rem + .4rem + .75rem - 1px); height: 2px; background: var(--accent); }
.tl__item[hidden] { display: none; }
.tl__item.is-first::before { left: 50%; }
.tl__item.is-last::before { right: 50%; }
.tl__item { position: relative; display: grid; grid-template-rows: 1.75rem 1.5rem auto; justify-items: center; align-content: start; text-align: center; gap: .4rem; padding-inline: .5rem; }
.tl__flag { grid-row: 1; align-self: end; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); white-space: nowrap; }
.tl__flag:empty { visibility: hidden; }
.tl__dot { grid-row: 2; width: 1rem; height: 1rem; border-radius: 50%; background: var(--accent); border: 2px solid var(--accent); align-self: center; justify-self: center; position: relative; z-index: 1; }
.tl__body { grid-row: 3; display: grid; gap: .3rem; justify-items: center; width: 100%; margin-top: .4rem; padding: .75rem .6rem; border-radius: 8px; border: 1px solid transparent; }
.tl__title { font-weight: 700; color: var(--heading); line-height: 1.3; text-wrap: balance; overflow-wrap: break-word; }
.tl__date, .tl__place { font-size: var(--fs-xs); color: var(--muted); }
.tl__item--upcoming .tl__dot { background: var(--bg); border-color: var(--muted); }
.tl__item--upcoming .tl__title { color: var(--muted); }
.tl__item--past { opacity: .7; }

/* Current and next event are marked by dot and label only; the description stays plain (feedback round 11/2026). */
.tl__item--now .tl__flag { color: var(--orange-ink); }
.tl__item--now .tl__dot { width: 1.5rem; height: 1.5rem; background: var(--orange); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--orange); }
.tl__item--next .tl__title { color: var(--heading); }
.tl__item--next .tl__flag { color: var(--accent); }
.tl__item--next .tl__dot { width: 1.25rem; height: 1.25rem; background: var(--surface); border: 3px solid var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .tl__item--now .tl__dot { animation: tl-pulse 2.2s ease-out infinite; }
}
@keyframes tl-pulse {
  0% { box-shadow: 0 0 0 2px var(--orange), 0 0 0 2px rgba(237, 125, 49, .5); }
  70% { box-shadow: 0 0 0 2px var(--orange), 0 0 0 12px rgba(237, 125, 49, 0); }
  100% { box-shadow: 0 0 0 2px var(--orange), 0 0 0 12px rgba(237, 125, 49, 0); }
}
.tl__list:focus-visible { outline-offset: -3px; }
/* Small screens: vertical timeline (dot and line on the left, text on the right) instead of scrolling sideways. */
@media (max-width: 47.99rem) {
  .tl__list { grid-auto-flow: row; grid-auto-columns: auto; padding: .5rem 0 1rem; }
  .tl__item { grid-template-columns: 2rem minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; gap: 0 .75rem; padding: 0 0 1.5rem; }
  .tl__dot { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: .15rem; }
  .tl__flag { grid-column: 2; grid-row: 1; align-self: start; }
  .tl__flag:empty { display: none; }
  .tl__body { grid-column: 2; grid-row: 2; justify-items: start; margin: 0; padding: 0; }
  .tl__item::before { left: calc(1rem - 1px); right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl__item.is-first::before { left: calc(1rem - 1px); top: .75rem; }
  .tl__item.is-last::before { right: auto; bottom: auto; height: .75rem; }
}

.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.event { display: grid; gap: .25rem var(--s3); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .event { grid-template-columns: 15rem 1fr auto; align-items: baseline; } .event__topic { grid-column: 2; } .event__place { grid-column: 3; grid-row: 1; } }
.event__date, .event__place { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: var(--fs-sm); }
.event__date .icon, .event__place .icon { width: 1rem; height: 1rem; color: var(--accent); }
.event__title { font-size: var(--fs-md); }
.event__topic { font-size: var(--fs-sm); }
.past-year .subhead { margin-top: var(--s4); }
.event[hidden], .past-year[hidden], .section[hidden] { display: none; }

.band { display: flex; overflow: hidden; gap: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.band__track { list-style: none; margin: 0; padding: 0 var(--s3) 0 0; display: flex; gap: var(--s3); flex: none; animation: band 28s linear infinite; }
.band__logo { display: grid; place-items: center; width: 13rem; height: 6.5rem; padding: var(--s3); background: var(--logo-chip); border-radius: 8px; }
/* Logos in their original colours right away (feedback round, 7 Nov 2026) */
.band__logo img { width: 100%; height: 3rem; object-fit: contain; transition: transform .35s var(--ease); }
.band__logo:hover img { transform: scale(1.08); }
/* Logo files with a lot of built-in white space are scaled up so all logos look equally large */
.band__logo--lg img { transform: scale(1.6); }
.band__logo--xl img { transform: scale(2); }
.band__logo--lg:hover img { transform: scale(1.72); }
.band__logo--xl:hover img { transform: scale(2.15); }
.band__logo { overflow: hidden; }
.band:hover .band__track { animation-play-state: paused; }
@keyframes band { to { transform: translateX(-100%); } }

.format-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5) var(--s4); }
@media (min-width: 48rem) { .format-grid { grid-template-columns: 1fr 1fr; } }
.format { display: grid; gap: var(--s2); align-content: start; }
.format p { color: var(--muted); }
.format__value { border-left: 2px solid var(--orange); padding-left: var(--s2); }
.format__value strong { color: var(--text); }

/* Photo placeholders */
.photo-placeholder {
  display: grid; place-items: center; text-align: center; padding: var(--s2); width: 100%;
  background: linear-gradient(135deg, var(--tint), var(--surface)); border: 1px dashed var(--accent-soft); color: var(--muted); font-size: var(--fs-sm);
}
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-10 { aspect-ratio: 16 / 10; }

/* ---------- Forms ---------- */
.section--form { padding-top: var(--s5); }
.form-layout { display: grid; gap: var(--s5); }
@media (min-width: 60rem) { .form-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } .form-layout__aside { position: sticky; top: calc(var(--header-h) + var(--s3)); } }
.form-layout__aside { display: grid; gap: var(--s3); }
.aside-card { padding: var(--s3); background: var(--surface); border: 1px solid var(--line); display: grid; gap: var(--s2); }
.aside-card p + p { margin-top: 0; }
.aside-card--pro-bono { transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); }
.aside-card--pro-bono.is-highlighted { border-color: var(--orange); background: var(--note-bg); box-shadow: inset 4px 0 0 var(--orange); }
.aside-card__line { display: flex; align-items: center; gap: .5rem; word-break: break-word; }

.form { display: grid; gap: var(--s3); padding: var(--s4) var(--s3); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 48rem) { .form { padding: var(--s5); } }
.form-hint { color: var(--muted); font-size: var(--fs-sm); }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label, .field legend { font-weight: 700; color: var(--text); padding: 0; }
.field legend { margin-bottom: .4rem; }
.req { color: var(--error); margin-left: .15rem; }
.field__optional { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.field__help { font-size: var(--fs-sm); color: var(--muted); }
.cond-note { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.js .cond-note { display: none; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--field-line); border-radius: 2px;
  padding: .75rem .85rem; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 9rem; }
input:hover, select:hover, textarea:hover { border-color: var(--accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(237,125,49,.55); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.choice { display: inline-flex; align-items: flex-start; gap: .6rem; cursor: pointer; min-height: 44px; padding-block: .6rem; }
.choice input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--accent); flex: none; }
.choice--check span { font-size: var(--fs-sm); }
.choices--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0 var(--s2); }
.choices--grid .choice { padding-block: .35rem; min-height: 36px; }
/* Choice tiles (contact form topic): icon, title, hint; the radio stays in the DOM for keyboard and screen readers. */
.choices--tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
.topic { position: relative; display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 2.4rem .8rem .9rem; margin: 0; min-height: 0;
  background: var(--surface); border: 1px solid var(--field-line); border-radius: 6px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.topic:hover { border-color: var(--accent); }
.topic:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--tint); }
.topic:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgba(237,125,49,.55); }
.topic__icon { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tint); color: var(--accent); transition: background-color .2s, color .2s; }
.topic__icon .icon { width: 1.3rem; height: 1.3rem; }
.topic:has(input:checked) .topic__icon { background: var(--primary); color: var(--on-primary); }
.topic__text { display: grid; gap: .15rem; }
.topic__title { font-weight: 700; color: var(--heading); line-height: 1.3; }
.topic__hint { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.topic__check { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); opacity: 0; transform: scale(.6); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.topic__check .icon { width: .9rem; height: .9rem; stroke-width: 2.4; }
.topic:has(input:checked) .topic__check { opacity: 1; transform: none; }
/* Form sections: "Step 1 / Step 2" eyebrow, optional title, divider line between steps. */
.form-step { display: grid; gap: .25rem; padding-top: var(--s3); border-top: 1px solid var(--line); }
.form-step--first { padding-top: 0; border-top: 0; }
.form-step__label { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.form-step__title { margin: 0; font-size: var(--fs-lg); font-weight: 700; color: var(--heading); }
.form-step + .field { margin-top: calc(-1 * var(--s2)); }
.field--lead legend { font-size: var(--fs-lg); color: var(--heading); margin-bottom: .75rem; }
@media (min-width: 40rem) {
  .form--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form--cols > * { grid-column: 1 / -1; }
  .form--cols > .field--half { grid-column: auto; }
  .form--cols > .form-step + .field--half + .field--half { margin-top: calc(-1 * var(--s2)); }
}
.form--cols input, .form--cols textarea { background: var(--surface); }
.field__counter { margin: 0; text-align: right; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.form--cols .field--consent .choice--check { background: var(--bg); border-radius: 4px; padding: .9rem 1rem; }
.form__actions--split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.btn--arrow::after { content: "\2192"; font-size: 1.15em; line-height: 1; transition: transform .2s var(--ease); }
.btn--arrow:hover::after { transform: translateX(3px); }
.form-info { border-left: 3px solid var(--orange); background: var(--note-bg); padding: .75rem 1rem; font-size: var(--fs-sm); }
.form-info p { margin: 0; }
.form-info p + p { margin-top: .6rem; }
.form-info--section { margin-top: var(--s3); border-left: 0; border-top: 3px solid var(--accent); background: var(--tint); padding: var(--s3); scroll-margin-top: calc(var(--header-h) + var(--s3)); }
.form-info__title { font-size: var(--fs-lg, 1.25rem); color: var(--heading); margin: 0 0 var(--s2); }
.form-info[hidden] { display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-sm); font-weight: 700; }
.field[hidden], .aside-card[hidden], .voices__nav[hidden], .field-note[hidden] { display: none; }
.field-note { margin-top: var(--s1); border-left: 3px solid var(--orange); background: var(--note-bg); padding: .75rem 1rem; font-size: var(--fs-sm); }
.field-note summary { cursor: pointer; font-weight: 700; color: var(--accent); padding-block: .6rem; }
.field-note p { margin: .5rem 0 0; }
.field-note ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form__summary { padding: var(--s2); border-left: 3px solid var(--error); background: var(--error-bg); color: var(--error); font-weight: 700; }
.form__status:empty { display: none; }
.form__status { padding: var(--s2) var(--s3); border-left: 3px solid var(--orange); background: var(--note-bg); font-weight: 700; }
.form__status.is-success { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.form__status.is-error { border-color: var(--error); background: var(--error-bg); color: var(--error); }

/* ---------- Legal pages ---------- */
.legal { padding-block: var(--s6); }
.legal h1 { margin-bottom: var(--s4); font-size: var(--fs-2xl); }
.legal__note { margin-bottom: var(--s3); color: var(--muted); }
.legal__stand { margin-top: var(--s3); color: var(--muted); font-size: var(--fs-sm); }
.tile-grid { display: grid; gap: var(--s3); }
@media (min-width: 48rem) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile--wide { grid-column: 1 / -1; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; padding: var(--s4) var(--s3); display: grid; gap: var(--s2); align-content: start; }
.tile h2 { font-size: var(--fs-xl); }
.tile h3 { font-size: var(--fs-md); margin-top: var(--s1); }
.tile p + p { margin-top: 0; }
.tile ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.tile ul.plain { padding-left: 0; }
.tile__groups { display: grid; gap: var(--s3); }
@media (min-width: 48rem) { .tile__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile--notice { border-top-color: var(--orange); }

/* ---------- Result page (form submission without JavaScript) ---------- */
.result { padding-block: var(--s6); }
.result .form__status { margin-block: var(--s3); }


/* ---------- Hover and focus feedback for tiles ----------
   Only on devices with a real pointer; keyboard users get the same feedback via :focus-within. */
.audience, .project-card, .voice, .board-tile, .reason, .offer, .format, .entry, .aside-card, .fact,
.service, .step, .process__step, .person, .tile {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.step::before, .service::before, .process__step::before, .reason, .avatar, .event { transition: all .3s var(--ease); }
@media (hover: hover) {
  /* .voice is excluded: it sits in a scroll container (carousel), where a lift and shadow get clipped. */
  .audience:hover, .project-card:hover, .board-tile:hover, .entry:hover, .aside-card:hover, .tile:hover {
    transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 30, 69, .12); border-color: var(--accent-mid);
  }
  .audience:hover { border-top-color: var(--orange); }
  .entry:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .5); }

  /* Understand / Develop / Deliver: number fills, accent line turns orange, text lifts */
  .step { position: relative; }
  .step { padding-inline: var(--s2); padding-bottom: var(--s3); }
  .step:hover { border-top-color: var(--orange); transform: translateY(-6px); background: var(--surface); box-shadow: 0 16px 34px rgba(15, 30, 69, .12); }
  .step:hover::before { color: var(--accent); -webkit-text-stroke-color: var(--accent); transform: scale(1.15); transform-origin: left bottom; }
  .step:hover p { color: var(--text); }

  /* Service index */
  .service:hover { border-bottom-color: var(--orange); transform: translateY(-3px); }
  .service:hover h3 { color: var(--accent); }
  .service:hover::before { color: var(--orange); letter-spacing: .2em; }

  /* Project process */
  .process__step:hover::before { background: var(--orange); transform: scale(1.12); }
  .process__step:hover h3 { color: var(--accent); }

  .reason:hover { border-left-color: var(--accent); transform: translateX(4px); }
  .offer:hover .photo-placeholder, .format:hover .photo-placeholder { transform: scale(1.02); border-color: var(--accent); }
  .photo-placeholder { transition: transform .35s var(--ease), border-color .35s var(--ease); }
  .board-tile:hover .avatar, .voice:hover .avatar, .person:hover .avatar { background: var(--primary); color: var(--on-primary); border-style: solid; }
  .person:hover { transform: translateY(-3px); }
  .fact:hover dd { color: var(--orange-ink); }
  .event:hover { background: var(--surface); box-shadow: inset 4px 0 0 var(--orange); }
  .section--tint .event:hover { background: var(--bg); }
  .voice:hover mark { background: linear-gradient(transparent 0, rgba(237, 125, 49, .28) 0); }
}
.audience:focus-within, .project-card:focus-within, .entry:focus-within { box-shadow: 0 14px 30px rgba(15, 30, 69, .12); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .audience:hover, .project-card:hover, .voice:hover, .board-tile:hover, .entry:hover, .aside-card:hover, .tile:hover,
  .step:hover, .service:hover, .reason:hover, .person:hover, .partner:hover img, .partner:focus-within img { transform: none !important; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-pending { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .band { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .band__track { animation: none; flex-wrap: wrap; padding-inline: 1rem; }
  .band__track[aria-hidden="true"] { display: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .mobile-menu { display: none !important; }
  body { background: #fff; }
}

/* Real photos (replace placeholders via the image field in content/site.mjs) */
.photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 2px; }

/* Searchable multiselect (text fields with data-list, built by main.js) */
.ms {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-height: 48px;
  padding: .4rem .5rem; background: var(--bg); border: 1px solid var(--field-line); border-radius: 2px; cursor: text;
  transition: border-color .2s, box-shadow .2s;
}
.ms:hover { border-color: var(--accent); }
.ms:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(237,125,49,.55); }
.field.is-invalid .ms { border-color: var(--error); }
.ms__chips { display: contents; list-style: none; }
.ms__chip { display: inline-flex; align-items: center; gap: .15rem; padding: .2rem .25rem .2rem .7rem; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: var(--fs-sm); font-weight: 700; }
.ms__remove { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 400 1.15rem/1 var(--font); cursor: pointer; }
.ms__remove:hover { background: var(--accent-soft); }
.ms input.ms__search { flex: 1 1 10rem; width: auto; min-width: 8rem; min-height: 2.25rem; padding: .3rem .35rem; border: 0; background: transparent; box-shadow: none; }
.ms input.ms__search:focus-visible { box-shadow: none; }
.ms__list {
  position: absolute; z-index: 20; left: -1px; right: -1px; top: calc(100% + 4px); max-height: 16rem; overflow-y: auto;
  margin: 0; padding: .3rem 0; list-style: none; background: var(--surface); border: 1px solid var(--accent); border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.ms__list[hidden] { display: none; }
.ms__option { padding: .6rem .85rem; cursor: pointer; }
.ms__option:hover, .ms__option.is-active { background: var(--tint); color: var(--accent); }
.ms__option--free { font-style: italic; border-top: 1px solid var(--line); }
.ms__empty { padding: .6rem .85rem; color: var(--muted); font-size: var(--fs-sm); }
