/* חיים הרצוג - אתר הנצחה.
   Palette from the studio portrait Daniel chose: charcoal suit, desaturated navy backdrop, deep studio blue light,
   blue-grey shadows, one warm bronze accent (the light on the face), stone-white text. */
:root {
  --graphite: #1e2126;
  --graphite-2: #17191d;
  --navy: #202a46;
  --blue: #2b3a7a;
  --blue-lite: #4a5fae;
  --slate: #45465e;
  --bronze: #b6a07f;
  --bronze-deep: #8f7257;
  --stone: #ece6da;
  --stone-dim: #b9b4ab;
  --mute: #8b8e99;
  --ink: #1a1b1f;
  --paper: #ece6da;
  --serif: "Bona Nova", "Frank Ruhl Libre", "David", serif;
  --sans: "IBM Plex Sans Hebrew", "Assistant", "Arial Hebrew", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --bar-h: 64px;
  --focus-color: var(--bronze);
  --focus-gap: var(--graphite);
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 200ms cubic-bezier(.55,0,1,.45) both vt-out; }
::view-transition-new(root) { animation: 280ms cubic-bezier(.16,1,.3,1) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

* { box-sizing: border-box; }
html { background: var(--graphite); color-scheme: dark; }
body {
  margin: 0; color: var(--stone); overflow-x: clip;
  background: var(--graphite) radial-gradient(120% 70% at 85% -10%, rgba(43,58,122,.35), rgba(30,33,38,0) 60%) no-repeat;
  font: 400 clamp(17px, 1.1vw + 11px, 20px)/1.75 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 900; margin: 0; line-height: 1.04; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--stone); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 13px/1.4 var(--sans); letter-spacing: .16em; color: var(--bronze); margin-bottom: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.eyebrow span { color: var(--stone-dim); letter-spacing: .06em; font-weight: 400; font-variant-numeric: lining-nums; }
.lead { font-size: 1.2em; color: var(--stone); }
.muted { color: var(--stone-dim); }
.rule { display: block; width: 72px; height: 1px; background: var(--bronze); margin: 22px 0; transform-origin: right center; }

/* ---------- header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0; display: flex; align-items: center; gap: 24px;
  background: linear-gradient(to bottom, rgba(23,25,29,.9), rgba(23,25,29,0));
  transition: background-color 250ms ease;
}
.bar.is-solid { background: rgba(23,25,29,.95); box-shadow: 0 1px 0 rgba(236,230,218,.06); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-inline-end: auto; min-height: 44px; align-items: center; }
.brand-name { font: 900 21px/1 var(--serif); }
.brand-years { font: 400 13px/1 var(--sans); color: var(--stone-dim); font-variant-numeric: lining-nums; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.6vw, 28px); }
.nav a { text-decoration: none; font: 600 15px/1 var(--sans); color: var(--stone-dim); padding: 14px 0; display: inline-block; position: relative; transition: color 150ms ease; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: right; transition: transform 240ms cubic-bezier(.16,1,.3,1); }
.nav a[aria-current="page"] { color: var(--stone); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--stone); } .nav a:hover::after { transform: scaleX(1); } }
.nav-btn { display: none; appearance: none; border: 0; background: none; color: var(--stone); font: 600 16px/1 var(--sans); min-height: 44px; padding: 0 2px; cursor: pointer; border-bottom: 1px solid var(--bronze); }
.bar-progress { position: absolute; inset: auto 0 0 0; height: 2px; display: none; }
.has-progress .bar-progress { display: block; }
.bar-progress i { position: absolute; inset: 0; background: var(--bronze); transform-origin: right center; transform: scaleX(0); }

/* ---------- shared motion states ---------- */
.mask { display: block; overflow: hidden; padding-block: .06em .1em; margin-block: -.06em -.1em; }
.mask-in { display: block; }
.js .mask-in { transform: translateY(105%); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .08em .14em; margin-block: -.08em -.14em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(108%); }
.js .fade-up { opacity: 0; transform: translateY(var(--rise)); }
.js .rule { transform: scaleX(0); }

/* ---------- photos: one visual language - archival prints toned in the studio blue ---------- */
.photo { margin: 0; position: relative; z-index: 1; }
.photo-btn { appearance: none; border: 0; padding: 0; margin: 0; background: var(--navy); cursor: zoom-in; display: block; width: 100%; position: relative; overflow: hidden; color: inherit; }
.photo-btn img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.98); transition: transform 220ms cubic-bezier(.16,1,.3,1); }
.photo-btn::before { /* blue toning: shadows sink into the backdrop blue, highlights stay stone */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 60%, var(--graphite) 100%); mix-blend-mode: color; opacity: .78;
  transition: opacity 220ms ease;
}
.photo-btn::after { /* what a click does: enlarge */
  content: ""; position: absolute; z-index: 2; inset-block-end: 10px; inset-inline-start: 10px; width: 34px; height: 34px;
  background: rgba(23,25,29,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5' fill='none' stroke='%23ece6da' stroke-width='1.6'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.photo-btn.true-color img { filter: none; }
.photo-btn.true-color::before { display: none; }
@media (hover: hover) and (pointer: fine) {
  .photo-btn:hover img { transform: scale(1.03); }
  .photo-btn:hover::before { opacity: .35; }
}
.photo-btn:active::before { opacity: .9; }
.js .photo-btn { clip-path: inset(100% 0 0 0); }
figcaption { font: 400 14px/1.5 var(--sans); color: var(--stone-dim); margin-top: 10px; }

/* Flow art slots: Daniel drops his own Flow images here (assets/art/<name>.jpg). Empty slot = nothing shown. */
.art { position: relative; margin: 0; pointer-events: none; }
.art img { width: 100%; height: auto; }
.art.is-missing, img.is-missing { display: none; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; font: 700 16px/1 var(--sans); text-decoration: none; border-radius: 2px; transition: transform 150ms cubic-bezier(.16,1,.3,1), background-color 150ms ease, color 150ms ease; }
.btn-primary { background: var(--bronze); color: var(--graphite); }
.btn-ghost { border: 1px solid rgba(236,230,218,.35); color: var(--stone); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: #c6b190; } .btn-ghost:hover { border-color: var(--stone); } }
.btn:active, .x:active, .nav-btn:active, .motion-toggle:active, .more:active, .v-nav:active { transform: scale(.96); }
.btn svg, .more svg { width: 18px; height: 18px; flex: none; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--bronze); padding-bottom: 3px; min-height: 44px; transition: transform 150ms cubic-bezier(.16,1,.3,1); }

/* ---------- home: hero banner (studio portrait lighting) ---------- */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: clip; isolation: isolate; padding: calc(var(--bar-h) + 40px) var(--gutter) clamp(56px, 10vh, 110px); }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(70% 85% at 30% 40%, #33468f 0%, var(--blue) 26%, var(--navy) 60%, var(--graphite) 96%); }
.hero-photo { position: absolute; z-index: -1; margin: 0; inset-block: 0; inset-inline-end: 0; width: min(58vw, 900px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.12) brightness(.92); }
/* studio-blue toning inside the figure (the figure moves, so it is its own stacking context) */
.hero-photo::before, .ph-photo::before, .q-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(160deg, #3a4fa0 0%, var(--blue) 35%, var(--navy) 75%); mix-blend-mode: color; opacity: .8; }
.hero-photo::after, .ph-photo::after, .q-photo::after { z-index: 2; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(32,42,70,1) 0%, rgba(32,42,70,.7) 22%, rgba(32,42,70,0) 58%), linear-gradient(to top, var(--graphite) 0%, rgba(30,33,38,0) 38%), linear-gradient(to bottom, rgba(23,25,29,.5), rgba(23,25,29,0) 20%); }
.js .hero-photo img { opacity: 0; transform: scale(1.06); }
.hero-text { position: relative; max-width: 760px; }
.hero-eyebrow { overflow: hidden; }
.hero-eyebrow span { display: inline-block; }
.js .hero-eyebrow span { transform: translateY(110%); }
.hero-name { font-size: clamp(84px, 14.5vw, 230px); line-height: .9; margin-bottom: 24px; }
.hero-roles { font: 500 clamp(24px, 3vw, 40px)/1.2 var(--serif); display: flex; gap: .35em; align-items: baseline; margin-bottom: 30px; color: var(--stone-dim); }
.roles-window { display: inline-block; height: 1.25em; overflow: hidden; }
.roles-track { display: flex; flex-direction: column; color: var(--stone); }
.roles-track span { height: 1.25em; line-height: 1.25em; white-space: nowrap; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cue { position: absolute; inset-block-end: 22px; inset-inline-start: var(--gutter); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 14px/1 var(--sans); color: var(--stone-dim); min-height: 44px; transition: opacity 300ms cubic-bezier(.55,0,1,.45); }
.hero-cue svg { width: 20px; height: 20px; animation: cue 2.4s cubic-bezier(.65,0,.35,1) 1.8s 3; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.has-scrolled .hero-cue { opacity: 0; pointer-events: none; }

/* ---------- page banner (inner pages) ---------- */
.page-hero { position: relative; overflow: clip; isolation: isolate; padding: calc(var(--bar-h) + clamp(70px, 14vh, 150px)) var(--gutter) clamp(50px, 9vh, 100px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 90% at 80% 0%, rgba(51,70,143,.75), rgba(43,58,122,.35) 35%, rgba(30,33,38,0) 70%); }
.page-hero .ph-photo { position: absolute; z-index: -1; inset-block: 0; inset-inline-start: 0; width: min(46vw, 720px); margin: 0; }
.page-hero .ph-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .55; }
.page-hero .ph-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(30,33,38,0) 25%, var(--graphite) 100%), linear-gradient(to top, var(--graphite), rgba(30,33,38,0) 50%); }
.page-hero-in { max-width: var(--maxw); margin: 0 auto; }
.page-hero h1 { font-size: clamp(56px, 9vw, 150px); margin-bottom: 22px; max-width: 12ch; }
.page-hero p.lead { max-width: 640px; }

/* ---------- home sections ---------- */
.statement { padding: clamp(90px, 16vh, 180px) var(--gutter); max-width: 1100px; margin: 0 auto; }
.statement p { font: 500 clamp(30px, 4vw, 60px)/1.28 var(--serif); margin: 0; text-wrap: balance; }
.statement em { font-style: normal; color: var(--bronze); }

.section { padding: clamp(80px, 13vh, 150px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head h2 { font-size: clamp(40px, 5.6vw, 88px); }

/* the life line: one continuous line from birth to legacy */
.lifeline { position: relative; display: grid; gap: clamp(40px, 7vh, 80px); padding-inline-start: 0; list-style: none; margin: 0; }
.lifeline::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 50%; width: 1px; background: rgba(182,160,127,.25); }
.lifeline-draw { position: absolute; inset-block: 0; inset-inline-start: 50%; width: 1px; background: var(--bronze); transform-origin: top; transform: scaleY(var(--p, 1)); }
.js .lifeline-draw { --p: 0; }
.ll-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; position: relative; }
.ll-item::before { content: ""; position: absolute; inset-inline-start: 50%; top: 50%; width: 11px; height: 11px; margin-inline-start: -5px; margin-top: -5px; background: var(--graphite); border: 1px solid var(--bronze); transform: rotate(45deg); }
.ll-item:nth-child(even) .ll-text { order: 2; }
.ll-text { text-align: end; }
.ll-item:nth-child(even) .ll-text { text-align: start; }
.ll-year { font: 300 clamp(44px, 5vw, 76px)/1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; display: block; margin-bottom: 8px; }
.ll-title { font: 700 clamp(22px, 2vw, 30px)/1.25 var(--serif); margin: 0 0 6px; }
.ll-text p { color: var(--stone-dim); margin: 0; }
.ll-item .photo { width: min(100%, 360px); }
.ll-item:nth-child(odd) .photo { justify-self: start; }
.ll-item:nth-child(even) .photo { justify-self: end; }
.ll-item .photo-btn { aspect-ratio: 4 / 3; }

/* works grid on home: image-led, asymmetric */
.works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.work-card { position: relative; display: block; text-decoration: none; overflow: hidden; background: var(--navy); min-height: 340px; isolation: isolate; }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); mix-blend-mode: luminosity; opacity: .7; transition: transform 300ms cubic-bezier(.16,1,.3,1), opacity 220ms ease; z-index: -1; }
.work-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(23,25,29,.95) 10%, rgba(23,25,29,.2) 60%, rgba(23,25,29,0)); }
.work-card .wc-in { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 2.4vw, 34px); }
.wc-num { font: 300 15px/1 var(--serif); color: var(--bronze); letter-spacing: .1em; display: block; margin-bottom: 12px; font-variant-numeric: lining-nums; }
.wc-title { font: 900 clamp(28px, 2.8vw, 44px)/1.05 var(--serif); margin: 0 0 10px; }
.wc-line { color: var(--stone-dim); margin: 0 0 14px; max-width: 46ch; }
.wc-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--bronze); padding-bottom: 2px; }
.wc-go svg { width: 16px; height: 16px; transition: transform 160ms cubic-bezier(.16,1,.3,1); }
@media (hover: hover) and (pointer: fine) { .work-card:hover img { transform: scale(1.04); opacity: .85; } .work-card:hover .wc-go svg { transform: translateX(-4px); } }
.work-card:active { background: var(--graphite-2); }
.wc-1 { grid-column: span 7; min-height: 520px; }
.wc-2 { grid-column: span 5; min-height: 520px; }
.wc-3 { grid-column: span 4; }
.wc-4 { grid-column: span 4; }
.wc-5 { grid-column: span 4; }
.wc-6 { grid-column: span 5; }
.wc-7 { grid-column: span 7; }

