/* ==========================================================================
   Stamboom - v2
   Design system: "Daylight"
   Near-white paper, near-black ink, one terracotta accent
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Neutrals — near-black ink on warm off-white paper */
  --ink-rgb: 25 23 20;
  --light-rgb: 255 255 255;
  --ink-900: #191714;
  --ink-800: #232019;
  --ink-700: #322d25;
  --ink-600: #4a443a;

  --paper-rgb: 250 248 245;
  --paper-50: #faf8f5;
  --paper-100: #f3f0ea;
  --paper-200: #e7e2da;
  --paper-300: #d6cfc4;

  --text-900: #191714;
  --text-700: #3a3630;
  --text-500: #6b6660;
  --text-300: #9a948c;

  --on-dark-900: #ffffff;
  --on-dark-600: #d9d5cf;
  --on-dark-400: #9c968e;

  /* Accent — terracotta, the single warm colour */
  --gold-600: #b64e2c;
  --gold-500: #c75b39;
  --gold-400: #e07a55;
  --gold-200: #f6e2da;
  --accent-deep: #b04a28;

  /* Secondary meanings */
  --henna-600: #b64e2c;
  --henna-400: #e07a55;
  --leaf-700: #2f6b52;
  --leaf-400: #4f9b78;

  /* Hero wash behind the photograph */
  --sky-1: #191714;
  --sky-2: #241f19;
  --sky-3: #3a2f26;
  --sky-4: #6d4f3c;
  --sky-5: #b06a45;

  /* Type */
  --font-display: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Space scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: none;
  --shadow-md: 0 24px 60px rgba(25, 23, 20, .1);

  --shell: 1160px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-700);
  background: var(--paper-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-900);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 var(--s-4);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold-200); color: var(--text-900); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.shell--narrow { max-width: 760px; }

.section { padding-block: clamp(56px, 9vw, 112px); }
.section--paper { background: var(--paper-100); }
.section--dark { background: var(--ink-900); color: var(--on-dark-600); }
.section--dark h2, .section--dark h3 { color: var(--on-dark-900); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-3);
  background: var(--ink-900);
  color: var(--on-dark-900);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: var(--s-4); }

/* ---------- Type utilities ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  max-width: 120px;
}
.section--dark .eyebrow { color: var(--gold-400); }
.section--dark .eyebrow::after { background: linear-gradient(90deg, var(--gold-500), transparent); }

.display {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 72;
}

.h2 { font-size: clamp(28px, 3.6vw, 44px); }
.h3 { font-size: clamp(20px, 2vw, 26px); }

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--text-500);
}
.section--dark .lede { color: var(--on-dark-600); }

.muted { color: var(--text-500); }
.small { font-size: 14px; line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold-500); color: var(--ink-900); }
.btn--gold:hover { background: var(--gold-400); }

.btn--ink { background: var(--ink-900); color: var(--on-dark-900); }
.btn--ink:hover { background: var(--ink-700); }

.btn--ghost {
  border-color: rgb(var(--light-rgb) / .35);
  color: var(--on-dark-900);
  background: rgb(var(--light-rgb) / .04);
}
.btn--ghost:hover { border-color: var(--on-dark-900); background: rgb(var(--light-rgb) / .1); }

.btn--ghost-ink {
  border-color: var(--paper-300);
  color: var(--text-900);
  background: transparent;
}
.btn--ghost-ink:hover { border-color: var(--text-900); }

.btn--sm { padding: 10px 18px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 15px;
  color: var(--henna-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--ink-rgb) / .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgb(var(--light-rgb) / .08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--on-dark-900);
  margin-right: auto;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav a {
  color: var(--on-dark-600);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--on-dark-900); border-bottom-color: var(--gold-500); }

.lang {
  display: flex;
  gap: var(--s-1);
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--on-dark-400);
}
.lang a { text-decoration: none; padding: 4px 6px; border-radius: var(--radius-sm); }
.lang a[aria-current="true"] { color: var(--ink-900); background: var(--gold-400); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--on-dark-900);
  overflow: hidden;
  isolation: isolate;
}
.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    linear-gradient(165deg, var(--sky-1) 0%, var(--sky-2) 38%, var(--sky-3) 68%, var(--sky-4) 88%, var(--sky-5) 100%);
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  mix-blend-mode: luminosity;
  opacity: .62;
}
.hero__credit {
  margin: 0;
  padding-bottom: var(--s-4);
  text-align: right;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgb(var(--light-rgb) / .45);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgb(var(--ink-rgb) / .9) 8%, rgb(var(--ink-rgb) / .6) 48%, rgb(var(--ink-rgb) / .25) 80%),
    linear-gradient(0deg, rgb(var(--ink-rgb) / .8), transparent 42%);
}
.hero__inner {
  padding-block: clamp(80px, 13vw, 168px) clamp(40px, 6vw, 72px);
  max-width: 720px;
}
.hero .display { color: var(--on-dark-900); }
.hero .display em {
  font-style: italic;
  color: var(--gold-400);
  font-variation-settings: "SOFT" 20, "WONK" 1;
  padding-right: .07em; /* italic right bearing */
}
.hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--on-dark-600);
  max-width: 56ch;
  margin-top: var(--s-5);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
}

