@charset "UTF-8";
/* ==========================================================================
   Bykivnia · Babyn Yar · Bucha — design system
   One stylesheet. No framework, no builder, no runtime CSS generation.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Ground: warm near-black, the light level of a museum vitrine. */
  --ink-950: #070708;
  --ink-900: #0b0b0d;
  --ink-850: #101013;
  --ink-800: #17171b;
  --ink-750: #1d1d22;
  --ink-700: #26262c;
  --ink-600: #343440;
  --ink-500: #4a4a57;

  /* Text: bone, never pure white — white on black is glare, not gravity. */
  --bone-050: #f6f4f0;
  --bone-100: #ece8e1;
  --bone-300: #c5c0b6;
  --bone-500: #8f8a80;
  --bone-600: #6f6b63;

  /* One accent for interaction. Restrained on purpose. */
  --ember: #c8492f;
  --ember-bright: #e2603f;
  --ember-dim: #7e2c1c;

  /* Place tints. Earth, not politics: forest, ash, cold March asphalt.
     Used only for hairlines, eyebrows and rails — never as a fill. */
  --site-bykivnia: #5c6a4e;
  --site-babyn-yar: #8d7f66;
  --site-bucha: #5f7284;
  --tint: var(--bone-500);
  --tint-soft: color-mix(in srgb, var(--tint) 22%, transparent);

  /* Type */
  /* Inter ships as one variable file per subset (400-800). PT Serif was drawn
     for Cyrillic, which is what most of this site's body text is. */
  --sans: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "PT Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.9rem);
  --step-0: clamp(1.05rem, 1.01rem + 0.2vw, 1.19rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.36vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.8vw, 2rem);
  --step-3: clamp(1.75rem, 1.42rem + 1.6vw, 2.85rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.4vw, 4.6rem);
  --step-5: clamp(2.9rem, 1.7rem + 6vw, 6.5rem);

  /* Space */
  --gutter: clamp(1.15rem, 4vw, 4rem);
  --measure: 68ch;
  --wide: 1180px;
  --rail-w: 250px;

  --radius: 3px;
  --hair: 1px solid var(--ink-700);
  --header-h: 60px;

  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
  --dur: 260ms;

  color-scheme: dark;
}

/* Per-place tint, set on <body> */
body[data-site="bykivnia"] { --tint: var(--site-bykivnia); }
body[data-site="babyn-yar"] { --tint: var(--site-babyn-yar); }
body[data-site="bucha"] { --tint: var(--site-bucha); }

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

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* every in-page jump must clear the sticky header */
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--bone-100);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.72;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

hr { border: 0; border-top: var(--hair); margin: 3rem 0; }

/* Visible, unmissable focus. Keyboard users are not an afterthought here. */
:focus-visible {
  outline: 2px solid var(--ember-bright);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--ember-dim); color: var(--bone-050); }

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

.skip-link {
  position: absolute; top: 0; left: 0;
  transform: translateY(-120%);
  background: var(--ember); color: #fff;
  padding: 0.8rem 1.2rem;
  font-family: var(--sans); font-weight: 600;
  z-index: 200;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 3. Layout primitives ---------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: var(--measure); }

.prose a {
  color: var(--bone-050);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ember) 65%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
  overflow-wrap: anywhere;
}
.prose a:hover { color: var(--ember-bright); text-decoration-color: var(--ember-bright); }

.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--tint);
  color: var(--bone-300);
  font-style: italic;
}

/* Small uppercase label used above every chapter heading. */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 400; /* only 400 is self-hosted for the mono face */
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--bone-500);
  line-height: 1.4;
  margin: 0;
}
.eyebrow--tint { color: color-mix(in srgb, var(--tint) 78%, var(--bone-100)); }

/* ---------- 4. Header ---------------------------------------------------- */
.reading-bar {
  position: fixed; inset: 0 0 auto 0;
  height: 2px; z-index: 90;
  background: var(--ember);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  will-change: transform;
}

.site-header {
  position: sticky; top: 0; z-index: 80;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--ink-950) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: var(--hair);
}
.site-header__inner {
  width: 100%; max-width: var(--wide);
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex: 0 0 auto;
}
.brand__mark { height: 30px; width: auto; }
.brand__text {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--bone-300);
  white-space: nowrap;
}
/* Below the desktop nav breakpoint the wordmark alone carries the brand —
   the full three-place name cannot share a 375px bar with language + menu. */