/* full-bleed quote band */
.quote-band { position: relative; padding: clamp(110px, 20vh, 220px) var(--gutter); overflow: clip; isolation: isolate; text-align: center; }
.quote-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 80% at 50% 50%, rgba(51,70,143,.6), rgba(30,33,38,0) 75%); }
.quote-band blockquote { margin: 0 auto; max-width: 1000px; }
.quote-band blockquote p { font: 700 clamp(32px, 4.4vw, 68px)/1.22 var(--serif); margin: 0 0 26px; text-wrap: balance; }
.quote-band cite { font: 400 16px/1.5 var(--sans); color: var(--bronze); font-style: normal; }

.quote-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.quote-trio blockquote { margin: 0; border-top: 1px solid rgba(182,160,127,.45); padding-top: 22px; }
.quote-trio p { font: 500 clamp(20px, 1.7vw, 26px)/1.45 var(--serif); margin-bottom: 16px; }
.quote-trio cite { font-size: 14px; color: var(--stone-dim); font-style: normal; }

.gallery-teaser { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.gallery-teaser .photo:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery-teaser .photo:nth-child(1) .photo-btn { aspect-ratio: auto; height: 100%; }
.gallery-teaser .photo .photo-btn { aspect-ratio: 4 / 3; }
.gallery-teaser .photo:nth-child(n+2) { grid-column: span 3; }
@media (min-width: 901px) { .gallery-teaser .photo:nth-child(n+2) { grid-column: span 3; } .gallery-teaser { grid-template-columns: 2fr 1fr 1fr; } .gallery-teaser .photo:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; } .gallery-teaser .photo:nth-child(n+2) { grid-column: auto; } }