/* Stat strip */
.stats {
  border-top: 1px solid rgb(var(--light-rgb) / .12);
  background: rgb(var(--ink-rgb) / .55);
  backdrop-filter: blur(6px);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding-block: var(--s-6) var(--s-5);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1;
  color: var(--gold-400);
  font-variation-settings: "WONK" 1;
}
.stat__label {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-400);
  margin-top: var(--s-2);
}

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin-bottom: var(--s-7); }
.section-head .lede { margin-top: var(--s-4); }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-5);
  counter-reset: step;
}
.tl-card {
  position: relative;
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-sm);
}
.section--paper .tl-card { background: #fff; }
.tl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--s-5);
  right: var(--s-5);
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--henna-400));
  border-radius: 0 0 3px 3px;
}
.tl-card__year {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--henna-600);
  margin-bottom: var(--s-2);
}
.tl-card h3 { font-size: 21px; margin-bottom: var(--s-3); }
.tl-card p { font-size: 15.5px; line-height: 1.6; color: var(--text-500); }
.tl-card dl {
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--paper-300);
  font-size: 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px var(--s-3);
}
.tl-card dt { color: var(--text-300); letter-spacing: .04em; text-transform: uppercase; font-size: 11px; padding-top: 3px; }
.tl-card dd { margin: 0; color: var(--text-700); font-weight: 500; }

/* ---------- Quote ---------- */
.quote {
  border-left: 3px solid var(--gold-500);
  padding-left: var(--s-5);
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.32;
  color: var(--text-900);
  font-variation-settings: "SOFT" 20, "WONK" 1;
}
.section--dark .quote { color: var(--on-dark-900); }
.quote footer {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-300);
  margin-top: var(--s-4);
}

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split--top { align-items: start; }

/* ---------- Tree preview ---------- */
.tree-panel {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid rgb(var(--light-rgb) / .1);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
}
.tree-search {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: rgb(var(--light-rgb) / .07);
  border: 1px solid rgb(var(--light-rgb) / .14);
  border-radius: var(--radius-pill);
  padding: 11px var(--s-4);
  color: var(--on-dark-400);
  font-size: 15px;
  margin-bottom: var(--s-5);
}
.tree-search kbd {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 11px;
  border: 1px solid rgb(var(--light-rgb) / .2);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--on-dark-400);
}
.tree-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-5);
  font-size: 12.5px;
  color: var(--on-dark-400);
}
.tree-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--gold { background: var(--gold-500); }
.dot--leaf { background: var(--leaf-400); }
.dot--henna { background: var(--henna-400); }