@media (max-width: 899px) { .brand__text { display: none; } }
/* On the narrowest phones the menu button loses its label, not its meaning:
   it keeps an accessible name via aria-label. */
@media (max-width: 419px) {
  .menu-btn__label { display: none; }
  .menu-btn { padding-inline: 0.6rem; }
  .lang__item { padding-inline: 0.4rem; }
}

.site-header__spacer { flex: 1 1 auto; }

/* Desktop primary nav */
.nav-primary { display: none; }
@media (min-width: 900px) {
  .nav-primary { display: flex; align-items: center; gap: 0.15rem; }
}
.nav-primary__link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 500;
  color: var(--bone-300); text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-primary__link:hover { color: var(--bone-050); background: var(--ink-800); }
.nav-primary__link[aria-current="page"] { color: var(--bone-050); }
.nav-primary__link[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--ember);
}

/* Language switcher */
.lang {
  display: flex; align-items: center; gap: 2px;
  border: var(--hair); border-radius: var(--radius);
  padding: 2px; flex: 0 0 auto;
}
.lang__item {
  padding: 0.3rem 0.5rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bone-500); text-decoration: none;
  border-radius: 2px; line-height: 1;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang__item:hover { color: var(--bone-050); }
.lang__item[aria-current="true"] { background: var(--ink-700); color: var(--bone-050); }

/* Menu button — the only nav on mobile, a full index on desktop */
.menu-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: var(--hair); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  color: var(--bone-100);
  min-height: 40px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.menu-btn:hover { background: var(--ink-800); border-color: var(--ink-600); }
.menu-btn__bars { display: grid; gap: 3px; width: 16px; }
.menu-btn__bars i { display: block; height: 1.5px; background: currentColor; }

/* ---------- 5. Mega-menu sheet ------------------------------------------ */
.sheet {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  /* reset the UA dialog box, which is fit-content and centred with a border */
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--ink-950);
  color: var(--bone-100);
}
.sheet[open] { display: block; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.6); }

.sheet__inner {
  height: 100%; overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4rem;
}
.sheet__bar {
  position: sticky; top: 0; z-index: 2;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
  background: var(--ink-950);
  border-bottom: var(--hair);
}
.sheet__label {
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.5rem + 0.4vw, 0.72rem);
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--bone-300);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sheet__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-right: -8px;
  border: var(--hair); border-radius: var(--radius);
  color: var(--bone-100);
}
.sheet__grid {
  max-width: var(--wide); margin-inline: auto;
  padding: 2.5rem var(--gutter) 0;
  display: grid; gap: 2.5rem;
}
@media (min-width: 780px) {
  .sheet__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem 2rem; }
}
.sheet__group-title {
  font-family: var(--sans); font-size: var(--step-1); font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 0.7rem; margin-bottom: 0.7rem;
  border-bottom: 2px solid var(--tint-soft);
}
.sheet__group-title a { text-decoration: none; }
.sheet__group-title a:hover { color: var(--ember-bright); }
.sheet__list { list-style: none; margin: 0; padding: 0; }
.sheet__list li { margin: 0; }
.sheet__list a {
  display: block; padding: 0.55rem 0;
  font-family: var(--sans); font-size: 0.925rem;
  color: var(--bone-500); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.sheet__list a:hover { color: var(--bone-050); padding-left: 6px; }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(3rem, 9vh, 6.5rem) 0 clamp(2.5rem, 6vh, 4.5rem);
  border-bottom: var(--hair);
  overflow: hidden;
}
.hero::before {
  /* a slow vertical wash so the fold is not a flat black rectangle */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--tint) 13%, transparent), transparent 65%),
    linear-gradient(180deg, var(--ink-850), var(--ink-900));
  z-index: -1;
}

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem 1.1rem;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.6rem + 0.35vw, 0.9rem);
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--bone-500);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.hero__meta > * { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta .dot { width: 4px; height: 4px; background: var(--tint); border-radius: 50%; }
.hero__regime { color: color-mix(in srgb, var(--tint) 80%, var(--bone-100)); }

.hero__title {
  font-size: var(--step-5);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.hero__standfirst {
  max-width: 46ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--bone-300);
  text-wrap: pretty;
}

.badge-sensitive {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 2rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--ember) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ember) 10%, transparent);
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ember-bright) 88%, var(--bone-050));
}
.badge-sensitive svg { width: 14px; height: 14px; flex: none; }

