/* Restart: white field, borderless glass, modern chrome */
:root {
  --bg: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.42);
  --bg-subtle: rgba(255, 255, 255, 0.28);
  --paper: rgba(255, 255, 255, 0.34);
  --border: transparent;
  --border-strong: transparent;
  --pink: #ff8fab;
  --pink-soft: rgba(255, 143, 171, 0.45);
}

html, body { background: #ffffff !important; }

body::before {
  background:
    radial-gradient(42% 46% at 6% 8%, rgba(176, 224, 232, 0.85), transparent 68%),
    radial-gradient(36% 40% at 96% 6%, rgba(255, 186, 208, 0.72), transparent 66%),
    radial-gradient(40% 44% at 84% 96%, rgba(186, 208, 255, 0.7), transparent 68%),
    radial-gradient(32% 36% at 8% 92%, rgba(214, 196, 255, 0.42), transparent 70%),
    #ffffff !important;
  filter: none;
}
body::after {
  background:
    radial-gradient(24% 28% at 62% 36%, rgba(26, 122, 134, 0.16), transparent 70%),
    radial-gradient(20% 24% at 28% 70%, rgba(255, 143, 171, 0.16), transparent 70%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.orbs { display: none !important; }

.nav {
  background: rgba(255, 255, 255, 0.5) !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.nav-links a[aria-current="page"] { color: var(--ink); }

.card,
.hud-glass,
.plan,
.matrix,
.cap,
.monitor,
.story-panel,
.logo-chip {
  background: rgba(255, 255, 255, 0.32) !important;
  border: none !important;
  outline: none;
  box-shadow: 0 18px 50px rgba(16, 40, 40, 0.06) !important;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-radius: 28px !important;
}
.card::before,
.plan::before,
.matrix::before,
.hud-glass::before,
.plan::after { display: none !important; }
.card h3 { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.02em; }
.card p { font-size: 0.98rem; line-height: 1.5; }

.plan.featured {
  background: rgba(16, 36, 34, 0.62) !important;
  color: #f7fbf9 !important;
  box-shadow: 0 22px 50px rgba(16, 36, 34, 0.16) !important;
}
.matrix { border-radius: 24px !important; overflow: hidden; }
.matrix-head { background: transparent !important; }
.cap { border-radius: 22px !important; }

/* One package — short enough that neighbors stay in view */
.pack { padding: 18px 0 28px; }
.pack-stage { position: relative; width: min(1120px, calc(100% - 28px)); margin: 0 auto; min-height: 440px; }
.pack-slide {
  display: none;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) minmax(120px, 200px);
  gap: 8px;
  align-items: end;
}
.pack-slide.is-on { display: grid; animation: pack-in 480ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes pack-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.who {
  width: 100%;
  height: min(420px, 52vh);
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
}
.pack-cards { display: grid; gap: 12px; align-content: center; padding-bottom: 28px; }
.pack-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.pack-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.pack-dots button {
  width: 28px; height: 6px; border: 0; border-radius: 99px; padding: 0;
  background: rgba(16, 33, 27, 0.18);
}
.pack-dots button.is-on { background: var(--accent); width: 42px; }

/* Device HUD */
.hud-bay {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  height: min(560px, 68vh);
  margin: 18px auto 72px;
  border-radius: 36px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 24px 60px rgba(16, 40, 40, 0.05);
}
.hud-scan {
  position: absolute; left: 0; right: 0; height: 140px; top: -140px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 120, 158, 0.08) 40%, rgba(255, 110, 150, 0.55) 50%, rgba(255, 120, 158, 0.08) 60%, transparent 100%);
  animation: hud-scan 6.5s linear infinite;
  pointer-events: none; z-index: 2;
}
@keyframes hud-scan { from { top: -140px; } to { top: 100%; } }
.hud-field { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.ball {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: none;
  box-shadow: 0 8px 22px rgba(16, 40, 40, 0.08);
  font-size: 12px; color: #16302a; white-space: nowrap;
  will-change: transform;
  z-index: 1;
}
.ball img { width: auto; height: 22px; max-width: 78px; object-fit: contain; background: transparent; }
.hud-live {
  position: absolute; top: 16px; right: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: #1e7a52;
}
.hud-live i {
  width: 8px; height: 8px; border-radius: 50%; background: #2fbf78;
  box-shadow: 0 0 0 0 rgba(47, 191, 120, 0.6);
  animation: mapped-blink 1.3s steps(1) infinite;
}
@keyframes mapped-blink {
  0%, 45% { opacity: 1; box-shadow: 0 0 0 5px rgba(47, 191, 120, 0.18); }
  50%, 100% { opacity: 0.25; box-shadow: none; }
}

/* About spine */
.about-page { padding: calc(var(--nav-h) + 28px) 20px 80px; }
.about-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.about-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
}
.about-head p { margin: 0 auto; color: var(--muted); max-width: 52ch; }
.spine { position: relative; width: min(1040px, 100%); margin: 0 auto; }
.ecg-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 88px;
  transform: translateX(-50%);
  background: url("../img/ecg-spine.svg") center 0 / 88px 220px repeat-y;
  filter: drop-shadow(0 0 8px rgba(255, 143, 171, 0.85));
  animation: ecg-drift 3.8s linear infinite;
  pointer-events: none;
}
@keyframes ecg-drift { to { background-position: center 220px; } }
.moment {
  position: relative;
  width: calc(50% - 54px);
  margin: 22px 0;
  padding: 22px 24px 20px;
  z-index: 1;
}
.moment.left { margin-right: auto; }
.moment.right { margin-left: auto; }
.moment .year {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #d56b8c; margin: 0 0 6px;
}
.moment h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 8px; }
.moment p, .moment li { color: var(--muted); font-size: 0.98rem; }
.moment ul { margin: 8px 0 0; padding-left: 18px; }
.moment::before {
  content: "";
  position: absolute; top: 28px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--pink);
  box-shadow: 0 0 0 6px rgba(255, 143, 171, 0.22);
  z-index: 2;
}
.moment.left::before { right: -60px; }
.moment.right::before { left: -60px; }

