/* ── Variables (HumanKiND Festival brand: Magilio, Interstate Light, orange #eb7638) ── */
:root {
  --ink: #111111;
  --orange: #eb7638;
  --paper: #fafaf9;
  --peach: #facf9f;
  --color-bg: var(--ink);
  --color-text: var(--paper);
  --color-accent: var(--orange);
  --color-panel: var(--paper);
  --color-on-panel: var(--ink);
  --line: color-mix(in srgb, currentColor 25%, transparent);
  --font-display: "Magilio", Georgia, serif;
  --font-body: "Interstate", system-ui, sans-serif;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --max-width: 1200px;
  --radius: 12px;
  --ink-dark: #000000;
  --white: #fff;
  --shade: rgb(0 0 0 / 0.25);
  --ink-veil: rgb(0 0 0 / 0.8);
  --photo-veil: rgb(0 0 0 / 0.55);
}

/* ── Brand fonts (files in assets/fonts). Each has one weight, so the browser is told not to fake bold. ── */
@font-face { font-family: "Magilio"; src: url("/assets/fonts/magilio.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Interstate"; src: url("/assets/fonts/interstate-light.otf") format("opentype"); font-weight: 100 900; font-display: swap; }

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-synthesis: none;
  font-size: 1.125rem;
  font-weight: 300; /* Interstate Light */
  line-height: 1.6;
}
a { color: var(--color-accent); }
a:hover { color: var(--color-text); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; inset-block-start: -100%; inset-inline-start: 0; padding: var(--space-sm) var(--space-md); background: var(--peach); color: var(--ink); z-index: 100; }
.skip-link:focus { inset-block-start: 0; }

.container { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-lg); }

/* ── Banner, header, nav ── */
/* The header sticks to the top while scrolling. Once the page has moved, it shrinks at once (no animation) and gets a thin line
   (nav.js adds .header--scrolled and --banner-height). The space it gives up becomes a bottom margin, so the page itself never
   moves: moving the page is what made the header flicker. */
html { scroll-padding-top: 6rem; }
.header { position: sticky; inset-block-start: calc(-1 * var(--banner-height, 0px)); /* the green notice scrolls away, the menu stays */ z-index: 50; background: var(--color-bg); border-block-end: 1px solid transparent; }
.header { --header-pad: var(--space-lg); --header-pad-small: 0.75rem; }
.header--scrolled { border-block-end-color: var(--line); margin-block-end: calc(2 * (var(--header-pad) - var(--header-pad-small))); }
.header--scrolled .header__inner { padding-block: var(--header-pad-small); }
.header__inner { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); align-items: center; justify-content: space-between; padding-block: var(--header-pad); }
.header__logo { display: flex; align-items: center; gap: 0.6rem; color: var(--color-text); }
.nav__list { display: flex; flex-wrap: wrap; gap: var(--space-sm) 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__link { color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__link--active { color: var(--color-accent); }
.nav__group { position: relative; }
.nav__list { align-items: baseline; }
.nav__group summary { cursor: pointer; list-style: none; }
.nav__group summary::-webkit-details-marker { display: none; }
.nav__group summary::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-inline-start: 0.5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.2em) rotate(45deg); }
.nav__group[open] summary::after { transform: translateY(0.05em) rotate(225deg); }
.nav__sub { position: absolute; z-index: 10; inset-block-start: calc(100% + 0.75rem); inset-inline-end: 0; min-width: 12rem; margin: 0; padding: var(--space-sm) var(--space-md); list-style: none; border-radius: var(--radius); background: var(--paper); }
.nav__sub .nav__link { display: block; padding-block: var(--space-sm); color: var(--ink); }
.nav__sub .nav__link:hover, .nav__sub .nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }
.nav__sub :focus-visible { outline-color: var(--ink); }

