/* קובי הרוש — Long-form chaptered story.
   Tokens from ../../colors_and_type.css. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

img { max-width: 100%; display: block; }

/* =====================================================================
   LAYOUT PRIMITIVES
   ===================================================================== */

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 760px; }
.container.text { max-width: 620px; }

/* =====================================================================
   STICKY CHAPTER STRIP — runs down the right edge as the reader scrolls
   ===================================================================== */
.chapter-strip {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 56px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  pointer-events: none;
}
.chapter-strip__item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-500);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.chapter-strip__item::before {
  content: '';
  width: 1px;
  height: 18px;
  background: currentColor;
  display: inline-block;
  transition: height var(--dur) var(--ease-out);
}
.chapter-strip__item.is-active {
  color: var(--stone-900);
}
.chapter-strip__item.is-active::before { height: 36px; }
.chapter-strip__item:hover { color: var(--accent); }

/* =====================================================================
   TOP NAV — small, sober, sticky
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(243, 238, 226, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px var(--gutter);
}
.brand-lockup { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-lockup__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--stone-900);
  letter-spacing: -0.01em;
}
.brand-lockup__role {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.site-header__cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--stone-900);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--stone-900);
  border-radius: 0;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.site-header__cta:hover { background: var(--stone-900); color: var(--paper-50); }

/* =====================================================================
   OPENING (chapter 00) — split: real photo right, text left.
   ===================================================================== */
.opening {
  position: relative;
  min-height: 92vh;
  background: var(--stone-900);
  color: var(--paper-50);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.opening--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 78vh;
  background: var(--stone-900);
}
.opening--split .opening__split-text {
  background: var(--stone-900);
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  color: var(--paper-50);
}
.opening--split .opening__kicker { color: var(--sand-400); margin-bottom: 28px; }
.opening--split .opening__name {
  font-size: clamp(56px, 7vw, 120px);
  margin: 0 0 24px;
}
.opening--split .opening__sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--paper-100);
  margin-bottom: 36px;
  max-width: 32ch;
}
.opening--split .opening__sub strong { color: var(--paper-50); font-weight: 700; }
.opening--split .opening__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  border-top: 1px solid rgba(243,238,226,0.2);
  padding-top: 24px;
  width: 100%;
  max-width: 460px;
}
.opening--split .opening__meta .stat strong {
  font-size: clamp(28px, 2.6vw, 36px);
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--paper-50);
  line-height: 1;
  letter-spacing: -0.02em;
}
.opening--split .opening__meta .stat span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin-top: 6px;
  display: block;
}

.opening--split .opening__cta-row {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.opening--split .opening__split-photo {
  position: relative;
  overflow: hidden;
  background: var(--stone-700);
}
.opening--split .opening__split-photo .photo-frame {
  position: absolute;
  inset: 0;
  height: 100%;
}
.opening--split .opening__split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: contrast(1.02) saturate(0.92);
}
.opening--split .opening__split-photo .photo-frame__caption {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  padding: 20px 28px 24px;
  background: linear-gradient(to top, rgba(20,18,14,0.92) 0%, rgba(20,18,14,0.5) 60%, transparent 100%);
  color: var(--paper-50);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.opening--split .opening__split-photo .photo-frame__tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin-bottom: 4px;
}
.opening--split .opening__split-photo .photo-frame__caption strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--paper-50);
  letter-spacing: -0.01em;
}
.opening--split .opening__split-photo .photo-frame__caption span:last-child {
  font-size: 13px;
  color: var(--paper-200);
  line-height: 1.45;
  max-width: 42ch;
}

.opening--split .opening__scroll {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: rgba(243,238,226,0.6);
  z-index: 3;
}