.next-page { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding: clamp(60px, 10vh, 110px) var(--gutter); max-width: var(--maxw); margin: 0 auto; border-top: 1px solid rgba(236,230,218,.08); text-decoration: none; }
.next-page small { display: block; color: var(--bronze); font: 600 13px/1 var(--sans); letter-spacing: .16em; margin-bottom: 14px; }
.next-page strong { font: 900 clamp(38px, 5vw, 76px)/1 var(--serif); }
.next-page svg { width: clamp(36px, 4vw, 56px); height: clamp(36px, 4vw, 56px); color: var(--bronze); transition: transform 200ms cubic-bezier(.16,1,.3,1); }
@media (hover: hover) and (pointer: fine) { .next-page:hover svg { transform: translateX(-8px); } }

/* ---------- story chapters ---------- */
.chapter { position: relative; padding: clamp(90px, 14vh, 160px) var(--gutter); overflow-x: clip; }
.chapter h2 { font-size: clamp(44px, 6.4vw, 104px); margin-bottom: 28px; text-wrap: balance; }
.ch-num { font: 600 13px/1.4 var(--sans); letter-spacing: .14em; color: var(--bronze); margin-bottom: 18px; display: flex; gap: 14px; align-items: center; }
.ch-num span { color: var(--stone-dim); letter-spacing: .06em; font-weight: 400; font-variant-numeric: lining-nums; }
.year-ghost { position: absolute; inset-inline-end: -2vw; top: 6vh; pointer-events: none; user-select: none; z-index: 0; font: 900 clamp(140px, 28vw, 440px)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(182,160,127,.2); font-variant-numeric: lining-nums; }
.ch-grid { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "head oval" "body oval" "body law"; gap: 24px clamp(32px, 6vw, 96px); }
.ch-head { grid-area: head; align-self: end; }
.ch-body { grid-area: body; max-width: 560px; }
.photo-oval { grid-area: oval; width: min(100%, 380px); justify-self: center; }
.photo-oval .photo-btn { border-radius: 50% / 50%; aspect-ratio: 3 / 4; }
.photo-oval .photo-btn::after { inset-inline-start: 50%; transform: translateX(50%); }
.photo-oval figcaption { text-align: center; }
.photo-law { grid-area: law; width: 62%; justify-self: start; margin-top: 28px; }
.photo-law .photo-btn { aspect-ratio: 2 / 3; }
.ch-war { background: linear-gradient(to bottom, transparent, rgba(10,12,16,.55) 20%, rgba(10,12,16,.55) 80%, transparent); }
.war-grid { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: .85fr 1fr .55fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.photo-war-main .photo-btn { aspect-ratio: 2 / 3; }
.photo-war-side { align-self: end; }
.photo-war-side .photo-btn { aspect-ratio: 3 / 2; }
.pull { margin: 28px 0 0; padding: 0; }
.pull p { font: 700 clamp(26px, 2.6vw, 38px)/1.25 var(--serif); color: var(--bronze); margin: 0; }
.intel-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: .7fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.photo-intel .photo-btn { aspect-ratio: 3 / 4; }
.intel-file { position: relative; background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 56px); box-shadow: 10px 12px 0 rgba(0,0,0,.45); }
.intel-file .ch-num { color: var(--bronze-deep); }
.intel-file .ch-num span { color: #5b5547; }
.intel-file h2 { color: var(--ink); font-size: clamp(38px, 4.6vw, 72px); }
.file-stamp { position: absolute; top: 22px; inset-inline-end: 22px; font: 700 15px/1 var(--sans); letter-spacing: .25em; color: #9b2a22; border: 2px solid #9b2a22; padding: 8px 12px; transform: rotate(-6deg); opacity: .8; margin: 0; }
.redact { font-size: 1.06em; line-height: 1.9; }
.redact mark { background: none; color: inherit; position: relative; font-weight: 700; }
.redact mark::before { content: ""; position: absolute; inset: .12em -.12em; background: var(--ink); transform-origin: left center; transform: scaleX(var(--cover, 1)); transition: transform 450ms cubic-bezier(.77,0,.175,1); }
html:not(.js) .redact mark::before, .redact.is-open mark::before { transform: scaleX(0); }
.ch-voice { padding-inline: 0; background: linear-gradient(to bottom, var(--graphite), #000 9%, #000 82%, var(--graphite)); }
.voice-track { height: 260vh; position: relative; }
.voice-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 64px); padding: var(--bar-h) var(--gutter) 0; overflow: hidden; }
.voice-radio { position: relative; max-width: 640px; margin-inline: auto; width: 100%; }
.voice-radio img { width: 100%; height: auto; }
.voice-dial { position: absolute; left: 55.5%; top: 44%; width: 26%; height: 46%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,176,64,.55), rgba(255,176,64,0)); mix-blend-mode: screen; opacity: .3; pointer-events: none; }
.voice-text h2 { font-size: clamp(64px, 10vw, 160px); }
.voice-words { font: 500 clamp(22px, 2.3vw, 36px)/1.55 var(--serif); max-width: 640px; }
.voice-words .vw { color: rgba(236,230,218,.16); transition: color 200ms ease; }
.voice-words .vw.on { color: var(--stone); }
html:not(.js) .voice-words .vw { color: var(--stone); }
.voice-after { max-width: var(--maxw); margin: 0 auto; padding: 60px var(--gutter) 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.photo-kotel .photo-btn { aspect-ratio: 3 / 2; }
.ch-un { padding-inline: 0; padding-bottom: 0; }
.un-intro { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.un-intro .ch-num { justify-content: center; }
.un-track { height: 300vh; position: relative; }
.un-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 72px); padding: calc(var(--bar-h) + 16px) var(--gutter) 24px; overflow: hidden; max-width: 1400px; margin: 0 auto; }
.un-doc { position: relative; width: min(100%, 470px); aspect-ratio: 8.5 / 11; justify-self: center; }
.un-half { position: absolute; inset: 0; will-change: transform; }
.un-half-a { clip-path: polygon(0 0, 51% 0, 48% 6%, 52% 13%, 47% 21%, 53% 30%, 49% 38%, 54% 47%, 48% 55%, 52% 63%, 47% 72%, 53% 80%, 48% 89%, 52% 100%, 0 100%); }
.un-half-b { clip-path: polygon(51% 0, 100% 0, 100% 100%, 52% 100%, 48% 89%, 53% 80%, 47% 72%, 52% 63%, 48% 55%, 54% 47%, 49% 38%, 53% 30%, 47% 21%, 52% 13%, 48% 6%); }
.un-paper { position: absolute; inset: 0; background: #f2ecdc; color: #222; direction: ltr; text-align: left; padding: 10% 11%; font: 400 clamp(11px, 1.05vw, 15px)/1.55 var(--mono); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.un-paper p { margin: 0 0 .9em; }
.d-org { text-align: center; font-weight: 700; letter-spacing: .3em; }
.d-body { text-align: center; letter-spacing: .12em; margin-bottom: 1.6em !important; }
.d-res { font-weight: 700; font-size: 1.25em; }
.d-title { text-decoration: underline; }
.d-date { color: #555; margin-bottom: 1.6em !important; }
.d-op { margin-top: 1.4em !important; font-size: 1.12em; font-weight: 700; }
.un-line { font: 500 clamp(22px, 2.3vw, 36px)/1.4 var(--serif); margin-bottom: 26px; }
.un-line-key { color: var(--bronze); font-weight: 700; }
.un-after { font: 400 clamp(18px, 1.5vw, 23px)/1.6 var(--sans); color: var(--stone); border-top: 1px solid rgba(182,160,127,.5); padding-top: 18px; }
.un-after strong { color: var(--bronze); font-weight: 700; }
.js .un-line { opacity: .12; }
.un-src { position: absolute; inset-block-end: 18px; inset-inline-start: var(--gutter); font-size: 13px; color: var(--mute); margin: 0; }
.pres-head { position: relative; z-index: 1; max-width: 860px; margin: 0 auto 64px; }
.mosaic { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); align-items: center; row-gap: clamp(28px, 4vw, 56px); }
.tile { margin: 0; }
.tile .photo-btn { aspect-ratio: 3 / 2; }
.t-a { grid-column: 1 / span 7; grid-row: 1; }
.t-b { grid-column: 9 / span 4; grid-row: 1; align-self: end; }
.t-d { grid-column: 1 / span 3; grid-row: 2; }
.t-c { grid-column: 4 / span 6; grid-row: 2; }
.t-f { grid-column: 10 / span 3; grid-row: 2; }
.t-d .photo-btn, .t-f .photo-btn { aspect-ratio: 2 / 3; }
.t-e { grid-column: 2 / span 5; grid-row: 3; }
.t-g { grid-column: 7 / span 6; grid-row: 3; align-self: start; }
.t-h { grid-column: 3 / span 8; grid-row: 4; }
.ch-legacy { isolation: isolate; overflow: clip; }
.legacy-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.photo-stone .photo-btn { aspect-ratio: 3 / 2; }
.legacy-quote { color: var(--bronze); }
.legacy-src { color: var(--stone-dim); font-size: 15px; margin-top: -14px; }
.farewell { text-align: center; padding: clamp(100px, 18vh, 200px) 0 40px; display: grid; justify-items: center; gap: 10px; }
.sig { width: min(78vw, 460px); height: auto; filter: invert(1) sepia(.35) brightness(1.05); }
.js .sig { clip-path: inset(0 100% 0 0); }
.farewell-years { font: 300 clamp(28px, 3vw, 44px)/1 var(--serif); letter-spacing: .12em; margin: 18px 0 0; font-variant-numeric: lining-nums; }
.farewell-line { font: 500 clamp(20px, 1.8vw, 26px)/1.4 var(--serif); color: var(--bronze); }
.farewell .next { margin-top: 40px; }

/* ---------- works page ---------- */
.works-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 clamp(20px, 3vw, 48px); counter-reset: w; }
.works-index a { display: grid; grid-template-columns: 3ch 1fr; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(236,230,218,.1); text-decoration: none; transition: color 150ms ease; }
.works-index .wi-n { font: 300 18px/1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; }
.works-index .wi-t { font: 700 22px/1.25 var(--serif); }
@media (hover: hover) and (pointer: fine) { .works-index a:hover .wi-t { color: var(--bronze); } }
.work { padding: clamp(90px, 15vh, 170px) 0; position: relative; scroll-margin-top: var(--bar-h); }
.work + .work { border-top: 1px solid rgba(236,230,218,.07); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 88px); align-items: center; }
.work-grid.flip > :first-child { order: 2; }
.work h2 { font-size: clamp(42px, 5.6vw, 92px); margin-bottom: 24px; text-wrap: balance; }
.work .photo .photo-btn { aspect-ratio: 4 / 5; }
.work .photo.wide .photo-btn { aspect-ratio: 3 / 2; }
.work blockquote { margin: 34px 0 0; padding: 0; border-inline-start: 2px solid var(--bronze); padding-inline-start: 22px; }
.work blockquote p { font: 500 clamp(21px, 1.8vw, 28px)/1.45 var(--serif); margin-bottom: 10px; }
.work blockquote cite { font-size: 14px; color: var(--stone-dim); font-style: normal; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 7ch 1fr; gap: 16px; align-items: baseline; border-top: 1px solid rgba(236,230,218,.09); padding-top: 14px; }
.facts b { font: 300 22px/1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; }
.duo-photos { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: end; }
.duo-photos .photo:last-child .photo-btn { aspect-ratio: 3 / 4; }