.hero__scroll {
  display: none;
}
@media (min-width: 900px) and (min-height: 640px) {
  .hero__scroll {
    display: flex; align-items: center; gap: 0.6rem;
    margin-top: clamp(2rem, 6vh, 4rem);
    font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--bone-600);
  }
  .hero__scroll i {
    display: block; width: 34px; height: 1px; background: var(--bone-600);
    animation: pull 2.6s var(--ease) infinite;
    transform-origin: 0 50%;
  }
}
@keyframes pull { 0%,100% { transform: scaleX(0.4); } 50% { transform: scaleX(1); } }

/* The hand-lettered place name carries the H1 on memorial pages. */
.hero__title--mark { margin-bottom: clamp(1.5rem, 3.5vh, 2.25rem); }
.hero__lettering {
  width: min(640px, 82vw);
  height: auto;
  filter: brightness(1.12);
}

/* Home hero */
.hero--home { text-align: left; }
.hero--home .hero__title { font-size: var(--step-4); }
.hero__wordmark { width: min(360px, 70vw); height: auto; margin-bottom: 2rem; }

/* ---------- 7. Article + rail ------------------------------------------- */
.layout { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1180px) {
  .layout {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
}

.rail { display: none; }
@media (min-width: 1180px) {
  .rail {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
    max-height: calc(100vh - var(--header-h) - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.5rem;
  }
  .rail::-webkit-scrollbar { width: 3px; }
  .rail::-webkit-scrollbar-thumb { background: var(--ink-700); }
}
.rail__title {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-600);
  padding-bottom: 0.9rem; margin-bottom: 0.4rem;
  border-bottom: var(--hair);
}
.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__link {
  display: block; position: relative;
  padding: 0.5rem 0 0.5rem 1rem;
  font-family: var(--sans); font-size: 0.85rem; line-height: 1.35;
  color: var(--bone-600); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.rail__link::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--ink-700);
  transition: background var(--dur) var(--ease);
}
.rail__link:hover { color: var(--bone-100); }
.rail__link[aria-current="true"] { color: var(--bone-050); font-weight: 500; }
.rail__link[aria-current="true"]::before { background: var(--ember); }

.article { min-width: 0; padding-block: clamp(2.5rem, 7vh, 5rem); }

/* ---------- 8. Chapters -------------------------------------------------- */
.chapter { margin-bottom: clamp(3.5rem, 9vh, 7rem); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.chapter:last-child { margin-bottom: 0; }

.chapter__head { margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem); }
.chapter__eyebrows {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem;
  margin-bottom: 0.9rem;
}
.chapter__eyebrows .eyebrow + .eyebrow::before {
  content: "/"; margin-right: 0.9rem; color: var(--ink-600);
}
/* Hierarchy is hero (step 5) > part opener (step 3) > chapter (step 2).
   A part opener is also marked by the tinted rule above it and the extra
   space, so its type does not have to carry the distinction alone — which
   matters because some of these titles run to a dozen words. */
.chapter__title {
  font-size: var(--step-2);
  max-width: 28ch;
}
.chapter--major .chapter__title { font-size: var(--step-3); letter-spacing: -0.028em; }
.chapter--major .chapter__head {
  padding-top: clamp(2rem, 5vh, 3.5rem);
  border-top: 2px solid var(--tint-soft);
}

.chapter__body > * + * { margin-top: 1.6rem; }
.chapter__body .prose + .prose { margin-top: 1.2rem; }

/* Intro / lead */
.lead { margin-bottom: clamp(3rem, 8vh, 5.5rem); }
.lead .prose { font-size: var(--step-1); line-height: 1.62; color: var(--bone-100); }
.lead .prose p:first-child::first-letter {
  float: left; font-family: var(--sans); font-weight: 800;
  font-size: 3.6em; line-height: 0.78; padding: 0.06em 0.1em 0 0;
  color: var(--tint);
}

/* ---------- 9. Figures & galleries -------------------------------------- */
figure { margin: 0; }

.figcaption {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.83rem; line-height: 1.5;
  color: var(--bone-500);
  max-width: 60ch;
  text-wrap: pretty;
}

.figure {
  margin-block: clamp(2rem, 5vh, 3rem);
}
.figure img {
  width: 100%;
  background: var(--ink-800);
  border: var(--hair);
}

