/* ==========================================================================
   Dr. Thaer Ahmad — cinematic stylesheet
   Per taste-audit.md Gate 2 design plan.
   Type: Satoshi (body/UI) + Fraunces (display, default — confirm w/ client).
   Palette: charcoal ground + warm bone + ONE muted-red accent.
   Motion: entrance-only reveals; prefers-reduced-motion fully honored.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* ground */
  --ink:        #0E0E10;
  --ink-2:      #141418;
  --ink-3:      #1B1B21;
  --bone:       #F6F3EE;
  --bone-2:     #EDE7DD;
  --bone-3:     #E2D9CA;

  /* ink on bone */
  --ink-on-bone:#1A1714;
  --mute-on-bone:#5C544A;
  --mute-on-ink:#A39B8E;

  /* Palestine tonal palette: flag-red as primary accent (blood/urgency),
     flag-green as secondary action accent (hope/resilience). Charcoal ground
     reads as the flag's black; bone as the white. Flag DNA, not a flag poster. */
  --accent:     #D62828;   /* Palestine flag red — sharper */
  --accent-hi:  #E63838;
  --accent-deep:#A81E1E;
  --action:     #007A3D;   /* Palestine flag green — action/hope: advocacy actions, source chips */
  --action-hi:  #0E9A4C;
  --action-deep:#005A2A;

  /* type */
  --font-display: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body:    "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* scale */
  --fs-xs: .78rem; --fs-s: .9rem; --fs-0: 1rem; --fs-1: 1.18rem;
  --fs-2: 1.5rem; --fs-3: 2rem; --fs-4: clamp(2.4rem, 4.4vw, 3.6rem);
  --fs-hero: clamp(2.7rem, 6.4vw, 5.2rem);

  --radius:    16px;
  --radius-sm: 8px;
  --wrap:      74rem;
  --wrap-narrow: 60rem;
  --gutter:    clamp(1.1rem, 4vw, 2.4rem);

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 18px 48px -22px rgba(0,0,0,0.55);
  --shadow-cta:  0 14px 34px -14px rgba(178, 58, 72, 0.55);

  --head-h: 4.2rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  font-size: var(--fs-0); line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff5ea; }

[id] { scroll-margin-top: calc(var(--head-h) + 1.5rem); }

/* ---------- A11y helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 1rem; top: -6rem; z-index: 200;
  background: var(--accent); color: #fff5ea; padding: 0.7em 1.2em;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: var(--fs-s); transition: top 0.25s var(--ease);
}
.skip:focus { top: 0; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* multi-chapter color alternation (cinematic-builder rule 6) */
[data-theme="ink"]   { background: var(--ink);   color: var(--bone); }
[data-theme="ink-2"] { background: var(--ink-2); color: var(--bone); }
[data-theme="bone"]  { background: var(--bone);  color: var(--ink-on-bone); }
[data-theme="accent"]{ background: var(--accent);color: #fff5ea; }

/* depth layer (Gate 10: no flat backgrounds) */
.section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(178,58,72,0.07), transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(255,255,255,0.04), transparent 55%);
  opacity: 0.9;
}
[data-theme="bone"]::before {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(178,58,72,0.05), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(0,0,0,0.04), transparent 55%);
}
.section > * { position: relative; }

