/* ============================================================
   The Ntuli Foundation — main stylesheet
   Palette: white ground · bone #EDE4D0 · navy #1C2B49 ·
   ochre #C98B2D · ink #1E2126 · body #5A6172
   Type: FreightSans Pro via Adobe Fonts kit kew7yxz;
         self-hosted Alegreya Sans is the offline fallback
   ============================================================ */

:root {
  --white: #ffffff;
  --bone: #ede4d0;
  --bone-soft: #f7f1e4;
  --bone-faint: #fbf8f1;
  --navy: #1c2b49;
  --navy-deep: #16223b;
  --ink: #1e2126;
  --body: #5a6172;
  --ochre: #c98b2d;
  --line: #e5dfd2;
  --line-light: #ece7db;
  --footer-bg: #171310;
  --navy-panel: #1c2b49;
  --font: "freight-sans-pro", "Alegreya Sans", "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(24px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 600; color: var(--ink); line-height: 1.15; }

.eyebrow {
  display: block;
  font-size: 22px;
  font-weight: 500;
  color: var(--ochre);
  margin-bottom: 16px;
  letter-spacing: 0.005em;
}

.display {
  font-size: clamp(40px, 5.2vw, 68px);
  letter-spacing: -0.01em;
}
.display em { font-style: italic; }

.h2 { font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -0.01em; }
.h2.navy { color: var(--navy); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: var(--navy); }
.btn-light { background: #ffffff; color: #1c2b49; }
.btn-light:hover { background: #ede4d0; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-outline.on-navy { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline.on-navy:hover { border-color: var(--white); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
}
.text-link .arrow { transition: transform 0.25s ease; }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* at rest the bar carries the colour of whatever the page opens on,
     so there is never a seam above a tinted hero */
  background: var(--nav-rest-bg, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-light);
  box-shadow: 0 1px 24px rgba(30, 33, 38, 0.05);
}
.nav.is-stuck .nav-inner { height: 76px; }
.nav-inner { transition: height 0.35s ease; }
body.hero-tinted { --nav-rest-bg: var(--bone-soft); }
body.hero-bone { --nav-rest-bg: var(--bone); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 16px;
  font-weight: 500;
  color: var(--body);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); font-weight: 600; }
.nav .btn-outline { background: var(--white); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle.is-open .ic-burger { display: none; }
.nav-toggle.is-open .ic-close { display: block; }

/* ---------- home hero ---------- */

.hero-home {
  position: relative;
  overflow: hidden;
  min-height: 96vh;
  display: flex;
  align-items: center;
}
/* white gradient dissolving the image composition at the bottom */
.hero-home::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  background: linear-gradient(180deg, transparent 0%, var(--white) 80%);
  z-index: 1;
  pointer-events: none;
}
.hero-home .n-bg {
  position: absolute;
  right: -4vw;
  top: 6%;
  height: 100%;
  width: auto;
  pointer-events: none;
  user-select: none;
}
/* full sculpture, uncropped — it runs past the hero bottom and fades out */
.hero-home .hero-sculpture {
  position: absolute;
  right: 10vw;
  top: 24px;
  height: 108%;
  width: auto;
  pointer-events: none;
  user-select: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 560px; padding: 60px 0 90px; }
.hero-copy .display { margin-bottom: 28px; }
.hero-copy p { max-width: 500px; margin-bottom: 36px; }

/* rotating scroll badge */
.scroll-badge {
  position: absolute;
  z-index: 2;
  right: 38vw;
  bottom: 60px;
  width: 110px;
  height: 110px;
  pointer-events: none;
}
.scroll-badge svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.scroll-badge text {
  font-family: var(--font);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  fill: var(--ink);
}
.scroll-badge .badge-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(180deg, var(--bone-soft) 0%, var(--white) 100%);
  padding: 128px 0;
}
.page-hero.flat { background: var(--bone); padding: 128px 0; }
.page-hero .display { margin-bottom: 22px; }
.page-hero p.lead { max-width: 620px; }
.page-hero.centered { text-align: center; }
.page-hero.centered p.lead { margin: 0 auto; max-width: none; }
.page-hero.no-pb { padding-bottom: 0; }

/* ---------- about split ---------- */