/* Full-bleed on mobile: archival photographs deserve the whole screen. */
@media (max-width: 700px) {
  .figure--bleed { margin-inline: calc(var(--gutter) * -1); }
  .figure--bleed img { border-left: 0; border-right: 0; }
  .figure--bleed .figcaption { padding-inline: var(--gutter); }
}

/* Gallery: a scroll-snap strip. No carousel library, no autoplay, no
   hidden captions — the captions carry the provenance of each photograph. */
.gallery { margin-block: clamp(2rem, 5vh, 3.25rem); }

.gallery__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 620px);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-600) transparent;
}
.gallery__viewport::-webkit-scrollbar { height: 4px; }
.gallery__viewport::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 2px; }

@media (max-width: 700px) {
  .gallery__viewport {
    grid-auto-columns: 88%;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
}
@media (min-width: 1180px) {
  .gallery__viewport { grid-auto-columns: min(72%, 660px); }
}

.gallery__item { scroll-snap-align: start; min-width: 0; }
.gallery__btn {
  display: block; width: 100%; padding: 0; position: relative;
  background: var(--ink-800); border: var(--hair);
  cursor: zoom-in;
  overflow: hidden;
}
.gallery__btn img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 600ms var(--ease), opacity var(--dur) var(--ease);
}
.gallery__btn:hover img { transform: scale(1.025); }
.gallery__btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45));
  opacity: 0; transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.gallery__btn:hover::after { opacity: 1; }

.gallery__zoom {
  position: absolute; right: 10px; bottom: 10px;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(8,8,10,0.72); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%; color: var(--bone-050);
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery__btn:hover .gallery__zoom, .gallery__btn:focus-visible .gallery__zoom {
  opacity: 1; transform: translateY(0);
}
.gallery__zoom svg { width: 14px; height: 14px; }

.gallery__bar {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 0.9rem;
}
.gallery__count {
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.08em; color: var(--bone-600);
  font-variant-numeric: tabular-nums;
}
.gallery__nav { display: flex; gap: 0.4rem; margin-left: auto; }
.gallery__arrow {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: var(--hair); border-radius: var(--radius);
  color: var(--bone-300);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.gallery__arrow:hover:not(:disabled) { color: var(--bone-050); border-color: var(--ink-500); background: var(--ink-800); }
.gallery__arrow:disabled { opacity: 0.3; cursor: default; }
.gallery__arrow svg { width: 15px; height: 15px; }

/* ---------- 10. Lightbox ------------------------------------------------- */
.lightbox {
  margin: 0; padding: 0; border: 0;
  max-width: none; max-height: none;
  width: 100vw; height: 100dvh;
  background: rgba(5, 5, 6, 0.97);
  color: var(--bone-100);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox__stage {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lightbox__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem var(--gutter);
  border-bottom: var(--hair);
}
.lightbox__count {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--bone-500); font-variant-numeric: tabular-nums;
}
.lightbox__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: var(--hair); border-radius: var(--radius);
}
.lightbox__close:hover { background: var(--ink-800); }
.lightbox__figure {
  min-height: 0; display: grid; place-items: center;
  padding: 1rem var(--gutter); position: relative;
}
.lightbox__figure img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
}
.lightbox__bottom {
  padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  border-top: var(--hair);
  display: flex; align-items: flex-start; gap: 1rem;
}
.lightbox__caption {
  font-family: var(--sans); font-size: 0.88rem; line-height: 1.5;
  color: var(--bone-300); max-width: 76ch; margin: 0;
}
.lightbox__nav { display: flex; gap: 0.5rem; margin-left: auto; flex: none; }
.lightbox__arrow {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: var(--hair); border-radius: var(--radius); color: var(--bone-100);
}
.lightbox__arrow:hover:not(:disabled) { background: var(--ink-800); }
.lightbox__arrow:disabled { opacity: 0.3; cursor: default; }
.lightbox__arrow svg { width: 18px; height: 18px; }