/* ---------- Eyebrow (concrete kickers only — Gate 4) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.62rem;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute-on-ink); margin-bottom: 1.1rem;
}
[data-theme="bone"] .eyebrow { color: var(--mute-on-bone); }
.eyebrow::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; box-shadow: 0 0 9px var(--accent);
}

/* ---------- Headings ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; }
.display { font-size: var(--fs-hero); line-height: 1.04; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-2); font-weight: 600; }
[data-theme="bone"] h1, [data-theme="bone"] h2, [data-theme="bone"] h3 { color: var(--ink-on-bone); }
.lede { font-size: var(--fs-1); color: var(--mute-on-ink); max-width: 44ch; }
[data-theme="bone"] .lede { color: var(--mute-on-bone); }
.serif-em { font-family: var(--font-display); font-style: italic; color: var(--accent-hi); }
[data-theme="accent"] .serif-em { color: #fff5ea; }

/* ---------- Header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(14,14,16,0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-head__row {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--head-h); gap: 1rem;
}
.brand { display: inline-flex; align-items: baseline; gap: 0.5rem; font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.brand b { color: var(--accent-hi); font-weight: 600; }
.brand small { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--mute-on-ink); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__links { display: none; align-items: center; gap: 1.35rem; }
.nav__links a {
  font-size: var(--fs-s); color: var(--mute-on-ink);
  position: relative; padding-block: 0.4rem; transition: color 0.2s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--bone); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }

.nav__cta { display: none !important; }

.nav__toggle { display: inline-flex; padding: 0.5rem; border-radius: var(--radius-sm); align-self: center; }
.nav__toggle svg { width: 24px; height: 24px; }
@media (min-width: 920px) {
  .nav__cta { display: inline-flex !important; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; }
}

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--head-h) 0 auto 0; z-index: 999;
  background: var(--ink-2); border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1.2rem var(--gutter) 1.8rem; transform: translateY(-12px); opacity: 0;
  pointer-events: none; transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.mobile-nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a { display: block; padding: 0.85rem 0; font-size: var(--fs-1); border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav a:last-child { border-bottom: 0; }
@media (min-width: 920px) { .mobile-nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-s); letter-spacing: 0.005em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  min-height: 48px;
}
.btn::after { content: "\2197"; margin-left: 0.1em; font-weight: 700; transition: transform 0.2s var(--ease); }
.btn:hover::after { transform: translate(2px, -2px); }

.btn--primary { background: var(--accent); color: #fff5ea; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--accent-hi); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.22); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent-hi); color: #fff; }
.btn--on-bone { background: var(--accent); color: #fff5ea; box-shadow: var(--shadow-cta); }
.btn--on-bone:hover { background: var(--accent-hi); transform: translateY(-2px); }
.btn--ghost-on-bone { background: transparent; color: var(--ink-on-bone); box-shadow: inset 0 0 0 1.5px rgba(26,23,20,0.25); }
.btn--ghost-on-bone:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-deep); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 920px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); }
}
.hero__title { margin-bottom: 1.3rem; }
.hero__title .name { display: block; }
.hero__sub { font-size: var(--fs-1); color: var(--mute-on-ink); max-width: 36ch; margin-bottom: 1.8rem; }
.hero__heritage {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute-on-ink); margin-top: 1.8rem;
}

/* hero video (the centerpiece) */
.hero-video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-3); aspect-ratio: 16/10;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-video iframe,
.hero-video .hero-local,
.hero-video .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hero-video .hero-poster { z-index: 1; }
.hero-video .hero-iframe-wrap { position: absolute; inset: 0; z-index: 2; display: none; }
.hero-video[data-active="true"] .hero-poster { opacity: 0; transition: opacity 0.4s var(--ease); }
.hero-video__badge {
  position: absolute; left: 0.9rem; top: 0.9rem; z-index: 4;
  background: rgba(0,0,0,0.55); color: #fff5ea;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.4rem 0.7rem; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero-video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff5ea;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-cta); transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-video__play:hover { background: var(--accent-hi); transform: translate(-50%, -50%) scale(1.06); }
.hero-video__play svg { width: 26px; height: 26px; margin-left: 3px; }
.hero-video__caption {
  position: absolute; left: 0.9rem; bottom: 0.9rem; right: 0.9rem; z-index: 4;
  font-size: var(--fs-s); color: #fff5ea; text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  max-width: 32ch;
}

/* ---------- Stats / counters ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 1.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); }
[data-theme="bone"] .stat { background: #fff; border-color: rgba(0,0,0,0.07); }
.stat__num { font-family: var(--font-display); font-size: var(--fs-3); color: var(--accent-hi); line-height: 1; }
[data-theme="bone"] .stat__num { color: var(--accent); }
.stat__label { font-size: var(--fs-s); color: var(--mute-on-ink); margin-top: 0.5rem; }
[data-theme="bone"] .stat__label { color: var(--mute-on-bone); }

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.3; max-width: 22ch; font-weight: 500;
}
.pullquote::before { content: "\201C"; color: var(--accent); margin-right: 0.05em; }
.pullquote::after { content: "\201D"; color: var(--accent); }
.attrib { margin-top: 1.4rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-on-ink); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 1.6rem; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: rgba(178,58,72,0.5); }
[data-theme="bone"] .card { background: #fff; border-color: rgba(0,0,0,0.08); box-shadow: 0 10px 30px -20px rgba(0,0,0,0.25); }
.card h3 { font-size: var(--fs-1); margin-bottom: 0.5rem; }
.card p { color: var(--mute-on-ink); font-size: var(--fs-s); }
[data-theme="bone"] .card p { color: var(--mute-on-bone); }
.card__eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 0.7rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), transparent); }
.timeline li { position: relative; padding: 0.4rem 0 1.3rem 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -1.6rem; top: 0.85rem; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(178,58,72,0.18); }
.timeline .year { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--accent-hi); text-transform: uppercase; }
[data-theme="bone"] .timeline .year { color: var(--accent); }
.timeline h3 { font-size: var(--fs-1); margin: 0.2rem 0 0.3rem; }
.timeline p { color: var(--mute-on-ink); font-size: var(--fs-s); }
[data-theme="bone"] .timeline p { color: var(--mute-on-bone); }

/* ---------- Two-column reading ---------- */
.prose { max-width: 62ch; }
.prose p { margin-bottom: 1.1rem; color: var(--mute-on-ink); }
[data-theme="bone"] .prose p { color: var(--mute-on-bone); }
.prose strong { color: inherit; }
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Media / portrait ---------- */
.portrait {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-card);
  display: flex; align-items: flex-end; justify-content: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--placeholder {
  align-items: center; justify-content: center; color: var(--mute-on-ink);
  font-family: var(--font-mono); font-size: var(--fs-s); text-align: center; padding: 2rem;
}

/* ---------- Media full-bleed (film trailer block) ---------- */
.media-bleed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--ink-3); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-card); position: relative; }
.media-bleed iframe, .media-bleed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Source chips ---------- */
.sources { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.sources a {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.05em;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(255,255,255,0.05); color: var(--mute-on-ink);
  border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s var(--ease);
}
[data-theme="bone"] .sources a { background: rgba(0,0,0,0.03); color: var(--mute-on-bone); border-color: rgba(0,0,0,0.1); }
.sources a:hover { color: var(--accent-hi); border-color: var(--accent-hi); }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; max-width: 38rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--fs-s); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--mute-on-ink); }
[data-theme="bone"] .field .hint { color: var(--mute-on-bone); }
.field input, .field textarea, .field select {
  font: inherit; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); color: inherit;
  min-height: 48px; transition: border-color 0.2s var(--ease);
}
[data-theme="bone"] .field input, [data-theme="bone"] .field textarea, [data-theme="bone"] .field select {
  background: #fff; border-color: rgba(0,0,0,0.15); color: var(--ink-on-bone);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgba(178,58,72,0.22); }
.field textarea { min-height: 130px; resize: vertical; }
.field--honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden; }
.form__notice {
  margin-top: 0.6rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  font-size: var(--fs-s); display: none;
}
.form__notice[data-state="ok"] { display: block; background: rgba(80,160,110,0.15); color: #b6e2c8; border: 1px solid rgba(80,160,110,0.4); }
.form__notice[data-state="err"] { display: block; background: rgba(178,58,72,0.15); color: #f3c2c8; border: 1px solid rgba(178,58,72,0.4); }
.form__disclaimer { font-size: var(--fs-xs); color: var(--mute-on-ink); margin-top: 0.5rem; }
[data-theme="bone"] .form__disclaimer { color: var(--mute-on-bone); }

/* ---------- Footer ---------- */
.site-foot { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid rgba(255,255,255,0.08); }
.site-foot__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-foot__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-foot a { color: var(--mute-on-ink); font-size: var(--fs-s); }
.site-foot a:hover { color: var(--accent-hi); }
.site-foot h4 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-on-ink); margin-bottom: 0.9rem; font-weight: 500; }
.site-foot li { margin-bottom: 0.5rem; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); font-size: var(--fs-xs); color: var(--mute-on-ink); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* ---------- Reveal motion (entrance-only; reduced-motion = static) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .reveal-d1 { transition-delay: 0.1s; }
  .reveal-d2 { transition-delay: 0.2s; }
  .reveal-d3 { transition-delay: 0.3s; }
  .reveal-d4 { transition-delay: 0.4s; }
}
/* reduced-motion: .reveal stays at natural state; content fully visible */