/* Feature list */
.feature-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-5); }
.feature-list li { display: grid; grid-template-columns: 34px 1fr; gap: var(--s-4); }
.feature-list h3 { font-size: 18px; margin-bottom: 4px; }
.feature-list p { font-size: 15.5px; color: var(--text-500); }
.section--dark .feature-list p { color: var(--on-dark-400); }
.feature-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(217, 160, 60, .14);
  color: var(--gold-600);
  border: 1px solid rgba(217, 160, 60, .3);
}
.section--dark .feature-icon { color: var(--gold-400); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.card {
  background: #fff;
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.card--dashed {
  background: transparent;
  border-style: dashed;
  border-color: var(--paper-300);
  box-shadow: none;
  justify-content: center;
  align-items: flex-start;
}
.card__meta {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-300);
}
.card h3 { font-size: 20px; margin: 0; }
.card p { font-size: 15.5px; color: var(--text-500); }

.photo-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg, var(--paper-100) 0 10px, var(--paper-200) 10px 20px);
  display: grid;
  place-items: center;
  color: var(--text-300);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--paper-200);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-5);
  counter-reset: s;
}
.step { counter-increment: s; padding-top: var(--s-5); border-top: 2px solid rgb(var(--light-rgb) / .16); }
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold-400);
  display: block;
  margin-bottom: var(--s-3);
}
.step h3 { font-size: 19px; margin-bottom: var(--s-2); }
.step p { font-size: 15px; color: var(--on-dark-400); }

/* ---------- Business grid ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--paper-200);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.biz {
  background: var(--paper-50);
  padding: var(--s-5);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  transition: background .18s var(--ease);
}
.biz:hover { background: #fff; }
.biz strong { font-family: var(--font-display); font-size: 18px; color: var(--text-900); font-weight: 600; }
.biz span { font-size: 13.5px; color: var(--text-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(1000px 340px at 18% 0%, rgba(217, 160, 60, .2), transparent 62%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
  color: var(--on-dark-900);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5.5vw, 68px);
  text-align: center;
}
.cta-band h2 { color: var(--on-dark-900); }
.cta-band .lede { margin-inline: auto; max-width: 54ch; color: var(--on-dark-600); }
.cta-band .hero__actions { justify-content: center; margin-top: var(--s-6); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--on-dark-400);
  padding-block: var(--s-8) var(--s-6);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgb(var(--light-rgb) / .1);
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.site-footer a { color: var(--on-dark-600); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark-900); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  padding-top: var(--s-5);
  font-size: 13px;
  color: var(--on-dark-400);
}

/* ---------- Divider motif ---------- */
.motif {
  display: block;
  margin: 0 auto;
  width: 120px;
  opacity: .8;
}

/* ---------- Style guide extras ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-4); }
.swatch { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--paper-200); background: #fff; }
.swatch__chip { height: 84px; }
.swatch__body { padding: var(--s-3) var(--s-4) var(--s-4); }
.swatch__name { font-weight: 600; font-size: 14px; color: var(--text-900); }
.swatch__hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--text-500); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--paper-200); vertical-align: top; }
.spec-table th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-300); font-weight: 600; }
.spec-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--paper-100); padding: 2px 6px; border-radius: 4px; }

.demo-box {
  border: 1px dashed var(--paper-300);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.demo-box--dark { background: var(--ink-900); border-color: rgba(251,247,240,.2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

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

@media print {
  .site-header, .hero__art, .cta-band { background: #fff !important; color: #000 !important; }
  body { background: #fff; }
}

/* ==========================================================================
   Additions: language buttons, notes, photos, roadmap, palette themes
   ========================================================================== */

/* ---------- Language buttons ---------- */
.lang button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--on-dark-400);
  background: none;
  border: 0;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
}
.lang button:hover { color: var(--on-dark-900); }
.lang button[aria-current="true"] { color: var(--ink-900); background: var(--gold-400); }

/* ---------- Devanagari ---------- */
html[lang="hi"] {
  --font-display: "Noto Sans Devanagari", "Instrument Sans", sans-serif;
  --font-body: "Noto Sans Devanagari", "Inter", sans-serif;
}
html[lang="hi"] body { line-height: 1.85; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.35; letter-spacing: 0; }
html[lang="hi"] .display { line-height: 1.25; letter-spacing: 0; font-size: clamp(32px, 5vw, 60px); }
html[lang="hi"] .eyebrow { letter-spacing: .06em; }
html[lang="hi"] .stat__label, html[lang="hi"] .card__meta,
html[lang="hi"] .site-footer h4 { letter-spacing: .04em; text-transform: none; }

