/* =====================================================================
   Empowering Indigenous & Local Languages — Namibia NNAP-IDIL
   Single design-system stylesheet shared by every page.
   ===================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin.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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.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;
}

/* ---------- Design tokens ---------- */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --ink: #2A1D14;
  --ink-soft: #5E4B3C;
  --muted: #7A6656;
  --paper: #FFFDF9;
  --white: #FFFFFF;
  --sand-50: #FBF6EE;
  --sand-100: #F5EBDD;
  --sand-200: #EADBC6;
  --line: #EADFD0;
  --clay-400: #E58A45;
  --clay-500: #D2691E;
  --clay-600: #B4561A;
  --clay-700: #94451A;
  --earth-800: #3A2416;
  --earth-900: #22160E;
  --sky-500: #1FA5F2;
  --success: #1E7A3C;
  --danger: #B42318;

  /* Per-page accent (overridden by .theme-* classes) */
  --accent: var(--clay-500);
  --accent-strong: var(--clay-600);
  --accent-ink: var(--clay-700);
  --accent-soft: #FBEADB;
  --accent-deep: #3D1C0B;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(42, 29, 20, .06), 0 1px 3px rgba(42, 29, 20, .08);
  --shadow: 0 6px 16px -4px rgba(42, 29, 20, .12), 0 2px 4px rgba(42, 29, 20, .05);
  --shadow-lg: 0 28px 56px -18px rgba(42, 29, 20, .35);
  --ring: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent-strong);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.theme-research     { --accent: #C2700F; --accent-strong: #8A4A06; --accent-ink: #7A4105; --accent-soft: #F6EADB; --accent-deep: #2E1A08; }
.theme-learning     { --accent: #FF8600; --accent-strong: #B05A00; --accent-ink: #8F4A00; --accent-soft: #FFF0DE; --accent-deep: #3A1F05; }
.theme-health       { --accent: #E3D90A; --accent-strong: #6B6800; --accent-ink: #5A5700; --accent-soft: #F9F7D0; --accent-deep: #24220A; }
.theme-biodiversity { --accent: #2DB51F; --accent-strong: #17760F; --accent-ink: #13620C; --accent-soft: #E3F3DF; --accent-deep: #0F2A0C; }
.theme-cultural     { --accent: #E0251E; --accent-strong: #A50A05; --accent-ink: #8E0904; --accent-soft: #FBE4E2; --accent-deep: #2E0806; }
.theme-enabling     { --accent: #1FA5F2; --accent-strong: #0A679E; --accent-ink: #085684; --accent-soft: #E0F2FD; --accent-deep: #06263A; }
.theme-teal         { --accent: #14A3C7; --accent-strong: #0E7490; --accent-ink: #0B5E75; --accent-soft: #E0F4F8; --accent-deep: #062A33; }
.theme-gold         { --accent: #D4A017; --accent-strong: #7A5C10; --accent-ink: #6A500E; --accent-soft: #F8EFD6; --accent-deep: #2B200A; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg, video, iframe, audio { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
p, li, figcaption, blockquote { overflow-wrap: break-word; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.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: 1rem; top: -100px;
  z-index: 2000;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.icon {
  display: inline-block;
  vertical-align: -0.17em;
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(800px + var(--gutter) * 2); }
.container--wide { max-width: calc(1320px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sand { background: var(--sand-50); }
.section--soft { background: var(--accent-soft); }
.section--dark { background: var(--earth-900); color: #F3E9DC; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section + .section--sand, .section--sand + .section { border-top: 1px solid transparent; }

.stack > * + * { margin-top: 1.1em; }
.mt-sm { margin-top: .5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.section--flush-top { padding-top: 0; }
.split.split--top { align-items: start; }
.split--spaced { margin-bottom: clamp(3rem, 7vw, 5rem); }
.clamp--long { --clamp-lines: 8; }
html:has(dialog[open]) { overflow: hidden; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }
.eyebrow--plain::before { display: none; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:not(.eyebrow) { margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; }
.section--dark .section-head p:not(.eyebrow) { color: #D9C9B6; }

.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.65; color: var(--ink-soft); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose > .eyebrow + * { margin-top: 0; }
.prose > h2 + p { margin-top: 1.25rem; }
.prose p { color: var(--ink-soft); }
.prose cite { font-style: italic; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: 5fr 7fr; }
  .split--wide-media { grid-template-columns: 7fr 5fr; }
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sand-100);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 3 / 2; }
.media-frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(42, 29, 20, .08);
  pointer-events: none;
}
.media-accent { position: relative; isolation: isolate; }
.media-accent::before {
  content: '';
  position: absolute;
  inset: auto auto -18px -18px;
  width: 55%; height: 55%;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  z-index: -1;
}
.split--reverse .media-accent::before { inset: auto -18px -18px auto; }

figure figcaption, .caption {
  margin-top: .75rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Buttons & chips ---------- */
.btn {
  --btn-bg: var(--accent-strong);
  --btn-fg: var(--white);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(42, 29, 20, .5); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--accent-ink); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, .55); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .16); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--accent-ink); --btn-border: currentColor; }
.btn--outline:hover { --btn-bg: var(--accent-soft); }
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .925rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: .2rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
}
.chip--neutral { background: var(--sand-100); color: var(--ink-soft); }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Site header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(42, 29, 20, .35); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: auto; height: 60px; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--font-serif); font-weight: 600; font-style: italic; font-size: 1.08rem; color: var(--earth-800); }
.brand-sub { font-family: var(--font-serif); font-weight: 600; font-size: 1.08rem; color: var(--earth-800); }

.nav-list { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-trigger[aria-expanded="true"] { background: var(--sand-100); color: var(--clay-700); text-decoration: none; }
.nav-link[aria-current="page"], .nav-trigger.is-current { color: var(--clay-700); }
.nav-link[aria-current="page"]::after, .nav-trigger.is-current::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--clay-500);
}
.nav-link { position: relative; }
.nav-trigger .icon { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-cta { margin-left: .5rem; }
.nav-cta .btn { min-height: 42px; padding: .6rem 1.25rem; --btn-bg: var(--clay-600); }
.nav-cta .btn[aria-current="page"] { --btn-bg: var(--clay-700); }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 240px;
  padding: .6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav-menu::before { /* hover bridge */
  content: '';
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
}
.nav-trigger[aria-expanded="true"] + .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav-menu a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.35;
}
.nav-menu a:hover { background: var(--sand-50); color: var(--clay-700); }
.nav-menu a[aria-current="page"] { background: var(--sand-100); color: var(--clay-700); font-weight: 600; }
.nav-menu--mega { display: grid; grid-template-columns: 200px 290px; gap: .25rem 1rem; padding: 1rem; }
.nav-menu-group { display: flex; flex-direction: column; gap: .1rem; }
.nav-menu-label {
  padding: .25rem .8rem .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot {
  width: .65rem; height: .65rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  color: var(--ink);
}
.nav-toggle:hover { background: var(--sand-100); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 22px; height: 2px;
  margin-left: -11px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; left: 0; margin-left: 0; }
.nav-toggle-bars::before { transform: translateY(-7px); }
.nav-toggle-bars::after { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .brand img, .is-scrolled .brand img { height: 48px; }
  .brand-title, .brand-sub { font-size: .98rem; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    padding: 1rem var(--gutter) 2.5rem;
    background: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 1rem .25rem;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
  }
  .nav-link:hover, .nav-trigger[aria-expanded="true"] { background: none; }
  .nav-link[aria-current="page"]::after, .nav-trigger.is-current::after { display: none; }
  .nav-menu, .nav-menu--mega {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 1rem;
    border: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-trigger[aria-expanded="true"] + .nav-menu { display: block; transform: none; }
  .nav-menu--mega { grid-template-columns: 1fr; }
  .nav-trigger[aria-expanded="true"] + .nav-menu--mega { display: grid; }
  .nav-menu a { padding: .7rem .75rem; font-size: 1rem; }
  .nav-cta { margin: 1.5rem 0 0; border: 0 !important; }
  .nav-cta .btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
  html.nav-open { overflow: hidden; }
}
@media (max-width: 400px) {
  .brand { gap: .6rem; }
  .brand-title, .brand-sub { font-size: .9rem; }
}
@media (max-width: 340px) {
  .brand-text { display: none; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 190, 120, .28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(31, 165, 242, .16), transparent 60%),
    linear-gradient(135deg, #C4601C 0%, #93410F 48%, #4A220C 100%);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6.5rem);
}
.hero::before { /* dotted ring motif from the IDIL emblem */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 15% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 15% 30%, #000 10%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.15rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  color: #FFE2C4;
  margin-bottom: 1rem;
}
.hero-text { font-size: 1.1rem; color: rgba(255, 255, 255, .88); max-width: 52ch; margin-bottom: 2rem; }
.hero .btn--light:hover { --btn-bg: #FFF4E8; }

/* Knowledge-tree carousel */
.tree-carousel { position: relative; }
.tree-stage {
  display: grid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #22A0EE;
  box-shadow: 0 40px 80px -30px rgba(20, 8, 0, .7), 0 0 0 1px rgba(255, 255, 255, .18);
  aspect-ratio: 10 / 7;
  touch-action: pan-y;
}
.tree-slide {
  grid-area: 1 / 1;
  position: relative;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
  color: var(--white);
  text-decoration: none;
}
.tree-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.tree-stage { grid-template: 100% / 100%; }
.tree-slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tree-slide.is-active img { transform: scale(1.015); }
a.tree-slide:hover img { transform: scale(1.05); }
.tree-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 3.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(18, 10, 4, .78), rgba(18, 10, 4, 0));
  color: var(--white);
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.2;
}
.tree-caption small {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}
.tree-explore {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex: none;
  padding: .45rem .9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 650;
  transition: transform .2s var(--ease);
}
a.tree-slide:hover .tree-explore { transform: translateX(-3px); }
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  transition: background-color .2s, transform .2s var(--ease);
}
.carousel-btn:hover { background: rgba(255, 255, 255, .18); transform: scale(1.06); }
.carousel-dots { display: flex; align-items: center; gap: .1rem; }
.carousel-dot {
  display: grid;
  place-items: center;
  width: 26px; height: 32px;
}
.carousel-dot::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .45);
  transition: width .3s var(--ease), background-color .3s;
}
.carousel-dot:hover::before { background: rgba(255, 255, 255, .75); }
.carousel-dot[aria-current="true"]::before { width: 22px; background: var(--white); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--accent-deep);
  background: linear-gradient(125deg, var(--accent-strong) 0%, color-mix(in oklab, var(--accent-strong) 45%, var(--accent-deep)) 55%, var(--accent-deep) 100%);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.75rem, 6vw, 4.75rem);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 100% 0%, #000 10%, transparent 70%);
  pointer-events: none;
}
.page-hero::after { /* accent glow */
  content: '';
  position: absolute;
  right: -10%; top: -40%;
  width: 55%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%);
  opacity: .55;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero-lead { margin-top: 1rem; max-width: 60ch; font-size: 1.15rem; color: rgba(255, 255, 255, .86); }
.page-hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.15fr .85fr; } }
.page-hero-art {
  justify-self: end;
  width: min(100%, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 10 / 7;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .2);
  transform: rotate(1.5deg);
}
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .page-hero-art { display: none; } }