/* ---------- 404 ---------- */
.center-stage { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; gap: 1.2rem; }

/* ==========================================================================
   CINEMATIC LAYER — added 2026-07-31
   Film grain, typewriter hero, count-up emphasis, full-bleed pull-quote,
   Ken Burns. All effects honor prefers-reduced-motion.
   ========================================================================== */

/* ---------- Film grain overlay (whole-page, fixed, low-opacity) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, 2%); }
  50%  { transform: translate(3%, -3%); }
  75%  { transform: translate(-2%, 4%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; opacity: 0.04; }
}

/* ---------- Witness hero (the new opening) ---------- */
.witness-hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding-block: clamp(5rem, 12vh, 8rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, var(--ink-2), var(--ink) 70%);
}
.witness-hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 45%, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.witness-hero__content { position: relative; max-width: 36ch; }

.witness-hero__eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-hi); margin-bottom: 1.6rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.witness-hero__eyebrow::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .witness-hero__eyebrow::before { animation: none; } }

/* the typewriter line — the emotional centerpiece */
.typewriter {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.25; letter-spacing: -0.01em;
  color: var(--bone); min-height: 1.25em; /* prevent layout shift while typing */
}
.typewriter .cursor {
  display: inline-block; width: 0.55ch; background: var(--accent-hi);
  margin-left: 0.08em; transform: translateY(0.08em);
  animation: blink 1s steps(2) infinite;
}
.typewriter .cursor.is-hidden { display: none; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .typewriter .cursor { display: none; }
}

