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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

img { max-width: 100%; display: block; }
/* <picture> wrappers must not affect layout — let the inner <img> participate
   in the container's box/flex/grid sizing exactly as before. */
picture { display: contents; }

/* =====================================================================
   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),
              opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              visibility var(--dur) var(--ease-out);
}
.site-header__cta:hover { background: var(--stone-900); color: var(--paper-50); }
/* Hidden while the hero is in view; JS removes this once the hero scrolls out. */
.site-header__cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
}

/* =====================================================================
   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__meta .stat--link {
  transition: opacity 0.2s ease;
}
.opening__meta .stat--link:hover {
  opacity: 0.8;
}

.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;
}

.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;
}

/* =====================================================================
   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);
  /* Sits above the chapter content so the marker is clickable, but the
     container ignores pointer events (it's near-transparent) — only the
     marker and tooltip opt back in, so the text below stays interactive. */
  z-index: 2;
  pointer-events: none;
}
.ch3-map svg { width: 100%; height: auto; display: block; }
.ch3-map__marker { pointer-events: auto; cursor: pointer; }

/* Tooltip bubble — dark, sand text, small downward arrow toward the marker.
   Anchored at the marker's position (215,160 of the 580×680 viewBox). */
.ch3-map__tooltip {
  position: absolute;
  left: 37%;
  top: 23.5%;
  transform: translate(-50%, -100%) translateY(-14px) scale(0.96);
  width: max-content;
  max-width: 230px;
  padding: 10px 13px;
  background: var(--stone-900);
  color: var(--sand-400);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  border-radius: var(--r-3);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              visibility var(--dur) var(--ease-out);
}
.ch3-map__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--stone-900);
}
.ch3-map__tooltip.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -100%) translateY(-14px) scale(1);
}
@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;
}

/* =====================================================================
   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;
}
/* Real photo / logo avatar — circular, cropped to fill */
.voice__avatar--img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-50);
  display: block;
}
.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 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; }

/* =====================================================================
   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; }
}

/* =====================================================================
   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%; }
  html { scroll-behavior: smooth; }

  /* 20px gutters everywhere on mobile */
  :root { --gutter: 20px; }

  /* Section padding on mobile: 40px top/bottom, 20px left/right */
  .chapter { padding: 40px 0 !important; }
  .chapter__inner { padding-left: 20px; padding-right: 20px; }

  /* Typography: body text never below 16px, generous line-height, no clipping */
  .prose p { font-size: 16px !important; line-height: 1.7 !important; }
  .chapter__lead { font-size: 18px !important; line-height: 1.6; }
  /* Headings capped at 32px on mobile */
  .chapter__title { font-size: 32px !important; line-height: 1.1; }
  h2, h3 { overflow-wrap: anywhere; }

  /* All images fit the screen */
  img { max-width: 100%; height: auto; }

  /* Every button is a comfortable tap target (≥ 48px tall) */
  .btn { min-height: 48px; }

  /* 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; }

  /* Chapter numerals (01, 02…): 80px, top-right, very low opacity so they
     sit behind the content as a watermark and never overlap the text */
  .chapter__numeral {
    font-size: 80px !important;
    top: -0.2rem;
    right: 20px;
    opacity: 0.08 !important;
    z-index: 0;
  }
  .chapter__head { position: relative; z-index: 2; }

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

  /* Chapter 01 portrait on mobile: the image stays fully visible from the top;
     a soft gradient overlay across the bottom 40% gently blends the lower edge
     into the page background instead of a hard crop. */
  .photo-frame--tall { width: 100%; }
  .photo-frame--tall::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent 70%, var(--paper-50) 100%);
    pointer-events: none;
    z-index: 1;
  }

  /* -------------------------------------------------------------------
     HERO / OPENING on mobile — full-width image at 55vh on top, the dark
     text section flows below it. Flex column (not a fixed-height grid row)
     so the text section grows to fit its content and the CTA buttons are
     never clipped. Nothing from the text section sits on top of the photo.
     ------------------------------------------------------------------- */
  .opening--split {
    display: flex !important;
    flex-direction: column !important;
    grid-template-rows: none !important;
    min-height: auto !important;
  }
  /* Image: full width, fixed 55vh, cropped from the top so the face shows */
  .opening--split .opening__split-photo {
    order: -1;
    flex: 0 0 55vh;
    height: 55vh !important;
    width: 100%;
  }
  .opening--split .opening__split-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  /* Bug 1: the caption ("גבעת קובי" + subtitle) sits on top of the photo
     and is unreadable on mobile — hide it so nothing overlaps the image */
  .opening--split .opening__split-photo .photo-frame__caption { display: none !important; }
  /* Dark text section below the image: clear 24px side padding, content flows
     top-to-bottom. The kicker (SDEROT · הרבש״צ) is the first child, so it sits
     below the image, above the "קובי הרוש" title. */
  .opening--split .opening__split-text {
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: stretch;
    padding: 40px 24px !important;
  }
  .opening--split .opening__name {
    font-size: 52px !important;
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 20px;
  }
  .opening--split .opening__sub {
    font-size: 16px !important;
    line-height: 1.6 !important;
    max-width: none;
    margin-bottom: 32px;
  }
  /* Stats: clean 2×2 grid, each cell centered, number large in accent gold */
  .opening--split .opening__meta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 16px !important;
    max-width: none !important;
    width: 100%;
  }
  .opening--split .opening__meta .stat { text-align: center; }
  .opening--split .opening__meta .stat strong {
    font-size: 40px !important;
    font-weight: 900;
    color: var(--sand-400) !important;
  }
  .opening--split .opening__meta .stat span { margin-top: 8px; }
  /* Both CTAs full width, stacked, comfortable 48px+ tap targets */
  .opening--split .opening__cta-row {
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
    margin-bottom: 0;
  }
  .opening--split .opening__cta-row .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    flex: 1 1 auto;
    font-size: 15px;
  }
  /* The absolute "SCROLL · גוללו" cue would float over the content — drop it */
  .opening__scroll { display: none !important; }

  /* Carousels: cards stay a readable 280px wide; arrows are ≥ 44px tap targets */
  .carousel__item { width: 280px !important; height: 300px; }
  .carousel__btn { width: 44px !important; height: 44px !important; font-size: 18px; }
}