.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: 1.1rem; font-size: .88rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255, 255, 255, .72); }
.breadcrumb li + li::before { content: '/'; opacity: .55; }
.breadcrumb a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* ---------- Home sections ---------- */
.idil-band { position: relative; overflow: hidden; }
.idil-band .split { align-items: center; }
.idil-logo {
  justify-self: center;
  width: min(320px, 70%);
  filter: drop-shadow(0 24px 30px rgba(42, 29, 20, .18));
}
@media (prefers-reduced-motion: no-preference) {
  .idil-logo { animation: float 7s ease-in-out infinite; }
}

.theme-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.theme-card-media { aspect-ratio: 10 / 6; overflow: hidden; background: var(--sky-500); }
.theme-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.theme-card:hover .theme-card-media img { transform: scale(1.06); }
.theme-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border-top: 4px solid var(--accent);
}
.theme-card-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.theme-card-num { display: block; margin-bottom: .15rem; font-family: var(--font-sans); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.theme-card-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.theme-card:hover .theme-card-arrow { background: var(--accent-strong); color: var(--white); transform: translateX(2px); }

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 190, 120, .3), transparent 60%),
    linear-gradient(135deg, var(--clay-600), #6B300E);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.cta-band p { margin-top: .6rem; color: rgba(255, 255, 255, .86); max-width: 56ch; }

/* ---------- Themes hub ---------- */
.tree-figure { max-width: 980px; margin-inline: auto; }
.tree-figure .media-frame { aspect-ratio: 1600 / 1111; background: #22A0EE; }

/* ---------- Listen card / audio ---------- */
.intro-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.listen-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
@media (min-width: 960px) { .listen-card { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.listen-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--white);
}
.listen-icon .icon { width: 22px; height: 22px; }
.listen-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.listen-title { margin: .25rem 0 1rem; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.listen-card audio, .audio-player { width: 100%; height: 44px; }
.listen-note { margin-top: .75rem; font-size: .85rem; color: var(--ink-soft); }

.blockquote-intro {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--sand-50);
}
.blockquote-intro p { font-family: var(--font-serif); font-size: 1.15rem; font-style: italic; line-height: 1.6; color: var(--ink); }
.blockquote-intro footer { margin-top: .9rem; font-size: .9rem; color: var(--muted); }

/* ---------- Challenges ---------- */
.challenge-grid {
  counter-reset: challenge;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.challenge {
  counter-increment: challenge;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.challenge:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.challenge::before {
  content: counter(challenge, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-strong);
}
.challenge::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.challenge p { font-weight: 600; font-size: 1.02rem; line-height: 1.45; color: var(--ink); }

/* ---------- Strategies ---------- */
.strategy-list { display: grid; gap: 1.5rem; }
.strategy {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.strategy-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--white)));
  border-bottom: 1px solid var(--line);
}
.strategy-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.strategy-head h3 { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); padding-top: .2rem; }
.strategy-lead { margin-top: .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; color: var(--ink-soft); }
.strategy-lead > span:first-child { font-weight: 650; }
.strategy-cols {
  display: none;
  padding: .7rem 1.5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.strategy-rows li {
  display: grid;
  gap: .5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.strategy-rows li:last-child { border-bottom: 0; }
.strategy-rows .action { position: relative; padding-left: 1.35rem; color: var(--ink); line-height: 1.55; }
.strategy-rows .action::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: .5rem; height: .5rem;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent);
}
.strategy-rows .actors { padding-left: 1.35rem; }
.actors-empty { color: #B9A898; }
@media (min-width: 820px) {
  .strategy-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
  .strategy--single .strategy-cols { grid-template-columns: 1fr; }
  .strategy-rows li { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
  .strategy--single .strategy-rows li { grid-template-columns: 1fr; }
  .strategy-rows .actors { padding-left: 0; }
}

/* ---------- Feature blocks (initiatives) ---------- */
.feature-list { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature-list > .feature:nth-child(even) .feature-media { order: 2; }
  .feature--single { grid-template-columns: 1fr; }
}
.feature-media { position: relative; }
.feature-body h2, .feature-body h3 { margin-bottom: .9rem; font-size: clamp(1.3rem, 1.15rem + .7vw, 1.75rem); }
.feature-body .tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.feature-body p { color: var(--ink-soft); }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.feature-audio { display: grid; gap: .9rem; margin-top: 1.5rem; }
.feature-audio figure { padding: .9rem 1rem; border-radius: var(--radius); background: var(--accent-soft); }
.feature-audio figcaption { margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; font-weight: 650; color: var(--accent-ink); font-size: .92rem; }

.poster {
  position: relative;
  display: block;
  width: 100%;
  max-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-100);
  box-shadow: var(--shadow);
}
.poster img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: top; }
.poster-zoom {
  position: absolute;
  right: .75rem; bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .8rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 22, 14, .82);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  opacity: .92;
  transition: opacity .2s, transform .2s var(--ease);
}
.poster:hover .poster-zoom { opacity: 1; transform: translateY(-2px); }