/* video facade: poster first, the player loads only on request */
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; margin-top: 30px; }
.yt button { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); mix-blend-mode: luminosity; opacity: .75; }
.yt .yt-play { position: relative; display: inline-flex; align-items: center; gap: 12px; background: var(--bronze); color: var(--graphite); font: 700 16px/1 var(--sans); padding: 16px 22px; border-radius: 2px; transition: transform 150ms cubic-bezier(.16,1,.3,1); }
.yt .yt-play svg { width: 18px; height: 18px; }
.yt button:active .yt-play { transform: scale(.96); }
.yt button:focus-visible .yt-play { box-shadow: var(--focus-ring); }
.yt iframe, .yt video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-note { font-size: 13px; color: var(--mute); margin-top: 8px; }

.books { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.book { position: relative; aspect-ratio: 2 / 3; background: var(--navy); padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 6px 0 0 rgba(0,0,0,.25), 0 14px 30px rgba(0,0,0,.35); }
.book:nth-child(3n+2) { background: var(--slate); }
.book:nth-child(3n) { background: #2a2f3a; }
.book-title { font: 700 clamp(16px, 1.4vw, 21px)/1.2 var(--serif); direction: ltr; text-align: left; }
.book-he { font-size: 13px; color: var(--stone-dim); line-height: 1.4; }
.book-year { font: 300 26px/1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; }

/* ---------- timeline page ---------- */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(9ch + 28px); width: 1px; background: rgba(182,160,127,.3); }
.tl-decade { font: 900 clamp(56px, 8vw, 120px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(182,160,127,.35); margin: clamp(50px, 8vh, 90px) 0 24px; font-variant-numeric: lining-nums; }
.tl-item { display: grid; grid-template-columns: 9ch 1fr; gap: 56px; padding: 22px 0; position: relative; align-items: start; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: calc(9ch + 23px); top: 34px; width: 10px; height: 10px; background: var(--graphite); border: 1px solid var(--bronze); transform: rotate(45deg); }
.tl-item.key::before { background: var(--bronze); }
.tl-date { font: 300 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); color: var(--bronze); text-align: end; font-variant-numeric: lining-nums; padding-top: 4px; }
.tl-date small { display: block; font: 400 13px/1.4 var(--sans); color: var(--stone-dim); margin-top: 4px; }
.tl-body h3 { font: 700 clamp(22px, 2vw, 30px)/1.25 var(--serif); margin: 0 0 8px; }
.tl-body p { color: var(--stone-dim); margin: 0; max-width: 62ch; }
.tl-body .photo { width: min(100%, 420px); margin-top: 16px; }
.tl-body .photo .photo-btn { aspect-ratio: 3 / 2; }
.tl-item.key .tl-body h3 { font-size: clamp(28px, 2.8vw, 42px); }

/* ---------- words page ---------- */
.quotes { display: grid; gap: 0; }
.q { min-height: 88vh; display: grid; align-items: center; position: relative; padding: clamp(80px, 12vh, 140px) var(--gutter); overflow: clip; isolation: isolate; }
.q + .q { border-top: 1px solid rgba(236,230,218,.06); }
.q-photo { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(44vw, 640px); z-index: -1; margin: 0; }
.q-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .35; }
.q-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(30,33,38,0), var(--graphite) 95%); }
.q-in { max-width: var(--maxw); width: 100%; margin: 0 auto; }
.q blockquote { margin: 0; max-width: 980px; }
.q-n { font: 300 18px/1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; display: block; margin-bottom: 26px; letter-spacing: .1em; }
.q blockquote p { font: 700 clamp(30px, 4.2vw, 64px)/1.24 var(--serif); margin: 0 0 30px; text-wrap: balance; }
.q cite { font-style: normal; display: block; color: var(--stone-dim); font-size: 16px; }
.q cite b { color: var(--bronze); font-weight: 600; display: block; margin-bottom: 4px; }