.nav-toggle { display: none; padding: 0.625rem 1.25rem; border: 2px solid var(--color-text); border-radius: 999px; background: none; color: inherit; font: 600 1rem var(--font-body); cursor: pointer; }
.nav-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }
@media (max-width: 56rem) {
  .header { --header-pad: 1.25rem; --header-pad-small: 0.5rem; }
  .header__inner { gap: 0.5rem; }
  .header__logo { gap: 0.4rem; }
      .js .nav-toggle { display: block; }
  .js .nav { display: none; flex-basis: 100%; }
  .js .nav--open { display: block; max-height: calc(100dvh - 5rem); overflow-y: auto; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__list li { border-block-start: 1px solid var(--line); }
  .js .nav__link { display: block; padding-block: 0.875rem; font-size: 1.125rem; }
  .nav__sub { position: static; padding: 0 0 0 var(--space-md); background: none; }
  .nav__sub .nav__link { color: var(--color-text); }
  .nav__sub :focus-visible { outline-color: var(--color-accent); }
}

@media (max-width: 23rem) {
      .nav-toggle { padding: 0.5rem 1rem; }
}

/* ── Type ── */
.heading { margin: 0 0 var(--space-lg); font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; text-transform: uppercase; }

/* ── Hero ── */
.hero { padding-block: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-lg); }
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 6.5vw, 5.5rem); line-height: 1.05; }
.accent { color: var(--color-accent); }
.hero__actions { flex: 0 1 340px; display: flex; flex-direction: column; gap: 0.75rem; }

/* ── Buttons ── */
.button { display: inline-block; padding: 1rem 1.75rem; border-radius: var(--radius); font-weight: 600; text-align: center; text-decoration: none; }
.button--primary { padding: 0.85rem 2rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 1.125rem; }
.button--primary:hover { background: var(--orange); color: var(--ink); }
.button--outline { border: 2px solid var(--color-text); color: var(--color-text); }
.button--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }


/* ── Sections ── */
.section { padding-block: var(--space-xl) 0; }

/* ── Homepage quote slider ── */
.quotes { margin-block-start: var(--space-xl); padding-block: var(--space-xl); background: var(--orange); color: var(--ink); }
.quotes__heading { margin-block: 0 var(--space-lg); }
.quotes__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0; }
.quotes__row::-webkit-scrollbar { display: none; }
.quotes__item { flex: none; display: flex; align-items: center; width: 100%; scroll-snap-align: start; }
.quote { margin: 0; padding-inline-end: var(--space-md); }
.quote__text { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.01em; }
.quote__text::before { content: "\201C"; }
.quote__text::after { content: "\201D"; }
.quote__who { margin-block-start: 1.5rem; font-size: 1.25rem; font-weight: 700; }
.slider__controls { display: flex; align-items: center; justify-content: flex-end; margin-block-start: var(--space-lg); }
.slider__controls[hidden] { display: none; }
.slider__arrows { display: flex; gap: 0.75rem; }
.slider__arrow { width: 52px; height: 52px; border: 2px solid currentColor; border-radius: 999px; background: none; color: inherit; font: 600 1.25rem var(--font-body); cursor: pointer; }
.slider__arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--orange); }
.quotes :focus-visible { outline-color: var(--ink); }

/* ── Gallery and photo viewer ── */
.gallery__grid { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.gallery__grid:not(.gallery__grid--collapsed)::after { content: ""; flex: 10 1 0; }
.gallery__item { flex: var(--ratio) 1 calc(var(--ratio) * 230px); min-width: 0; aspect-ratio: var(--ratio); }
.gallery__item[hidden] { display: none; }
.gallery__link { display: block; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--shade); }
.gallery__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery__link:hover .gallery__image, .gallery__link:focus-visible .gallery__image { transform: scale(1.04); }
.gallery__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-block-start: 1.5rem; }
.gallery__more { background: none; font: 600 1.125rem var(--font-body); cursor: pointer; }
.gallery__more[hidden] { display: none; }
@media (max-width: 40rem) {
  .gallery__grid { gap: 0.5rem; }
  .gallery__item { flex-basis: calc(var(--ratio) * 150px); }
}

