/* ═════════ ZERP · SECTION 2 · FROM FOUR PLACES TO ONE ═════════
   Without animation (phones, reduced motion) this is a simple layout:
   "Today" text, the picture, "With ZERP" text.
   On desktop zerp.js adds .is-scrub: the section stays on screen while
   the four tiles fly into the ZERP card and the text changes. */
.ze-section2 {
  position: relative;
  padding: 110px 0;
}

.ze2-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-areas:
    "a scene"
    "b scene";
  gap: 40px 64px;
  align-items: center;
}

.ze2-state--a { grid-area: a; align-self: end; }
.ze2-state--b { grid-area: b; align-self: start; }
.ze2-scene { grid-area: scene; }

.ze2-state .eyebrow {
  margin-bottom: 20px;
}

.ze2-state .section-title {
  margin-bottom: 18px;
}

.ze2-state--b .eyebrow {
  color: var(--blue-soft);
}

/* ─── the picture ─── */
.ze2-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.86;
}

.ze2-ring {
  position: absolute;
  inset: 8% 14%;
  border-radius: 50%;
  border: 1px dashed rgba(157, 187, 255, 0.18);
}

.ze2-tile {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  padding-inline: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(20, 28, 52, 0.92), rgba(10, 15, 32, 0.92));
  box-shadow: var(--highlight), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  will-change: transform;
}

.ze2-tile i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.ze2-tile svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ze2-tile b {
  font-weight: 500;
  font-size: 0.9rem;
}

.ze2-tile--1 { top: 4%; left: 0; }
.ze2-tile--2 { top: 12%; right: 0; }
.ze2-tile--3 { bottom: 12%; left: 4%; }
.ze2-tile--4 { bottom: 3%; right: 2%; }

.ze2-core {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 44%;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(91, 149, 255, 0.45);
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(20, 99, 243, 0.35), transparent 70%),
    linear-gradient(160deg, #0F1D44, #070C1C);
  box-shadow: var(--highlight), 0 0 90px -20px var(--blue-glow);
  text-align: center;
  will-change: transform;
}

.ze2-core img {
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
}

.ze2-core b {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: 0.02em;
}

.ze2-core span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ─── desktop: the section holds still while the scene plays ─── */
.ze-section2.is-scrub {
  height: 240vh;
  padding: 0;
}

.ze-section2.is-scrub .ze2-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ze-section2.is-scrub .ze2-inner {
  grid-template-areas: "text scene";
}

.ze-section2.is-scrub .ze2-state {
  grid-area: text;
  align-self: center;
}

.ze-section2.is-scrub .ze2-state--b {
  opacity: 0;
  visibility: hidden;
}

.ze-section2.is-scrub .ze2-scene {
  max-height: 78vh;
  justify-self: center;
  width: min(100%, calc(78vh / 0.86));
}

@media (max-width: 900px) {
  .ze-section2 { padding: 80px 0; }
  .ze2-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "scene" "b";
    gap: 36px;
  }
  .ze2-scene { max-width: 460px; justify-self: center; aspect-ratio: 1 / 0.95; }
  .ze2-tile { padding-block: 8px; padding-inline: 8px 12px; gap: 8px; }
  .ze2-tile i { width: 28px; height: 28px; }
  .ze2-tile b { font-size: 0.8rem; }
  .ze2-core img { width: 40px; height: 40px; }
}