/* ---------- Notes under the timeline ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.note {
  border-left: 2px solid var(--paper-300);
  padding-left: var(--s-5);
}
.note--open { border-left-color: var(--henna-400); }
.note__h {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-300);
  margin-bottom: var(--s-2);
}
.note--open .note__h { color: var(--henna-600); }
.note p { color: var(--text-500); }

/* ---------- Next stage callout ---------- */
.next-stage {
  margin-top: var(--s-7);
  border: 1px dashed rgb(var(--light-rgb) / .28);
  border-radius: var(--radius-md);
  padding: var(--s-5);
}
.next-stage h3 { font-size: 19px; margin: var(--s-2) 0 var(--s-3); color: var(--on-dark-900); }
.next-stage p { color: var(--on-dark-400); }
.next-stage .card__meta { color: var(--gold-400); }

/* ---------- Historic photographs ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.pf { margin: 0; grid-column: span 4; }
.pf--wide { grid-column: span 6; }
.pf--half { grid-column: span 6; }
.pf__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--paper-300);
  background: var(--paper-200);
  box-shadow: var(--shadow-sm);
}
.pf__frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(.22) contrast(1.04) saturate(.85);
  transition: filter .4s var(--ease), transform .6s var(--ease);
}
.pf:hover .pf__frame img { filter: sepia(.05) contrast(1.02); transform: scale(1.02); }
.pf--tall .pf__frame img { aspect-ratio: 3 / 4; }
.pf figcaption {
  margin-top: var(--s-3);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-700);
}
.pf .credit {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-300);
}
.pf .credit a { color: inherit; }
.photo-note {
  margin-top: var(--s-6);
  font-size: 13.5px;
  color: var(--text-500);
  max-width: 78ch;
}

@media (max-width: 860px) {
  .pf, .pf--wide, .pf--half { grid-column: span 6; }
}
@media (max-width: 520px) {
  .pf, .pf--wide, .pf--half { grid-column: span 12; }
}

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid;
  gap: var(--s-4);
  counter-reset: phase;
}
.phase {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--paper-200);
  align-items: start;
}
.section--dark .phase { border-top-color: rgb(var(--light-rgb) / .14); }
.phase:last-child { border-bottom: 1px solid var(--paper-200); }
.section--dark .phase:last-child { border-bottom-color: rgb(var(--light-rgb) / .14); }
.phase__label {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-300);
}
.section--dark .phase__label { color: var(--on-dark-400); }
.phase h3 { font-size: clamp(21px, 2.2vw, 27px); margin-bottom: var(--s-3); }
.phase p { color: var(--text-500); max-width: 62ch; }
.section--dark .phase p { color: var(--on-dark-600); }
.phase ul {
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s-2);
  font-size: 15px;
}
.phase li { padding-left: 24px; position: relative; color: var(--text-500); }
.section--dark .phase li { color: var(--on-dark-400); }
.phase li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: .7;
}
.chip {
  display: inline-block;
  margin-top: var(--s-3);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
}
.chip--done { color: var(--leaf-700); }
.chip--now { color: var(--gold-600); background: rgba(217, 160, 60, .12); }
.chip--next { color: var(--henna-600); }
.chip--later { color: var(--text-300); }
.section--dark .chip--done { color: var(--leaf-400); }
.section--dark .chip--now { color: var(--gold-400); }
.section--dark .chip--next { color: var(--henna-400); }
.section--dark .chip--later { color: var(--on-dark-400); }

@media (max-width: 760px) {
  .phase { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ---------- Contact form ---------- */
.form {
  display: grid;
  gap: var(--s-4);
  background: #fff;
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-700);
}
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  font: inherit;
  font-size: 16px;
  color: var(--text-900);
  background: var(--paper-50);
  border: 1px solid var(--paper-300);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.form textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.form select { appearance: none; background-image: none; cursor: pointer; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  background: #fff;
  border-color: var(--gold-500);
  outline: 2px solid transparent;
}
.form input:user-invalid,
.form textarea:user-invalid { border-color: var(--henna-400); }

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--s-3);
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-500);
  cursor: pointer;
}
.check input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--gold-500); }

.botcheck { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 14.5px; min-height: 1.2em; }
.form-status.is-ok { color: var(--leaf-700); font-weight: 500; }
.form-status.is-error { color: var(--henna-600); font-weight: 500; }

