:root {
  --bg: #d9d2c8;
  --surface: #f6f0e7;
  --raised: #fff8ef;
  --ink: #1f2428;
  --navy: #1a2b5f;
  --ochre: #8a6728;
  --rust: #91311b;
  --muted: #65615c;
  --line: rgba(61, 51, 36, 0.14);
  --charcoal: #30343b;
  --header: 92px;
  --footer: 78px;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(36, 29, 15, 0.08);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--navy);
  transform: translateY(-160%);
  border-radius: 6px;
}
.skip-link:focus { transform: none; }

.app {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.header, .footer { background: var(--surface); }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 28px 11px;
  border-bottom: 1px solid var(--line);
}
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 62px; width: auto; }
.header-copy { text-align: right; min-width: 0; }
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--ochre);
}
.header-copy h1 {
  margin-top: 4px;
  color: var(--navy);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 650;
  letter-spacing: -0.6px;
}
.header-copy p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 12px 18px;
  overflow: hidden;
}
.map-frame {
  position: relative;
  line-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.map-frame img.map {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.pin {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.pin-ring {
  display: block;
  width: 16px;
  height: 16px;
  margin: auto;
  border-radius: 50%;
  border: 2px solid var(--rust);
  background: rgba(145, 49, 27, 0.2);
  box-shadow: 0 0 0 0 rgba(145, 49, 27, 0.45);
  animation: pulse 2.6s ease-out infinite;
}
.pin:nth-child(3n) .pin-ring { animation-delay: 0.4s; }
.pin:nth-child(3n + 1) .pin-ring { animation-delay: 0.9s; }
.pin:hover .pin-ring,
.pin:focus-visible .pin-ring,
.pin.active .pin-ring {
  width: 18px;
  height: 18px;
  background: var(--navy);
  border-color: #fff;
  box-shadow: 0 0 0 6px rgba(26, 43, 95, 0.28);
  animation: none;
}
.pin-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.pin:hover .pin-label,
.pin:focus-visible .pin-label { opacity: 1; }

@keyframes pulse {
  70% { box-shadow: 0 0 0 11px rgba(145, 49, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(145, 49, 27, 0); }
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
}
.footer img { height: 46px; width: auto; max-width: 168px; object-fit: contain; }
.footer img.sefarad { height: 52px; max-width: 64px; }

.panel {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  top: var(--header);
  bottom: var(--footer);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(104%);
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.38s;
  box-shadow: 0 -20px 60px rgba(17, 28, 48, 0.18);
}
.panel.open {
  transform: none;
  visibility: visible;
}
.sheet {
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sheet-top {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 28px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.sheet-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.kicker-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.country {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 9px;
  background: var(--raised);
}
.close {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--raised);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.close svg { width: 20px; height: 20px; }
.sheet-top h2 {
  margin: 10px 0 6px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 650;
  letter-spacing: -1.4px;
}
.role {
  color: var(--ochre);
  font-size: 18px;
  font-weight: 650;
}
.stepper {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.stepper button {
  flex: 0 0 auto;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.stepper button[aria-current="step"] {
  background: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
}

.sheet-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 0 12px;
}
.sheet-inner { max-width: 760px; margin: 0 auto; padding: 0 28px 8px; }
.photo {
  margin: 0 0 8px;
  background: #e7e0d4;
}
.photo img {
  width: 100%;
  height: min(32vh, 280px);
  object-fit: cover;
  object-position: center 42%;
}
.photo figcaption {
  padding: 8px 28px 0;
  max-width: 760px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--muted);
}

.lead {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.65;
  color: var(--navy);
}
.block { margin-top: 30px; }
.block h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.prose p {
  font-size: 18px;
  line-height: 1.78;
}
.prose p + p { margin-top: 14px; }

.traces, .timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.traces li, .timeline li {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.traces li { border-left: 3px solid var(--ochre); }
.traces strong, .timeline strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 4px;
}
.traces p, .timeline p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.timeline li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: start;
}
.timeline strong {
  color: var(--ochre);
  font-size: 14px;
  margin: 0;
}

.note {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.sheet-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 28px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sheet-nav button {
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--charcoal);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}
.sheet-nav button small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  margin-bottom: 2px;
}
.sheet-nav button.secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  text-align: right;
}
.sheet-nav button:disabled { opacity: 0.35; }

@media (orientation: landscape) and (min-width: 1100px) {
  .panel {
    left: auto;
    width: min(680px, 48vw);
    transform: translateX(104%);
    border-left: 1px solid var(--line);
  }
  .panel.open { transform: none; }
  .sheet-inner { padding-left: 26px; padding-right: 26px; }
  .sheet-top, .sheet-nav { padding-left: 26px; padding-right: 26px; }
}

@media (max-width: 720px) {
  .header { padding: 10px 14px; gap: 10px; }
  .brand img { height: 46px; }
  .header-copy h1 { font-size: 16px; }
  .header-copy p { display: none; }
  .stage { padding: 8px; }
  .footer { gap: 14px; padding: 10px 12px; }
  .footer img { height: 34px; max-width: 28vw; }
  .footer img.sefarad { height: 38px; }
  .sheet-top { padding: 14px 16px 12px; }
  .sheet-inner { padding: 0 16px 8px; }
  .photo figcaption { padding-left: 16px; padding-right: 16px; }
  .lead { font-size: 18px; }
  .prose p { font-size: 16.5px; }
  .timeline li { grid-template-columns: 84px 1fr; }
  .sheet-nav { padding: 10px 16px 14px; }
  .pin { width: 40px; height: 40px; }
}

@media (min-height: 1400px) and (orientation: portrait) {
  .prose p { font-size: 20px; }
  .lead { font-size: 22px; }
  .brand img { height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