/* ---------- gallery page ---------- */
.era { padding: clamp(60px, 10vh, 110px) 0 0; }
.era-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid rgba(236,230,218,.1); padding-bottom: 16px; }
.era-head h2 { font-size: clamp(32px, 3.6vw, 54px); }
.era-head span { font: 300 22px/1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; }
.g-grid { columns: 3 300px; column-gap: clamp(12px, 1.6vw, 22px); }
.g-grid .photo { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 22px); }
.g-grid .photo-btn { aspect-ratio: auto; }
.g-grid .photo-btn img { height: auto; }

/* ---------- family page ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px); }
.person { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; }
.person .photo .photo-btn { aspect-ratio: 3 / 4; }
.person h3 { font: 700 clamp(24px, 2.2vw, 32px)/1.2 var(--serif); margin: 0 0 4px; }
.person .role { color: var(--bronze); font-size: 15px; font-weight: 600; margin-bottom: 10px; display: block; }
.person p { color: var(--stone-dim); margin: 0; }
.kids { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.kids li { border-top: 1px solid rgba(236,230,218,.1); padding-top: 12px; }
.kids b { display: block; font: 700 20px/1.3 var(--serif); }
.kids span { color: var(--stone-dim); font-size: 15px; }
.memorials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.memorial .photo-btn { aspect-ratio: 4 / 3; }
.memorial h3 { font: 700 22px/1.3 var(--serif); margin: 14px 0 6px; }
.memorial p { color: var(--stone-dim); margin: 0; font-size: .95em; }
.continuity { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }

/* ---------- about page ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(32px, 3.6vw, 52px); margin: 56px 0 18px; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { text-underline-offset: 3px; text-decoration-color: var(--bronze); }
.credit-list { padding-inline-start: 1.2em; line-height: 1.6; font-size: 15px; color: var(--stone-dim); }
.credit-list li { margin-bottom: 8px; }
.credit-list a { color: var(--stone); }

/* ---------- footer ---------- */
.foot { margin-top: clamp(60px, 10vh, 120px); background: var(--graphite-2); border-top: 1px solid rgba(182,160,127,.25); padding: clamp(56px, 9vh, 96px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 64px; }
.foot-sign { display: grid; gap: 6px; align-content: start; }
.foot-sig { width: min(70vw, 300px); height: auto; filter: invert(1) sepia(.35) brightness(1.05); opacity: .9; margin-bottom: 10px; }
.foot-years { font: 700 22px/1.3 var(--serif); margin: 0; }
.foot-line { color: var(--stone-dim); margin: 0; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.foot-nav a { display: inline-block; padding: 8px 0; text-decoration: none; color: var(--stone-dim); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .foot-nav a:hover { color: var(--stone); } }
.foot-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(236,230,218,.08); padding-top: 24px; font-size: 14px; color: var(--mute); }
.foot-meta p { margin: 0; max-width: 70ch; }
.motion-toggle { appearance: none; background: none; border: 1px solid rgba(236,230,218,.3); color: var(--stone); padding: 10px 16px; min-height: 44px; font: 600 14px/1 var(--sans); cursor: pointer; border-radius: 2px; transition: transform 150ms cubic-bezier(.16,1,.3,1); }
.motion-toggle[aria-pressed="true"] { border-color: var(--bronze); color: var(--bronze); }

/* ---------- dialogs ---------- */
dialog { --dlg-in: 280ms; --dlg-out: 200ms; border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--stone); background: transparent; }
dialog::backdrop { background: rgba(10,12,16,.84); opacity: 0; transition: opacity var(--dlg-in, 280ms) cubic-bezier(.16,1,.3,1); }
dialog.is-in::backdrop { opacity: 1; }
dialog.is-out::backdrop { transition: opacity var(--dlg-out, 200ms) cubic-bezier(.55,0,1,.45); }
.x { appearance: none; border: 0; background: none; color: var(--stone); width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; transition: transform 150ms cubic-bezier(.16,1,.3,1); }
.x svg { width: 26px; height: 26px; }
.menu-inner { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(480px, 100%); background: var(--navy); padding: calc(12px + env(safe-area-inset-top)) clamp(20px, 4vw, 44px) 32px; overflow-y: auto; transform: translateX(-100%); transition: transform var(--dlg-in) cubic-bezier(.16,1,.3,1); box-shadow: 20px 0 60px rgba(0,0,0,.5); }
.menu.is-in .menu-inner { transform: none; }
.menu.is-out .menu-inner { transform: translateX(-100%); transition: transform var(--dlg-out) cubic-bezier(.55,0,1,.45); }
.menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.menu-top h2 { font-size: 26px; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list a { display: block; padding: 15px 0; text-decoration: none; border-bottom: 1px solid rgba(236,230,218,.1); }
.m-name { font: 700 clamp(24px, 3vw, 30px)/1.2 var(--serif); }
.menu-list a[aria-current="page"] .m-name { color: var(--bronze); }
.viewer { display: none; }
.viewer[open] { display: grid; place-items: center; padding: 56px clamp(56px, 6vw, 90px) 24px; }
.viewer .x { position: fixed; top: calc(8px + env(safe-area-inset-top)); inset-inline-end: 8px; z-index: 3; }
.v-nav { position: fixed; top: 50%; z-index: 3; margin-top: -24px; appearance: none; border: 0; background: rgba(23,25,29,.6); color: var(--stone); width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; border-radius: 2px; transition: transform 150ms cubic-bezier(.16,1,.3,1); }
.v-nav svg { width: 24px; height: 24px; }
.v-prev { inset-inline-start: 8px; }
.v-next { inset-inline-end: 8px; }
.v-nav[hidden] { display: none; }
.viewer-fig { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: grid; gap: 12px; justify-items: center; opacity: 0; transition: opacity var(--dlg-in) cubic-bezier(.16,1,.3,1); }
.viewer.is-in .viewer-fig { opacity: 1; }
.viewer.is-out .viewer-fig { opacity: 0; transform: scale(.97); transition: opacity var(--dlg-out) cubic-bezier(.55,0,1,.45), transform var(--dlg-out) cubic-bezier(.55,0,1,.45); }
.viewer-fig img { max-height: calc(100svh - 170px); width: auto; max-width: 100%; object-fit: contain; }
.viewer-fig figcaption { text-align: center; color: var(--stone); font-size: 16px; display: grid; gap: 4px; }
.viewer-fig small { color: var(--stone-dim); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .nav { display: none; } .nav-btn { display: inline-block; } }
@media (max-width: 900px) {
  :root { --bar-h: 56px; }
  .hero-photo { width: 100%; }
  .hero-photo img { object-position: 50% 12%; }
  .hero-photo::after { background: linear-gradient(to top, var(--graphite) 22%, rgba(30,33,38,.55) 55%, rgba(30,33,38,.05) 85%); }
  .page-hero .ph-photo { width: 100%; }
  .page-hero .ph-photo img { opacity: .3; }
  .lifeline::before, .lifeline-draw { inset-inline-start: 6px; }
  .ll-item { grid-template-columns: 1fr; gap: 16px; padding-inline-start: 34px; }
  .ll-item::before { inset-inline-start: 6px; top: 22px; }
  .ll-item .ll-text, .ll-item:nth-child(even) .ll-text { order: 0; text-align: start; }
  .ll-item .photo, .ll-item:nth-child(n) .photo { justify-self: start; width: 100%; }
  .works-grid { grid-template-columns: 1fr; }
  .works-grid .work-card { grid-column: auto; min-height: 380px; }
  .quote-trio { grid-template-columns: 1fr; }
  .gallery-teaser { grid-template-columns: 1fr 1fr; }
  .gallery-teaser .photo:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .gallery-teaser .photo:nth-child(1) .photo-btn { aspect-ratio: 4 / 3; height: auto; }
  .gallery-teaser .photo:nth-child(n+2) { grid-column: auto; }
  .ch-grid { grid-template-columns: 1fr; grid-template-areas: "head" "oval" "body" "law"; }
  .photo-oval { width: min(72%, 340px); }
  .photo-law { width: 58%; justify-self: end; }
  .war-grid { grid-template-columns: 1fr 1fr; }
  .war-text { grid-column: 1 / -1; grid-row: 1; }
  .intel-grid { grid-template-columns: 1fr; }
  .photo-intel { width: 70%; justify-self: center; }
  .voice-stage { grid-template-columns: 1fr; align-content: center; gap: 8px; }
  .voice-radio { max-width: 360px; }
  .voice-text h2 { font-size: 64px; margin-bottom: 12px; }
  .voice-after { grid-template-columns: 1fr; }
  .un-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 18px; }
  .un-doc { width: min(64vw, 300px); }
  .un-line { font-size: 20px; margin-bottom: 14px; }
  .un-after { font-size: 16px; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic .tile { grid-column: auto !important; grid-row: auto !important; }
  .t-a, .t-h { grid-column: 1 / -1 !important; }
  .legacy-grid, .work-grid, .continuity { grid-template-columns: 1fr; }
  .work-grid.flip > :first-child { order: 0; }
  .books { grid-template-columns: repeat(2, 1fr); }
  .tl::before { inset-inline-start: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-inline-start: 34px; }
  .tl-item::before { inset-inline-start: 1px; top: 30px; }
  .tl-date { text-align: start; }
  .q-photo { width: 100%; }
  .q-photo img { opacity: .2; }
  .people, .memorials { grid-template-columns: 1fr; }
  .g-grid { columns: 2; }
  .person { grid-template-columns: 120px 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-name { font-size: 25vw; }
  .chapter h2 { font-size: 44px; }
  .year-ghost { font-size: 44vw; top: 2vh; }
  .un-doc { width: 58vw; }
  .kids { grid-template-columns: 1fr; }
  .viewer[open] { padding-inline: 12px; }
  .v-nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); margin-top: 0; }
}

