/* =========================================================================
   Shipsy × Gartner 2026 — Customer footprint, split-screen
   LEFT: expanded customer story banner · RIGHT: real world map with pins
   ========================================================================= */

:root {
  --bg-0: #07090d;
  --bg-1: #0b0e14;
  --bg-2: #11151c;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --ink: #e8eaee;
  --ink-mute: #9aa1ad;
  --ink-dim: #5a6068;

  --orange: #ed5a2a;
  --orange-soft: rgba(237,90,42,0.16);
  --orange-edge: rgba(237,90,42,0.50);
  --green: #5fc26f;
  --green-soft: rgba(95,194,111,0.18);

  --f-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; background: var(--bg-0); color: var(--ink);
  font-family: var(--f-sans); -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body {
  display: flex; flex-direction: column;
  min-height: 100vh;
}

/* Ambient atmospheric glow */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 50% at 30% 40%, rgba(237,90,42,0.07), transparent 60%),
    radial-gradient(50% 50% at 75% 65%, rgba(109,184,255,0.04), transparent 60%);
  pointer-events: none;
}

/* =========================================================================
   TOPBAR
   ========================================================================= */
.topbar {
  position: relative; z-index: 10; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,9,13,0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.topbar-l { display: flex; align-items: center; gap: 16px; }
.topbar-r { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 22px; width: auto; }
.topbar-div { width: 1px; height: 18px; background: var(--line-2); }
.topbar-event {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-mute); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.topbar-event-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
  animation: pulse-orange 1.6s ease-in-out infinite;
}

/* Mini footprint stats — inline in topbar */
.footprint-mini {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.fm-item { white-space: nowrap; }
.fm-k {
  color: var(--orange); font-weight: 600; margin-right: 4px;
  font-family: var(--f-sans);
}

.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--green-soft); border: 1px solid rgba(95,194,111,0.3);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
  color: #86efac; font-weight: 600;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: live-pulse 1.4s ease-in-out infinite;
}
.clock {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--ink-mute);
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 4px var(--orange-soft); }
  50%      { box-shadow: 0 0 0 9px rgba(237,90,42,0); }
}

/* =========================================================================
   SPLIT BODY — left story + right map
   ========================================================================= */
.split {
  flex: 1; display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  min-height: 0;
}

/* =========================================================================
   LEFT · CUSTOMER STORY BANNER
   ========================================================================= */
.story {
  position: relative;
  padding: 40px 44px;
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 20% 30%, rgba(237,90,42,0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  animation: story-fade-in 0.6s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
@keyframes story-fade-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.story-eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--orange); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 9px;
}
.story-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
  animation: pulse-orange 1.6s ease-in-out infinite;
}

.story-logo-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 32px;
  display: inline-flex; align-items: center; justify-content: flex-start;
  align-self: flex-start;
  min-width: 240px; min-height: 100px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.32);
}
.story-logo-img {
  max-width: 280px; max-height: 80px; width: auto; height: auto;
  object-fit: contain; display: block;
}
.story-logo-fallback {
  font-family: var(--f-serif); font-weight: 400; font-size: 40px;
  color: var(--ink); letter-spacing: -0.02em;
}

.story-tag {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.10em;
  color: var(--orange); text-transform: uppercase;
}

.story-quote {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(28px, 2.8vw, 38px); line-height: 1.18;
  letter-spacing: -0.01em; color: var(--ink);
  position: relative; padding-left: 22px;
  margin-top: 4px;
}
.story-quote::before {
  content: '"'; position: absolute; left: 0; top: -10px;
  font-family: var(--f-serif); font-size: 1.6em; line-height: 1;
  color: var(--orange); opacity: 0.7;
}
.story-quote em { font-style: italic; color: var(--orange); }

.story-person {
  padding-left: 22px;
  display: flex; flex-direction: column; gap: 2px;
}
.story-person-name {
  font-family: var(--f-sans); font-weight: 600; font-size: 16px;
  color: var(--ink);
}
.story-person-role {
  font-size: 13.5px; color: var(--ink-mute);
}