body:has(.viewer[open]) { overflow: hidden; }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--space-md); border: 0; background: var(--ink-dark); color: var(--paper); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 0.75rem; }
.viewer::backdrop { background: var(--ink-dark); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; }
.viewer__count, .viewer__caption { margin: 0; }
.viewer__caption { text-align: center; }
.viewer__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; touch-action: pan-y pinch-zoom; }
.viewer__image { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: var(--radius); view-transition-name: gallery-photo; }
.viewer__button { width: 52px; height: 52px; border: 2px solid var(--paper); border-radius: 999px; background: var(--ink-veil); color: var(--paper); font: 600 1.25rem var(--font-body); cursor: pointer; }
.viewer__button:hover { background: var(--peach); border-color: var(--peach); color: var(--ink); }
.viewer__previous, .viewer__next { position: absolute; z-index: 1; inset-block-start: calc(50% - 26px); }
.viewer__previous { inset-inline-start: 0; }
.viewer__next { inset-inline-end: 0; }
.viewer__film { display: flex; gap: 0.5rem; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.viewer__thumb { flex: none; width: 76px; height: 58px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: none; opacity: 0.55; cursor: pointer; }
.viewer__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewer__thumb:hover, .viewer__thumb:focus-visible, .viewer__thumb[aria-current="true"] { opacity: 1; }
.viewer__thumb[aria-current="true"] { outline: 3px solid var(--peach); }

/* ── Page header, colour cards, bands and photo splits ── */
.figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); list-style: none; margin: 0 0 var(--space-lg); padding: 0; }
.figure { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg); min-height: 230px; padding: 1.75rem; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.figure:nth-child(-n + 2) { grid-column: span 3; min-height: 300px; }
.figure:nth-child(1) { background: var(--peach); }
.figure:nth-child(2) { background: var(--orange); }
.figure:nth-child(3) { background: var(--orange); color: var(--ink); }
.figure__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.02em; }
.figure:nth-child(-n + 2) .figure__value { font-size: clamp(3.5rem, 11vw, 9rem); }
.figure__label { max-width: 26rem; font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
@media (max-width: 48rem) {
  .figure, .figure:nth-child(-n + 2) { grid-column: 1 / -1; min-height: 0; gap: var(--space-md); }
}

.band { margin-block-start: var(--space-xl); padding-block: var(--space-xl); }
.band--paper { background: var(--paper); color: var(--ink); }

.split { display: grid; background: var(--peach); color: var(--ink); }
.split__photo { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.split__text { align-self: center; padding: var(--space-xl) clamp(2rem, 5vw, 5rem); }
.split__label { margin: 0; font-weight: 700; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }

.split--focus-right .split__photo { object-position: 85% center; }
.split--stacked .split__photo { height: auto; min-height: 0; }
.split--stacked .split__text { max-width: 64rem; }
@media (min-width: 56rem) { .split.split--stacked { grid-template-columns: 1fr; } }
.band--peach { background: var(--peach); color: var(--ink); }
.band--peach :focus-visible { outline-color: var(--ink); }
.band--peach + .band--paper { margin-block-start: 0; }

/* Full-screen sections: a .screen wrapper makes what is inside at least one screen tall (below the sticky header),
   with the content centred. On small screens a section that needs more room simply grows. */
.screen { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-height, 6rem)); }
.screen > * { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-block: 0; }
.screen > .container, .screen > * > .container { width: 100%; }
.screen--hero > .hero { flex: 1; }
.screen--hero > /* Optional background photo behind the homepage headline (homePage.heroPhoto). The yellow facts bar stays solid. */
.screen--hero { position: relative; isolation: isolate; }
.screen > .screen__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
main:has(> .screen:last-child) + .footer { margin-block-start: 0; border-block-start: 0; }
.band--paper + .band--peach { margin-block-start: 0; }
main:has(> .split:last-child) + .footer { margin-block-start: 0; border-block-start: 0; }
.figures.facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid .figure, .facts-grid .figure:nth-child(-n + 2) { grid-column: auto; min-height: 200px; justify-content: flex-start; gap: 0.75rem; }
.facts-grid .figure .figure__value, .facts-grid .figure:nth-child(-n + 2) .figure__value { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.05; overflow-wrap: break-word; }
.facts-grid .figure:nth-child(3) { background: var(--paper); color: var(--ink); }
.facts-grid .figure:nth-child(4) { background: var(--orange); color: var(--ink); }
.facts-grid .figure:nth-child(4) .figure__value { font-size: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 56rem) { .figures.facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; } .facts-grid .figure, .facts-grid .figure:nth-child(-n + 2) { min-height: 150px; padding: 1.25rem; } .facts-grid .figure .figure__value, .facts-grid .figure:nth-child(-n + 2) .figure__value { font-size: clamp(1.1rem, 5vw, 1.75rem); } .facts-grid .figure__label { font-size: 1rem; } }
.split--orange { background: var(--orange); }
.split--peach .split__label, .split--orange .split__label { margin-block-end: 0.5rem; }
.split .heading { margin-block-end: var(--space-md); }
.band--orange { margin-block-start: 0; background: var(--orange); color: var(--ink); }
.band--orange + .band--paper { margin-block-start: 0; }
.band__lead { max-width: 52rem; margin: 0 0 var(--space-lg); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; }
.band--paper a:not(.button) { color: var(--ink); }
main:has(> .band:last-child) + .footer { margin-block-start: 0; border-block-start: 0; }
.button--dark { background: var(--ink); color: var(--paper); }
.button--dark:hover { background: var(--ink-dark); color: var(--white); }
.button--dark-outline { border: 2px solid var(--ink); color: var(--ink); }
.button--dark-outline:hover { background: var(--ink); color: var(--paper); }
.button--paper { background: var(--paper); color: var(--ink); }
.button--paper:hover { background: var(--white); color: var(--ink); }
.split :focus-visible, .band--paper :focus-visible { outline-color: var(--ink); }
.band--orange :focus-visible { outline-color: var(--ink); }
.figures.jump { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jump .figure, .jump .figure:nth-child(-n + 2) { grid-column: auto; min-height: 190px; padding: 0; }
.jump__link { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: var(--space-md); padding: 1.5rem; border-radius: var(--radius); color: inherit; text-decoration: none; }
.jump__link:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 3px; }
.jump .figure .figure__value, .jump .figure:nth-child(-n + 2) .figure__value { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
@media (min-width: 56rem) { .split--flip .split__photo { order: 1; } }
@media (max-width: 48rem) {
  .figures.jump { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .jump .figure, .jump .figure:nth-child(-n + 2) { min-height: 130px; }
  .jump__link { padding: 1rem; }
  .jump .figure .figure__value, .jump .figure:nth-child(-n + 2) .figure__value { font-size: 1.6rem; }
}


/* ── Event listings ── */
.event { display: flex; flex-wrap: wrap; gap: var(--space-lg); padding: 1.5rem; margin-block-end: var(--space-md); background: var(--peach); color: var(--ink); border-radius: var(--radius); }
.event__image { flex: 0 0 auto; width: 340px; max-width: 100%; height: auto; align-self: flex-start; border-radius: 8px; }
.event__body { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.event__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.event__description { margin: 0; }
.event__details { align-self: stretch; margin: 0; font-size: 1rem; }
.event__row { display: grid; grid-template-columns: 6rem 1fr; gap: var(--space-md); padding-block: 0.75rem; border-block-start: 1px solid var(--line); }
.event__row dt { font-weight: 700; color: var(--color-accent); }
.event__row dd { margin: 0; }
/* Text on light cards: dark labels, links and buttons */
.event { --color-accent: var(--ink); --color-text: var(--ink); }
.event a:not(.button):hover { text-decoration-thickness: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Photos ── */
.photo { margin: 0; }
.photo__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.photo__credit { margin-block-start: 0.375rem; font-size: 0.8rem; opacity: 0.8; }

.slider__title { margin: var(--space-md) 0 0.25rem; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-accent); }
.slider__text { margin: 0; }

/* ── Footer ── */
.footer { margin-block-start: var(--space-xl); border-block-start: 2px solid var(--paper); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-lg) 3rem; justify-content: space-between; padding-block: var(--space-xl); }
.footer a { overflow-wrap: anywhere; font-size: clamp(0.95rem, 4.4vw, 1.125rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Sections fade up as they scroll into view (reveal.js). Only below-the-fold sections are hidden first,
   and nothing is hidden without JavaScript, with reduced motion, or when printing. */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal--in { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1; transform: none; } }

/* Contact form */
#contact-form { margin-block-start: 0; }
.form-layout { display: grid; gap: var(--space-lg); }
.form-layout .heading { margin: 0; }
.form { display: grid; gap: var(--space-md); align-content: start; max-width: 40rem; }
.form p { margin: 0; }
.form__field { display: grid; gap: 0.375rem; font-weight: 600; }
.form__field :is(input, select, textarea) { width: 100%; padding: 0.625rem 0.875rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink); font: inherit; font-weight: 400; }
.form__field textarea { resize: vertical; }
.form__button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.form__status { font-weight: 700; }
/* The robot check and the Send button share a row. The check is a fixed-size box from hCaptcha (303 x 78px). */
.form__send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.form__send .h-captcha { line-height: 0; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.form__send .h-captcha:empty { display: none; }
.form__send .h-captcha iframe { display: block; margin: -1px; }
@media (min-width: 40rem) { .form { grid-template-columns: 1fr 1fr; } .form > :not(.form__field:nth-of-type(2), .form__field:nth-of-type(3)) { grid-column: 1 / -1; } }
@media (min-width: 56rem) { .form-layout { grid-template-columns: 2fr 3fr; } }
.form__fake { padding: var(--space-md); border-radius: var(--radius); background: var(--orange); color: var(--ink); text-align: center; font-size: 1.75rem; }

/* ── Sideways card sliders ── */
.band--deep { background: var(--ink-dark); }
.band + .quotes { margin-block-start: 0; }
.section--spaced-end { margin-block-end: var(--space-xl); }
.slider__row--cards { --per-view: 1.15; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per-view) - 1) * 1.5rem) / var(--per-view)); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0; }
.slider__row--cards::-webkit-scrollbar { display: none; }
.slider__item { scroll-snap-align: start; position: relative; }
.slider__link { color: inherit; text-decoration: none; }
.slider__link::after { content: ""; position: absolute; inset: 0; }
.slider__link:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.slider__item:has(.slider__link) .slider__image { transition: transform 0.3s; }
.slider__item:has(.slider__link:hover) .slider__image { transform: scale(1.02); }
@media (min-width: 40rem) { .slider__row--cards { --per-view: 2; } }
@media (min-width: 60rem) { .slider__row--cards { --per-view: 3; } }
.slider .slider__arrow:hover { color: var(--ink); }
.slider__image { aspect-ratio: 4 / 5; }


