/* ==========================================================================
   Landing Practice — interactive atmospheric globe
   Light theme by default. Dark via prefers-color-scheme: dark.
   ========================================================================== */

.landing-practice {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--paper);
  color: var(--ink);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

/* --------------------------------------------------------------------------
   Stage — soft brand wash backdrop on paper
   -------------------------------------------------------------------------- */

.lp-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lp-starfield {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(57, 194, 216, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 90%, rgba(160, 100, 169, 0.16) 0%, transparent 60%);
}

/* --------------------------------------------------------------------------
   Frame
   -------------------------------------------------------------------------- */

.lp-frame {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "globe"
    "snapshot";
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .lp-frame {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-areas:
      "header  globe"
      "snapshot snapshot";
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
  }
}

.lp-header {
  grid-area: header;
  max-width: 32rem;
  align-self: center;
}

.lp-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 1.25rem 0 1.5rem;
}

.lp-lede {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  max-width: 50ch;
}

.lp-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lp-hint svg {
  color: var(--brand-purple);
}

/* --------------------------------------------------------------------------
   Globe — light edition
   -------------------------------------------------------------------------- */

.lp-globe {
  --globe-size: clamp(320px, 80vw, 560px);
  grid-area: globe;
  position: relative;
  width: var(--globe-size);
  height: var(--globe-size);
  margin: 0 auto;
  border-radius: 50%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  filter:
    drop-shadow(0 0 60px rgba(57, 194, 216, 0.18))
    drop-shadow(0 0 140px rgba(160, 100, 169, 0.12));
}

@media (min-width: 1000px) {
  .lp-globe {
    --globe-size: clamp(420px, 42vw, 620px);
    margin: 0;
  }
}

.lp-globe.is-dragging { cursor: grabbing; }

/* Sphere backdrop — pale ocean radial behind the SVG world map */

.lp-globe__sphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, #DCE9EC 0%, #C7D9DD 45%, #A8BFC6 100%);
  box-shadow:
    inset -30px -30px 80px rgba(20, 21, 42, 0.18),
    inset 20px 20px 50px rgba(255, 255, 255, 0.7);
}

.lp-globe__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.lp-globe__ocean {
  fill: rgba(168, 198, 210, 0.35);
}

.lp-globe__land {
  fill: rgba(243, 235, 219, 0.92);
  stroke: rgba(126, 100, 80, 0.35);
  stroke-width: 0.45;
  stroke-linejoin: round;
}

.lp-globe__borders {
  fill: none;
  stroke: rgba(126, 100, 80, 0.45);
  stroke-width: 0.5;
  stroke-linejoin: round;
}

.lp-globe__highlight {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 35%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.lp-globe__terminator {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 30px rgba(57, 194, 216, 0.25),
    0 0 60px rgba(57, 194, 216, 0.12),
    0 0 120px rgba(160, 100, 169, 0.1);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Pins
   -------------------------------------------------------------------------- */

.lp-globe__pins {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: visible;
}

.lp-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  --front-opacity: 1;
  opacity: var(--front-opacity);
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

.lp-pin.is-back {
  pointer-events: none;
  opacity: 0;
}

.lp-pin__pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--brand-purple);
  opacity: 0.45;
  animation: lp-pulse 2.6s ease-out infinite;
}

@keyframes lp-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  100% { transform: scale(3);   opacity: 0; }
}

.lp-pin__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand-purple);
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 3px rgba(160, 100, 169, 0.45),
    0 0 14px rgba(160, 100, 169, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-pin:hover .lp-pin__dot,
.lp-pin:focus-visible .lp-pin__dot,
.lp-pin.is-active .lp-pin__dot {
  transform: scale(1.45);
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 4px rgba(160, 100, 169, 0.6),
    0 0 22px rgba(160, 100, 169, 0.7);
}

.lp-pin--rim .lp-pin__dot {
  background: var(--brand-blue-deep);
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 3px rgba(31, 166, 189, 0.45),
    0 0 14px rgba(31, 166, 189, 0.5);
}

/* Pin popup */

.lp-pin__pop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  min-width: 0;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(160, 100, 169, 0.35);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  text-align: center;
  z-index: 4;
  transition: background 0.2s ease, border-color 0.2s ease, z-index 0s linear 0.05s;
  box-shadow: 0 6px 18px -8px rgba(20, 21, 42, 0.18);
}

.lp-pin__pop-name {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.lp-pin__pop-industries {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-muted);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding-top 0.2s ease;
  padding-top: 0;
}

.lp-pin:hover .lp-pin__pop,
.lp-pin:focus-visible .lp-pin__pop,
.lp-pin.is-active .lp-pin__pop {
  background: var(--white);
  border-color: var(--brand-purple);
  z-index: 30;
}

.lp-pin:hover .lp-pin__pop-name,
.lp-pin:focus-visible .lp-pin__pop-name,
.lp-pin.is-active .lp-pin__pop-name {
  color: var(--brand-purple-deep);
}