/* =====================================================================
   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 — full hero spec comes from the ≤768px block; here only the kicker
     gets tightened. Keep the image at the top 55vh. */
  .opening--split .opening__split-photo { flex-basis: 55vh; }
  .opening__kicker { font-size: 10px !important; letter-spacing: 0.18em !important; }
  .opening--split .opening__meta .stat span { font-size: 10px !important; letter-spacing: 0.14em !important; }

  /* Chapters — 40px vertical padding, faded 80px numeral, headings ≤ 32px */
  .chapter { padding: 40px 0 !important; }
  .chapter__numeral {
    font-size: 80px !important;
    top: -0.2rem !important;
    right: 20px !important;
    opacity: 0.08 !important;
  }
  .chapter__head { margin-bottom: var(--space-6); }
  .chapter__title { font-size: 32px !important; line-height: 1.1; }
  .chapter__lead { font-size: 18px !important; }
  .chapter__kicker { font-size: 10px; letter-spacing: 0.16em; }
  .chapter__kicker::before { width: 22px; }

  /* Prose — body text ≥ 16px, line-height 1.7 */
  .prose p { font-size: 16px !important; line-height: 1.7 !important; }
  .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 — cards stay ≥ 280px, arrows ≥ 44px tap targets */
  .photo-strip__item { width: 120px; height: 162px; }
  .carousel__item { width: 280px !important; height: 280px; }
  .photo-strip__head { margin-bottom: 12px; }
  .carousel__btn { width: 44px !important; height: 44px !important; 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; }

}

/* Extra-small phones (≤ 380px) — squeeze type a notch tighter */
@media (max-width: 380px) {
  .opening--split .opening__name { font-size: 46px !important; }
  .opening--split .opening__meta .stat strong { font-size: 34px !important; }
  .topic-row__title { font-size: 21px !important; }
  .booking-form button.btn { width: 100%; justify-content: center; min-height: 48px; }
}

/* =====================================================================
   SHARE BAR — vertical floating rail on the left (desktop);
   sticky full-width bar at the bottom (mobile). Matches the dark
   stone-900 surface and the khaki accent on hover.
   ===================================================================== */
.share-bar {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--stone-900);
  border-radius: 8px;
  box-shadow: var(--shadow-2);
}

.share-bar__btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--r-3);
  background: transparent;
  color: var(--paper-200);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.share-bar__btn:hover,
.share-bar__btn:focus-visible {
  background: var(--accent);
  color: var(--paper-50);
  outline: none;
}
.share-bar__btn:active { transform: scale(0.92); }
.share-bar__btn svg { display: block; }