/* ── Page header (404 page) ── */
.page-header { padding-block: var(--space-lg); }
.page-header__eyebrow { margin: 0 0 0.75rem; font-weight: 700; font-size: 1.25rem; color: var(--peach); }
.page-header__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8.5vw, 7rem); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }
.page-header__lead { max-width: 46rem; margin: 1.5rem 0 0; font-weight: 500; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.4; }
.page-header__lead a { color: inherit; }
.page { padding-block: var(--space-lg) 0; }

/* ── HumanKiND additions ── */
.logo { display: block; width: auto; height: 2.6rem; }
@media (max-width: 56rem) { .logo { height: 2rem; } }
@media (max-width: 23rem) { .logo { height: 1.6rem; } }
/* A dark veil over the header photo so the words stay readable */
.screen--hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--photo-veil); }
.hero__actions { flex: none; flex-direction: row; }
.section__text { max-width: 46rem; font-size: clamp(1.125rem, 1.8vw, 1.375rem); }
/* Past projects: cards side by side, photo on top */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-md); list-style: none; margin: 0; padding: 0; }
.event-grid .event { flex-direction: column; flex-wrap: nowrap; height: 100%; margin: 0; }
.event-grid .event__image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; } /* square, so flyers show whole */
.event-grid .event__body { flex: 1 1 auto; }
/* Contact: heading and words on the left, form on the right */
@media (min-width: 56rem) { .form-layout > .form { grid-column: 2; grid-row: 1 / span 2; } }
.footer__inner { align-items: center; }
.footer__logo { display: block; width: auto; height: 3rem; }
.footer__text { max-width: 40rem; margin: 0; font-size: 0.95rem; }