@media (max-width: 560px) {
  .form { padding: var(--s-5); }
  .field-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Component treatments
   ========================================================================== */

/* ---------- Typography: tighter, larger, no wonk ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -.025em;
  font-variation-settings: normal;
}
.display {
  font-size: clamp(40px, 6.6vw, 82px);
  line-height: .98;
  letter-spacing: -.04em;
  font-variation-settings: normal;
}
.hero .display em {
  font-style: normal;
  color: var(--gold-400);
}
.h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.05; }
.stat__value { letter-spacing: -.03em; font-variation-settings: normal; }
.quote {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.02em;
  border-left-width: 2px;
  border-left-color: var(--gold-500);
  font-variation-settings: normal;
}

/* ---------- Labels: sentence case pills instead of spaced caps ---------- */
.eyebrow {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-600);
}
.eyebrow::after {
  height: 1px;
  background: var(--paper-200);
  max-width: none;
}
.section--dark .eyebrow::after { background: rgb(var(--light-rgb) / .16); }

.stat__label,
.card__meta,
.phase__label,
.note__h,
.site-footer h4,
.chip,
.brand__sub {
  text-transform: none;
  letter-spacing: 0;
}
.stat__label,
.card__meta,
.note__h { font-size: 14px; }
.brand__sub { font-size: 12px; color: var(--on-dark-400); margin-top: 4px; }

/* ---------- Header: light, not a dark bar ---------- */
.site-header {
  /* via een variabele, zodat de kopbalk meekleurt met de huisstijl van een stamboom */
  background: rgb(var(--paper-rgb) / .82);
  border-bottom: 1px solid var(--paper-200);
}
.brand { color: var(--text-900); }
.brand__sub { color: var(--text-500); }
.nav a { color: var(--text-700); }
.nav a:hover { color: var(--text-900); border-bottom-color: var(--gold-500); }
.lang button { color: var(--text-500); }
.lang button:hover { color: var(--text-900); }
.lang button[aria-current="true"] { background: var(--text-900); color: #fff; }
.brand__mark circle[stroke] { stroke: var(--gold-500); }
.brand__mark g[stroke] { stroke: var(--gold-500); }
.brand__mark g[fill] { fill: var(--gold-400); }

/* ---------- Hero: photo in full tone, hard-edged scrim ---------- */
.hero__photo {
  filter: grayscale(.15) contrast(1.02);
  mix-blend-mode: normal;
  opacity: .9;
  object-position: 50% 62%;
}
.hero__scrim {
  background:
    linear-gradient(95deg, rgb(var(--ink-rgb) / .94) 0%, rgb(var(--ink-rgb) / .78) 42%, rgb(var(--ink-rgb) / .35) 82%),
    linear-gradient(0deg, rgb(var(--ink-rgb) / .7), transparent 38%);
}
.stats { background: rgb(var(--ink-rgb) / .72); }

/* ---------- Buttons: squarer, flatter ---------- */
.btn { border-radius: 10px; font-weight: 500; }
.btn--gold { background: var(--accent-deep); color: #fff; }
.btn--gold:hover { background: #963d1f; }
.btn:hover { transform: none; }
.btn--ghost:hover,
.btn--ghost-ink:hover { background: rgb(var(--light-rgb) / .12); }

/* ---------- Surfaces: flat, 1px borders, no vintage texture ---------- */
.card,
.tl-card {
  border-color: var(--paper-200);
  box-shadow: none;
  background: #fff;
}
.tl-card::before { display: none; }
.tl-card {
  border-top: 3px solid var(--gold-500);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.tl-card__year {
  font-family: var(--font-display);
  letter-spacing: -.01em;
  font-size: 14px;
  color: var(--text-500);
}
.tl-card dl { border-top-style: solid; border-top-color: var(--paper-200); }
.photo-slot {
  background: var(--paper-100);
  border-style: dashed;
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Photographs: no sepia ---------- */
.pf__frame {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--paper-100);
}
.pf__frame img { filter: contrast(1.03); }
.pf:hover .pf__frame img { filter: contrast(1.03); transform: scale(1.015); }

/* ---------- Roadmap & chips ---------- */
.phase { border-top-color: var(--paper-200); }
.section--dark .phase { border-top-color: rgb(var(--light-rgb) / .14); }
.phase li::before { background: var(--gold-500); opacity: 1; width: 5px; height: 5px; }
.chip {
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border-width: 1px;
}
.chip--now { background: var(--gold-200); }

/* ---------- Tree panel & CTA band ---------- */
.tree-panel {
  background: var(--ink-800);
  border-color: rgb(var(--light-rgb) / .12);
  border-radius: var(--radius-lg);
}
.cta-band {
  background: var(--ink-900);
  border-radius: var(--radius-lg);
}
.feature-icon {
  background: rgb(199 91 57 / .16);
  border-color: rgb(199 91 57 / .38);
  color: var(--gold-400);
  border-radius: 10px;
}
.biz { min-height: 124px; }
.biz--add { background: var(--paper-100); }
.next-stage { border-radius: var(--radius-md); }

/* ---------- Contact form ---------- */
.form {
  border-color: var(--paper-200);
  border-radius: var(--radius-md);
  box-shadow: none;
}
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  background: #fff;
  border-color: var(--paper-200);
  border-radius: 10px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--text-900);
  box-shadow: 0 0 0 3px rgb(199 91 57 / .14);
}
.check input { accent-color: #b04a28; }

/* Empty photo slot that asks for a contribution */
.photo-slot--wanted {
  text-decoration: none;
  color: var(--gold-600);
  font-weight: 500;
  text-align: center;
  padding: var(--s-4);
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.photo-slot--wanted:hover { background: var(--gold-200); border-color: var(--gold-400); }

/* ---------- Personal note from the keeper ---------- */
.keeper-note {
  max-width: 68ch;
  margin: 0 0 var(--s-7);
  padding: var(--s-5) var(--s-6);
  background: var(--gold-200);
  border-radius: var(--radius-md);
}
.keeper-note h3 {
  font-size: 18px;
  margin-bottom: var(--s-3);
  color: var(--gold-600);
}
.keeper-note p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-700);
  margin-bottom: var(--s-3);
}
.keeper-note__sign {
  font-weight: 500;
  color: var(--text-900);
  margin-bottom: 0;
}
@media (max-width: 560px) { .keeper-note { padding: var(--s-5); } }

/* ---------- Contract-number decoder ---------- */
.decoder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-6);
  align-items: center;
  margin-top: var(--s-7);
  padding: var(--s-5) var(--s-6);
  background: #fff;
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
}
.decoder__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
}
.decoder__letter { color: var(--gold-600); }
.decoder__slash { color: var(--text-300); margin: 0 2px; }
.decoder__digits { color: var(--text-900); }
.decoder h3 { font-size: 19px; margin-bottom: var(--s-2); }
.decoder p { color: var(--text-500); margin-bottom: var(--s-2); }
.decoder p:last-child { color: var(--text-300); margin-bottom: 0; }