/* legacy full-bleed opening (kept for fallback) */
.opening__photo {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, #5a5142 0%, #2a2820 60%, #16140f 100%);
  filter: contrast(0.95);
}
.opening__grain {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}
.opening__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,18,14,0.85) 0%, rgba(20,18,14,0.45) 40%, rgba(20,18,14,0.1) 75%, transparent 100%);
}
.opening__photo-tag {
  position: absolute;
  top: 24px;
  left: var(--gutter);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,238,226,0.5);
}
.opening__content {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}
.opening__kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin-bottom: 24px;
}
.opening__name {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 144px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--paper-50);
  margin: 0 0 28px;
  max-width: 14ch;
}
.opening__sub {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--paper-100);
  max-width: 30ch;
  margin: 0 0 48px;
  letter-spacing: -0.005em;
}
.opening__meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(243,238,226,0.2);
  padding-top: 24px;
}
.opening__meta .stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  color: var(--paper-50);
  line-height: 1;
  letter-spacing: -0.02em;
}
.opening__meta .stat span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin-top: 6px;
  display: block;
}
.opening__scroll {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,238,226,0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}
.opening__scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(243,238,226,0.6);
  display: inline-block;
}

/* =====================================================================
   CAROUSEL-SECTION wrapper — inline within a chapter (Chapter 02)
   ===================================================================== */
.carousel-section {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
}
.carousel-section--inverse {
  border-top-color: rgba(243,238,226,0.18);
}
.carousel-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.carousel__btn--inverse {
  border-color: var(--paper-200) !important;
  color: var(--paper-200) !important;
}
.carousel__btn--inverse:hover {
  background: var(--paper-50) !important;
  color: var(--stone-900) !important;
  border-color: var(--paper-50) !important;
}

/* =====================================================================
   CONTACT PHOTO — small B&W moment above the form (Chapter 04)
   ===================================================================== */
.contact-photo {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto var(--space-7);
  overflow: hidden;
}
.contact-photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(1) contrast(1.04);
}
.contact-photo__cap {
  position: absolute;
  bottom: 12px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--paper-50);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.contact-photo__cap span:last-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--paper-100);
}

/* =====================================================================
   PHOTO STRIP — small horizontal scroll for personal photos (Chapter 02)
   ===================================================================== */
.photo-strip {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}
.photo-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.photo-strip__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}
.photo-strip__track::-webkit-scrollbar { display: none; }

.photo-strip__item {
  flex: 0 0 auto;
  width: 140px;
  height: 190px;
  margin: 0;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: var(--stone-700);
}
.photo-strip__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
  transition: filter var(--dur) var(--ease-out);
}
.photo-strip__item:hover img { filter: contrast(1.05) saturate(1); }
.photo-strip__cap {
  display: none;
}
.photo-strip__cap-old {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(to top, rgba(20,18,14,0.9) 0%, rgba(20,18,14,0.3) 60%, transparent 100%);
}
.photo-strip__cap .photo-frame__tag { font-size: 8px; margin: 0; }

/* =====================================================================
   PHOTO PLACEHOLDER — used in Chapter 02 until personal photos arrive
   ===================================================================== */
.photo-placeholder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: var(--space-6);
}
.photo-placeholder {
  aspect-ratio: 4/5;
  background: repeating-linear-gradient(
    45deg,
    var(--paper-200) 0 14px,
    var(--paper-100) 14px 28px
  );
  border: 1px dashed var(--stone-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
}
.photo-placeholder__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--khaki-500);
}
.photo-placeholder__hint {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--stone-500);
  line-height: 1.4;
  max-width: 24ch;
}

/* =====================================================================
   VOICES — inverse variant (Chapter 03)
   ===================================================================== */
