/* NASA satellite imagery + Natural Earth geography. No screen blending. */
:root {
  --earth-ink: #e9eef0;
  --earth-muted: #bac8d1;
  --earth-small: 12px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(20px, 3vw, 64px);
  padding: 132px max(28px, calc((100vw - 1380px) / 2)) 90px;
}
.hero .hero-content {
  grid-column: 1; grid-row: 1;
  width: 100%; min-width: 0; max-width: none;
  margin: 0 !important; padding: 24px 0;
}
.hero .hero-title { font-size: clamp(3rem, 5.1vw, 5.6rem); }
.hero .hero-sub { max-width: 55ch; }
.hero .hero-tag { font-size: 12px; letter-spacing: .12em; }
.hero .hero-stats { gap: 18px; }
.hero .hero-stat .label { font-size: 12px; letter-spacing: .025em; }
.earth-view {
  position: relative;
  min-width: 0;
  isolation: isolate;
  color: var(--earth-ink);
  font-family: var(--font-body, sans-serif);
}
.earth-view--hero {
  grid-column: 2; grid-row: 1;
  align-self: center;
  width: 100%;
  height: clamp(530px, 45vw, 690px);
}
.earth-view #globe-canvas,
.earth-view #corridor-map,
html[dir="rtl"] .earth-view #globe-canvas {
  display: block; position: absolute;
  inset: 0; top: 0; left: 0; right: 0;
  width: 100%; height: 100%; max-width: none;
  transform: none; aspect-ratio: auto;
  opacity: 1; mix-blend-mode: normal;
  z-index: 0; cursor: grab;
  touch-action: pan-y;
}
.earth-view--dragging canvas { cursor: grabbing !important; }
.earth-view canvas:focus-visible { outline: 1px solid #d8ba8d; outline-offset: -4px; border-radius: 16px; }
.earth-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0;
}
.earth-view--ready .earth-fallback { visibility: hidden; }
.earth-view--fallback canvas, .earth-view--fallback .earth-labels { visibility: hidden; }
.earth-view--fallback .earth-toolbar { display: none; }
.earth-ui { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.earth-heading { position: absolute; inset-block-start: 20px; inset-inline-start: 24px; display: flex; flex-direction: column; gap: 5px; }
.earth-eyebrow { font-size: var(--earth-small); font-weight: 500; letter-spacing: .13em; color: var(--earth-muted); }
.earth-reach {
  position: absolute; inset-inline-start: 24px; inset-block-end: 140px; max-width: 30ch;
  font-size: 13px; line-height: 1.45; color: rgba(230,240,250,.94);
  border-inline-start: 2px solid rgba(0,229,255,.6); padding: 6px 12px;
  background: rgba(6,10,17,.6); backdrop-filter: blur(6px); border-radius: 6px;
}
@media (max-width: 900px) {
  .earth-reach { inset-block-end: 170px; font-size: 12.5px; max-width: 22ch; }
}
.earth-heading strong { font-size: 17px; font-weight: 500; letter-spacing: .015em; }
.earth-toolbar {
  position: absolute; inset-inline-end: 20px; inset-block-start: 22px;
  display: flex; gap: 2px; pointer-events: auto;
  background: rgba(5, 13, 23, .85);
  border: 1px solid rgba(209, 223, 230, .24);
  border-radius: 7px; padding: 3px;
}
.earth-toolbar button {
  display: grid; place-items: center;
  width: 40px; height: 40px; min-height: 40px;
  padding: 0; background: transparent; border: 0; border-radius: 4px;
  color: #ecf1f3; font-family: var(--font-body, sans-serif); font-size: 23px;
  cursor: pointer; line-height: 1;
}
.earth-toolbar button:hover { background: rgba(255,255,255,.12); }
.earth-toolbar button:focus-visible { outline: 2px solid #e5bb7e; outline-offset: 0; }
.earth-toolbar button:disabled { opacity: .35; cursor: wait; }
.earth-toolbar button[data-earth-action="pause"] { font-size: 16px; }
.earth-footer {
  position: absolute; inset-inline: 24px; inset-block-end: 18px;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--earth-muted); font-size: var(--earth-small); line-height: 1.45;
  text-wrap: pretty;
}
.earth-instruction { color: #dfe6e9; margin-bottom: 3px; }
.earth-route-note, .earth-boundary-note { color: #b9c5cd; }
.earth-attribution { pointer-events: auto; width: fit-content; }
.earth-attribution a { color: #cfdae0; text-decoration: underline; text-decoration-color: #73838e; text-underline-offset: 2px; }
.earth-attribution a:hover { color: white; }
.earth-status {
  position: absolute; inset-inline: 24px; top: 90px;
  font-size: var(--earth-small); color: #d7dfe3; line-height: 1.4;
}
.earth-status:empty { display: none; }
.earth-labels { position: absolute; inset: 0; direction: ltr; }
.earth-label {
  position: absolute; top: 0; left: 0; width: max-content;
  font-size: 13px; line-height: 1.25; font-weight: 500;
  text-shadow: 0 1px 5px #000, 0 1px 2px #000;
  will-change: transform;
}
.earth-label[hidden] { display: none; }
.earth-label--city {
  margin: -12px 0 0 13px; color: #f4f3e9;
  background: rgba(3, 12, 21, .84); padding: 5px 8px;
  border: 1px solid rgba(242,241,224,.27); border-radius: 4px;
}
.earth-label--algiers, .earth-label--rabat, .earth-label--tunis, .earth-label--tripoli, .earth-label--nouakchott { color: #f1c58f; border-color: rgba(239,191,126,.4); }
.earth-label--morocco, .earth-label--algeria, .earth-label--tunisia, .earth-label--libya, .earth-label--mauritania, .earth-label--maghreb { color: rgba(241,197,143,.9); }
.earth-label--country, .earth-label--sea { translate: -50% -50%; letter-spacing: .13em; font-size: 12px; color: rgba(248,249,240,.85); }
.earth-label--sea { font-style: italic; color: #b0c5d2; font-size: 12px; letter-spacing: .08em; }
.corridor-viz {
  display: grid; grid-template-columns: 1fr 1fr;
  height: auto; overflow: hidden;
  background: #07111e; border-color: rgba(163,184,197,.22);
  gap: 0; padding: 0;
}
.earth-view--corridor { grid-column: 1 / -1; height: 620px; width: 100%; background: #06101b; }
.earth-view--corridor .earth-heading {
  padding: 10px 14px; background: rgba(4,13,23,.86);
  border-radius: 5px; inset-block-start: 14px; inset-inline-start: 14px;
}
.earth-view--corridor .earth-footer {
  inset-inline: 0; inset-block-end: 0; padding: 35px 24px 18px;
  background: linear-gradient(transparent, rgba(3,11,20,.94) 30%);
}
.corridor-viz .corridor-hub.hub-l,
.corridor-viz .corridor-hub.hub-r,
html[dir="rtl"] .corridor-viz .corridor-hub.hub-l,
html[dir="rtl"] .corridor-viz .corridor-hub.hub-r {
  position: relative; inset: auto; transform: none; min-width: 0;
  margin: 0; padding: 24px 28px; border: 0; border-top: 1px solid rgba(163,184,197,.22);
  border-radius: 0; z-index: 1; background: #0a1522;
  backdrop-filter: none;
}
.corridor-viz .corridor-hub.hub-r { border-inline-start: 1px solid rgba(163,184,197,.22); }
.corridor-viz .corridor-hub .kick, .corridor-viz .corridor-hub .stamp { font-size: 12px; letter-spacing: .08em; }
html[dir="rtl"] .earth-eyebrow, html[dir="rtl"] .earth-label { letter-spacing: 0; }
html[dir="rtl"] .earth-label--city { direction: rtl; }
@media (max-width: 1100px) and (min-width: 801px) {
  .hero { column-gap: 10px; padding-inline: 28px; }
  .hero .hero-title { font-size: clamp(3rem, 5vw, 4.3rem); }
  .hero .hero-stats { grid-template-columns: 1fr 1fr; }
  .earth-view--hero .earth-toolbar { inset-block-start: 80px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: minmax(0,1fr); padding: 110px 24px 34px; gap: 10px; min-height: auto; }
  .hero .hero-content { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .hero .hero-title { font-size: clamp(2.9rem, 9vw, 4.8rem); }
  .hero .hero-stats { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .earth-view--hero { grid-column: 1; grid-row: 2; height: clamp(560px, 110vw, 650px); margin: 20px 0 0; }
  .hero .scroll-hint { display: none; }
  .earth-view--corridor { height: 480px; }
  .earth-heading { inset-inline-start: 12px; inset-block-start: 8px; }
  .earth-eyebrow { letter-spacing: .06em; }
  .earth-toolbar { inset-inline-end: 10px; inset-block-start: 74px; }
  .earth-toolbar button { width: 42px; height: 42px; }
  .earth-footer { inset-inline: 12px; inset-block-end: 12px; gap: 3px; }
  .earth-view--corridor .earth-footer { padding: 35px 14px 12px; }
  .earth-label--city { font-size: 12px; padding: 4px 6px; margin-inline-start: 9px; }
  .earth-label--sea { display: none; }
  .corridor-viz { grid-template-columns: minmax(0,1fr); }
  .corridor-viz .corridor-hub.hub-l, .corridor-viz .corridor-hub.hub-r { padding: 22px; }
  .corridor-viz .corridor-hub.hub-r { border-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .earth-view * { transition: none !important; animation: none !important; }
}