.share-bar__toast {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--r-3);
  background: var(--accent);
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.share-bar__toast.is-shown {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  /* Make room so the fixed bottom bar never covers footer content. The bar
     is opaque and sits over this 56px band, so no page color shows through. */
  body { padding-bottom: 56px; }

  .share-bar {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    width: 100%;
    height: 56px;
    padding: 0 8px;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(26, 26, 23, 0.28);
  }
  /* Minimum 44×44 touch target on mobile */
  .share-bar__btn { width: 44px; height: 44px; }

  /* Header CTA: ensure a ≥44px tap target on mobile */
  .site-header__cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .share-bar__toast {
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
  }
  .share-bar__toast.is-shown {
    transform: translateX(-50%) translateY(0);
  }
}

@media print {
  .share-bar { display: none !important; }
}

/* =====================================================================
   SCROLL UX — reading progress bar, back-to-top, testimonial reveals
   ===================================================================== */

/* Reading progress: thin bar above the header. In RTL it is anchored to the
   right edge and grows its width leftward as the page is scrolled. */
.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 0;
  height: 3px;
  background: var(--sand-400);
  z-index: 1100;
  pointer-events: none;
  transition: width 100ms linear;
}

/* Back-to-top — bottom-right on desktop, dark iron accent, fades in past 400px */
.back-to-top {
  position: fixed;
  bottom: calc(32px + 64px); /* stacked above the 52px WhatsApp FAB at bottom:32px */
  right: 32px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-deep);
  color: var(--paper-50);
  cursor: pointer;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              visibility var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--iron-700);
  outline: none;
}
.back-to-top svg { display: block; }

/* Testimonial reveal — JS adds .voice--reveal (hidden state) then .voice--in */
.voice--reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: transform, opacity;
}
.voice--reveal.voice--in {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  /* Bottom-left, lifted clear of the sticky 56px share bar so they don't overlap */
  .back-to-top {
    right: auto;
    left: 16px;
    bottom: calc(56px + 16px);
  }

  /* Mobile: clean opacity-only fade — no movement, no stagger, GPU-promoted.
     Overrides the desktop slide-up entirely (translateZ(0) keeps a fixed
     position so nothing moves). The single all-at-once trigger is in UX.jsx. */
  .voice--reveal {
    opacity: 0;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: opacity 0.2s ease;
  }
  .voice--reveal.voice--in {
    opacity: 1;
    transform: translateZ(0);
  }
}

@media print {
  .reading-progress,
  .back-to-top { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transform: none; }
  .voice--reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   WHATSAPP FAB — always-visible CTA, white circle with green logo,
   pulsing green ring and a desktop-only hover tooltip.
   ===================================================================== */
.wa-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-2);
  text-decoration: none;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.wa-fab:hover,
.wa-fab:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(26, 26, 23, 0.22);
  outline: none;
}
.wa-fab__icon {
  display: block;
  position: relative;
  z-index: 1;
}

/* Pulsing ring — expanding green halo every 3s */
.wa-fab__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: wa-pulse 3s var(--ease-out) infinite;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Tooltip (desktop only) */
.wa-fab::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: var(--r-3);
  background: var(--stone-900);
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.wa-fab:hover::after,
.wa-fab:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  /* Bottom-left, above both the share bar (56px) and the back-to-top button */
  .wa-fab {
    right: auto;
    left: 16px;
    bottom: calc(56px + 72px);
  }
  .wa-fab::after { display: none; } /* no hover on touch */
}

@media print {
  .wa-fab { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab__ring { animation: none; }
  .wa-fab:hover,
  .wa-fab:focus-visible { transform: none; }
}

/* =====================================================================
   AVAILABILITY BADGE — subtle amber/gold pill near the contact CTA
   ===================================================================== */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-4);
  padding: 7px 14px;
  background: var(--sand-200);
  color: var(--stone-900);
  border: 1px solid var(--sand-400);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.availability-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--iron-500);
  flex: 0 0 auto;
}

/* =====================================================================
   SHARE-WITH-A-FRIEND CARD — dark closing band before the footer
   ===================================================================== */
.share-card {
  background: var(--stone-900);
  color: var(--paper-50);
  padding: var(--space-9) var(--gutter);
}
.share-card__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}
.share-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: var(--track-tight);
  color: var(--paper-50);
  margin: 0 0 var(--space-3);
}
.share-card__sub {
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--paper-200);
  margin: 0 auto var(--space-6);
  max-width: 46ch;
}
.share-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

@media (max-width: 640px) {
  .share-card { padding: var(--space-8) var(--gutter); }
  .share-card__actions .btn { width: 100%; justify-content: center; min-height: 48px; }
}