/* ---------- 11. Documents (PDF) ----------------------------------------- */
.docs { display: grid; gap: 0.75rem; margin-block: clamp(1.75rem, 4vh, 2.5rem); }
@media (min-width: 720px) { .docs--multi { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

.doc {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--ink-850);
  border: var(--hair);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.doc:hover {
  background: var(--ink-800);
  border-color: color-mix(in srgb, var(--ember) 45%, var(--ink-600));
  transform: translateY(-1px);
}
.doc__icon {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--ink-600); border-radius: 2px;
  color: var(--ember-bright);
}
.doc__icon svg { width: 17px; height: 17px; }
.doc__body { min-width: 0; }
.doc__label {
  display: block;
  font-family: var(--sans); font-weight: 600; font-size: 0.97rem;
  color: var(--bone-050); line-height: 1.3;
}
.doc__meta {
  display: block; margin-top: 0.2rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-600);
}
.doc__arrow { margin-left: auto; flex: none; color: var(--bone-600); }
.doc:hover .doc__arrow { color: var(--ember-bright); }
.doc__arrow svg { width: 16px; height: 16px; }

/* ---------- 12. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 600;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid var(--ink-600);
  color: var(--bone-050);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover { background: var(--ink-800); border-color: var(--ink-500); }
.btn--primary { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn--primary:hover { background: var(--ember-bright); border-color: var(--ember-bright); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- 13. Video ---------------------------------------------------- */
.video {
  margin-block: clamp(2rem, 5vh, 3rem);
}
.video__frame {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--ink-850); border: var(--hair);
  overflow: hidden;
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Click-to-load facade: no YouTube request until the visitor asks for one. */
.video__facade {
  position: absolute; inset: 0; width: 100%;
  display: grid; place-items: center; gap: 0;
  cursor: pointer; padding: 0; border: 0;
  background-size: cover; background-position: center;
}
.video__facade::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(6, 6, 8, 0.55);
  transition: background var(--dur) var(--ease);
}
.video__facade:hover::before { background: rgba(6, 6, 8, 0.38); }
.video__play {
  position: relative; z-index: 1;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ember); color: #fff;
  transition: transform var(--dur) var(--ease);
}
.video__facade:hover .video__play { transform: scale(1.07); }
.video__play svg { width: 20px; height: 20px; margin-left: 3px; }
.video__hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 0.8rem 1rem;
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone-300); text-align: center;
}

/* ---------- 14. Compare block (cross-links) ----------------------------- */
.compare {
  border-top: var(--hair);
  padding-block: clamp(3rem, 8vh, 5rem);
  margin-top: clamp(3rem, 8vh, 5rem);
}
.compare__title {
  font-size: var(--step-2); margin-bottom: 0.6rem;
}
.compare__intro { color: var(--bone-500); max-width: 56ch; margin-bottom: 2rem; }
.compare__grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .compare__grid { grid-template-columns: 1fr 1fr; } }

.place-card {
  position: relative; display: block;
  padding: 1.5rem;
  background: var(--ink-850);
  border: var(--hair);
  border-left: 2px solid var(--card-tint, var(--ink-600));
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.place-card:hover { background: var(--ink-800); transform: translateY(-2px); }
.place-card[data-site="bykivnia"] { --card-tint: var(--site-bykivnia); }
.place-card[data-site="babyn-yar"] { --card-tint: var(--site-babyn-yar); }
.place-card[data-site="bucha"] { --card-tint: var(--site-bucha); }

.place-card__meta {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--card-tint) 80%, var(--bone-100));
  margin-bottom: 0.6rem;
}
.place-card__name {
  font-family: var(--sans); font-size: var(--step-2); font-weight: 700;
  letter-spacing: -0.025em; color: var(--bone-050);
  margin-bottom: 0.5rem;
}
.place-card__desc {
  font-size: 0.94rem; line-height: 1.55; color: var(--bone-500);
  margin: 0;
}
.place-card__go {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  color: var(--bone-100);
}
.place-card:hover .place-card__go { color: var(--ember-bright); }
.place-card__go svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.place-card:hover .place-card__go svg { transform: translateX(3px); }

/* ---------- 15. Home-specific ------------------------------------------- */
.places { display: grid; gap: 1rem; margin-block: clamp(2.5rem, 7vh, 4.5rem); }
@media (min-width: 860px) { .places { grid-template-columns: repeat(3, 1fr); } }

.people { columns: 1; column-gap: 2.5rem; }
@media (min-width: 760px) { .people { columns: 2; } }
.people p {
  break-inside: avoid;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--ink-750);
  font-size: 0.97rem; line-height: 1.6;
  color: var(--bone-300);
}
.people p strong, .people p b { color: var(--bone-050); }