.voices--inverse {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.voice--inverse .voice__quote {
  color: var(--paper-50);
  font-size: 19px;
  line-height: 1.35;
}
.voice--inverse .voice__quote::before,
.voice--inverse .voice__quote::after { color: var(--sand-400); }
.voice--inverse .voice__by {
  border-top: 1px solid rgba(243,238,226,0.18);
}
.voice--inverse .voice__cite strong { color: var(--paper-50); }
.voice--inverse .voice__cite span { color: var(--sand-400); }

@media (max-width: 980px) {
  .voices--inverse { grid-template-columns: 1fr; gap: 36px; }
}

/* =====================================================================
   CHAPTER 03 — SDEROT MAP plate (schematic SVG, top-left)
   ===================================================================== */
.ch3-map {
  position: absolute;
  top: var(--space-5);
  left: var(--gutter);
  width: 100%;
  max-width: 480px;
  width: clamp(320px, 36vw, 480px);
  z-index: 0;
  pointer-events: none;
}
.ch3-map svg { width: 100%; height: auto; display: block; }
@media (max-width: 980px) { .ch3-map { display: none; } }

/* All chapter 03 content sits on top of the map */
.chapter.inverse > .chapter__inner,
.chapter.inverse > .carousel { position: relative; z-index: 1; }

/* Hide the small golden tag in the field carousel captions —
   keep only the white Hebrew description. */
.carousel__cap .photo-frame__tag { display: none; }

/* =====================================================================
   CHAPTER — the canonical long-form section. Compact rhythm.
   ===================================================================== */
.chapter {
  position: relative;
  padding: var(--space-9) 0 var(--space-8);
}
.chapter.inverse {
  background: var(--bg-inverse);
  color: var(--paper-50);
}
.chapter.inverse .chapter__title,
.chapter.inverse h2,
.chapter.inverse h3 { color: var(--paper-50); }
.chapter.inverse .chapter__numeral { color: rgba(243,238,226,0.06); }
.chapter.inverse .prose p { color: var(--paper-200); }
.chapter.inverse .caption { color: var(--stone-300); }

.chapter.stone {
  background: var(--bg-2);
}

.chapter__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Massive faded numeral set against the top-right of each chapter */
.chapter__numeral {
  position: absolute;
  top: -4rem;
  right: var(--gutter);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 18vw, 240px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper-200);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.chapter__head {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-8);
  max-width: 880px;
}
.chapter__kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.chapter__kicker::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.chapter__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--stone-900);
  margin: 0 0 var(--space-6);
  max-width: 16ch;
}
.chapter__lead {
  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--stone-900);
  max-width: 32ch;
  margin: 0;
}
.chapter.inverse .chapter__lead { color: var(--paper-100); }

/* =====================================================================
   PROSE — running text columns
   ===================================================================== */
.prose {
  max-width: 56ch;
  position: relative;
  z-index: 1;
}
.prose p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--stone-700);
  margin: 0 0 1.4em;
}
.prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 5.2em;
  line-height: 0.85;
  float: right;
  margin-inline-end: 0.12em;
  margin-top: 0.04em;
  color: var(--accent-deep);
}
.prose p strong { color: var(--stone-900); font-weight: 700; }
.prose p em { font-style: normal; box-shadow: inset 0 -0.45em 0 var(--khaki-100); }

/* Pull statement set inside prose flow */
.pull-statement {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  margin: var(--space-7) 0;
  padding: 0;
  max-width: 22ch;
}
.pull-statement.indent { padding-inline-start: 0; padding-inline-end: 0; }