.witness-hero__attribution {
  margin-top: 1.4rem; font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute-on-ink);
  opacity: 0; transition: opacity 0.8s var(--ease);
}
.witness-hero__attribution.is-shown { opacity: 1; }

/* the witness reveal — appears AFTER the typewriter finishes */
.witness-reveal {
  margin-top: clamp(2.5rem, 6vh, 4rem); opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.witness-reveal.is-shown { opacity: 1; transform: translateY(0); }
.witness-reveal__name {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--bone); margin-bottom: 0.3rem; font-weight: 500;
}
.witness-reveal__name b { color: var(--accent-hi); font-weight: 600; }
.witness-reveal__sub {
  font-size: var(--fs-0); color: var(--mute-on-ink); max-width: 40ch; margin-bottom: 1.6rem;
}
.witness-reveal .cta-row { gap: 0.7rem; }

/* ---------- Count-up emphasis block (the verified toll) ---------- */
.toll {
  padding-block: clamp(4rem, 9vw, 7rem); position: relative;
}
.toll__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .toll__grid { grid-template-columns: repeat(3, 1fr); } }
.toll__item { position: relative; }
.toll__num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; color: var(--accent-hi);
  letter-spacing: -0.02em;
}
[data-theme="bone"] .toll__num { color: var(--accent); }
.toll__num-suffix { font-size: 0.45em; vertical-align: super; margin-left: 0.05em; color: inherit; }
.toll__label {
  margin-top: 0.8rem; font-size: var(--fs-1); color: var(--bone); font-family: var(--font-display); font-weight: 500; line-height: 1.3; max-width: 16ch;
}
[data-theme="bone"] .toll__label { color: var(--ink-on-bone); }
.toll__source {
  margin-top: 0.6rem; font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: 0.08em; color: var(--mute-on-ink);
}
[data-theme="bone"] .toll__source { color: var(--mute-on-bone); }