.about {
  padding: 128px 0;
}
.about .grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}
.about .label { font-weight: 600; color: var(--ink); font-size: 20px; line-height: 1.4; }
.about .statement {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.6;
  color: var(--navy);
  max-width: 760px;
}

/* ---------- big photo panel ---------- */

.photo-panel { padding: 128px 0; }
.frame {
  border-radius: 24px;
  overflow: hidden;
}
.frame img { width: 100%; height: auto; }

/* media placed inside a page hero, directly under the title */
.page-hero .hero-media { margin-top: 72px; }
.page-hero.with-media {
  background: linear-gradient(180deg, var(--bone-soft) 0%, var(--white) 70%);
}
.photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  font-size: 15px;
}
.photo-caption .right { font-style: italic; }

/* ---------- home: what we do (sticky left) ---------- */

.wwd-band {
  background: linear-gradient(180deg, var(--bone-soft) 0%, var(--bone-faint) 100%);
  border-radius: 48px 48px 0 0;
  padding: 128px 0;
}
.wwd-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.wwd-left { position: sticky; top: 120px; }
.wwd-left .h2 { margin-bottom: 18px; }
.wwd-left .note { max-width: 300px; }
.wwd-rows .row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.wwd-rows .row:first-child { border-top: 1px solid var(--line); }
.wwd-rows .num { font-size: 15px; font-weight: 600; color: var(--ochre); padding-top: 4px; }
.wwd-rows h3 { font-size: 21px; margin-bottom: 8px; }
.wwd-rows p { font-size: 16px; max-width: 560px; }

/* ---------- focus areas ---------- */

.focus { padding: 128px 0; text-align: center; }
.focus .h2 { margin-bottom: 64px; }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}
.focus-card img { width: 100%; aspect-ratio: 505 / 540; object-fit: cover; }
.focus-card h3 { font-size: 24px; color: var(--navy); margin: 24px 0 12px; }
.focus-card p { font-size: 16px; }

/* ---------- quote band ---------- */

.quote-band {
  background: linear-gradient(180deg, var(--bone-soft) 0%, var(--white) 100%);
  border-radius: 48px 48px 0 0;
  padding: 128px 0;
  text-align: center;
}
.quote-band .quote {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  max-width: 880px;
  margin: 0 auto 24px;
  letter-spacing: -0.01em;
}
.quote-band .quote .accent { color: var(--ochre); }
.quote-band .sub { max-width: 420px; margin: 0 auto 72px; }

.visit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: left;
}
.visit-strip > div { border-top: 1px solid var(--line); padding-top: 20px; }
.visit-strip .k { font-size: 15px; font-weight: 500; color: var(--ochre); margin-bottom: 6px; }
.visit-strip .v { color: var(--ink); font-weight: 500; }
.visit-strip a.v { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- donate band ---------- */

.donate { padding: 128px 0; }
.donate .panel {
  background: var(--navy-panel);
  border-radius: 28px;
  text-align: center;
  padding: clamp(56px, 7vw, 96px) clamp(28px, 6vw, 96px);
}
.donate .tag {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}
.donate h2 { color: #ffffff; font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 20px; }
.donate p { color: rgba(255, 255, 255, 0.75); max-width: 640px; margin: 0 auto 40px; }
.donate .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- news list ---------- */

.latest { padding: 128px 0; }
.latest .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.news-row {
  display: grid;
  grid-template-columns: 128px 1fr 40px;
  gap: 36px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line-light);
}
.news-row:last-child { border-bottom: 1px solid var(--line-light); }
.news-row .thumb {
  width: 128px;
  height: 96px;
  background: #dcdcdc;
  overflow: hidden;
}
.news-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row .meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  margin-bottom: 10px;
}
.chip {
  font-size: 14px;
  color: var(--ochre);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 3px;
  background: var(--white);
}
.news-row h3 { font-size: 20px; color: var(--navy); transition: color 0.2s ease; }
.news-row .go { color: var(--navy); font-size: 20px; text-align: right; transition: transform 0.25s ease; }
a.news-row { cursor: pointer; }
a.news-row:hover h3 { color: var(--ochre); }
a.news-row:hover .go { transform: translateX(4px); }

/* ---------- footer ---------- */

