/* ============================================================
   THE RIGHT TO HEAL — site design system
   Carried over from the Ending NSDs brand: ink, paper, terracotta
   ============================================================ */
:root {
  --ink:        #131822;
  --ink-deep:   #0c1119;
  --ink-soft:   #1a212e;
  --paper:      #f3ede1;
  --paper-warm: #e8ddc7;
  --rule-dark:  rgba(243,237,225,0.16);
  --rule-light: rgba(19,24,34,0.16);

  --accent:      #b53d24;
  --accent-warm: #d76a4a;
  --gold:        #a87a3f;
  --gold-warm:   #c79a55;

  --muted:     #6c6557;
  --muted-ink: #8794a6;

  --t-mono:  "JetBrains Mono", ui-monospace, monospace;
  --t-sans:  "Inter Tight", system-ui, sans-serif;
  --t-serif: "Source Serif 4", Georgia, serif;

  --max: 1320px;
  --pad: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--ink-deep);
  color: var(--paper);
  font-family: var(--t-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.serif { font-family: var(--t-serif); }
.mono  { font-family: var(--t-mono); }
.ital  { font-style: italic; font-weight: 300; }
.red   { color: var(--accent-warm); }
.gold  { color: var(--gold-warm); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section.band { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.band.paper  { background: var(--paper); color: var(--ink); }
.band.paper .red { color: var(--accent); }
.band.paper .gold { color: var(--gold); }
.band.ink-grain {
  background:
    radial-gradient(circle at 18% 12%, rgba(214,108,72,0.10), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(168,122,63,0.09), transparent 55%),
    var(--ink-deep);
}

/* ---------- type scale ---------- */
.display {
  font-family: var(--t-serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98; letter-spacing: -0.022em;
}
.title {
  font-family: var(--t-serif); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05; letter-spacing: -0.016em;
}
.h3 {
  font-family: var(--t-serif); font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
}
.lede {
  font-family: var(--t-serif); font-weight: 300; font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.32;
}
.body-lg { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.micro {
  font-family: var(--t-mono); font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow {
  font-family: var(--t-mono); font-size: 14px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-warm);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.band.paper .eyebrow { color: var(--accent); }

.measure { max-width: 720px; }
.muted-d { color: var(--muted-ink); }
.band.paper .muted-d { color: var(--muted); }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--t-mono); font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 17px 30px; text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer; background: none;
}
.btn.primary { background: var(--accent); color: var(--paper); }
.btn.primary:hover { background: var(--accent-warm); }
.btn.ghost { border-color: var(--rule-dark); color: var(--paper); }
.btn.ghost:hover { border-color: var(--paper); }
.band.paper .btn.ghost, .paper-ctx .btn.ghost { border-color: var(--rule-light); color: var(--ink); }
.band.paper .btn.ghost:hover { border-color: var(--ink); }

/* ---------- header ---------- */
.r2h-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.r2h-header.scrolled {
  background: rgba(12,17,25,0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--rule-dark);
}
.r2h-header .bar {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  height: 78px;
  display: flex; align-items: center; gap: 36px;
}
.r2h-mark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; flex: none; }
.r2h-mark .top { font-family: var(--t-mono); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent-warm); white-space: nowrap; }
.r2h-mark .nm { font-family: var(--t-serif); font-size: 21px; letter-spacing: -0.01em; color: var(--paper); white-space: nowrap; }
.r2h-nav { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.r2h-nav a {
  font-family: var(--t-mono); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-ink); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color 0.2s;
  white-space: nowrap;
}
.r2h-nav a:hover { color: var(--paper); }
.r2h-nav a.active { color: var(--paper); border-bottom-color: var(--accent-warm); }
.r2h-nav .nav-cta {
  border: 1px solid var(--accent); color: var(--paper);
  padding: 11px 20px;
  transition: background 0.2s;
}
.r2h-nav .nav-cta:hover { background: var(--accent); }
@media (max-width: 920px) {
  .r2h-nav { display: none; }
}

/* ---------- footer ---------- */
.r2h-footer { background: #080c12; border-top: 1px solid var(--rule-dark); padding: 72px 0 48px; color: var(--muted-ink); }
.r2h-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.r2h-footer h4 { font-family: var(--t-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper); margin: 0 0 18px; font-weight: 500; }
.r2h-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.r2h-footer a { color: var(--muted-ink); text-decoration: none; }
.r2h-footer a:hover { color: var(--paper); }
.r2h-footer .legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-dark);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--t-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 820px) { .r2h-footer .cols { grid-template-columns: 1fr; } }

/* ---------- stat band ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-grid > div { padding: 8px 36px 8px 0; margin-right: 36px; border-right: 1px solid var(--rule-dark); }
.stat-grid > div:last-child { border-right: 0; margin-right: 0; }
.band.paper .stat-grid > div { border-color: var(--rule-light); }
.stat-num { font-family: var(--t-serif); font-weight: 300; font-size: clamp(48px, 5.4vw, 76px); line-height: 1; }
.stat-num .unit { font-size: 0.55em; }
.stat-lbl { margin-top: 14px; font-family: var(--t-mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-warm); }
.stat-sub { margin-top: 8px; font-size: 14.5px; color: var(--muted-ink); line-height: 1.45; }
@media (max-width: 920px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .stat-grid > div:nth-child(2n) { border-right: 0; }
}

/* ---------- cards / film ---------- */
.film-frame { position: relative; background: #000; aspect-ratio: 16 / 9; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.reveal { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- vimeo modal ---------- */
.r2h-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,8,12,0.93);
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 64px);
}
.r2h-modal.open { display: flex; }
.r2h-modal .inner { width: min(1100px, 100%); }
.r2h-modal .film-frame { box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.r2h-modal .close {
  margin: 0 0 14px auto; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: var(--muted-ink);
  font-family: var(--t-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
}
.r2h-modal .close:hover { color: var(--paper); }
.r2h-modal .cap { margin-top: 16px; color: var(--muted-ink); font-family: var(--t-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