.toll__intro {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3; max-width: 24ch; margin-bottom: 3rem; font-weight: 500;
}

/* ---------- Full-bleed cinematic pull-quote ---------- */
.cine-quote {
  position: relative; min-height: 80svh; display: flex; align-items: center;
  padding-block: clamp(4rem, 10vh, 7rem);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
  overflow: hidden;
}
.cine-quote::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(178,58,72,0.08), transparent 70%);
}
.cine-quote__text {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem); line-height: 1.28; max-width: 22ch;
  color: var(--bone); position: relative;
}
.cine-quote__text .em { color: var(--accent-hi); font-style: italic; }
.cine-quote__attrib {
  margin-top: 2rem; font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute-on-ink);
}

/* ---------- Ken Burns (slow scale/pan on imagery) ---------- */
@keyframes ken-burns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
.ken-burns { animation: ken-burns 22s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .ken-burns { animation: none; } }

/* ---------- Massive serif treatment (cause statements) ---------- */
.cause-statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.12; letter-spacing: -0.015em;
  max-width: 18ch;
}
.cause-statement .em { color: var(--accent-hi); }
[data-theme="bone"] .cause-statement .em { color: var(--accent); }

/* ---------- Scroll cue (witness hero) ---------- */
.scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute-on-ink);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  opacity: 0; transition: opacity 1s var(--ease) 2s;
}
.scroll-cue.is-shown { opacity: 0.7; }
.scroll-cue__line { width: 1px; height: 32px; background: var(--mute-on-ink); animation: scroll-pulse 2s ease-in-out infinite; }
@keyframes scroll-pulse { 0%,100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue__line { animation: none; } }

/* ==========================================================================
   PALESTINE GREEN ACTION ACCENT — added 2026-07-31
   Semantic split: red (--accent) for the toll/loss, green (--action) for hope/action.
   Used on: source-citation chips, advocacy "what you can do" items, act-now panel.
   ========================================================================== */

/* Source chips flip to green (they're citations = action of verifying) */
.sources a {
  border-color: rgba(0,122,61,0.25);
}
.sources a:hover {
  color: var(--action-hi);
  border-color: var(--action-hi);
}

/* Green action button variant (for "act now" CTAs) */
.btn--action {
  background: var(--action);
  color: #fff5ea;
  box-shadow: 0 14px 34px -14px rgba(0,122,61,0.55);
}
.btn--action:hover { background: var(--action-hi); transform: translateY(-2px); }
.btn--action::after { content: "\2197"; }

/* Act-now panel: the advocacy action grid */
.act-now {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .act-now { grid-template-columns: repeat(2, 1fr); } }
.act-now__item {
  position: relative;
  background: rgba(0,122,61,0.06);
  border: 1px solid rgba(0,122,61,0.18);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
[data-theme="ink"] .act-now__item, [data-theme="ink-2"] .act-now__item {
  background: rgba(0,122,61,0.08);
  border-color: rgba(0,122,61,0.25);
}
.act-now__item:hover {
  transform: translateY(-3px);
  border-color: var(--action-hi);
  background: rgba(0,122,61,0.10);
}
.act-now__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--action); color: #fff5ea;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem; font-family: var(--font-display); font-weight: 600;
}
.act-now__item h3 { font-size: var(--fs-1); margin-bottom: 0.5rem; color: var(--action-deep); }
[data-theme="ink"] .act-now__item h3, [data-theme="ink-2"] .act-now__item h3 { color: var(--action-hi); }
.act-now__item p { color: var(--mute-on-bone); font-size: var(--fs-s); }
[data-theme="ink"] .act-now__item p, [data-theme="ink-2"] .act-now__item p { color: var(--mute-on-ink); }
.act-now__item .act-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.9rem; color: var(--action); font-weight: 600; font-size: var(--fs-s);
  font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase;
}
[data-theme="ink"] .act-now__item .act-link, [data-theme="ink-2"] .act-now__item .act-link { color: var(--action-hi); }
.act-now__item .act-link::after { content: "\2197"; }
.act-now__confirm {
  display: block; margin-top: 0.7rem;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.05em;
  color: var(--mute-on-bone); opacity: 0.7;
}
[data-theme="ink"] .act-now__confirm, [data-theme="ink-2"] .act-now__confirm { color: var(--mute-on-ink); }