.footer {
  background: var(--footer-bg);
  color: #b9b1a4;
  padding: 80px 0 0;
  font-size: 15px;
}
.footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer .brand img { height: 44px; width: auto; margin-bottom: 20px; }
.footer .brand p { max-width: 280px; }
.footer .k { color: #8a8172; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; color: #d8d2c6; }
.footer .subscribe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  margin-top: 6px;
}
.footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 28px;
  font-size: 14px;
  color: #8a8172;
}
.footer .bottom .motto { font-style: italic; }
.footer .bottom-right { display: flex; align-items: center; gap: 18px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #d8d2c6;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { border-color: #ffffff; color: #ffffff; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

/* ---------- what we do page ---------- */

/* portal (UbuSuSu) pinned section */
.portal-section { background: var(--white); }
.portal-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}
.portal-arches {
  position: relative;
  width: min(760px, 84vw);
  height: 300px;
  margin-bottom: 40px;
}
.portal-arches .arch {
  position: absolute;
  left: 50%;
  top: 0;
  width: 232px;
  height: 282px;
  transform: translateX(-50%);
}
.portal-arches .arch img { width: 100%; height: 100%; }
.portal-arches .arch .arch-ochre-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.portal-arches .arch .arch-label {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 17px;
}
.portal-wordmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  opacity: 0;
}
.portal-copy h3 { font-size: 22px; margin-bottom: 10px; }
.portal-copy p { max-width: 560px; margin: 0 auto; }

/* six commitments pinned cards */
.commitments {
  background: linear-gradient(180deg, var(--bone-soft) 0%, var(--bone-faint) 100%);
  border-radius: 48px 48px 0 0;
}
.commitments-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0;
}
.commitments-head { margin-bottom: 48px; }
.commit-rows { border-top: 1px solid var(--line); }
.commit-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.28;
}
.commit-row .cnum {
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.commit-row p { color: var(--ink); font-weight: 500; font-size: 19px; line-height: 1.5; max-width: 760px; }
.commit-row .ckey { font-size: 15px; color: var(--body); text-align: right; }

/* education & alignment */
.education { padding: 128px 0; }
.education .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.education .col { border-top: 1px solid var(--ink); padding-top: 26px; }
.education h3 { font-size: 24px; margin-bottom: 14px; }
.education p { font-size: 16px; }

/* programmes */
.programmes { padding: 128px 0; }
.programmes .h2 { margin-bottom: 48px; }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.prog-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prog-card h3 { font-size: 20px; margin: 22px 0 10px; }
.prog-card p { font-size: 16px; }

/* ---------- team page ---------- */

.team-section { padding: 128px 0; }
.team-section.on-bone { background: var(--bone); border-radius: 0; padding: 128px 0; }
.team-section .eyebrow { font-size: 22px; margin-bottom: 36px; }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.person img { width: 100%; aspect-ratio: 1035 / 739; object-fit: cover; }
.people-grid .person img { aspect-ratio: 1035 / 739; }
.person h3 { font-size: 24px; margin: 24px 0 4px; }
.person .role { color: var(--ochre); font-weight: 500; margin-bottom: 14px; }
.person p.bio { font-size: 16px; }

/* ---------- studio page ---------- */

.walkthrough {
  background: linear-gradient(180deg, var(--bone-soft) 0%, var(--bone-faint) 100%);
  border-radius: 48px;
  margin: 0;
  padding: 128px 0;
}
.walkthrough .h2 { margin-bottom: 40px; }
.walk-rows .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.walk-rows .row:first-child { border-top: 1px solid var(--line); }
.walk-rows .big-num {
  font-size: 44px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
}
.walk-rows h3 { font-size: 20px; margin-bottom: 6px; }
.walk-rows p { font-size: 16px; }

.materials { padding: 128px 0; }
.materials .eyebrow { font-size: 22px; margin-bottom: 40px; }
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 64px;
}
.material { border-top: 1px solid var(--ink); padding-top: 22px; }
.material h3 { font-size: 22px; margin-bottom: 8px; }
.material p { font-size: 16px; }

/* ---------- news page ---------- */

.featured { padding: 128px 0; }
.featured .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.featured .thumb { background: #dcdcdc; aspect-ratio: 1 / 1; max-height: 520px; width: 100%; overflow: hidden; }
.featured .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured .meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 15px; }
.featured h2 { font-size: clamp(28px, 3vw, 40px); color: var(--navy); margin-bottom: 18px; }
.featured p { margin-bottom: 32px; max-width: 560px; }

