/* ==========================================================================
   TERDUMP — terdump.gig.eu
   Main stylesheet. Mobile-first. No build step.

   Colours come from the project banner of the previous (Drupal) site:
   graphite background, magenta and blue swooshes, navy logo wordmark,
   green leaves of the logo. Edit the tokens below and the whole site follows.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL licence, see assets/fonts/README.md) ---------- */
@font-face {
  font-family: "Fira Sans Condensed";
  src: url("../fonts/fira-sans-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: "Fira Sans Condensed";
  src: url("../fonts/fira-sans-condensed-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  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: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours (project banner + logo) */
  --c-navy: #1E5075;        /* logo wordmark — headings, links (8.0:1 on white) */
  --c-navy-dark: #12344F;   /* hover, dark accents */
  --c-magenta: #B60D60;     /* banner swoosh — accents, markers (6.3:1 on white) */
  --c-blue: #2A8FD0;        /* banner swoosh — decorative only */
  --c-green: #41A72A;       /* logo leaf — decorative only */
  --c-graphite: #353535;    /* banner/footer background (12:1 with white) */
  --c-graphite-2: #434343;
  --c-ink: #1F2328;         /* headings */
  --c-text: #3A3F45;        /* body text (10.6:1 on white) */
  --c-text-muted: #5E646B;  /* secondary text (6.0:1 on white) */
  --c-line: #E1E4E8;
  --c-soft: #F4F6F8;        /* tinted backgrounds */
  --c-white: #FFFFFF;

  /* Typography */
  --font-display: "Fira Sans Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-300: 0.9375rem;
  --fs-400: 1.125rem;
  --fs-500: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-600: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-700: clamp(2rem, 1.5rem + 2vw, 3rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --section-y: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  --radius-s: 4px;
  --radius-m: 10px;
  --header-h: 68px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1180px) {
  :root { --header-h: 84px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--c-navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-magenta); text-decoration-thickness: 2px; }
strong { font-weight: 700; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--c-magenta);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--c-white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--c-white);
  border-bottom: 3px solid var(--c-magenta);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.3); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}
.brand { display: inline-flex; flex-shrink: 0; border-radius: 2px; }
.brand img { height: 38px; width: auto; }
@media (min-width: 1180px) { .brand img { height: 46px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid rgba(30, 80, 117, 0.3);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--c-navy);
  font: 600 1rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile navigation panel */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  padding: 0.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  background: var(--c-white);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s;
}
/* Without JS the menu is always visible (the toggle is hidden then) */
.no-js .site-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0 0 1rem; flex-basis: 100%; }
.no-js .nav-toggle { display: none; }
.no-js .site-header { height: auto; position: relative; }
.no-js .site-header__inner { flex-wrap: wrap; padding-block: 1rem; }

.nav-list { list-style: none; display: grid; }
.nav-list a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--c-line);
  font: 600 1.375rem/1.2 var(--font-display);
  color: var(--c-navy);
  text-decoration: none;
}
.nav-list a:hover { color: var(--c-magenta); }
.nav-list a[aria-current] { color: var(--c-magenta); }
.nav-list a[aria-current]::before {
  content: "";
  display: inline-block;
  width: 1.25rem; height: 3px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: var(--c-magenta);
}

body.nav-open { overflow: hidden; }

/* Desktop navigation (9 items – needs the width) */
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav {
    position: static;
    padding: 0;
    overflow: visible;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
    flex-basis: auto;
  }
  .nav-list { display: flex; gap: clamp(0.9rem, 1.4vw, 1.5rem); }
  .nav-list a {
    position: relative;
    padding: 0.5rem 0;
    border: 0;
    font: 600 1.0625rem/1.2 var(--font-display);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--c-magenta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
  }
  .nav-list a:hover { color: var(--c-navy); }
  .nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }
  .nav-list a[aria-current] { color: var(--c-navy); }
  .nav-list a[aria-current]::before { display: none; }
}