/* Clamp + read more */
.clamp { position: relative; }
.clamp.is-clamped > p:first-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--clamp-lines, 6);
  line-clamp: var(--clamp-lines, 6);
  overflow: hidden;
}
.clamp.is-clamped > p:not(:first-child) { display: none; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .75rem;
  color: var(--accent-ink);
  font-weight: 650;
  font-size: .95rem;
}
.read-more:hover { text-decoration: underline; }
.read-more .icon { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.read-more[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* YouTube facade */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #120C08;
  box-shadow: var(--shadow);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--white);
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; filter: saturate(.95) brightness(.88); }
.video-poster:hover img { transform: scale(1.04); filter: saturate(1.05) brightness(.95); }
.video-play {
  position: absolute;
  left: 50%; top: 50%;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--accent-strong);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .55);
  transition: transform .25s var(--ease), background-color .25s;
}
.video-play .icon { width: 28px; height: 28px; margin-left: 4px; }
.video-poster:hover .video-play { transform: scale(1.08); }
.video-label {
  position: absolute;
  left: 1rem; bottom: .9rem; right: 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

/* ---------- Gallery carousel (scroll-snap) ---------- */
.gallery { position: relative; }
.gallery-track {
  position: relative;
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-100);
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.gallery-controls .carousel-btn { border-color: var(--line); color: var(--ink); background: var(--white); box-shadow: var(--shadow-sm); }
.gallery-controls .carousel-btn:hover { background: var(--sand-50); }
.gallery-counter { font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.gallery-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gallery-progress span { display: block; height: 100%; width: 0; background: var(--accent-strong); transition: width .4s var(--ease); }

/* ---------- Facts row ---------- */
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0; }
.fact {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.fact .icon { color: var(--accent-strong); }

/* ---------- Session cards (activities) ---------- */
.session {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.session + .session { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .session { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .session--reverse .session-media { order: 2; }
  .session--reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.session-media .media-frame { aspect-ratio: 4 / 3; }
.session h3 { margin-bottom: .9rem; }
.session p { color: var(--ink-soft); }

.timeline-band {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.timeline-band::before {
  content: '';
  width: 2px; height: 48px;
  background: linear-gradient(var(--accent), transparent);
  order: -1;
}

/* ---------- Partners (stakeholders) ---------- */
.partner-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.partner {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner-logo {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.partner-logo img { max-height: 104px; width: auto; max-width: 100%; object-fit: contain; }
.partner-logo--text {
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 30%, var(--white)));
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: .02em;
  color: var(--accent-ink);
  text-align: center;
  line-height: 1.1;
}
.partner-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.35rem 1.35rem; }
.partner-name { font-family: var(--font-sans); font-size: 1rem; font-weight: 650; line-height: 1.4; letter-spacing: 0; }
.partner-text {
  margin-top: .6rem;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.partner-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.partner-actions .read-more { margin: 0; }
.partner-actions a { font-size: .9rem; }

/* ---------- Dialogs (shared) ---------- */
.modal {
  margin: auto; /* restores native centring removed by the global reset */
  width: min(720px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .3s var(--ease); }
.modal::backdrop { background: rgba(26, 16, 9, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .3s var(--ease); }
.modal--wide { width: min(960px, calc(100vw - 2rem)); }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.modal-body { padding: 1.5rem; overflow-y: auto; overscroll-behavior: contain; }
.modal-body > * + * { margin-top: 1rem; }
.modal-body p { color: var(--ink-soft); }
.modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--sand-50); }
.modal-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.modal-close:hover { background: var(--sand-100); color: var(--ink); }
.modal-partner-logo { display: grid; place-items: center; height: 120px; padding: 1rem; border-radius: var(--radius); background: var(--sand-50); }
.modal-partner-logo img { max-height: 96px; width: auto; }

.lightbox {
  width: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.lightbox img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 6rem); width: auto; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox .modal-close { position: fixed; top: 1rem; right: 1rem; background: rgba(255, 255, 255, .92); color: var(--ink); }
.lightbox p { margin-top: .75rem; text-align: center; color: rgba(255, 255, 255, .9); font-size: .95rem; }

/* ---------- Policies ---------- */
.policy-list { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .policy-list { grid-template-columns: 1fr 1fr; } }
.policy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.policy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.policy-article {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-ink);
}
.policy-article strong { font-size: 2rem; line-height: 1; }
.policy h2, .policy h3 { font-size: 1.3rem; }
.policy p { color: var(--ink-soft); }

/* ---------- Statements ---------- */
.video-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.video-card h3 { margin-top: .9rem; font-size: 1.2rem; }
.statement {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) { .statement { grid-template-columns: 300px minmax(0, 1fr); } }
.statement-source {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .statement-source { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.statement-source img { width: 140px; margin: 0 auto 1.25rem; }
.statement-source p { font-size: .82rem; font-weight: 650; letter-spacing: .04em; line-height: 1.6; color: var(--ink-soft); text-transform: uppercase; }
.quote {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 4.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.quote + .quote { margin-top: 1.25rem; }
.quote .icon {
  position: absolute;
  left: 1.5rem; top: 1.8rem;
  width: 1.75rem; height: 1.75rem;
  color: var(--accent);
  fill: currentColor;
  stroke: none;
}
.quote p { font-family: var(--font-serif); font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); font-weight: 500; line-height: 1.6; color: var(--ink); }
.signature { margin-top: 1.75rem; display: flex; align-items: center; gap: .75rem; font-family: var(--font-serif); font-size: 1.15rem; font-style: italic; font-weight: 600; color: var(--accent-ink); }
.signature::before { content: ''; width: 2.5rem; height: 2px; background: currentColor; }

/* ---------- Languages ---------- */
.map-card { margin: 0; }
.map-card .media-frame { background: #FFFCEB; }
.map-card .media-frame img { object-fit: contain; }
.map-source { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.region-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.region {
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.region-where { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.region h3 { margin: .4rem 0 .9rem; font-size: 1.25rem; }
.region .chip { background: var(--sand-100); color: var(--ink); font-weight: 550; }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 1.5rem; }
.event {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}
@media (min-width: 860px) { .event { grid-template-columns: 340px minmax(0, 1fr); } }
.event-bg { position: absolute; inset: 0; z-index: -1; }
.event-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.event-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 253, 249, .55), rgba(255, 253, 249, .95) 55%); }
.event-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand-100); }
.event-media img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.event h3 { margin: .5rem 0 .75rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.event p { color: var(--ink-soft); }
.event .chip { background: var(--accent-soft); }

.empty-state {
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--sand-200);
  background: var(--white);
  text-align: center;
}
.empty-state-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.empty-state-icon .icon { width: 28px; height: 28px; }
.empty-state h2, .empty-state h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.empty-state p { color: var(--ink-soft); max-width: 46ch; }
.empty-state .btn-row { justify-content: center; margin-top: .5rem; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .field-label { font-size: .95rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); margin-left: .15rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E4B3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1.1rem;
}
.input::placeholder, .textarea::placeholder { color: #A8968A; }
.input:hover, .select:hover, .textarea:hover { border-color: #D6C2A9; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: var(--danger); }
.field-error { display: none; font-size: .85rem; font-weight: 550; color: var(--danger); }
.field.is-invalid .field-error { display: block; }
.char-count { justify-self: end; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.char-count.is-near { color: #A15C00; }
.char-count.is-max { color: var(--danger); }
.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--sand-50);
  cursor: pointer;
}
.checkbox input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--accent-strong); cursor: pointer; }
.checkbox span { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.checkbox strong { color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }
.form-note { font-size: .85rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-success-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #E3F3E7; color: var(--success); }
.form-success-icon .icon { width: 26px; height: 26px; }
.form-success h2 { font-size: 1.6rem; }
.form-success p { color: var(--ink-soft); }
.form-success pre {
  max-height: 220px;
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--sand-50);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  white-space: pre-wrap;
  color: var(--ink-soft);
}

.info-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.info-card h2 { font-size: 1.4rem; margin-bottom: .75rem; }
.info-card p { color: var(--ink-soft); }
.info-card ul { margin-top: 1.25rem; display: grid; gap: 1rem; }
.contact-item { display: flex; gap: .85rem; align-items: flex-start; }
.contact-item .icon { margin-top: .3rem; color: var(--accent-ink); }
.contact-item strong { display: block; }
.contact-item span { display: block; font-size: .9rem; color: var(--ink-soft); }
.info-media { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.info-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 3000; display: grid; gap: .5rem; }
.toast {
  display: flex;
  align-items: center;
  gap: .65rem;
  max-width: 360px;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--earth-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: .95rem;
  font-weight: 500;
  animation: toast-in .35s var(--ease);
}
.toast .icon { color: #7BD88F; }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }

/* ---------- Discussion forum ---------- */
.forum-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 2rem; }
.forum-stats { display: flex; flex-wrap: wrap; gap: .75rem; }
.forum-stat {
  min-width: 120px;
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.forum-stat strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.1; color: var(--accent-ink); }
.forum-stat span { font-size: .85rem; color: var(--muted); font-weight: 550; }
.category-bar { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scrollbar-width: thin; }
.category-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: none;
  padding: .55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color .2s, background-color .2s, color .2s;
}
.category-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.category-btn[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--white); }
.category-btn .count { padding: .05rem .5rem; border-radius: var(--radius-pill); background: rgba(0, 0, 0, .07); font-size: .78rem; }
.category-btn[aria-pressed="true"] .count { background: rgba(255, 255, 255, .22); }
.discussions-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.discussions-head h2 { font-size: 1.5rem; }
.discussions-head .select { width: auto; min-height: 44px; }
.discussion-list { display: grid; gap: .9rem; }
.discussion {
  display: block;
  width: 100%;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.discussion:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.discussion h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.discussion-excerpt { color: var(--ink-soft); font-size: .97rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; font-size: .86rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.meta .icon { width: .95rem; height: .95rem; }
.discussion-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.reply { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--sand-50); }
.reply + .reply { margin-top: .75rem; }
.reply-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.reply-author { display: flex; align-items: center; gap: .6rem; }
.reply-author strong { font-size: .95rem; }
.reply-author time { display: block; font-size: .8rem; color: var(--muted); }
.reply p { color: var(--ink-soft); font-size: .97rem; }
.composer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding: .35rem; border: 1.5px solid var(--sand-200); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--sand-50); }
.composer-tools + .textarea { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.tool-btn { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .4rem; border-radius: 6px; font-size: 1rem; }
.tool-btn:hover { background: var(--sand-100); }
.tool-sep { width: 1px; height: 22px; margin: 0 .25rem; background: var(--sand-200); }
.notice {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: .92rem;
  margin-bottom: 1.75rem;
}
.notice .icon { margin-top: .2rem; color: var(--accent-ink); }

.discussion-meta { margin-bottom: .6rem; }
.discussion-body { font-size: 1.05rem; }
.replies-title { margin-top: 1.75rem; font-size: 1.15rem; }
.reply-form { margin-top: 1.5rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.modal-form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.modal-form .modal-body { flex: 1; }

/* ---------- Jump nav & theme pager ---------- */
.jump-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.jump-nav .chip { padding: .45rem .95rem; font-size: .88rem; text-decoration: none; transition: background-color .2s, color .2s; }
.jump-nav .chip:hover { background: var(--accent-soft); color: var(--accent-ink); }
.pager { display: grid; gap: 1rem; }
@media (min-width: 720px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager-link {
  display: grid;
  gap: .35rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.pager-link:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.pager-link--next { text-align: right; justify-items: end; }
.pager-dir { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager-title { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; }

.chip .icon { width: .95em; height: .95em; }
.info-card a { font-weight: 600; }
.notice a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--earth-900);
  color: #D9C9B6;
  font-size: .95rem;
}
.footer-main {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem;
}
@media (min-width: 760px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-main { grid-template-columns: 1.3fr repeat(3, .8fr) 1.4fr; } }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand img { width: 120px; height: auto; padding: .6rem; border-radius: var(--radius); background: #FBF6EE; }
.footer-brand p { max-width: 34ch; color: #BFAE9A; }
.footer-col h2 {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay-400);
}
.footer-col ul { display: grid; gap: .55rem; list-style: none; padding: 0; }
.site-footer a { color: #F3E9DC; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-col a[aria-current="page"] { color: var(--clay-400); }
.footer-contact { display: grid; gap: 1.1rem; }
.footer-contact strong { color: var(--white); font-weight: 600; }
.footer-contact span { display: block; font-size: .9rem; color: #BFAE9A; line-height: 1.5; }
.footer-contact a { display: inline-flex; align-items: center; gap: .45rem; margin-top: .2rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  color: #A8957F;
}

/* ---------- 404 ---------- */
.notfound { display: grid; place-items: center; text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound-code { font-family: var(--font-serif); font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 700; line-height: 1; color: var(--clay-500); }
.notfound h1 { margin: 1rem 0 .75rem; }
.notfound p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 2rem; }
.notfound .btn-row { justify-content: center; }

/* ---------- Motion ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }
@keyframes reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes hero-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .page-hero .container > * { animation: hero-in .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-media { animation: hero-in 1s .15s var(--ease) both; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .carousel-controls, .gallery-controls, .read-more, .nav-toggle, .listen-card audio { display: none !important; }
  .hero, .page-hero { background: none !important; color: var(--ink) !important; }
  .hero h1, .page-hero h1, .hero-sub, .hero-text, .page-hero-lead { color: var(--ink) !important; }
  .clamp.is-clamped > p { display: block !important; -webkit-line-clamp: unset !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