.earlier { background: var(--bone-faint); padding: 128px 0; }

/* ---------- loader (first visit only) ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bone-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader .arch-mark {
  width: 84px;
  height: 104px;
  border: 3px solid var(--ochre);
  border-bottom: none;
  border-radius: 42px 42px 0 0;
  animation: loader-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes loader-pulse { from { opacity: 0.35; } to { opacity: 1; } }
html.loading { overflow: hidden; }

/* ---------- reveal helper (subtle, respects reduced motion) ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-badge svg { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-home .hero-sculpture { right: 4vw; opacity: 0.9; }
  .focus-grid, .prog-grid, .people-grid, .materials-grid, .commitments-grid { grid-template-columns: repeat(2, 1fr); }
  .founders-grid, .education .grid, .featured .grid { grid-template-columns: 1fr; }
  .about .grid { grid-template-columns: 1fr; gap: 24px; }
  .wwd-grid { grid-template-columns: 1fr; }
  .wwd-left { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav .btn-outline { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 24px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line-light);
    box-shadow: 0 18px 32px rgba(23, 19, 16, 0.12);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line-light); }
  .nav-links a:last-child { border-bottom: none; }
  .hero-home { min-height: 72vh; }
  .hero-home .hero-sculpture { position: relative; height: 380px; right: auto; top: auto; margin: 0 auto; }
  .hero-home { flex-direction: column; align-items: flex-start; }
  .focus-grid, .prog-grid, .people-grid, .materials-grid, .commitments-grid { grid-template-columns: 1fr; }
  .visit-strip { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 88px 1fr 24px; gap: 18px; }
  .news-row .thumb { width: 88px; height: 66px; }
  .footer .cols { grid-template-columns: 1fr; }
  .footer .bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Upcoming events
   ============================================================ */