/* ==========================================================================
   Homepage banner (the project banner of the previous site)
   ========================================================================== */
.banner { background: var(--c-graphite); }
.banner img { width: 100%; max-width: 2400px; margin-inline: auto; aspect-ratio: 3626 / 954; object-fit: cover; }

/* ==========================================================================
   Page head (subpages): graphite band with the banner swooshes
   ========================================================================== */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--c-graphite) url("../img/swoosh-1000.webp") right bottom / auto 100% no-repeat;
  color: var(--c-white);
}
@media (min-width: 1000px) {
  .page-head { background-image: url("../img/swoosh-2000.webp"); background-size: cover; background-position: center bottom; }
}
.page-head .container { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.page-head__title {
  font-size: var(--fs-700);
  color: var(--c-white);
  max-width: 22ch;
}
.page-head__kicker {
  margin: 0 0 0.5rem;
  font: 600 0.9375rem/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   Content
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-soft); }
.section + .section--soft, .section--soft + .section { border-top: 1px solid var(--c-line); }

.prose { max-width: 48rem; }
.prose h2 { font-size: var(--fs-600); margin: 2.25rem 0 1rem; }
.prose h3 { font-size: var(--fs-500); margin: 1.75rem 0 0.75rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--c-magenta); }
.prose dl { margin: 0 0 1em; }

.lead { font-size: var(--fs-500); line-height: 1.5; color: var(--c-ink); }

.section-title {
  font-size: var(--fs-600);
  margin: 0 0 1.5rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 3rem; height: 4px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-magenta) 0 55%, var(--c-blue) 55% 100%);
}

/* Notice that the project has ended */
.notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  max-width: 48rem;
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--c-magenta);
  background: var(--c-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.notice p { margin: 0; }

/* Project facts (homepage) */
.intro { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .intro { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.intro__subtitle { font-size: var(--fs-500); color: var(--c-navy); margin: 0 0 1.25rem; }
.intro__subtitle span { display: block; margin-top: 0.35rem; color: var(--c-text-muted); font-size: 0.85em; }
.facts {
  margin: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--c-soft);
  border-top: 4px solid var(--c-navy);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}
.facts dt { font-size: var(--fs-300); color: var(--c-text-muted); }
.facts dd { margin: 0 0 1rem; color: var(--c-ink); font-weight: 600; line-height: 1.4; }
.facts dd:last-child { margin-bottom: 0; }

/* Page tiles (homepage) */
.tiles { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-white);
  transition: border-color 0.2s, box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.tile:hover { border-color: rgba(182, 13, 96, 0.4); box-shadow: 0 14px 30px -18px rgba(31, 35, 40, 0.45); transform: translateY(-2px); }
.tile h3 { font-size: 1.3rem; }
.tile h3 a { color: var(--c-navy); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-m); }
.tile h3 a:focus-visible { outline: none; }
.tile:has(a:focus-visible) { outline: 3px solid var(--c-magenta); outline-offset: 3px; }
.tile p { margin: 0; font-size: 1rem; color: var(--c-text-muted); }

/* Two languages side by side (Wprowadzenie / Úvod, Partnerzy) */
.bilingual { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 1000px) { .bilingual { grid-template-columns: 1fr 1fr; } }
.bilingual > * { min-width: 0; }
.lang-label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-s);
  background: var(--c-navy);
  color: var(--c-white);
  font: 600 0.875rem/1.4 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lang-label--cs { background: var(--c-magenta); }
.bilingual .prose h2 { font-size: var(--fs-500); }
.bilingual .prose h3 { font-size: 1.2rem; color: var(--c-navy); }
.bilingual .prose h2 + h3 { margin-top: 1rem; }