@media (max-width: 620px) {
  .decoder { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ---------- Victim name list ---------- */
.namelist {
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px;
  background: var(--paper-200);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.name {
  background: var(--paper-50);
  padding: 10px var(--s-4);
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-size: 15px;
}
.name__n { font-weight: 500; color: var(--text-900); }
.name__num { font-size: 12.5px; color: var(--text-300); margin-left: auto; }
.name__yr {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--gold-200);
  color: var(--gold-600);
}
.name--r, .name--x { background: #fff; }

/* ---------- Contract number lookup ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lookup { display: flex; gap: var(--s-2); margin-top: var(--s-4); max-width: 420px; }
.lookup input {
  flex: 1;
  font: inherit;
  font-size: 16px;
  color: var(--text-900);
  background: #fff;
  border: 1px solid var(--paper-200);
  border-radius: 10px;
  padding: 10px 13px;
  min-width: 0;
}
.lookup input:focus {
  outline: none;
  border-color: var(--text-900);
  box-shadow: 0 0 0 3px rgb(199 91 57 / .14);
}
.lookup__out { margin-top: var(--s-3); font-size: 15px; min-height: 1.2em; }
.lookup__out.is-ok { color: var(--text-700); }
.lookup__out.is-error { color: var(--henna-600); }
.lookup__out strong { color: var(--text-900); }
.lookup__link { color: var(--gold-600); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tree-caption { margin-top: var(--s-4); color: var(--on-dark-400); }

/* Document scans: show the whole sheet, never crop it */
.pf__frame { display: block; }
.pf--doc .pf__frame {
  background: var(--paper-100);
  border: 1px solid var(--paper-200);
  padding: var(--s-3);
}
.pf--doc .pf__frame img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  max-height: 520px;
  margin-inline: auto;
  width: auto;
  max-width: 100%;
}
.pf--doc:hover .pf__frame img { transform: none; filter: none; }

/* ==========================================================================
   Timeline cards, second pass: wider, calmer, no dead white space
   ========================================================================== */
.timeline {
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  align-items: start;
  gap: var(--s-5);
}
.tl-card {
  padding: var(--s-6);
  border-top-width: 2px;
}
.tl-card__year {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--gold-600);
  margin-bottom: var(--s-1);
}
.tl-card h3 {
  font-size: clamp(20px, 1.9vw, 24px);
  margin-bottom: var(--s-3);
  letter-spacing: -.02em;
}
.tl-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-700);
  max-width: 52ch;
}
.tl-card dl {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  grid-template-columns: 116px 1fr;
  gap: var(--s-3) var(--s-4);
  font-size: 14.5px;
  align-items: baseline;
}
.tl-card dt {
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-300);
  padding-top: 0;
}
.tl-card dd { color: var(--text-700); font-weight: 400; }
.tl-card dd strong, .tl-card dd b { font-weight: 500; }