/* Marginalia notes — sit beside prose */
.margin-note {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone-500);
  letter-spacing: 0.01em;
  padding: 12px 14px 0 14px;
  border-top: 1px solid var(--rule);
  border-inline-end: 2px solid var(--accent);
}
.margin-note__label {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

/* =====================================================================
   PHOTO PLACEHOLDERS
   Real photos will replace these. The system gives each placeholder a
   tone (sand / stone / khaki / iron) so visual variety reads as
   intentional rather than random.
   ===================================================================== */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  isolation: isolate;
}
.photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.015) 0 2px, transparent 2px 4px);
  z-index: 1;
  pointer-events: none;
}
.photo--sand  { background: linear-gradient(135deg, #d8c9a3 0%, #a8855e 60%, #6e5538 100%); }
.photo--stone { background: linear-gradient(135deg, #b1ada1 0%, #6c6a62 60%, #34332e 100%); }
.photo--khaki { background: linear-gradient(135deg, #98926d 0%, #5a5635 65%, #2a2818 100%); }
.photo--iron  { background: linear-gradient(135deg, #b07150 0%, #813d28 60%, #3d1c12 100%); }
.photo--dawn  { background: linear-gradient(180deg, #c9b48a 0%, #a47b58 40%, #4a342a 80%, #1a1610 100%); }
.photo--dust  { background: linear-gradient(135deg, #e3d5b3 0%, #c0a878 60%, #7a6749 100%); }

.photo__tag {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,238,226,0.85);
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.photo__tag--ltr { direction: ltr; right: auto; left: 18px; }

.photo[aria-label="PLACEHOLDER"]::after {
  content: 'PHOTO';
  position: absolute;
  top: 16px; left: 18px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(243,238,226,0.4);
  z-index: 2;
}

/* Two-up photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: var(--space-7) 0;
}
.photo-grid.three { grid-template-columns: repeat(3, 1fr); }

/* Full-bleed photo strip — breaks out of the column to the page edge */
.full-bleed {
  width: 100vw;
  margin-inline-start: calc(50% - 50vw);
  margin-inline-end: calc(50% - 50vw);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
  position: relative;
}
.full-bleed .photo {
  height: clamp(360px, 56vh, 560px);
}
.full-bleed__caption {
  position: absolute;
  bottom: 20px;
  right: var(--gutter);
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 3;
  max-width: 50ch;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* =====================================================================
   CHAPTER LAYOUTS — split column for prose + asides
   ===================================================================== */
.chapter-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.chapter-body__aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

/* =====================================================================
   CHAPTER 04 — TOPICS list, set as a typographic menu, not as cards
   ===================================================================== */
.topics-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-7);
}
.topic-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--stone-700);
  cursor: pointer;
  position: relative;
}
.topic-row:last-child { border-bottom: 1px solid var(--stone-700); }
.topic-row__no {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--sand-400);
  letter-spacing: 0.06em;
}
.topic-row__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper-50);
  margin: 0 0 8px;
}
.topic-row__desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-200);
  margin: 0;
  max-width: 60ch;
}
.topic-row__dur {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-400);
  white-space: nowrap;
}
.topic-row:hover .topic-row__title { color: var(--sand-400); }

/* =====================================================================
   CHAPTER 05 — VOICES (testimonials, paper background)
   ===================================================================== */
.voices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 64px;
  margin-top: var(--space-8);
}
.voice__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--stone-900);
  margin: 0 0 18px;
}
.voice__quote::before {
  content: '" ';
  color: var(--accent-deep);
  font-weight: 900;
}
.voice__quote::after { content: ' "'; color: var(--accent-deep); font-weight: 900; }
.voice__by {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.voice__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #98926d, #44412a);
  flex-shrink: 0;
}
.voice__cite {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}
.voice__cite strong { display: block; font-weight: 700; color: var(--stone-900); }
.voice__cite span  { color: var(--stone-500); font-weight: 500; }

/* =====================================================================
   CHAPTER 06 — TALK / booking
   ===================================================================== */
.talk-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  margin-top: var(--space-7);
  align-items: start;
}
.talk-contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}
.talk-contacts a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 500;
  color: var(--stone-900);
  text-decoration: none;
}
.talk-contacts a:hover { color: var(--accent-deep); }
.talk-contacts .lbl {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-500);
  min-width: 70px;
}