/* Partners */
.partners { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.partner {
  display: grid;
  gap: 1.5rem 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--c-line);
}
.partner:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 800px) { .partner { grid-template-columns: 11rem minmax(0, 1fr); } }
.partner__logo img { width: auto; max-height: 11rem; }
.partner__role { margin: 0 0 0.25rem; font: 600 0.9375rem/1.3 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-magenta); }
.partner__name { font-size: var(--fs-600); margin-bottom: 0.25rem; }
.partner__name-alt { margin: 0 0 1.5rem; color: var(--c-text-muted); font-weight: 600; }
.partner .bilingual { gap: 1.5rem 3rem; }

/* Downloads (Prezentacje, Media o nas) */
.downloads-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) { .downloads-grid { grid-template-columns: 1fr 1fr; } }
.downloads { list-style: none; display: grid; gap: 0.75rem; }
.download {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  background: var(--c-white);
}
.download > :not(.download__icon) { grid-column: 2; }
.download__icon {
  grid-row: 1 / span 4;
  align-self: start;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius-s);
  background: var(--c-magenta);
  color: var(--c-white);
  font: 600 0.75rem/1 var(--font-display);
  letter-spacing: 0.04em;
}
.download__icon--link { background: var(--c-navy); }
.download__icon--gone { background: var(--c-text-muted); }
.download__title { margin: 0; font-weight: 600; line-height: 1.4; }
.download__title a { text-decoration: none; }
.download__title a:hover { text-decoration: underline; }
.download__meta { margin: 0.3rem 0 0; font-size: var(--fs-300); color: var(--c-text-muted); line-height: 1.45; }
.download__meta + .download__meta { margin-top: 0.1rem; }
.downloads--plain .download { padding-block: 0.85rem; }

.group-title { font-size: var(--fs-500); margin: 0 0 1rem; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.group-title small { font: 400 1rem/1.3 var(--font-body); color: var(--c-text-muted); }
.group + .group { margin-top: 2.5rem; }

/* Gallery */
.gallery-section + .gallery-section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.gallery-section__title { font-size: var(--fs-500); margin: 0 0 1rem; }
.gallery-section__title time { display: block; margin-bottom: 0.2rem; font: 600 0.9375rem/1.2 var(--font-display); letter-spacing: 0.06em; color: var(--c-magenta); }
.gallery { list-style: none; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 13rem), 1fr)); }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius-s); background: var(--c-soft); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.gallery a:hover img { transform: scale(1.04); }

.gallery-index { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.5rem; }
.gallery-index a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: var(--fs-300);
  text-decoration: none;
}
.gallery-index a:hover { border-color: var(--c-magenta); }

/* Research sites (Badania) */
.sites { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 1.5rem 0 2rem; }
.site-card { padding: 1.1rem 1.25rem; border-radius: var(--radius-m); background: var(--c-soft); border-top: 4px solid var(--c-line); }
.site-card--selected { border-top-color: var(--c-magenta); }
.site-card h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }
.site-card p { margin: 0; font-size: 1rem; }
.site-card__tag { display: inline-block; margin-top: 0.6rem; font: 600 0.8125rem/1.3 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-magenta); }

.figure-row { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 2rem 0; list-style: none; }
.figure-row a { display: block; overflow: hidden; border-radius: var(--radius-s); }
.figure-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Contact */
.contacts { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-navy);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}
.contact-card--lead { border-top-color: var(--c-magenta); }
.contact-card__logo { height: 5.5rem; width: auto; margin-bottom: 1rem; }
.contact-card h2 { font-size: 1.3rem; }
.contact-card__alt { margin: 0 0 1rem; color: var(--c-text-muted); font-weight: 600; }
.contact-card p { margin: 0 0 0.75rem; }
.contact-card__person { margin-top: 0.5rem !important; font-weight: 700; color: var(--c-ink); }
.contact-card__role { color: var(--c-text-muted); font-size: 1rem; }

