:root {
  --palestine-ink: #071c18;
  --palestine-green: #0a3b31;
  --palestine-deep: #031b17;
  --palestine-gold: #d7ad4f;
  --palestine-cream: #f3eee2;
  --palestine-mist: #cad8d1;
}

.palestine-nav-link {
  color: #f1cf79 !important;
}

.palestine-page {
  background: var(--palestine-deep);
  color: var(--palestine-cream);
  overflow: clip;
}

.palestine-hero {
  min-height: calc(100svh - 72px);
  position: relative;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.palestine-hero-image,
.palestine-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.palestine-hero-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  animation: palestine-hero-breathe 18s ease-in-out infinite alternate;
  z-index: -3;
}

.palestine-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 20, 16, .97) 0%, rgba(2, 25, 20, .79) 44%, rgba(3, 24, 19, .18) 78%),
    linear-gradient(0deg, rgba(2, 20, 16, .92) 0%, transparent 46%);
}

.palestine-hero::before {
  content: "";
  position: absolute;
  width: min(55vw, 760px);
  aspect-ratio: 1;
  left: -28vw;
  top: -28vw;
  border: 1px solid rgba(215, 173, 79, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(215, 173, 79, .035), 0 0 0 14vw rgba(215, 173, 79, .02);
  z-index: -1;
}

.palestine-hero-content {
  width: min(1180px, calc(100% - 10vw));
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 11rem) 0 clamp(5rem, 11vh, 8rem);
}

.palestine-kicker {
  margin: 0 0 1.35rem;
  color: var(--palestine-gold);
  font-size: .76rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.palestine-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #fffdf6;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 7.3vw, 7.6rem);
  line-height: .93;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.palestine-hero h1 em {
  color: #f0d28c;
  font-weight: 600;
}

.palestine-hero-content > p:not(.palestine-kicker) {
  max-width: 650px;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, .79);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.7;
}

.palestine-hero-content > small {
  display: block;
  max-width: 620px;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, .58);
  font-size: .78rem;
  line-height: 1.5;
}

.palestine-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.palestine-button {
  appearance: none;
  min-height: 48px;
  padding: .9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.palestine-button:hover,
.palestine-button:focus-visible {
  transform: translateY(-2px);
}

.palestine-button-gold {
  background: var(--palestine-gold);
  color: #102b23;
}

.palestine-button-line {
  background: rgba(5, 36, 29, .46);
  border-color: rgba(255, 255, 255, .36);
  color: #fff;
  backdrop-filter: blur(8px);
}

.palestine-scroll-cue {
  position: absolute;
  right: 4vw;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  color: rgba(255, 255, 255, .72);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.palestine-scroll-cue i {
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--palestine-gold), transparent);
}

.palestine-timeline-shell {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  background: var(--palestine-deep);
}

.palestine-progress {
  position: sticky;
  top: 72px;
  z-index: 8;
  align-self: start;
  height: calc(100vh - 72px);
  padding: 2rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: rgba(3, 27, 23, .91);
  backdrop-filter: blur(12px);
}

.palestine-progress > p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, .45);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.palestine-progress > p b {
  color: var(--palestine-gold);
  font-size: .8rem;
}

.palestine-progress nav {
  display: grid;
  gap: .25rem;
}

.palestine-progress nav a {
  display: block;
  padding: .56rem .5rem;
  border-left: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .42);
  text-decoration: none;
  transition: color .25s ease, border-color .25s ease, padding-left .25s ease;
}

.palestine-progress nav a span {
  display: block;
  font-size: .65rem;
  font-weight: 700;
}

.palestine-progress nav a b {
  display: block;
  margin-top: .15rem;
  font-size: .63rem;
  font-weight: 500;
  line-height: 1.25;
}

.palestine-progress nav a.active,
.palestine-progress nav a:hover,
.palestine-progress nav a:focus-visible {
  padding-left: .8rem;
  border-color: var(--palestine-gold);
  color: #fff;
}

.palestine-progress-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .06);
}

.palestine-progress-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--palestine-gold);
  transform: scaleY(0);
  transform-origin: top;
}

.palestine-scenes {
  min-width: 0;
}

.palestine-scene {
  position: relative;
  min-height: 112vh;
  display: grid;
  place-items: center;
  padding: 12vh clamp(2rem, 7vw, 7rem);
  scroll-margin-top: 72px;
  isolation: isolate;
}

.palestine-scene::before,
.palestine-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.palestine-scene::after {
  z-index: -1;
  background: radial-gradient(circle at var(--glow-x, 78%) 50%, rgba(215, 173, 79, .12), transparent 38%);
  opacity: .2;
  transition: opacity .8s ease;
}