/* ==========================================================================
   THREE-ACT HERO — typewriter → video → witness reveal
   Orchestrated by app.js. Each element transitions opacity; the sequence:
   typewriter types (4s) → hold (1.5s) → typewriter fades out →
   witness-video fades in + plays (8s) → video fades out → witness-reveal fades in.
   ========================================================================== */

.witness-video {
  margin-top: clamp(2rem, 5vw, 3rem);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 62rem;
  background: var(--ink-3);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
  /* start hidden, JS reveals after typewriter */
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  pointer-events: none;
}
.witness-video.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.witness-video.is-done {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.witness-video__frame {
  position: absolute; inset: 0;
}
.witness-video__frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* self-hosted <video> element fills the frame */
.witness-video__el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  object-fit: cover;
  background: var(--ink-3);
}
.witness-video__caption {
  position: absolute; left: 0.9rem; bottom: 0.9rem; right: 0.9rem;
  font-size: var(--fs-s); color: #fff5ea;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  z-index: 2;
}

/* Typewriter: fades out when JS adds is-fading */
.typewriter {
  transition: opacity 1s var(--ease);
}
.typewriter.is-fading { opacity: 0; }
.typewriter.is-hidden { display: none; }

/* Reduced motion: skip the video act entirely, go straight to reveal */
@media (prefers-reduced-motion: reduce) {
  .witness-video { display: none; }
}

/* ==========================================================================
   BILINGUAL FRAMEWORK (Arabic + English) — added 2026-07-31
   Right-to-left support, Arabic display + body fonts, language switcher.
   Translation strings live in HTML data-ar attributes; app.js toggles [lang="ar"].
   ========================================================================== */

/* Arabic fonts (Noto Naskh Arabic for body, Reem Kufi for display) */
:lang(ar), [lang="ar"] {
  font-family: "Noto Naskh Arabic", "Satoshi", system-ui, sans-serif;
  direction: rtl;
  text-align: right;
}
[lang="ar"] .witness-hero__eyebrow,
[lang="ar"] .cause-statement,
[lang="ar"] .display,
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3,
[lang="ar"] .pullquote, [lang="ar"] .cine-quote__text,
[lang="ar"] .typewriter {
  font-family: "Reem Kufi", "Noto Naskh Arabic", sans-serif;
}
/* keep the mono labels in a clearer Arabic-friendly stack */
[lang="ar"] .eyebrow, [lang="ar"] .witness-hero__eyebrow,
[lang="ar"] .attrib, [lang="ar"] .witness-hero__attribution,
[lang="ar"] .toll__source, [lang="ar"] .act-link, [lang="ar"] .sources a {
  font-family: "Noto Kufi Arabic", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

/* Language switcher in the header */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; overflow: hidden;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}
.lang-switch button {
  padding: 0.4rem 0.7rem; color: var(--mute-on-ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--accent); color: #fff5ea;
}
.lang-switch button:hover { color: var(--bone); }

/* hide elements that only belong in one language */
[lang="en"] [data-ar-only], [lang="ar"] [data-en-only] { display: none; }

/* Arabic reveal marker */
.ar-confirm {
  display: inline-block; margin-top: 0.5rem;
  font-family: "Noto Kufi Arabic", monospace; font-size: var(--fs-xs);
  color: var(--accent-hi); opacity: 0.8;
}

/* ==========================================================================
   DENIED-ENTRY CALLOUT — the present-tense obstruction fact
   Used on home (after toll), advocacy (as a top position), timeline.
   Verbatim from Dr. Ahmad's official bio (July 29, 2026).
   ========================================================================== */