.office { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Lightbox (assets/js/lightbox.js) */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 16, 18, 0.95); color: var(--c-white); }
.lightbox::backdrop { background: rgba(15, 16, 18, 0.95); }
.lightbox__stage { display: grid; grid-template-rows: 1fr auto; height: 100%; padding: 4rem 1rem 1rem; }
.lightbox__img { place-self: center; max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { margin: 0.75rem auto 0; max-width: 60rem; text-align: center; font-size: 0.9375rem; color: #DDD; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: var(--c-white); cursor: pointer;
}
.lightbox__btn[hidden] { display: none; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__btn:focus-visible { outline-color: var(--c-white); }
.lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.75rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 0.75rem; top: 50%; translate: 0 -50%; }
.lightbox__open { position: absolute; top: 1.4rem; left: 1rem; color: #DDD; font-size: 0.875rem; }
.lightbox__open:hover { color: var(--c-white); }
body.lightbox-open { overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-s);
  background: var(--c-navy);
  color: var(--c-white);
  font: 600 1.0625rem/1.2 var(--font-display);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn:hover { background: var(--c-magenta); color: var(--c-white); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }

/* Accessibility statement */
.statement h2 { margin-top: 2.5rem; }

/* 404 */
.not-found { padding-block: clamp(4rem, 10vw, 8rem); }
.not-found__code { font: 600 clamp(4rem, 3rem + 6vw, 8rem)/1 var(--font-display); color: var(--c-magenta); margin: 0 0 1rem; }
.not-found h1 { font-size: var(--fs-700); }
.not-found__text { margin-top: 1.5rem; }

/* ==========================================================================
   Footer: programme logos (obligatory) on white, then graphite band
   ========================================================================== */
.funding {
  margin-top: var(--section-y);
  padding-block: 2rem 2.25rem;
  border-top: 1px solid var(--c-line);
  background: var(--c-white);
  text-align: center;
}
.funding img { width: 100%; max-width: 760px; margin-inline: auto; }
.funding p { max-width: 52rem; margin: 1.25rem auto 0; font-size: var(--fs-300); color: var(--c-text-muted); }

.site-footer {
  background: var(--c-graphite) url("../img/swoosh-1000.webp") center top / 100% auto no-repeat;
  color: var(--c-white);
  /* the swoosh image is 3626 × 562 → its height is 15.5 % of the width */
  padding-top: max(3.5rem, 15.5vw);
}
@media (min-width: 1000px) { .site-footer { background-image: url("../img/swoosh-2000.webp"); } }
.site-footer a { color: var(--c-white); }
.site-footer a:hover { color: var(--c-white); }
.site-footer :focus-visible { outline-color: var(--c-white); }
.footer-main { display: grid; gap: 2rem; padding-block: 1.5rem 2rem; }
@media (min-width: 900px) { .footer-main { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.footer-brand p { margin: 0; max-width: 34rem; font-size: var(--fs-300); color: rgba(255, 255, 255, 0.85); }
.footer-brand strong { display: block; font: 600 1.5rem/1.2 var(--font-display); letter-spacing: 0.04em; color: var(--c-white); margin-bottom: 0.35rem; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (min-width: 900px) { .footer-nav ul { justify-content: flex-end; max-width: 34rem; } }
.footer-nav a { display: inline-block; padding: 0.3rem 0; font-size: var(--fs-300); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer-bottom p { margin: 0; }
.footer-bottom__copy { font-size: 1rem; color: var(--c-white); }

/* ==========================================================================
   Scroll reveal (restrained). Content stays visible without JS and with
   reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  /* stagger without inline styles (the CSP blocks style="…") */
  .js .tiles > .reveal:nth-child(2) { transition-delay: 70ms; }
  .js .tiles > .reveal:nth-child(3) { transition-delay: 140ms; }
  .js .tiles > .reveal:nth-child(4) { transition-delay: 210ms; }
  .js .tiles > .reveal:nth-child(n+5) { transition-delay: 280ms; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Print */
@media print {
  .site-header, .nav-toggle, .gallery-index { display: none !important; }
  .page-head, .site-footer { background: none; color: #000; }
  .page-head__title, .page-head__title [lang], .page-head__kicker { color: #000; }
  .site-footer a, .footer-bottom, .footer-brand p, .footer-brand strong { color: #000; }
}