.story-outcomes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.story-outcome {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-left: 2px solid var(--orange);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.story-outcome-k {
  font-family: var(--f-serif); font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1; color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.story-outcome-v {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-mute); text-transform: uppercase;
  line-height: 1.4;
}

/* Progress dots row at the bottom of the story */
.story-dots {
  display: flex; gap: 5px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.story-dot {
  width: 24px; height: 3px; border-radius: 2px;
  background: var(--line-2);
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.story-dot.on { background: var(--orange); }
.story-dot.played { background: rgba(237,90,42,0.4); }

/* =========================================================================
   RIGHT · WORLD MAP
   ========================================================================= */
.mapwrap {
  position: relative;
  padding: 32px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

.map-eyebrow {
  position: absolute; top: 24px; right: 32px; z-index: 5;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-mute); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.map-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: live-pulse 1.4s ease-in-out infinite;
}
.map-eyebrow strong { color: var(--ink); font-weight: 600; }

.worldmap {
  width: 100%; flex: 1; display: block;
  min-height: 0; max-height: 100%;
}

/* The PD world map image — recoloured via CSS filter to white-on-dark */
.worldmap-bg {
  filter: invert(1) brightness(0.32) contrast(1.15);
  opacity: 0.55;
}

/* Ambient "we operate here" dots — small, low-opacity, no interactivity */
.ambient-dot {
  fill: rgba(237,90,42,0.55);
  stroke: rgba(237,90,42,0.35);
  stroke-width: 0.4;
}
.ambient-dot.pulse {
  animation: ambient-pulse 3.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ambient-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.95; }
}

/* Connection arcs */
.map-arcs path {
  fill: none;
  stroke: rgba(237,90,42,0.25);
  stroke-width: 0.8;
  stroke-dasharray: 3 5;
  animation: arc-flow 18s linear infinite;
}
@keyframes arc-flow { to { stroke-dashoffset: -120; } }

/* =========================================================================
   NAMED CUSTOMER PINS — bigger, with optional logo image inline
   ========================================================================= */
.pin { cursor: pointer; }
.pin-pulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: pin-pulse 2.4s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { opacity: 0.85; r: 4;  stroke-width: 2; }
  100% { opacity: 0;    r: 22; stroke-width: 0.4; }
}
.pin-outer {
  fill: rgba(237,90,42,0.20);
  stroke: var(--orange);
  stroke-width: 1.4;
  transition: r 0.3s ease, fill 0.3s ease, stroke-width 0.3s ease;
}
.pin-inner {
  fill: var(--orange);
  transition: r 0.3s ease;
}
.pin-hit { fill: rgba(255,255,255,0); }

.pin-label {
  fill: rgba(255,255,255,0.85);
  font-family: var(--f-mono); font-size: 8.5px;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  paint-order: stroke;
  stroke: rgba(7,9,13,0.9);
  stroke-width: 3;
  stroke-linejoin: round;
}
.pin:hover .pin-label,
.pin.active .pin-label { opacity: 1; }
.pin:hover .pin-outer  { r: 8; fill: rgba(237,90,42,0.32); stroke-width: 1.8; }
.pin:hover .pin-inner  { r: 3; }

.pin.active .pin-outer {
  r: 11; fill: rgba(237,90,42,0.45); stroke-width: 2.4;
  filter: drop-shadow(0 0 8px rgba(237,90,42,0.7));
}
.pin.active .pin-inner { r: 4; }
.pin.active .pin-pulse {
  animation: pin-pulse-strong 1.6s ease-out infinite;
}
@keyframes pin-pulse-strong {
  0%   { opacity: 1; r: 6; stroke-width: 2.4; }
  100% { opacity: 0; r: 36; stroke-width: 0.5; }
}
.pin.active .pin-label { fill: var(--orange); font-weight: 600; }

/* Logo bubble that appears next to the active customer's pin */
.pin-logo-bubble {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pin.active .pin-logo-bubble { opacity: 1; }
.pin-logo-bg {
  fill: rgba(7,9,13,0.96);
  stroke: var(--orange-edge);
  stroke-width: 1;
}

/* Hint pill */
.hint {
  position: absolute; right: 32px; bottom: 16px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(11,14,20,0.7);
  border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--ink-mute);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hint-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  animation: pulse-orange 1.6s ease-in-out infinite;
}

/* =========================================================================
   LOGO STRIP — bottom marquee, always visible
   ========================================================================= */
.logo-strip {
  position: relative; z-index: 5; flex-shrink: 0;
  display: flex; align-items: center; gap: 22px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  background: rgba(11,14,20,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.logo-strip-label { flex-shrink: 0; }
.logo-strip-eyebrow {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--orange); text-transform: uppercase;
  white-space: nowrap;
}
.logo-marquee {
  flex: 1; overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.logo-marquee-track {
  display: flex; align-items: center; gap: 38px;
  animation: marquee 80s linear infinite;
  will-change: transform;
}
.logo-strip-item {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
  min-height: 32px;
  opacity: 0.76;
  transition: opacity 0.25s ease;
}
.logo-strip-img {
  height: 26px; width: auto; max-width: 120px;
  object-fit: contain; display: block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================================
   RESPONSIVE — booth screens 1366×900 / 1920×1080. Below, stack the split.
   ========================================================================= */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .mapwrap { display: none; }
  .footprint-mini { display: none; }
}