/* ---------- reduced motion: every end state, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .mask-in, .js .split .w > span, .js .hero-eyebrow span { transform: none; }
  .js .fade-up, .js .hero-photo img { opacity: 1; transform: none; }
  .js .photo-btn, .js .sig { clip-path: none; }
  .js .rule { transform: none; }
  .js .lifeline-draw { --p: 1; }
  .js .un-line { opacity: 1; }
  .hero-cue svg { animation: none; }
  dialog::backdrop, .menu-inner, .viewer-fig, .redact mark::before, .voice-words .vw { transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
html.reduce-motion .mask-in, html.reduce-motion .split .w > span, html.reduce-motion .hero-eyebrow span { transform: none !important; }
html.reduce-motion .fade-up, html.reduce-motion .hero-photo img { opacity: 1 !important; transform: none !important; }
html.reduce-motion .photo-btn, html.reduce-motion .sig { clip-path: none !important; }
html.reduce-motion .rule { transform: none !important; }
html.reduce-motion .lifeline-draw { --p: 1 !important; }
html.reduce-motion .un-line { opacity: 1 !important; }
html.reduce-motion .hero-cue svg { animation: none; }
html.reduce-motion dialog::backdrop, html.reduce-motion .menu-inner, html.reduce-motion .viewer-fig { transition: none !important; }
html.reduce-motion::view-transition-old(root), html.reduce-motion::view-transition-new(root) { animation: none; }

/* soft photo edges: the portraits melt into the studio light instead of ending in a box (mask, not a colour overlay,
   so the edge matches whatever lighting is behind it) */