.booking-form {
  background: var(--paper-100);
  border: 1px solid var(--rule);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stone-300);
  border-radius: 0;
  color: var(--stone-900);
  text-align: right;
  transition: border-color var(--dur) var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--accent-deep);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input[dir="ltr"] { direction: ltr; text-align: right; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn.primary  { background: var(--stone-900); color: var(--paper-50); }
.btn.primary:hover  { background: var(--accent-deep); }
.btn.outline  { background: transparent; color: var(--stone-900); border-color: var(--stone-900); }
.btn.outline:hover  { background: var(--stone-900); color: var(--paper-50); }
.btn.iron     { background: var(--accent-deep); color: var(--paper-50); }
.btn.iron:hover { background: var(--iron-700); }
.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(-4px); }   /* RTL forward = left */

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--stone-900);
  color: var(--paper-200);
  padding: 80px 0 40px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.site-footer__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.015em;
  color: var(--paper-50);
  margin: 0 0 8px;
}
.site-footer__role {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-400);
}
.site-footer__col h5 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin: 0 0 16px;
}
.site-footer__col a {
  display: block;
  color: var(--paper-100);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 8px;
}
.site-footer__col a:hover { color: var(--sand-400); }
.site-footer__bottom {
  border-top: 1px solid rgba(243,238,226,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--stone-300);
  letter-spacing: 0.02em;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .chapter-body { grid-template-columns: 1fr; gap: 40px; }
  .talk-grid { grid-template-columns: 1fr; gap: 48px; }
  .voices { grid-template-columns: 1fr; gap: 56px; }
  .topic-row { grid-template-columns: 40px 1fr; }
  .topic-row__dur { grid-column: 1 / -1; padding-top: 12px; }
  .chapter-strip { display: none; }
  .photo-grid.three { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   ENTRY ANIMATIONS — single, restrained, on first paint only
   ===================================================================== */
.reveal {
  animation: reveal var(--dur-slow) var(--ease-out) backwards;
}
.reveal.d1 { animation-delay: 100ms; }
.reveal.d2 { animation-delay: 200ms; }
.reveal.d3 { animation-delay: 320ms; }
.reveal.d4 { animation-delay: 440ms; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================================
   PHOTO FRAME — wraps real <img> with overlay caption + tag.
   Sized small and quiet on purpose — photos are punctuation, not backdrop.
   ===================================================================== */
.photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--stone-700);
  isolation: isolate;
}
.photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.93);
  transition: filter var(--dur-slow) var(--ease-out);
}
.photo-frame:hover > img { filter: contrast(1.05) saturate(1); }

.photo-frame__caption {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(to top, rgba(20,18,14,0.92) 0%, rgba(20,18,14,0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--paper-50);
  z-index: 2;
  pointer-events: none;
}
.photo-frame__caption span {
  font-size: 11px;
  line-height: 1.4;
  color: var(--paper-200);
}
.photo-frame__tag {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin-bottom: 2px;
  display: block;
}

.photo-frame--tall { aspect-ratio: 3/4; width: 100%; max-width: 220px; }

/* Photo grid — small, restrained */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: var(--space-6) 0 0;
  max-width: 720px;
}
.photo-grid .photo-frame { aspect-ratio: 1; }

/* Full-bleed real image — small + delicate (not actually full-bleed anymore) */
.full-bleed {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: var(--space-6) auto 0;
}
.full-bleed__img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.02) saturate(0.93);
}
.full-bleed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,18,14,0.55) 0%, rgba(20,18,14,0.15) 35%, transparent 60%);
  pointer-events: none;
}
.full-bleed__caption {
  position: absolute;
  bottom: 14px;
  right: 18px;
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  z-index: 3;
  max-width: 60ch;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* =====================================================================
   ASIDE — career list (Chapter 02)
   ===================================================================== */
.aside-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--khaki-500);
  margin: 0 0 14px;
}
.career-list { display: flex; flex-direction: column; gap: 10px; }
.career-row {
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}
.career-row__year {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  color: var(--stone-900);
  letter-spacing: 0.04em;
}
.career-row__what {
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-900);
  margin-top: 3px;
}
.career-row__org {
  font-size: 11px;
  font-weight: 500;
  color: var(--stone-500);
  letter-spacing: 0.06em;
}

/* =====================================================================
   CAROUSEL — Chapter 03 (From The Field). Compact, single-row scroll.
   ===================================================================== */
.chapter--field { padding-bottom: var(--space-9); }