@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr; }
  .tl-card p { max-width: none; }
}
@media (max-width: 560px) {
  .tl-card { padding: var(--s-5); }
  .tl-card dl { grid-template-columns: 1fr; gap: var(--s-1); }
  .tl-card dt { margin-top: var(--s-3); }
}

/* ==========================================================================
   Timeline cards: align the inner rows across each row of cards
   Year, heading, paragraph and the table line up exactly, so the grey rule
   starts at the same height in every card next to it.
   ========================================================================== */
@supports (grid-template-rows: subgrid) {
  .timeline > .tl-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    row-gap: 0;
    align-content: start;
  }
  /* cards without a data table still align on the first three rows */
  .timeline > .tl-card > :last-child { margin-bottom: 0; }
  .tl-card p { margin-bottom: 0; }
  .tl-card h3 { margin-bottom: var(--s-3); }
  .tl-card dl { margin-top: var(--s-5); align-self: start; }
}

/* The five children, as a record table */
.kids { margin-top: var(--s-7); }
.kids .h3 { margin-bottom: var(--s-2); }
.kids > .small { max-width: 70ch; }
.kids .spec-table { margin: var(--s-5) 0 var(--s-4); }
.kids .spec-table th:last-child, .kids .spec-table td:last-child { white-space: nowrap; }
.kids code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--paper-100); padding: 2px 6px; border-radius: 4px; }
@media (max-width: 620px) {
  .kids .spec-table, .kids .spec-table tbody, .kids .spec-table tr, .kids .spec-table td { display: block; width: 100%; }
  .kids .spec-table thead { display: none; }
  .kids .spec-table tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--paper-200); }
  .kids .spec-table td { border: 0; padding: 2px 0; }
  .kids .spec-table td:first-child { font-weight: 500; color: var(--text-900); }
}
.pf--full { grid-column: span 12; }
.pf--full .pf__frame img { max-height: 620px; }

/* ---------- Afbeelding vergroten ---------- */
.is-zoombaar { cursor: zoom-in; }
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: min(96vw, 1440px); max-height: 96vh;
  color: #fff;
}
.lightbox::backdrop { background: rgb(var(--ink-rgb) / .86); }
.lightbox img {
  display: block; margin-inline: auto;
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  border-radius: var(--radius-md); background: #fff;
  box-shadow: 0 30px 80px rgb(0 0 0 / .45);
}
.lightbox__cap {
  margin: var(--s-4) auto 0; max-width: 76ch; text-align: center;
  font-size: 14.5px; line-height: 1.55; color: rgb(255 255 255 / .82);
}
.lightbox__close {
  position: fixed; top: 18px; right: 20px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: #fff; background: rgb(255 255 255 / .14);
  border: 1px solid rgb(255 255 255 / .3);
  border-radius: 8px; padding: 7px 14px; cursor: pointer;
}
.lightbox__close:hover { background: rgb(255 255 255 / .24); }
@media (max-width: 560px) { .lightbox img { max-height: 70vh; } }