.partners { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
@media (min-width: 760px) { .partners { grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; } }
.partners li {
  margin: 0; padding: 0.7rem 0;
  border-bottom: 1px solid var(--ink-750);
  font-size: 0.95rem; color: var(--bone-300);
}

/* ---------- 16. Mobile chapter sheet ------------------------------------ */
.jump-fab {
  position: fixed; z-index: 70;
  right: max(var(--gutter), 1rem);
  bottom: calc(1.15rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.15rem;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  color: var(--bone-050);
  transform: translateY(150%);
  transition: transform var(--dur) var(--ease);
}
.jump-fab.is-visible { transform: translateY(0); }
.jump-fab svg { width: 15px; height: 15px; }
@media (min-width: 1180px) { .jump-fab { display: none; } }

.jump-sheet {
  position: fixed; inset: auto 0 0 0; z-index: 100;
  width: 100%; max-width: none; max-height: 82dvh;
  margin: 0; padding: 0; border: 0;
  border-top-left-radius: 14px; border-top-right-radius: 14px;
  background: var(--ink-850);
  border-top: var(--hair);
  color: var(--bone-100);
  overflow: hidden;
}
.jump-sheet::backdrop { background: rgba(0, 0, 0, 0.65); }
.jump-sheet__grip {
  width: 38px; height: 4px; border-radius: 2px;
  background: var(--ink-600); margin: 10px auto 4px;
}
.jump-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem var(--gutter) 0.75rem;
  border-bottom: var(--hair);
}
.jump-sheet__title {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-500);
}
.jump-sheet__list {
  list-style: none; margin: 0;
  padding: 0.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto; max-height: calc(82dvh - 70px);
  overscroll-behavior: contain;
}
.jump-sheet__list a {
  display: flex; align-items: center; gap: 0.9rem;
  min-height: 52px; padding: 0.5rem 0;
  border-bottom: 1px solid var(--ink-750);
  font-family: var(--sans); font-size: 0.97rem;
  color: var(--bone-100); text-decoration: none;
}
.jump-sheet__list a[aria-current="true"] { color: var(--ember-bright); }
.jump-sheet__num {
  flex: none; width: 26px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--bone-600);
  font-variant-numeric: tabular-nums;
}

/* ---------- 17. Sensitive-content gate ---------------------------------- */
.gate {
  margin: 0; padding: 0; border: 0;
  max-width: none; max-height: none;
  width: 100vw; height: 100dvh;
  background: var(--ink-950); color: var(--bone-100);
}
.gate::backdrop { background: rgba(0, 0, 0, 0.92); }
.gate__inner {
  height: 100dvh; display: grid; place-items: center;
  padding: var(--gutter);
}
.gate__box { max-width: 46ch; text-align: left; }
.gate__eyebrow {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ember-bright); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.gate__eyebrow svg { width: 15px; height: 15px; }
.gate__title { font-size: var(--step-3); margin-bottom: 1rem; }
.gate__text { color: var(--bone-300); margin-bottom: 2rem; }
.gate__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- 18. Footer --------------------------------------------------- */
.site-footer {
  border-top: var(--hair);
  background: var(--ink-950);
  padding-block: clamp(3rem, 8vh, 5rem) 2rem;
  margin-top: clamp(3rem, 8vh, 6rem);
}
.site-footer__grid {
  display: grid; gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 860px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.site-footer__title {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-600); margin-bottom: 1rem;
}
.site-footer a { color: var(--bone-300); text-decoration: none; }
.site-footer a:hover { color: var(--ember-bright); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; font-size: 0.92rem; }

.social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: var(--hair); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.social a:hover { background: var(--ink-800); border-color: var(--ink-500); }
.social svg { width: 17px; height: 17px; }

.disclaimer {
  border-top: var(--hair);
  padding-top: 1.5rem;
  font-size: 0.8rem; line-height: 1.6; color: var(--bone-600);
  max-width: 70ch;
}
.colophon {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.07em; color: var(--bone-600);
}

/* ---------- 19. Breadcrumbs --------------------------------------------- */
.crumbs {
  padding-block: 1rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone-600);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--ink-600); }
.crumbs a { color: var(--bone-500); text-decoration: none; }
.crumbs a:hover { color: var(--bone-100); }

/* ---------- 20. Utilities ----------------------------------------------- */
.stack > * + * { margin-top: 1.25rem; }
.mt-0 { margin-top: 0 !important; }
[hidden] { display: none !important; }