.lp-pin:hover .lp-pin__pop-industries,
.lp-pin:focus-visible .lp-pin__pop-industries,
.lp-pin.is-active .lp-pin__pop-industries {
  max-height: 80px;
  opacity: 1;
  padding-top: 4px;
  border-top: 1px solid rgba(160, 100, 169, 0.25);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Snapshot card
   -------------------------------------------------------------------------- */

.lp-snapshot {
  grid-area: snapshot;
  align-self: end;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 24px 60px -28px rgba(20, 21, 42, 0.12);
  display: grid;
  gap: 1.25rem;
}

.lp-snapshot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.lp-snapshot__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

.lp-snapshot__pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(57, 194, 216, 0.1);
  border: 1px solid rgba(57, 194, 216, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue-deep);
}

.lp-snapshot__pulse > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(57, 194, 216, 0.2);
  animation: lp-pulse 2.6s ease-out infinite;
}

.lp-snapshot__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 700px) {
  .lp-snapshot__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.lp-snapshot__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.lp-snapshot__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
}

.lp-snapshot__meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 700px) {
  .lp-snapshot__stats {
    padding-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-pin__pulse,
  .lp-snapshot__pulse > span {
    animation: none;
  }
}

/* ==========================================================================
   Dark mode (prefers-color-scheme: dark) — flip back to the dark space
   aesthetic we had before.
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  .landing-practice {
    background-color: #050614;
    color: var(--paper);
  }

  .lp-starfield {
    background:
      radial-gradient(ellipse 70% 60% at 70% 30%, rgba(57, 194, 216, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 30% 90%, rgba(160, 100, 169, 0.08) 0%, transparent 60%),
      radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6) 0.5px, transparent 1px),
      radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.55) 0.5px, transparent 1px),
      radial-gradient(circle at 35% 70%, rgba(255, 255, 255, 0.45) 0.5px, transparent 1px),
      radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.5) 0.5px, transparent 1px),
      radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.35) 0.4px, transparent 1px),
      radial-gradient(circle at 12% 55%, rgba(255, 255, 255, 0.4) 0.4px, transparent 1px),
      radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.5) 0.4px, transparent 1px),
      #050614;
    background-size: 100% 100%, 100% 100%, 320px 240px, 280px 200px, 360px 280px, 240px 200px, 400px 320px, 300px 240px, 280px 220px, 100% 100%;
  }

  .lp-title { color: var(--paper); }
  .lp-lede { color: rgba(245, 241, 232, 0.78); }
  .lp-hint { color: rgba(245, 241, 232, 0.45); }
  .lp-hint svg { color: var(--brand-blue); }

  .lp-globe__sphere {
    background: radial-gradient(circle at 28% 28%, #1B3A52 0%, #0B1A2E 45%, #050A18 100%);
    box-shadow:
      inset -40px -40px 110px rgba(0, 0, 0, 0.55),
      inset 30px 30px 80px rgba(57, 194, 216, 0.08);
  }

  .lp-globe__ocean { fill: rgba(18, 56, 88, 0.25); }
  .lp-globe__land {
    fill: rgba(208, 226, 220, 0.78);
    stroke: rgba(0, 0, 0, 0.18);
  }
  .lp-globe__borders { stroke: rgba(20, 21, 42, 0.32); }

  .lp-pin__pulse,
  .lp-pin__dot {
    background: var(--brand-blue);
  }
  .lp-pin__dot {
    box-shadow:
      0 0 0 2px #050614,
      0 0 0 3px rgba(57, 194, 216, 0.55),
      0 0 14px rgba(57, 194, 216, 0.7);
  }
  .lp-pin:hover .lp-pin__dot,
  .lp-pin:focus-visible .lp-pin__dot,
  .lp-pin.is-active .lp-pin__dot {
    box-shadow:
      0 0 0 2px #050614,
      0 0 0 4px rgba(57, 194, 216, 0.7),
      0 0 22px rgba(57, 194, 216, 0.9);
  }

  .lp-pin__pop {
    background: rgba(5, 6, 20, 0.78);
    border-color: rgba(57, 194, 216, 0.32);
  }
  .lp-pin:hover .lp-pin__pop,
  .lp-pin:focus-visible .lp-pin__pop,
  .lp-pin.is-active .lp-pin__pop {
    background: rgba(20, 21, 42, 0.95);
    border-color: var(--brand-blue);
  }
  .lp-pin__pop-name { color: rgba(245, 241, 232, 0.95); }
  .lp-pin:hover .lp-pin__pop-name,
  .lp-pin:focus-visible .lp-pin__pop-name,
  .lp-pin.is-active .lp-pin__pop-name { color: var(--white); }
  .lp-pin__pop-industries { color: rgba(245, 241, 232, 0.82); }
  .lp-pin:hover .lp-pin__pop-industries,
  .lp-pin:focus-visible .lp-pin__pop-industries,
  .lp-pin.is-active .lp-pin__pop-industries {
    border-top-color: rgba(57, 194, 216, 0.25);
  }

  .lp-snapshot {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(245, 241, 232, 0.14);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: none;
  }
  .lp-snapshot__eyebrow { color: rgba(245, 241, 232, 0.55); }
  .lp-snapshot__pulse {
    background: rgba(57, 194, 216, 0.14);
    color: var(--brand-blue);
  }
  .lp-snapshot__stats { border-top-color: rgba(245, 241, 232, 0.12); }
  .lp-snapshot__num { color: var(--paper); }
  .lp-snapshot__label { color: rgba(245, 241, 232, 0.7); }
  .lp-snapshot__meta { color: rgba(245, 241, 232, 0.6); }
}