.palestine-scene:nth-child(1)::before { background: linear-gradient(180deg, #031b17 0%, #15261f 50%, #172a23 100%); }
.palestine-scene:nth-child(2)::before { background: linear-gradient(180deg, #172a23 0%, #28332a 48%, #222e27 100%); }
.palestine-scene:nth-child(3)::before { background: linear-gradient(180deg, #222e27 0%, #26372e 48%, #112b25 100%); }
.palestine-scene:nth-child(4)::before { background: linear-gradient(180deg, #112b25 0%, #2c281f 52%, #17231e 100%); }
.palestine-scene:nth-child(5)::before { background: linear-gradient(180deg, #17231e 0%, #111b19 55%, #101f1b 100%); }
.palestine-scene:nth-child(6)::before { background: linear-gradient(180deg, #101f1b 0%, #183027 55%, #0e2922 100%); }
.palestine-scene:nth-child(7)::before { background: linear-gradient(180deg, #0e2922 0%, #07251f 55%, #091e1a 100%); }
.palestine-scene:nth-child(8)::before { background: linear-gradient(180deg, #091e1a 0%, #17201e 55%, #101716 100%); }
.palestine-scene:nth-child(9)::before { background: linear-gradient(180deg, #101716 0%, #071b18 58%, #05372d 100%); }

.palestine-scene.is-active::after { opacity: 1; }

.palestine-scene-inner {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.palestine-scene:nth-child(even) .palestine-scene-copy { order: 2; }
.palestine-scene:nth-child(even) .palestine-scene-visual { order: 1; }

.palestine-scene-copy,
.palestine-scene-visual {
  opacity: .32;
  transform: translateY(42px) scale(.975);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2, .72, .2, 1);
}

.palestine-scene-visual { transition-delay: .08s; }
.palestine-scene.is-active .palestine-scene-copy,
.palestine-scene.is-active .palestine-scene-visual {
  opacity: 1;
  transform: none;
}

.palestine-scene-number {
  margin: 0 0 1.8rem !important;
  color: rgba(255, 255, 255, .36) !important;
  font-size: .68rem !important;
  font-weight: 700;
  letter-spacing: .16em;
}

.palestine-scene-copy time {
  display: block;
  margin-bottom: .65rem;
  color: var(--palestine-gold);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: .08em;
}

.palestine-scene-copy h2 {
  max-width: 640px;
  margin: 0 0 1.6rem;
  color: #fffdf6;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.35rem, 4.5vw, 5rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.palestine-scene-copy > p:not(.palestine-scene-number) {
  max-width: 610px;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.76;
}

.palestine-source-button {
  margin-top: .8rem;
  padding: .75rem 0;
  border: 0;
  border-bottom: 1px solid rgba(215, 173, 79, .6);
  background: transparent;
  color: #f2d58c;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.palestine-source-button:hover,
.palestine-source-button:focus-visible { color: #fff; border-color: #fff; }

.palestine-scene-visual {
  position: relative;
  min-height: min(64vh, 620px);
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 46% 46% 14% 14% / 33% 33% 12% 12%;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .015)),
    radial-gradient(circle at 50% 80%, rgba(215, 173, 79, .1), transparent 48%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 35px 90px rgba(0, 0, 0, .23);
  overflow: hidden;
}

.palestine-scene-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(215, 173, 79, .11);
  border-radius: 50% 50% 12% 12% / 38% 38% 10% 10%;
}

.palestine-year-ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  color: rgba(255, 255, 255, .035);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(7rem, 14vw, 13rem);
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
  white-space: nowrap;
}

.palestine-scene-visual figcaption {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 1.6rem;
  color: rgba(255, 255, 255, .46);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.palestine-document {
  width: min(63%, 330px);
  aspect-ratio: .76;
  padding: 14% 11%;
  color: #46391f;
  background: #d9c69c;
  box-shadow: 0 28px 50px rgba(0, 0, 0, .35);
  transform: rotate(-4deg);
}

.palestine-document small,
.palestine-document b,
.palestine-document i { display: block; }
.palestine-document small { font-family: Georgia, serif; letter-spacing: .08em; }
.palestine-document b { margin-top: .55rem; font-family: Georgia, serif; }
.palestine-document span { display: block; height: 1px; margin-top: 10%; background: rgba(70, 57, 31, .35); }
.palestine-document i { margin-top: 18%; font-family: Georgia, serif; font-size: 1.5rem; text-align: right; }

.palestine-route-map,
.palestine-partition,
.palestine-corridor,
.palestine-olive-path,
.palestine-coast,
.palestine-skyline,
.palestine-present {
  position: relative;
  width: min(72%, 410px);
  height: 58%;
}

.palestine-route-map {
  border: 1px solid rgba(215, 173, 79, .25);
  border-radius: 52% 48% 46% 54% / 35% 32% 68% 65%;
  transform: rotate(-7deg);
}
.palestine-route-map::before,
.palestine-route-map::after { content: ""; position: absolute; border: 1px dashed rgba(255,255,255,.28); border-radius: 50%; }
.palestine-route-map::before { width: 75%; height: 36%; left: -18%; top: 18%; transform: rotate(18deg); }
.palestine-route-map::after { width: 68%; height: 29%; right: -8%; bottom: 12%; transform: rotate(-22deg); }
.palestine-route-map i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--palestine-gold); box-shadow: 0 0 24px var(--palestine-gold); }
.palestine-route-map i:nth-child(1) { left: 12%; top: 22%; }
.palestine-route-map i:nth-child(2) { right: 18%; top: 31%; }
.palestine-route-map i:nth-child(3) { left: 31%; bottom: 26%; }
.palestine-route-map i:nth-child(4) { right: 29%; bottom: 12%; }

.palestine-partition { display: flex; gap: 8%; align-items: stretch; transform: rotate(-4deg); }
.palestine-partition i { flex: 1; border: 1px solid rgba(255,255,255,.27); border-radius: 48% 34% 40% 55% / 23% 38% 62% 76%; background: rgba(215,173,79,.08); }
.palestine-partition i + i { transform: translateY(9%); background: rgba(133,176,157,.09); }
.palestine-partition b { position: absolute; left: 50%; top: 43%; padding: .42rem .7rem; border: 1px solid var(--palestine-gold); border-radius: 999px; color: #f4d88e; font-size: .64rem; transform: translate(-50%, -50%); }

.palestine-key { position: relative; width: min(72%, 400px); height: 130px; transform: rotate(-11deg); }
.palestine-key i { position: absolute; left: 0; top: 15px; width: 92px; height: 92px; border: 13px solid #bd9140; border-radius: 50%; box-shadow: 0 0 34px rgba(215,173,79,.2); }
.palestine-key span { position: absolute; left: 86px; top: 54px; width: 66%; height: 15px; border-radius: 999px; background: linear-gradient(90deg,#bd9140,#efcf81); }
.palestine-key b { position: absolute; right: 0; top: 54px; width: 45px; height: 70px; border-right: 14px solid #efcf81; border-bottom: 14px solid #efcf81; }

.palestine-corridor { perspective: 500px; }
.palestine-corridor i { position: absolute; top: 0; bottom: 0; width: 38%; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(90deg, rgba(0,0,0,.38), rgba(255,255,255,.04)); }
.palestine-corridor i:first-child { left: 0; transform: rotateY(32deg); transform-origin: left; }
.palestine-corridor i:nth-child(2) { right: 0; transform: rotateY(-32deg); transform-origin: right; }
.palestine-corridor span { position: absolute; left: 49%; bottom: 0; width: 2%; height: 72%; background: linear-gradient(transparent, var(--palestine-gold)); box-shadow: 0 0 24px rgba(215,173,79,.4); }

.palestine-olive-path::before,
.palestine-olive-path::after { content:""; position:absolute; left:50%; top:6%; width:2px; height:86%; background:linear-gradient(var(--palestine-gold),rgba(215,173,79,.08)); transform-origin:bottom; }
.palestine-olive-path::before { transform:rotate(-18deg); }
.palestine-olive-path::after { transform:rotate(18deg); }
.palestine-olive-path i { position:absolute; width:48px; height:22px; border:1px solid rgba(159,191,157,.55); border-radius:100% 0 100% 0; }
.palestine-olive-path i:nth-child(1) { left:33%; top:20%; transform:rotate(18deg); }
.palestine-olive-path i:nth-child(2) { right:29%; top:39%; transform:rotate(-18deg); }
.palestine-olive-path i:nth-child(3) { left:26%; top:58%; transform:rotate(24deg); }

.palestine-coast { border: 1px solid rgba(255,255,255,.17); border-radius: 58% 42% 50% 50%; overflow:hidden; }
.palestine-coast::before { content:""; position:absolute; inset:0 38% 0 0; background:repeating-linear-gradient(165deg,rgba(176,211,207,.15) 0 3px,transparent 3px 17px); }
.palestine-coast i { position:absolute; right:8%; top:8%; bottom:8%; width:48%; border:1px solid var(--palestine-gold); border-radius: 42% 58% 46% 54%; }
.palestine-coast span,
.palestine-coast b { position:absolute; right:2%; width:54%; height:3px; background:rgba(215,173,79,.55); }
.palestine-coast span { top:18%; }
.palestine-coast b { bottom:18%; }

.palestine-skyline { display:flex; align-items:flex-end; gap:3%; }
.palestine-skyline i { flex:1; min-height:28%; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.055); }
.palestine-skyline i:nth-child(2) { height:72%; }
.palestine-skyline i:nth-child(3) { height:47%; transform:translateY(8%) rotate(3deg); }
.palestine-skyline i:nth-child(4) { height:82%; }
.palestine-skyline i:nth-child(5) { height:38%; transform:translateY(9%); }
.palestine-skyline span { position:absolute; left:-10%; right:-10%; bottom:18%; height:1px; background:linear-gradient(90deg,transparent,var(--palestine-gold),transparent); }

.palestine-present .palestine-skyline { position:absolute; inset:30% 0 0; width:100%; height:auto; opacity:.65; }
.palestine-present > span { position:absolute; left:50%; bottom:8%; width:5px; height:44%; border-radius:999px; background:#769f6c; transform:translateX(-50%) rotate(-4deg); }
.palestine-present > b,
.palestine-present > em { position:absolute; bottom:32%; width:58px; height:26px; border:2px solid #8ab27e; border-radius:100% 0 100% 0; }
.palestine-present > b { left:50%; transform:translateX(-100%) rotate(18deg); }
.palestine-present > em { left:50%; transform:rotate(-16deg) scaleX(-1); }

.palestine-action {
  position: relative;
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 12vh, 9rem) max(6vw, calc((100vw - 1180px) / 2));
  background: linear-gradient(145deg, #073d32, #02231d 64%, #071c18);
  isolation: isolate;
}

.palestine-action-glow {
  position: absolute;
  width: 52vw;
  height: 52vw;
  right: -22vw;
  top: -28vw;
  border: 1px solid rgba(215,173,79,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(215,173,79,.03),0 0 0 16vw rgba(215,173,79,.02);
  z-index: -1;
}

.palestine-action h2 {
  margin: 0 0 1.4rem;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.7rem, 5.4vw, 6rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.palestine-action > div > p:not(.palestine-kicker) {
  max-width: 600px;
  color: rgba(255,255,255,.72);
  font-size: 1.08rem;
  line-height: 1.75;
}

.palestine-action-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.palestine-action-grid a {
  position:relative;
  min-height:270px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:2rem;
  padding:1.5rem;
  border:1px solid rgba(255,255,255,.14);
  border-radius:1.35rem;
  color:#fff;
  text-decoration:none;
  overflow:hidden;
  transition:background .25s ease,border-color .25s ease,transform .25s ease,box-shadow .25s ease;
}
.palestine-action-grid a:hover,
.palestine-action-grid a:focus-visible {
  border-color:#f6d983;
  transform:translateY(-5px);
  box-shadow:0 20px 50px rgba(0,0,0,.24);
}
.palestine-destination-primary {
  border-color:rgba(255,224,139,.56) !important;
  background:linear-gradient(145deg,#e6c46d,#cda548) !important;
  color:#092b22 !important;
}
.palestine-destination-secondary {
  background:linear-gradient(145deg,rgba(3,48,39,.88),rgba(2,29,24,.76)) !important;
  backdrop-filter:blur(16px);
}
.palestine-destination-number {
  display:grid;
  width:2.55rem;
  height:2.55rem;
  place-items:center;
  border:1px solid currentColor;
  border-radius:50%;
  color:inherit !important;
  font-size:.7rem !important;
  font-weight:800;
  letter-spacing:.08em;
}
.palestine-destination-copy {
  display:block;
  color:inherit !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
.palestine-destination-copy small,
.palestine-destination-copy strong,
.palestine-destination-copy b {
  display:block;
}
.palestine-destination-copy small {
  margin-bottom:.55rem;
  color:inherit;
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.12em;
  opacity:.7;
  text-transform:uppercase;
}
.palestine-destination-copy strong {
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(1.45rem,2.2vw,2.15rem);
  line-height:1.03;
  letter-spacing:-.035em;
}
.palestine-destination-copy b {
  max-width:27ch;
  margin-top:.85rem;
  font-size:.78rem;
  font-weight:500;
  line-height:1.55;
  opacity:.72;
  text-align:left;
}
.palestine-destination-card > i {
  position:absolute;
  right:1.35rem;
  top:1.35rem;
  display:grid;
  width:2.55rem;
  height:2.55rem;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.13);
  color:inherit;
  font-style:normal;
  font-size:1.2rem;
  transition:transform .25s ease,background .25s ease;
}
.palestine-destination-card:hover > i,
.palestine-destination-card:focus-visible > i {
  background:rgba(255,255,255,.25);
  transform:translateX(4px);
}
.palestine-action-note { grid-column:1 / -1; margin:0; color:rgba(255,255,255,.45); font-size:.76rem; }

.palestine-sources-dialog {
  width:min(680px,calc(100% - 2rem));
  max-height:min(82vh,760px);
  padding:0;
  border:1px solid rgba(11,58,48,.15);
  border-radius:1.25rem;
  background:#f8f5ed;
  color:#17342c;
  box-shadow:0 28px 90px rgba(0,0,0,.38);
}
.palestine-sources-dialog::backdrop { background:rgba(2,20,16,.78); backdrop-filter:blur(5px); }
.palestine-dialog-close { position:sticky; z-index:3; top:1rem; float:right; margin:1rem 1rem 0; padding:.65rem .9rem; border:1px solid #b6c7c0; border-radius:999px; background:#fff; color:#143a30; font:inherit; font-size:.75rem; font-weight:700; cursor:pointer; }
#palestine-sources-content { padding:clamp(2rem,5vw,3.5rem); }
#palestine-sources-content h2 { margin:.2rem 0 1.5rem; font-family:"Playfair Display",Georgia,serif; font-size:clamp(2rem,5vw,3.4rem); line-height:1; }
#palestine-sources-content ul { display:grid; gap:.7rem; padding:0; list-style:none; }
#palestine-sources-content li a { display:block; padding:1rem 1.1rem; border:1px solid #d4ded9; border-radius:.8rem; color:#153e33; text-decoration:none; }
#palestine-sources-content li a:hover,#palestine-sources-content li a:focus-visible { border-color:#a77b23; background:#fff; }
#palestine-sources-content li b,#palestine-sources-content li span { display:block; }
#palestine-sources-content li span { margin-top:.25rem; color:#63766f; font-size:.78rem; }
.palestine-legal-note { padding:1.1rem 1.2rem; border-left:3px solid var(--palestine-gold); background:#efe8d8; }
.palestine-legal-note h3 { margin:0 0 .4rem; }
.palestine-legal-note p { margin:0; color:#52645e; line-height:1.65; }
.palestine-source-note { margin:1.2rem 0 0; color:#687972; font-size:.76rem; line-height:1.5; }

@keyframes palestine-hero-breathe { to { transform:scale(1.075); } }

@media (max-width: 1080px) {
  .palestine-timeline-shell { grid-template-columns:1fr; }
  .palestine-progress {
    top:72px;
    width:100%;
    height:auto;
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:1rem;
    padding:.7rem 1rem;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .palestine-progress > p { margin:0; gap:.7rem; }
  .palestine-progress nav { display:none; }
  .palestine-progress-track { left:0; right:0; top:auto; bottom:0; width:auto; height:2px; }
  .palestine-progress-track i { transform-origin:left; }
  .palestine-action { grid-template-columns:1fr; }
}

@media (max-width: 760px) {
  .palestine-hero { min-height:calc(100svh - 64px); }
  .palestine-hero-shade { background:linear-gradient(90deg,rgba(1,20,16,.94),rgba(2,25,20,.56)),linear-gradient(0deg,rgba(2,20,16,.95),transparent 65%); }
  .palestine-hero-content { width:calc(100% - 2rem); padding:6rem 0 4.25rem; }
  .palestine-hero h1 { font-size:clamp(3rem,14vw,5.3rem); }
  .palestine-scroll-cue { display:none; }
  .palestine-hero-actions { display:grid; grid-template-columns:1fr; }
  .palestine-button { width:100%; text-align:center; }
  .palestine-progress { top:64px; }
  .palestine-scene { min-height:auto; padding:5.2rem 1rem; }
  .palestine-scene-inner { grid-template-columns:1fr; gap:2.5rem; }
  .palestine-scene:nth-child(even) .palestine-scene-copy,
  .palestine-scene:nth-child(even) .palestine-scene-visual { order:initial; }
  .palestine-scene-copy,
  .palestine-scene-visual { opacity:1; transform:none; }
  .palestine-scene-visual { min-height:380px; border-radius:48% 48% 10% 10% / 24% 24% 8% 8%; }
  .palestine-year-ghost { font-size:clamp(5.7rem,26vw,9rem); }
  .palestine-action { min-height:auto; padding:5.5rem 1rem; }
  .palestine-action-grid a { align-items:flex-start; flex-direction:column; gap:.45rem; }
  .palestine-action-grid b { text-align:left; }
}

@media (prefers-reduced-motion: reduce) {
  .palestine-hero-image { animation:none; transform:none; }
  .palestine-scene-copy,
  .palestine-scene-visual,
  .palestine-button,
  .palestine-action-grid a { opacity:1; transform:none; transition:none; }
  .palestine-scene { min-height:auto; }
  html:has(.palestine-page:not(.app-hidden)) { scroll-behavior:auto; }
}

/* Image-led cinematic timeline */
.palestine-scenes {
  background: #020b09;
}

.palestine-scene {
  min-height: 148svh;
  display: block;
  padding: 0;
  overflow: visible;
}

.palestine-scene::before,
.palestine-scene::after {
  display: none;
}

.palestine-scene-frame {
  position: sticky;
  top: 72px;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #050e0c;
  opacity: var(--frame-opacity, .91);
  box-shadow: 0 -42px 90px rgba(0, 0, 0, .42);
  transition: opacity .35s linear;
}

.palestine-scene-frame::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: -4;
  pointer-events: none;
  opacity: .42;
  background:
    linear-gradient(90deg, rgba(1, 13, 10, .76), rgba(5, 31, 24, .38) 48%, rgba(1, 12, 10, .76)),
    var(--scene-image) center / cover no-repeat;
  filter: blur(24px) saturate(.68) brightness(.54);
  transform: scale(1.08);
}

.palestine-scene-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(ellipse at 88% 48%, transparent 0 104px, rgba(215, 173, 79, .035) 105px 106px, transparent 107px 166px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.016) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.09), transparent 1.2px),
    linear-gradient(180deg, rgba(2, 9, 8, .78), transparent 18%, transparent 76%, rgba(2, 9, 8, .92)),
    radial-gradient(ellipse at center, transparent 45%, rgba(2, 9, 8, .52) 100%);
  background-size: auto, auto, 7px 7px, auto, auto;
}

.palestine-scene-background,
.palestine-scene-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.palestine-scene-background {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.04) brightness(.82);
  transform: scale(var(--scene-scale, 1.105)) translate3d(0, var(--scene-drift, 0), 0);
  transition: filter 1.2s ease;
  will-change: auto;
}

.palestine-scene-shade {
  z-index: -2;
  opacity: var(--shade-opacity, .94);
  background:
    linear-gradient(90deg, rgba(2, 12, 10, .97) 0%, rgba(2, 14, 11, .91) 29%, rgba(2, 14, 11, .62) 52%, rgba(2, 14, 11, .16) 79%),
    linear-gradient(0deg, rgba(1, 9, 7, .88) 0%, transparent 42%, transparent 76%, rgba(1,9,7,.36) 100%);
  transition: opacity .4s linear;
}

.palestine-scene-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 9vw));
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: clamp(5.5rem, 10vh, 8.5rem) 0;
}

.palestine-scene:nth-child(even) .palestine-scene-copy {
  order: initial;
}

.palestine-scene-copy {
  position: relative;
  width: min(570px, 52%);
  padding: 1.5rem 1.75rem 1.5rem 0;
  opacity: .08;
  transform: translate3d(0, calc(54px + var(--copy-drift, 0px)), 0);
  transition: opacity 1s ease, transform 1.15s cubic-bezier(.2, .72, .2, 1);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .76);
}

.palestine-scene-copy::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 1.6rem;
  width: 2px;
  height: 0;
  background: linear-gradient(var(--palestine-gold), rgba(215,173,79,.08));
  box-shadow: 0 0 18px rgba(215,173,79,.28);
  transition: height 1.1s .15s cubic-bezier(.2,.72,.2,1);
}

.palestine-scene.is-active .palestine-scene-copy {
  opacity: 1;
  transform: translate3d(0, var(--copy-drift, 0px), 0);
}

.palestine-scene.is-active .palestine-scene-background {
  filter: saturate(.92) contrast(1.04) brightness(.92);
  will-change: transform;
}

.palestine-scene.is-active .palestine-scene-copy::before {
  height: calc(100% - 3.2rem);
}

.palestine-scene-number {
  margin-bottom: 1.2rem !important;
  color: rgba(255, 255, 255, .54) !important;
}

.palestine-scene-copy time {
  color: #efd17d;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

.palestine-scene-copy h2 {
  font-size: clamp(2.7rem, 5vw, 5.9rem);
}

.palestine-scene-copy > p:not(.palestine-scene-number):not(.palestine-visual-description) {
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.24vw, 1.12rem);
}

.palestine-source-button {
  padding: .78rem 1rem;
  border: 1px solid rgba(239, 209, 125, .62);
  border-radius: 999px;
  background: rgba(2, 19, 15, .4);
  backdrop-filter: blur(8px);
}

.palestine-scene-caption {
  position: absolute;
  right: clamp(1.2rem, 3vw, 3rem);
  bottom: clamp(1.2rem, 3vw, 2.4rem);
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9);
  opacity: .2;
  transform: translateY(10px);
  transition: opacity .8s .3s ease, transform .8s .3s ease;
}

.palestine-scene.is-active .palestine-scene-caption {
  opacity: 1;
  transform: none;
}

.palestine-progress nav a {
  position: relative;
}

.palestine-progress nav a::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: #06271f;
  transform: translate(-50%,-50%) scale(.7);
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s ease;
}

.palestine-progress nav a.active::before {
  border-color: #f5d77f;
  background: #f5d77f;
  box-shadow: 0 0 0 5px rgba(215,173,79,.12), 0 0 20px rgba(215,173,79,.42);
  transform: translate(-50%,-50%) scale(1);
}

#palestine-balfour-declaration .palestine-scene-background { object-position: 58% center; }
#palestine-british-mandate .palestine-scene-background { object-position: 58% center; }
#palestine-partition-plan .palestine-scene-background { object-position: 62% center; }
#palestine-nakba .palestine-scene-background { object-position: 61% center; }
#palestine-occupation .palestine-scene-background { object-position: 65% center; }
#palestine-intifada-oslo .palestine-scene-background { object-position: 63% center; }
#palestine-blockade .palestine-scene-background { object-position: 64% center; }
#palestine-repeated-escalation .palestine-scene-background { object-position: 61% center; }
#palestine-gaza-present .palestine-scene-background { object-position: 65% center; }

.palestine-visual-description {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Animated Palestine map behind the action links */
.palestine-action {
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      #101311 0%,
      #101311 33.333%,
      #f2efe5 33.333%,
      #f2efe5 66.666%,
      #087443 66.666%,
      #087443 100%
    );
}

.palestine-action::before,
.palestine-action::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.palestine-action::before {
  z-index: 0;
  background: #ce1734;
  clip-path: polygon(0 0, 34% 50%, 0 100%);
}

.palestine-action::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 17, 14, .88) 0%, rgba(2, 19, 15, .74) 45%, rgba(2, 19, 15, .48) 100%),
    radial-gradient(circle at 82% 48%, transparent 0%, rgba(1, 12, 10, .3) 66%, rgba(1, 12, 10, .62) 100%);
  backdrop-filter: saturate(.74);
}

.palestine-action-map {
  position: absolute;
  z-index: 2;
  right: -5vw;
  top: 50%;
  width: min(58vw, 720px);
  height: min(92%, 820px);
  opacity: .62;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
}

.palestine-action-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: palestine-map-drift 12s ease-in-out infinite alternate;
}

.palestine-map-land {
  fill: url(#palestine-map-fill);
}

.palestine-map-outline {
  fill: none;
  stroke: rgba(239, 209, 125, .72);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: palestine-map-draw 5.5s ease forwards, palestine-map-shimmer 5s 5.5s ease-in-out infinite;
}

.palestine-map-route {
  fill: none;
  stroke: rgba(157, 201, 177, .38);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 13;
  animation: palestine-route-flow 14s linear infinite;
}

.palestine-map-points circle {
  fill: #f0ce78;
  opacity: .38;
  transform-box: fill-box;
  transform-origin: center;
  animation: palestine-map-pulse 3.2s ease-in-out infinite;
}

.palestine-map-points circle:nth-child(2) { animation-delay: -.7s; }
.palestine-map-points circle:nth-child(3) { animation-delay: -1.4s; }
.palestine-map-points circle:nth-child(4) { animation-delay: -2.1s; }
.palestine-map-points circle:nth-child(5) { animation-delay: -2.8s; }

.palestine-action-map > i {
  position: absolute;
  border: 1px solid rgba(215, 173, 79, .12);
  border-radius: 50%;
  animation: palestine-orbit 18s linear infinite;
}

.palestine-action-map > i:nth-of-type(1) { inset: 8% 2% 9% 16%; }
.palestine-action-map > i:nth-of-type(2) { inset: 22% 13% 20% 27%; animation-direction: reverse; animation-duration: 24s; }
.palestine-action-map > i:nth-of-type(3) { inset: 36% 25% 33% 38%; animation-duration: 14s; }

.palestine-action > div:not(.palestine-action-glow):not(.palestine-action-map),
.palestine-action-note {
  position: relative;
  z-index: 3;
}

@keyframes palestine-map-draw { to { stroke-dashoffset: 0; } }
@keyframes palestine-map-shimmer { 50% { stroke: rgba(255, 235, 180, .96); filter: drop-shadow(0 0 12px rgba(215, 173, 79, .38)); } }
@keyframes palestine-route-flow { to { stroke-dashoffset: -280; } }
@keyframes palestine-map-pulse { 50% { opacity: 1; transform: scale(1.8); } }
@keyframes palestine-map-drift { to { transform: translate3d(-12px, -10px, 0) rotate(-1.2deg); } }
@keyframes palestine-orbit { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .palestine-scene {
    min-height: 138svh;
  }

  .palestine-scene-frame {
    top: 120px;
    min-height: calc(100svh - 120px);
  }

  .palestine-scene-inner {
    min-height: calc(100svh - 120px);
  }

  .palestine-scene-copy {
    width: min(620px, 68%);
  }

  .palestine-action-map {
    width: min(82vw, 680px);
    right: -24vw;
    opacity: .45;
  }
}

@media (min-width: 1081px) and (max-height: 800px) {
  .palestine-scene-inner {
    padding-block: 3.5rem;
  }

  .palestine-scene-copy h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 4.4vw, 4.5rem);
  }

  .palestine-scene-copy > p:not(.palestine-scene-number):not(.palestine-visual-description) {
    margin-bottom: .7rem;
    font-size: .95rem;
    line-height: 1.58;
  }

  .palestine-scene-number {
    margin-bottom: .75rem !important;
  }
}

@media (max-width: 760px) {
  .palestine-scene {
    min-height: auto;
    padding: 0;
    overflow: hidden;
  }

  .palestine-scene-frame {
    position: relative;
    top: auto;
    min-height: max(100svh, 700px);
    align-items: flex-end;
    opacity: 1;
    box-shadow: 0 -18px 54px rgba(0,0,0,.55);
  }

  .palestine-scene-frame::before {
    inset: -3%;
    opacity: .2;
    filter: blur(16px) saturate(.62) brightness(.48);
    transform: scale(1.04);
  }

  .palestine-scene-inner {
    width: 100%;
    min-height: max(100svh, 700px);
    display: flex;
    align-items: flex-end;
    padding: clamp(7.5rem, 22vh, 11rem) 1.15rem 3.25rem;
  }

  .palestine-scene-copy {
    width: 100%;
    padding: 1rem .25rem 0;
    opacity: .22;
  }

  .palestine-scene-copy::before { display:none; }

  .palestine-scene-copy h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.45rem, 11vw, 4.2rem);
  }

  .palestine-scene-copy > p:not(.palestine-scene-number):not(.palestine-visual-description) {
    margin-bottom: .72rem;
    font-size: .94rem;
    line-height: 1.56;
  }

  .palestine-scene-shade {
    background:
      linear-gradient(0deg, rgba(1, 10, 8, 1) 0%, rgba(1, 11, 9, .96) 44%, rgba(1, 11, 9, .48) 72%, rgba(1, 11, 9, .12) 100%),
      linear-gradient(90deg, rgba(1, 10, 8, .5), transparent);
  }

  .palestine-scene-background {
    object-position: 62% center;
  }

  #palestine-balfour-declaration .palestine-scene-background { object-position: 67% center; }
  #palestine-british-mandate .palestine-scene-background { object-position: 66% center; }
  #palestine-partition-plan .palestine-scene-background { object-position: 69% center; }
  #palestine-nakba .palestine-scene-background { object-position: 65% center; }
  #palestine-occupation .palestine-scene-background { object-position: 71% center; }
  #palestine-intifada-oslo .palestine-scene-background { object-position: 70% center; }
  #palestine-blockade .palestine-scene-background { object-position: 72% center; }
  #palestine-repeated-escalation .palestine-scene-background { object-position: 68% center; }
  #palestine-gaza-present .palestine-scene-background { object-position: 72% center; }

  .palestine-scene-caption {
    display: none;
  }

  .palestine-action-map {
    width: 112vw;
    height: 64%;
    right: -55vw;
    top: 29%;
    opacity: .27;
  }

  .palestine-action {
    min-height: auto;
    gap: 1.25rem;
    padding: 3.5rem 1rem 2.5rem;
    align-items: start;
  }

  .palestine-action h2 {
    max-width: 10ch;
    margin-bottom: 1rem;
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .palestine-action > div > p:not(.palestine-kicker) {
    margin-bottom: 0;
    font-size: .98rem;
    line-height: 1.65;
  }

  .palestine-action-grid {
    grid-template-columns:1fr;
    gap:.85rem;
  }

  .palestine-action-grid a {
    min-height:172px;
    align-items:flex-start;
    flex-direction:column;
    gap:.85rem;
    padding:1.2rem;
    border-radius:1rem;
  }

  .palestine-destination-number,
  .palestine-destination-card > i {
    width:2.25rem;
    height:2.25rem;
  }

  .palestine-destination-card > i {
    top:1.1rem;
    right:1.1rem;
  }

  .palestine-destination-copy strong {
    max-width:12ch;
    font-size:1.55rem;
  }

  .palestine-destination-copy b {
    max-width:31ch;
    margin-top:.55rem;
    line-height:1.45;
  }

  .palestine-action-note {
    line-height:1.55;
  }
}

@media (max-width: 900px) and (max-height: 620px) and (orientation: landscape) {
  .palestine-scene-frame,
  .palestine-scene-inner {
    min-height: 680px;
  }

  .palestine-scene-inner {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }

  .palestine-scene-copy h2 {
    font-size: clamp(2.2rem, 7vw, 3.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .palestine-scene {
    min-height: 100svh;
  }

  .palestine-scene-frame {
    position: relative;
    top: auto;
  }

  .palestine-scene-copy {
    opacity: 1;
    transform: none;
  }

  .palestine-scene-background,
  .palestine-action-map svg,
  .palestine-map-outline,
  .palestine-map-route,
  .palestine-map-points circle,
  .palestine-action-map > i {
    animation: none;
    transition: none;
  }

  .palestine-map-outline {
    stroke-dashoffset: 0;
  }
}