.hero-photo { -webkit-mask-image: linear-gradient(to right, #000 38%, transparent 94%), linear-gradient(to top, transparent 0%, #000 34%); mask-image: linear-gradient(to right, #000 38%, transparent 94%), linear-gradient(to top, transparent 0%, #000 34%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-photo::after { background: linear-gradient(to bottom, rgba(23,25,29,.55), rgba(23,25,29,0) 22%); }
.page-hero .ph-photo, .q-photo { -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 96%), linear-gradient(to top, transparent 0%, #000 45%); mask-image: linear-gradient(to left, #000 25%, transparent 96%), linear-gradient(to top, transparent 0%, #000 45%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.page-hero .ph-photo::after, .q-photo::after { background: none; }
@media (max-width: 900px) {
  .hero-photo { -webkit-mask-image: linear-gradient(to top, transparent 12%, #000 55%); mask-image: linear-gradient(to top, transparent 12%, #000 55%); }
  .page-hero .ph-photo, .q-photo { -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 60%); mask-image: linear-gradient(to top, transparent 0%, #000 60%); }
}

.art-emblem { width: clamp(120px, 12vw, 180px); margin-bottom: 22px; }
.art-emblem img { border-radius: 2px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }

/* ================= cut-paper art (Flow) =================
   Every piece sits where it means something: the sea by the 1935 voyage, contour maps by intelligence, sound
   ripples by the radio, Jerusalem stone by the presidency and the family, the skyline over the footer. */
.hero-hills { position: absolute; inset: auto 0 0 0; height: 48%; z-index: 0; margin: 0; -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
.hero-hills img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: .9; }
.home-hero .hero-text, .home-hero .hero-cue { z-index: 1; }
.ph-bg { position: absolute; inset: 0; z-index: -3; margin: 0; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 45%); mask-image: linear-gradient(to top, transparent 0%, #000 45%); }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.ph-art { position: absolute; z-index: -1; inset-inline-end: calc(var(--gutter) + 2vw); bottom: 8%; width: min(36vw, 500px); margin: 0; }
.ph-art img, .art-emblem img, .tl-art img, .farewell-candle img, .foot-candle img, .band-candle img, .wc-emblem { filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.art-emblem img { border-radius: 0; box-shadow: none; }
.sep { display: block; margin: 0; width: 100%; position: relative; z-index: 2; line-height: 0; }
.sep img { width: 100%; height: clamp(26px, 3.4vw, 56px); object-fit: cover; object-position: 50% 50%; }
.sep-flip img { transform: scaleY(-1); }
.olive { width: min(460px, 70vw); margin: 0 auto 26px; }
.olive img { width: 100%; height: auto; }
.band-bg { position: absolute; inset: 0; z-index: -1; margin: 0; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%); }
.band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.band-candle { width: clamp(90px, 9vw, 130px); margin: 0 auto 22px; }
.wc-emblem { position: absolute; z-index: 1; top: clamp(14px, 1.6vw, 22px); inset-inline-start: clamp(14px, 1.6vw, 22px); width: clamp(72px, 7vw, 108px); height: auto; mix-blend-mode: normal; opacity: 1; inset-inline-end: auto; inset-block-end: auto; }
.work-card img.wc-emblem { position: absolute; inset: auto; top: clamp(14px, 1.6vw, 22px); inset-inline-start: clamp(14px, 1.6vw, 22px); width: clamp(72px, 7vw, 108px); height: auto; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); mix-blend-mode: normal; opacity: 1; z-index: 1; transform: none; }
.work { overflow: clip; isolation: isolate; }
.work-bg { position: absolute; inset: 0; z-index: -1; margin: 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
.work-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.tl-art { width: min(100%, 200px); margin: 14px 0 0; }
.farewell-candle { width: clamp(90px, 9vw, 130px); margin: 0 auto 18px; }
.foot { position: relative; }
.foot-sky { position: absolute; inset: auto 0 100% 0; margin: 0; pointer-events: none; }
.foot-sky img { width: 100%; height: auto; display: block; }
.foot-candle { width: 64px; margin: 0 0 8px; }
.voice-radio img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.voice-dial { display: none; }
@media (max-width: 900px) {
  .ph-art { position: relative; inset: auto; width: min(58vw, 260px); margin: 0 0 18px; }
  .hero-hills { height: 30%; }
  .work-bg img { opacity: .16; }
  .tl-art { width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .voice-dial { display: none; } }

/* banner art never sits under the title: on wide screens the text keeps to its own column */
@media (min-width: 901px) {
  .page-hero:has(.ph-art) .page-hero-in { padding-inline-end: min(40vw, 560px); }
  .page-hero:has(.ph-art) h1 { max-width: none; }
  .ph-art { bottom: auto; top: 50%; translate: 0 -40%; width: min(30vw, 420px); }
}
/* home: the paper hills stay below the portrait's face, a ground line, not a veil */
.hero-hills { height: 30%; -webkit-mask-image: linear-gradient(to top, #000 70%, transparent); mask-image: linear-gradient(to top, #000 70%, transparent); }
.hero-hills img { opacity: 1; }

/* footer: the Jerusalem skyline rises out of the footer; its stone walls continue into the footer's own colour */
.foot { --sky-h: min(32.8vw, 520px); background: #18283e; border-top: 0; margin-top: calc(var(--sky-h) + clamp(40px, 8vh, 90px)); padding-top: clamp(28px, 5vh, 56px); }
.foot-sky { position: absolute; inset: auto 0 calc(100% - 2px) 0; height: var(--sky-h); overflow: hidden; }
.foot-sky img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: 50% 100%; }
.foot-meta { border-top-color: rgba(236,230,218,.12); }
.foot-nav a { color: #c3c9d3; }
.foot-sky::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(to bottom, rgba(24,40,62,0), #18283e); }