.denied-callout {
  position: relative;
  border-left: 4px solid var(--accent);
  padding: 1.6rem 1.8rem;
  background: linear-gradient(90deg, rgba(214,40,40,0.10), rgba(214,40,40,0.02));
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-block: clamp(2rem, 5vw, 3rem);
}
[data-theme="bone"] .denied-callout {
  background: linear-gradient(90deg, rgba(214,40,40,0.08), rgba(214,40,40,0.01));
}
.denied-callout__now {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
}
.denied-callout__now::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .denied-callout__now::before { animation: none; } }
.denied-callout__num {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--accent); line-height: 1; font-weight: 500;
}
[data-theme="bone"] .denied-callout__num { color: var(--accent-deep); }
.denied-callout__text {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.35; margin-top: 0.8rem; max-width: 40ch; font-weight: 500;
}
[data-theme="ink"] .denied-callout__text, [data-theme="ink-2"] .denied-callout__text { color: var(--bone); }
[data-theme="bone"] .denied-callout__text { color: var(--ink-on-bone); }
.denied-callout__date {
  margin-top: 0.7rem; font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: 0.08em; color: var(--mute-on-ink);
}
[data-theme="bone"] .denied-callout__date { color: var(--mute-on-bone); }

/* ==========================================================================
   MOBILE-FIRST PASS — 2026-07-31
   The base styles were desktop-leaning; this tightens the 320–768px experience:
   comfortable tap targets, full-width stacked CTAs, better vertical rhythm,
   no awkward button wrapping.
   ========================================================================== */

/* --- Tap targets: minimum 44x44 (Apple HIG) / 48x48 (Google) on touch --- */
.nav__toggle {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* --- Source chips: more vertical padding for comfortable tapping --- */
.sources a {
  padding-block: 0.55rem;       /* was 0.35rem */
  display: inline-flex; align-items: center;
}

/* --- Hero CTAs: stack full-width on small screens (no awkward wrapping) --- */
@media (max-width: 480px) {
  .witness-reveal .cta-row,
  .hero .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .witness-reveal .cta-row .btn,
  .hero .cta-row .btn {
    width: 100%;
    justify-content: center;
    padding-block: 1rem;        /* taller, easier to tap */
  }
}

/* --- Section rhythm: a touch more breathing room on small screens --- */
@media (max-width: 640px) {
  .section { padding-block: clamp(3.5rem, 14vw, 5rem); }
  .section--tight { padding-block: clamp(2.5rem, 9vw, 3.5rem); }
  /* tighten the hero top padding so content isn't pushed too low on short screens */
  .witness-hero { padding-top: clamp(4rem, 14vh, 6rem); padding-bottom: clamp(2.5rem, 7vh, 4rem); }
}

/* --- Toll grid: on very small screens, let numbers breathe --- */
@media (max-width: 480px) {
  .toll__num { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .toll__grid { gap: 1.6rem; }
}

/* --- Type: prevent any accidental undersized body text on mobile --- */
@media (max-width: 480px) {
  body { font-size: 1rem; }     /* never below 16px (prevents iOS zoom-on-focus) */
  .lede { font-size: 1.05rem; }
}

/* --- Mobile nav drawer: full tap-friendly link height --- */
.mobile-nav a {
  min-height: 48px;
  display: flex; align-items: center;
}

/* --- Form fields: prevent iOS zoom-on-focus (>=16px font) --- */
.field input, .field textarea, .field select {
  font-size: 16px;
}

/* --- Act-now items: comfortable tap area on mobile --- */
@media (max-width: 480px) {
  .act-now__item { padding: 1.4rem; }
  .act-link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* --- Portrait headshot / video: cap height on mobile so they don't dominate --- */
@media (max-width: 480px) {
  .witness-video { aspect-ratio: 4 / 3; }  /* a bit taller than 16:9 on phones, more impact */
}

/* --- Footer: stack columns comfortably on mobile (already handled, reinforce spacing) --- */
@media (max-width: 720px) {
  .site-foot__grid { gap: 1.8rem; }
  .legal { flex-direction: column; gap: 0.4rem; text-align: left; }
}

/* --- Gallery/grid cards: single column is already the base; ensure no forced 2-up under 620px --- */
/* (grid--2 starts at 620px+, grid--3 at 900px+ — already mobile-first correct) */