/* Features movie */
.feat-page { padding: calc(var(--nav-h) + 22px) 20px 48px; }
.feat-top { text-align: center; margin-bottom: 16px; }
.feat-top h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 4px 0 12px;
}
.aud { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.35); backdrop-filter: blur(12px); }
.aud button {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 999px; padding: 8px 18px; min-height: 40px; font-weight: 550;
}
.aud button.is-on { background: var(--ink); color: #fff; }
.cinema { width: min(1080px, 100%); margin: 14px auto 0; }
.reel {
  position: relative;
  height: min(560px, 62vh);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255,255,255,0.25);
  box-shadow: 0 24px 60px rgba(16,40,40,0.07);
}
.reel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 18px 20px 16px;
  background: rgba(255,255,255,0.38) !important;
  border-radius: 22px !important;
}
.reel-caption h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2px 0 6px; }
.reel-caption p { margin: 0; color: var(--muted); }
.transport { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; }
.transport button {
  border: 0; background: rgba(255,255,255,0.45); backdrop-filter: blur(10px);
  border-radius: 999px; min-height: 44px; padding: 0 16px; color: var(--ink);
}
.filmbar { height: 3px; margin: 12px auto 0; width: min(420px, 70%); background: rgba(16,33,27,0.1); border-radius: 99px; overflow: hidden; }
.filmbar i { display: block; height: 100%; width: 0; background: var(--pink); }

@media (max-width: 800px) {
  .pack-slide.is-on { grid-template-columns: 1fr 1fr; }
  .pack-cards { grid-column: 1 / -1; order: -1; padding-bottom: 0; }
  .who { height: 220px; }
  .moment { width: calc(50% - 28px); padding: 16px; }
  .moment.left::before { right: -34px; }
  .moment.right::before { left: -34px; }
  .hud-bay { height: 460px; }
  .reel { height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  .ecg-line, .hud-scan, .who, .pack-slide.is-on { animation: none; }
}

.skip {
  position: absolute; left: 12px; top: 8px; z-index: 80;
  padding: 8px 12px; border-radius: 999px;
  background: #10211b; color: #fff;
  transform: translateY(-140%);
}
.skip:focus { transform: none; }
.to-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 45;
  border: 0; min-height: 44px; padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #10211b;
  box-shadow: 0 10px 30px rgba(16, 40, 40, 0.12);
  backdrop-filter: blur(12px);
}
.to-top[hidden] { display: none; }
.nav .mark:focus-visible, .nav a:focus-visible, button:focus-visible {
  outline: 2px solid #1a7a86; outline-offset: 3px;
}
.vitals-layer { opacity: 0.18 !important; }
.pack-slide { grid-template-columns: minmax(150px, 250px) minmax(0, 1fr) minmax(150px, 250px); }
.who { height: min(360px, 46vh); }
.ball img { width: auto; height: 22px; max-width: 78px; }
@media (max-width: 760px) {
  :root { --nav-h: 108px; }
  .nav {
    height: auto;
    padding: 8px 12px 8px;
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .nav .mark {
    letter-spacing: 0.16em;
    font-size: 1rem;
    white-space: nowrap;
  }
  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .nav-links a { white-space: nowrap; font-size: 0.82rem; flex: none; }
  .nav-links .btn { min-height: 36px; padding: 0 12px; }
  .hero-overlay {
    width: calc(100% - 28px);
    align-items: flex-end;
    padding-bottom: 88px;
  }
  .hero-overlay h1,
  .hero-overlay h1.mark {
    font-size: 2.1rem;
    letter-spacing: 0.12em;
    white-space: normal;
  }
  .hero-overlay .kicker { letter-spacing: 0.12em; font-size: 10px; }
  .hero-overlay .lede { font-size: 0.98rem; margin-top: 12px; }
  .hero-overlay .fine { margin-top: 10px; max-width: none; }
  .hero-overlay .stat-row { gap: 12px; flex-wrap: wrap; }
  .section-h { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .pack-stage { min-height: 0; }
  .pack-slide.is-on {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .pack-cards { grid-column: 1 / -1; order: -1; }
  .who { height: 210px; object-fit: contain; object-position: center bottom; }
  .hud-bay { height: 420px; width: calc(100% - 16px); }
  .ball { height: 32px; font-size: 11px; padding: 0 8px 0 6px; }
  .ball img { height: 16px; max-width: 52px; }
  .reel { height: auto; min-height: 62vh; }
  .reel-caption { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; }
  .transport { flex-wrap: wrap; }
  .page-hero, .about-page, .feat-page, .legal { padding-left: 14px; padding-right: 14px; }
  .survey-dock { right: 10px; bottom: 10px; }
  .to-top { left: 10px; bottom: 10px; }
}