.carousel {
  margin-top: var(--space-6);
  position: relative;
}
.carousel__head-wrap {
  margin: 0 0 var(--space-4);
  padding: var(--space-5) var(--gutter) 0;
  border-top: 1px solid rgba(243,238,226,0.18);
}
.carousel__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 var(--gutter) 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__item {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 300px);
  height: 280px;
  margin: 0;
  scroll-snap-align: start;
  position: relative;
  background: var(--stone-700);
  overflow: hidden;
}
.carousel__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.93);
}
.carousel__cap {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(to top, rgba(20,18,14,0.92) 0%, rgba(20,18,14,0.4) 55%, transparent 100%);
  color: var(--paper-50);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.carousel__cap span:last-child {
  font-size: 12px;
  line-height: 1.4;
  color: var(--paper-100);
}

.carousel__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--gutter);
  margin-top: 14px;
  max-width: 1240px;
  margin-inline: auto;
}
.carousel__hint {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.carousel__buttons { display: flex; gap: 6px; }
.carousel__btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--stone-900);
  color: var(--stone-900);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  border-radius: 0;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.carousel__btn:hover { background: var(--stone-900); color: var(--paper-50); }

/* =====================================================================
   ADDITIONAL BUTTON VARIANT — light outline for dark backgrounds
   ===================================================================== */
.btn.outline-light {
  background: transparent;
  color: var(--paper-50);
  border-color: var(--paper-200);
}
.btn.outline-light:hover {
  background: var(--paper-50);
  color: var(--stone-900);
  border-color: var(--paper-50);
}

/* =====================================================================
   RESPONSIVE — opening split + carousel
   ===================================================================== */