.events { padding: 128px 0; background: var(--bone-faint); }
.events .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.event-row {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line-light);
  transition: background 0.25s ease;
}
.event-row:last-child { border-bottom: 1px solid var(--line-light); }
.event-date {
  border-right: 1px solid var(--line);
  padding-right: 32px;
}
.event-date .day {
  display: block;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.event-date .month {
  display: block;
  font-size: 15px;
  color: var(--ochre);
  margin-top: 6px;
}
.event-body h3 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.event-body .where { font-size: 16px; }
.event-cta { white-space: nowrap; }
.event-row .status {
  font-size: 14px;
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 12px;
  background: var(--bone-faint);
}

/* ============================================================
   Archive
   ============================================================ */

.archive-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font);
  cursor: pointer;
}
.archive-card .media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone);
}
.archive-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.archive-card:hover .media img { transform: scale(1.03); }
.archive-card .media.is-text {
  display: flex;
  align-items: flex-end;
  padding: 26px;
  background: linear-gradient(160deg, var(--bone-soft) 0%, var(--bone) 100%);
}
.archive-card .media.is-text .excerpt {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
.archive-card .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.archive-card:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.archive-card .play svg { margin-left: 3px; }
.archive-card .kind {
  display: inline-block;
  align-self: flex-start;
  font-size: 16px;
  font-weight: 500;
  color: var(--ochre);
  margin: 20px 0 10px;
}
.archive-card h3 { font-size: 20px; color: var(--navy); line-height: 1.3; }
.archive-card .meta { font-size: 15px; margin-top: 8px; }
.archive-empty { padding: 48px 0; font-size: 17px; }

/* ---------- overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 16, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.overlay-panel {
  position: relative;
  width: min(900px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  box-shadow: 0 24px 64px -12px rgba(23, 19, 16, 0.32);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.overlay.is-open .overlay-panel { transform: none; }
.overlay-ctrl {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(23, 19, 16, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.overlay-ctrl:hover:not(:disabled) { background: var(--white); transform: scale(1.06); }
.overlay-ctrl:disabled { opacity: 0.3; cursor: default; }
.overlay-ctrl svg { width: 26px; height: 26px; }
.overlay-close { top: 28px; right: 28px; }
.overlay-arrow.prev { left: 28px; top: 50%; transform: translateY(-50%); }
.overlay-arrow.next { right: 28px; top: 50%; transform: translateY(-50%); }
.overlay-arrow.prev:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
.overlay-arrow.next:hover:not(:disabled) { transform: translateY(-50%) scale(1.06); }
.overlay-count {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(23, 19, 16, 0.5);
}
.overlay-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 42vh;
  background: #111;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.overlay-media iframe,
.overlay-media img { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.overlay-media .missing {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--bone-soft);
  color: var(--body);
  font-size: 15px;
  text-align: center;
  padding: 24px;
}
.overlay-body { padding: clamp(28px, 4vw, 44px); }
.overlay-body .kind {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: var(--ochre);
  margin-bottom: 14px;
}
.overlay-body h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin-bottom: 12px; }
.overlay-body .meta { font-size: 15px; margin-bottom: 24px; }
.overlay-body .prose p { font-size: 18px; line-height: 1.75; margin-bottom: 20px; max-width: 66ch; }
.overlay-body .prose p:last-child { margin-bottom: 0; }
.overlay-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
body.overlay-open { overflow: hidden; }

/* ============================================================
   Cookie notice
   ============================================================ */

.cookie {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  width: min(680px, calc(100vw - 32px));
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  box-shadow: 0 16px 48px -12px rgba(23, 19, 16, 0.22);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}
.cookie.is-in { transform: translate(-50%, 0); opacity: 1; }
.cookie p { font-size: 15px; line-height: 1.55; flex: 1 1 320px; margin: 0; }
.cookie p a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie .cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie button {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cookie .accept { background: var(--ink); color: var(--bone); }
.cookie .accept:hover { background: var(--navy); }
.cookie .decline { background: transparent; border-color: var(--line); color: var(--ink); }
.cookie .decline:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .cookie { transition: none; }
  .overlay, .overlay-panel { transition: none; }
}

@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .archive-grid { grid-template-columns: 1fr; }
  .events .head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .event-row { grid-template-columns: 88px 1fr; gap: 20px; row-gap: 14px; }
  .event-date { padding-right: 20px; }
  .event-date .day { font-size: 30px; }
  .event-cta { grid-column: 2; }
  .cookie { bottom: 12px; padding: 18px 20px; gap: 16px; }
  .cookie .cookie-actions { width: 100%; }
  .cookie .cookie-actions button { flex: 1; }
  .overlay-ctrl { width: 52px; height: 52px; }
  .overlay-close { top: 16px; right: 16px; }
  .overlay-arrow.prev { left: 16px; top: auto; bottom: 18px; transform: none; }
  .overlay-arrow.next { right: 16px; top: auto; bottom: 18px; transform: none; }
  .overlay-arrow.prev:hover:not(:disabled),
  .overlay-arrow.next:hover:not(:disabled) { transform: scale(1.06); }
  .overlay { padding-bottom: 96px; }
  .overlay-count { bottom: 34px; }
}

/* ============================================================
   Dark theme — same warm brand, inverted ground.
   Token flip does most of the work; the rules below patch the
   places where a colour plays a different role on dark ground.
   ============================================================ */

[data-theme="dark"] {
  color-scheme: dark;
  --white: #161310;
  --bone: #262017;
  --bone-soft: #1e1a13;
  --bone-faint: #1b1711;
  --navy: #a9bee6;
  --ink: #f1eadd;
  --body: #b1a896;
  --ochre: #d9a04c;
  --line: #3a3226;
  --line-light: #2b251c;
  --footer-bg: #0e0c09;
}

/* the wordmark is charcoal artwork — swap in the bone version */
[data-theme="dark"] .nav-logo img { content: url("../img/logo-light.png"); }

/* the sand glyph would glow on dark ground — let it whisper instead */
[data-theme="dark"] .hero-home .n-bg { opacity: 0.14; }

[data-theme="dark"] .nav.is-stuck {
  background: rgba(22, 19, 14, 0.88);
  border-bottom-color: var(--line-light);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cookie {
  background: rgba(32, 27, 19, 0.9);
  border-color: var(--line);
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .overlay-panel {
  border-color: var(--line);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .news-row .thumb,
[data-theme="dark"] .featured .thumb { background: #2b251c; }