@media (max-width: 980px) {
  .opening--split {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 50vh !important;
    min-height: auto !important;
  }
  .opening--split .opening__split-photo {
    order: -1;
    height: 50vh;
  }
  .carousel__item { width: 70vw; height: 240px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .full-bleed__img { height: 220px; }
}

/* =====================================================================
   MOBILE (≤ 768px) — collapse EVERY two-column layout into a single
   full-width column, stack asides below the prose, and stop any element
   from spilling sideways (in RTL a horizontal spill clips text on the left).
   ===================================================================== */
@media (max-width: 768px) {
  /* Hard stop on horizontal overflow — the root cause of the clipped text */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Always keep at least 20px of breathing room on BOTH sides */
  .chapter__inner {
    padding-left: max(20px, var(--gutter));
    padding-right: max(20px, var(--gutter));
  }

  /* Chapter body → one full-width column: prose first, aside stacked below */
  .chapter-body {
    display: flex !important;
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }
  .chapter-body .prose,
  .chapter-body__aside {
    width: 100%;
    max-width: 100%;
    min-width: 0;        /* let flex children shrink instead of forcing width */
  }
  .chapter-body__aside { padding-top: 0; }

  /* Any other two-column grids collapse to a single column as well */
  .talk-grid,
  .voices { grid-template-columns: 1fr !important; }

  /* Large faded numeral: shrink and lift it so it never overlaps content */
  .chapter__numeral {
    font-size: clamp(64px, 14vw, 110px);
    top: -0.4rem;
    right: var(--gutter);
    opacity: 0.4;
  }
  .chapter__head { position: relative; z-index: 2; }

  /* Images, photo strips and carousels must fit the screen — no overflow */
  .chapter-body img,
  .full-bleed__img,
  .photo-frame--tall { max-width: 100%; }
  .photo-strip,
  .photo-strip__track,
  .carousel,
  .carousel__track { max-width: 100%; }
}

/* =====================================================================
   MOBILE (≤ 640px) — tight grids, smaller type, no overflow
   ===================================================================== */
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  /* Stop everything horizontal — prevent any element from breaking the layout */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Header — tighten the brand row so it never wraps awkwardly */
  .site-header__inner { padding: 12px var(--gutter); }
  .brand-lockup { gap: 8px; }
  .brand-lockup__name { font-size: 16px; }
  .brand-lockup__role { font-size: 10px; letter-spacing: 0.14em; }
  .site-header__cta { padding: 7px 14px; font-size: 12px; }

  /* Opening — split layout already stacks at 980px; shrink type here */
  .opening--split { grid-template-rows: auto 42vh !important; }
  .opening--split .opening__split-text {
    padding: 36px var(--gutter) 32px !important;
  }
  .opening--split .opening__name { font-size: 44px !important; }
  .opening--split .opening__sub { font-size: 16px !important; margin-bottom: 24px; }
  .opening__kicker { font-size: 10px !important; letter-spacing: 0.18em !important; }
  .opening--split .opening__meta {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 18px !important;
    padding-top: 18px !important;
    max-width: 100% !important;
  }
  .opening--split .opening__meta .stat strong { font-size: 24px !important; }
  .opening--split .opening__meta .stat span { font-size: 9px !important; letter-spacing: 0.14em !important; }
  .opening--split .opening__cta-row { margin-top: 28px; gap: 8px; }
  .opening--split .opening__cta-row .btn { padding: 11px 16px; font-size: 13px; flex: 1 1 auto; }
  .opening--split .opening__split-photo .photo-frame__caption { padding: 16px 18px 18px; }
  .opening--split .opening__split-photo .photo-frame__caption strong { font-size: 18px; }
  .opening--split .opening__split-photo .photo-frame__caption span:last-child { font-size: 12px; }

  /* Chapters — much less vertical padding, smaller numerals, smaller headings */
  .chapter { padding: var(--space-7) 0 var(--space-6); }
  .chapter__numeral {
    font-size: 80px !important;
    top: -1.2rem !important;
    right: var(--gutter) !important;
    opacity: 0.5;
  }
  .chapter__head { margin-bottom: var(--space-6); }
  .chapter__title { font-size: 36px !important; line-height: 1.05; }
  .chapter__lead { font-size: 17px !important; }
  .chapter__kicker { font-size: 10px; letter-spacing: 0.16em; }
  .chapter__kicker::before { width: 22px; }

  /* Prose */
  .prose p { font-size: 16px; line-height: 1.65; }
  .prose p:first-of-type::first-letter { font-size: 4em; }
  .pull-statement { font-size: 24px !important; margin: var(--space-6) 0; }

  /* Chapter body — single column already; tighten gaps */
  .chapter-body { gap: 32px !important; }
  .chapter-body__aside { padding-top: 0; gap: 20px; }
  .photo-frame--tall { max-width: 100%; }

  /* Photo strip / carousel — tighter cards */
  .photo-strip__item { width: 120px; height: 162px; }
  .carousel__item { width: 78vw; height: 220px; }
  .photo-strip__head { margin-bottom: 12px; }
  .carousel__btn { width: 36px; height: 36px; font-size: 16px; }

  /* Topics — already collapses, fix spacing */
  .topic-row { padding: 24px 0; gap: 16px 18px; grid-template-columns: 28px 1fr !important; }
  .topic-row__title { font-size: 24px !important; }
  .topic-row__desc { font-size: 14px; }
  .topic-row__dur { font-size: 10px; }

  /* Voices */
  .voice__quote { font-size: 20px; }

  /* Contact section */
  .contact-photo { margin-bottom: var(--space-6); }
  .contact-photo img { height: 200px; }
  .booking-form { padding: 24px 20px; }
  .field input, .field textarea, .field select { font-size: 15px; padding: 10px 0; }
  .talk-contacts a { font-size: 15px; gap: 12px; }
  .talk-contacts .lbl { min-width: 60px; font-size: 9px; }

  /* Map header above carousel */
  .carousel__head-wrap { padding: 24px var(--gutter) 0 !important; margin-bottom: 16px; }

  /* Footer — stack columns */
  .site-footer { padding: 56px 0 32px; }
  .site-footer__top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 40px !important;
  }
  .site-footer__name { font-size: 26px; }
  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
  }
  .site-footer__bottom span { display: block; }

  /* Full-bleed images: keep within viewport */
  .full-bleed { margin-top: var(--space-6); margin-bottom: var(--space-6); }
  .full-bleed__img { height: 200px; }

  /* Photo grid */
  .photo-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
}

/* Extra-small phones (≤ 380px) — squeeze type a notch tighter */
@media (max-width: 380px) {
  .opening--split .opening__name { font-size: 38px !important; }
  .chapter__title { font-size: 30px !important; }
  .topic-row__title { font-size: 21px !important; }
  .opening--split .opening__cta-row { flex-direction: column; }
  .opening--split .opening__cta-row .btn { width: 100%; justify-content: center; }
  .booking-form button.btn { width: 100%; justify-content: center; }
}
