/* Lazy Frog Games · publisher landing page */

@font-face { font-family: 'Zen Dots'; src: url('../assets/fonts/ZenDots-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Quantico'; src: url('../assets/fonts/Quantico-Bold.ttf'); font-weight: 700; font-display: swap; }

:root {
  --ink: #0B1220;
  --ink2: #0E1830;
  --line: #1B3A55;
  --text: #EEF4FB;
  --dim: #A9BCD0;
  --soft: #D8E2EE;
  --cyan: #00c8ff;
  --amber: #ff9d33;
  --green: #6FBF4A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.qua { font-family: 'Quantico', sans-serif; font-weight: 700; letter-spacing: 0.06em; }
.zen { font-family: 'Zen Dots', sans-serif; font-weight: 400; letter-spacing: 0.04em; }

/* ── nav ── */
#topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 34px;
  background: rgba(8, 13, 24, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27, 58, 85, 0.6);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Quantico', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: 0.14em;
}
.frog { height: 26px; width: auto; }
.navlinks { display: flex; gap: 28px; }
.navlinks a {
  font-family: 'Quantico', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 0.14em; color: #C9D6E4;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.navlinks a:hover { color: var(--text); border-color: var(--cyan); }
.navlinks .navlocked { opacity: 0.55; }

/* ── hero / triptych ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 110px 34px 60px;
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(0, 200, 255, 0.07), transparent 60%),
    var(--ink);
}
.kicker {
  font-family: 'Quantico', sans-serif; font-weight: 700;
  color: var(--amber); font-size: 14px; letter-spacing: 0.34em;
}
.hero h1 {
  font-family: 'Quantico', sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: 0.1em; margin: 14px 0 44px; text-align: center;
}
.triptych {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr;
  gap: 18px; width: min(1280px, 100%);
}
.panel {
  position: relative; height: 460px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.panel:hover { transform: translateY(-8px); }
.panel-art {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease, filter 0.4s ease;
}
.panel:hover .panel-art { transform: scale(1.05); }
.panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 18, 0.94) 8%, rgba(5, 9, 18, 0.28) 55%, rgba(5, 9, 18, 0.15));
}
.panel-body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.panel-body h2 { font-family: 'Quantico', sans-serif; font-size: 26px; letter-spacing: 0.12em; height: 78px; display: flex; align-items: center; }
.panel-body p { color: #C9D6E4; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }
.panel-logo { height: 78px; width: auto; max-width: 88%; object-fit: contain; }
.panel-classic:hover { border-color: var(--amber); box-shadow: 0 14px 44px rgba(255, 157, 51, 0.14); }
.panel-voidhaven { border-color: rgba(0, 200, 255, 0.45); }
.panel-voidhaven:hover { border-color: var(--cyan); box-shadow: 0 14px 50px rgba(0, 200, 255, 0.18); }
.panel-locked .panel-art { background: repeating-linear-gradient(135deg, #0d1420 0 14px, #0f1726 14px 28px); }
.panel-locked { filter: grayscale(1); opacity: 0.66; }
.panel-locked:hover { filter: grayscale(0.7); opacity: 0.85; box-shadow: none; }
.lock { width: 40px; height: 40px; fill: var(--dim); }
.lock.big { width: 64px; height: 64px; }
.scrollhint {
  margin-top: 40px; color: var(--dim);
  font-family: 'Quantico', sans-serif; font-size: 11px; letter-spacing: 0.5em;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(6px); opacity: 1; } }

/* ── chips ── */
.chip {
  font-family: 'Quantico', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 0.22em;
  padding: 5px 12px; border-radius: 4px; border: 1px solid;
}
.chip-live { color: var(--amber); border-color: var(--amber); background: rgba(255, 157, 51, 0.08); }
.chip-dev { color: var(--cyan); border-color: var(--cyan); background: rgba(0, 200, 255, 0.08); }
.chip-locked { color: var(--dim); border-color: var(--dim); background: rgba(138, 160, 184, 0.08); }

/* ── game sections ── */
.game { padding: 130px 34px; border-top: 1px solid rgba(27, 58, 85, 0.45); position: relative; }
.inner { width: min(1180px, 100%); margin: 0 auto; position: relative; z-index: 2; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.copy .chip { display: inline-block; margin-bottom: 18px; }
.game h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: 0.1em; margin-bottom: 18px; }
.lead { font-size: 21px; color: var(--text); margin-bottom: 16px; }
.copy p { color: var(--soft); margin-bottom: 14px; }
.fine { font-size: 14px; color: var(--dim); opacity: 0.85; }
.center { text-align: center; }
.art img { border-radius: 10px; border: 1px solid var(--line); }

.classic { background: linear-gradient(180deg, #0d1322, #101728 60%, #0B1220); }

.ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  font-family: 'Quantico', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 0.16em;
  padding: 14px 26px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn:hover { border-color: var(--dim); transform: translateY(-2px); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: #1A1204; }
.btn-primary:hover { background: #ffb35c; border-color: #ffb35c; }

/* ── voidhaven section ── */
.voidhaven { background: #070d1a; overflow: hidden; }
.voidhaven .stars {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 22%, #4a6a8a 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 26% 74%, #4a6a8a 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 12%, #3d5c7d 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 62% 58%, #4a6a8a 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 78% 30%, #4a6a8a 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 92% 80%, #3d5c7d 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 16% 92%, #4a6a8a 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 55% 88%, #4a6a8a 50%, transparent 51%);
  background-size: 900px 700px;
}
.vh-hero { text-align: center; padding: 10px 0 50px; }
.vh-logo { width: min(680px, 90%); margin: 0 auto 8px; }
.vh-tag {
  font-family: 'Quantico', sans-serif; font-weight: 700;
  color: #C9D6E4; letter-spacing: 0.34em; font-size: 14px; margin-bottom: 18px;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 100px; }
.pillar {
  border: 1px solid #234668;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  padding: 30px 26px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 200, 255, 0.02) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, rgba(14, 24, 48, 0.62), rgba(7, 13, 26, 0.42));
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover { border-color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.14), inset 0 0 24px rgba(0, 200, 255, 0.06); }
.pbr { position: absolute; width: 12px; height: 12px; border: 2px solid var(--cyan); opacity: 0.8; pointer-events: none; }
.pbr-tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.pbr-br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.pillar h3::before {
  content: ""; display: inline-block; width: 17px; height: 17px; margin-right: 10px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%2300c8ff' stroke-width='3'/%3E%3Ccircle cx='16.5' cy='16.5' r='3.4' fill='%23ff7b00'/%3E%3C/svg%3E") no-repeat center / contain;
}
.pillar::before {
  content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.55), transparent);
}
.pillar h3 { color: var(--cyan); font-size: 19px; margin-bottom: 12px; }
.pillar p { color: var(--soft); font-size: 15.5px; }

.questmap { margin: 24px 0 100px; cursor: zoom-in; }
.questmap img { border-radius: 10px; border: 1px solid rgba(0, 200, 255, 0.35); width: 100%; }
.questmap figcaption, .shots figcaption {
  font-family: 'Quantico', sans-serif; font-weight: 700;
  color: var(--dim); font-size: 12px; letter-spacing: 0.22em;
  text-align: center; margin-top: 38px; text-transform: uppercase;
}
.questmap:hover img { border-color: var(--cyan); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 80px; }
.shots img { border-radius: 10px; border: 1px solid var(--line); }

/* ── locked section ── */
.locked { background: #0a0e16; }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.locked .lead, .locked h2 { color: var(--dim); }
.locked .lock { fill: #46586e; }

/* ── footer ── */
footer { border-top: 1px solid rgba(27, 58, 85, 0.45); padding: 64px 34px 44px; background: #080d18; }
.footgrid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px;
  text-align: left; margin-bottom: 44px;
}
.footmark { height: 44px; width: auto; margin-bottom: 12px; }
.footbrand .qua { letter-spacing: 0.2em; margin-bottom: 8px; }
.footbrand .fine { max-width: 300px; }
.footcol h4 { font-size: 12px; letter-spacing: 0.24em; color: var(--dim); margin-bottom: 14px; }
.footcol a {
  display: block; color: var(--soft); font-size: 15px; padding: 5px 0;
  transition: color 0.2s;
}
.footcol a:hover { color: var(--cyan); }
.footcol a.navlocked { opacity: 0.5; }
.footline {
  border-top: 1px solid rgba(27, 58, 85, 0.4); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footline .fine { opacity: 0.75; }
@media (max-width: 980px) {
  .footgrid { grid-template-columns: 1fr 1fr; }
  .footline { flex-direction: column; }
}

/* ── lightbox ── */
#lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 14, 0.96);
  overflow: hidden; cursor: grab;
}
#lightbox.dragging { cursor: grabbing; }
#lightbox-img {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none;
}
#lightbox-close {
  position: fixed; top: 18px; right: 22px; z-index: 101;
  font-family: 'Quantico', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 0.18em;
  color: var(--text); background: rgba(14, 24, 48, 0.85);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 18px; cursor: pointer;
}
#lightbox-close:hover { border-color: var(--cyan); }
.lb-hint {
  position: fixed; bottom: 18px; left: 0; right: 0; text-align: center;
  font-family: 'Quantico', sans-serif; font-weight: 700;
  color: var(--dim); font-size: 11px; letter-spacing: 0.3em; pointer-events: none;
}

/* ── reveals ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 980px) {
  .triptych { grid-template-columns: 1fr; }
  .panel { height: 300px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .pillars { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .navlinks { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .scrollhint { animation: none; }
}

/* ── lost vessel expansion ── */
.lv-logo { width: min(420px, 90%); margin: 6px 0 18px; }
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 100px;
}
.feature {
  /* Lost Vessel canonical panel language: notched corners, scanlines, station art, corner brackets */
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid #2b4066;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  background:
    repeating-linear-gradient(0deg, rgba(0, 200, 255, 0.025) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, rgba(10, 15, 26, 0.55) 0%, rgba(10, 15, 26, 0.88) 60%, rgba(10, 15, 26, 0.97) 100%),
    var(--card-art) center / cover no-repeat;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.15), inset 0 0 26px rgba(0, 200, 255, 0.07);
}
.f-skills { --card-art: url('../assets/img/card_skills.jpg'); }
.f-forge { --card-art: url('../assets/img/card_forge.jpg'); }
.f-zones { --card-art: url('../assets/img/card_zones.jpg'); }
.f-idle { --card-art: url('../assets/img/card_idle.jpg'); }
.f-anomaly { --card-art: url('../assets/img/card_anomaly.jpg'); }
.f-reawaken { --card-art: url('../assets/img/card_reawaken.jpg'); }
.fbr { position: absolute; width: 13px; height: 13px; border: 2px solid var(--cyan); opacity: 0.85; pointer-events: none; }
.fbr-tl { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.fbr-br { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }
.feature img {
  width: 88px; height: 88px; object-fit: contain; margin-bottom: 14px;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.45));
}
.feature h3 {
  font-size: 16px; letter-spacing: 0.16em; color: var(--amber);
  margin-bottom: 10px; padding: 5px 10px; display: inline-block;
  background: linear-gradient(180deg, rgba(255, 144, 32, 0.12), rgba(255, 144, 32, 0));
  border-bottom: 1px solid rgba(255, 144, 32, 0.3);
}
.feature p { color: var(--soft); font-size: 15px; text-shadow: 0 1px 6px rgba(4, 7, 14, 0.9); }
.zonestrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 76px; }
.zonestrip figure { overflow: hidden; border-radius: 10px; border: 1px solid var(--line); }
.zonestrip img { width: 100%; height: 210px; object-fit: cover; transition: transform 0.6s ease; }
.zonestrip figure:hover img { transform: scale(1.06); }
.zonestrip figcaption {
  font-family: 'Quantico', sans-serif; font-weight: 700;
  color: var(--dim); font-size: 11px; letter-spacing: 0.24em;
  text-align: center; padding: 10px 0 12px;
}

/* ── idle lock ── */
.lv-lock { width: 110px; filter: saturate(0.35) brightness(0.85); }

/* ── motion system ── */
.reveal-l { transform: translateX(-44px); }
.reveal-r { transform: translateX(44px); }
.reveal-l.on, .reveal-r.on { transform: none; }
.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.32s; }
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1s ease 0.15s; }
.vh-hero.on .wipe { clip-path: inset(0 0 0 0); }
[data-plx] { will-change: transform; }
[data-plx] img { will-change: transform; }
.voidhaven .stars { animation: stardrift 90s linear infinite; }
@keyframes stardrift { from { background-position: 0 0; } to { background-position: -900px 700px; } }
@media (prefers-reduced-motion: reduce) {
  .voidhaven .stars { animation: none; }
  .wipe { clip-path: none; transition: none; }
  [data-plx] .plx-inner, [data-plx] img { transform: none !important; }
}
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr; }
  .zonestrip { grid-template-columns: 1fr; }
}

/* flat capture mode: freeze all motion at final state */
.flatcap .wipe { clip-path: none !important; transition: none !important; }
.flatcap .reveal { transition: none !important; }
.flatcap .voidhaven .stars { animation: none; }


/* ── trailer embed ── */
.trailer { margin-top: 90px; }
.trailer .frame {
  position: relative; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #05080f;
}
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.trailer figcaption {
  font-family: 'Quantico', sans-serif; font-weight: 700;
  color: #C9D6E4; font-size: 12px; letter-spacing: 0.24em;
  text-align: center; margin-top: 14px;
}

/* ── the deal (studio philosophy, frog-green zone) ── */
.deal {
  padding: 128px 34px 130px;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(111, 191, 74, 0.08), transparent 62%),
    linear-gradient(180deg, #0c130e, #0e1611 60%, #0B1220);
  text-align: center;
  position: relative; overflow: hidden;
}
.deal .inner { position: relative; z-index: 2; }
.deal-mark { height: 112px; width: auto; display: block; margin: 0 auto 8px; filter: drop-shadow(0 8px 28px rgba(111, 191, 74, 0.3)); }
.pond { position: absolute; bottom: 0; left: 0; width: 100%; height: 90px; z-index: 1; opacity: 0.95; }
.ff { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ff i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #cfe89a; box-shadow: 0 0 12px 4px rgba(180, 220, 120, 0.4);
  animation: ffdrift 7s ease-in-out infinite; opacity: 0.7;
}
.ff i:nth-child(1) { left: 12%; top: 30%; animation-delay: 0s; }
.ff i:nth-child(2) { left: 26%; top: 66%; animation-delay: 1.6s; transform: scale(0.7); }
.ff i:nth-child(3) { left: 72%; top: 24%; animation-delay: 3.1s; }
.ff i:nth-child(4) { left: 86%; top: 58%; animation-delay: 4.4s; transform: scale(0.8); }
.ff i:nth-child(5) { left: 52%; top: 80%; animation-delay: 2.2s; transform: scale(0.6); }
@keyframes ffdrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(8px, -16px); opacity: 0.95; }
}
.deal-kicker { color: var(--green); }
.deal h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 0.1em; margin: 14px 0 40px; }
.dealgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.dealcard {
  border: 1px solid #2b4a2e;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  padding: 28px 26px 24px;
  background:
    radial-gradient(140% 60% at 50% 0%, rgba(111, 191, 74, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(18, 32, 15, 0.6), rgba(11, 18, 32, 0.3));
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.dealcard:hover { border-color: var(--green); box-shadow: inset 0 0 0 1px rgba(111, 191, 74, 0.16), inset 0 0 24px rgba(111, 191, 74, 0.07); }
.dbr { position: absolute; width: 12px; height: 12px; border: 2px solid var(--green); opacity: 0.85; pointer-events: none; }
.dbr-tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.dbr-br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.dealglyph { height: 42px; width: auto; margin-bottom: 14px; display: block; }
svg.dealglyph { width: 42px; }
.dealcard::before {
  content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(111, 191, 74, 0.55), transparent);
}
.dealcard h3 { font-size: 16px; letter-spacing: 0.16em; color: var(--green); margin-bottom: 10px; }
.dealcard p { color: var(--soft); font-size: 15.5px; }
.dealclose { margin-top: 34px; color: var(--soft); font-size: 18px; font-style: italic; }

/* ── voidhaven becoming grid ── */
.vh-sub { text-align: center; color: var(--cyan); font-size: 22px; letter-spacing: 0.12em; margin-bottom: 26px; }
.becoming { margin-top: 0; margin-bottom: 110px; }
.becoming .pillar h3 { font-size: 16px; }
.becoming .pillar p { font-size: 14.5px; }
@media (max-width: 980px) { .dealgrid { grid-template-columns: 1fr; } }

.flatcap .ff i { animation: none; }

/* ── the dive: water surface + submersion layers ── */
.deal { --dive: 0; --depth: 0; }
.deal .inner { transform: translateY(calc((1 - var(--dive)) * 44px)); }

.rays { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(var(--dive) * 0.9); }
.rays i {
  position: absolute; top: 0; height: 115%; width: 110px;
  background: linear-gradient(180deg, rgba(180, 230, 140, 0.11), rgba(180, 230, 140, 0.03) 55%, transparent 75%);
  transform: skewX(-13deg);
  filter: blur(7px);
  animation: raysway 9s ease-in-out infinite;
}
.rays i:nth-child(1) { left: 14%; animation-delay: 0s; }
.rays i:nth-child(2) { left: 34%; width: 70px; animation-delay: 2.4s; opacity: 0.75; }
.rays i:nth-child(3) { left: 58%; animation-delay: 1.1s; }
.rays i:nth-child(4) { left: 79%; width: 80px; animation-delay: 3.6s; opacity: 0.7; }
@keyframes raysway {
  0%, 100% { transform: skewX(-13deg) translateX(0); }
  50% { transform: skewX(-10deg) translateX(14px); }
}

.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(var(--dive) * 1); }
.bubbles i {
  position: absolute; bottom: -24px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(180, 220, 150, 0.35);
  background: radial-gradient(circle at 32% 30%, rgba(210, 240, 180, 0.25), transparent 60%);
  animation: bubblerise 11s linear infinite;
}
.bubbles i:nth-child(1) { left: 6%; animation-delay: 0s; }
.bubbles i:nth-child(2) { left: 15%; width: 6px; height: 6px; animation-delay: 3.2s; }
.bubbles i:nth-child(3) { left: 24%; animation-delay: 6.5s; }
.bubbles i:nth-child(4) { left: 37%; width: 7px; height: 7px; animation-delay: 1.4s; }
.bubbles i:nth-child(5) { left: 47%; animation-delay: 8.3s; }
.bubbles i:nth-child(6) { left: 58%; width: 6px; height: 6px; animation-delay: 4.7s; }
.bubbles i:nth-child(7) { left: 66%; animation-delay: 2.1s; }
.bubbles i:nth-child(8) { left: 77%; width: 8px; height: 8px; animation-delay: 7.4s; }
.bubbles i:nth-child(9) { left: 87%; animation-delay: 5.6s; }
.bubbles i:nth-child(10) { left: 94%; width: 5px; height: 5px; animation-delay: 9.1s; }
@keyframes bubblerise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.9; }
  50% { transform: translateY(-420px) translateX(8px); }
  100% { transform: translateY(-860px) translateX(-6px); opacity: 0; }
}

.depth-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 18, 9, 0.65));
  opacity: calc(var(--depth) * 0.85 + var(--dive) * 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .rays i, .bubbles i { animation: none; }
  .deal .inner { transform: none; }
}
.flatcap .rays i, .flatcap .bubbles i { animation: none; }
.flatcap .deal { --dive: 1; --depth: 0.3; }
.flatcap .deal .inner { transform: none; }

/* ── living water surface ── */
.deal-wave { position: absolute; top: 0; left: 0; width: 100%; height: 70px; z-index: 2; pointer-events: none; }
.deal-wave .w { position: absolute; top: 0; left: 0; width: 200%; height: 100%; }
.deal-wave .w1 { animation: wavedrift 16s linear infinite; }
.deal-wave .w2 { animation: wavedrift2 11s linear infinite; }
@keyframes wavedrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wavedrift2 { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.splash .deal-wave { animation: crestbounce 0.65s ease-out; }
@keyframes crestbounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(7px) scaleY(1.12); }
  60% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.drops i {
  position: absolute; top: 34px; width: 6px; height: 6px; border-radius: 50%;
  background: #7fc95a; opacity: 0;
}
.drops i:nth-child(1) { left: 18%; }
.drops i:nth-child(2) { left: 31%; width: 4px; height: 4px; }
.drops i:nth-child(3) { left: 47%; }
.drops i:nth-child(4) { left: 58%; width: 5px; height: 5px; }
.drops i:nth-child(5) { left: 73%; }
.drops i:nth-child(6) { left: 86%; width: 4px; height: 4px; }
.splash .drops i { animation: dropup 0.7s ease-out forwards; }
.splash .drops i:nth-child(2) { animation-delay: 0.06s; }
.splash .drops i:nth-child(3) { animation-delay: 0.12s; }
.splash .drops i:nth-child(4) { animation-delay: 0.04s; }
.splash .drops i:nth-child(5) { animation-delay: 0.1s; }
.splash .drops i:nth-child(6) { animation-delay: 0.16s; }
@keyframes dropup {
  0% { transform: translateY(0) scale(1); opacity: 0.95; }
  100% { transform: translateY(-30px) scale(0.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .deal-wave .w, .splash .deal-wave, .splash .drops i { animation: none; }
}
.flatcap .deal-wave .w, .flatcap .splash .deal-wave, .flatcap .drops i { animation: none !important; }

/* ── the approach: layered menu scene with mouse parallax ── */
.vh-scene {
  position: relative; height: 480px; margin: 30px 0 80px;
  overflow: hidden; z-index: 2;
}
.vs-par { position: absolute; inset: 0; will-change: transform; pointer-events: none; }
.vs-moon-a { position: absolute; left: 4%; top: 4px; width: 172px; opacity: 0.95; }
.vs-moon-b { position: absolute; left: calc(4% + 126px); top: 92px; width: 102px; opacity: 0.95; }
.vs-planet { position: absolute; left: -210px; bottom: -430px; width: 780px; animation: approach 26s ease-in-out infinite alternate; }
@keyframes approach { from { transform: scale(1); } to { transform: scale(1.07); } }
.vs-ship-box { position: absolute; right: 10%; top: 66px; width: 520px; animation: shipbob 7s ease-in-out infinite; }
.vs-ship { width: 100%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); position: relative; z-index: 2; }
@keyframes shipbob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-0.8deg); }
}
.vs-caption {
  position: absolute; left: 0; right: 0; bottom: 10px;
  font-family: 'Quantico', sans-serif; font-weight: 700;
  color: #C9D6E4; font-size: 11px; letter-spacing: 0.3em; text-align: center;
}
@media (max-width: 980px) {
  .vh-scene { height: 340px; }
  .vs-ship-box { width: 340px; right: 4%; }
  .vs-planet { width: 560px; left: -160px; bottom: -260px; }
  .vs-moon-a { width: 110px; }
  .vs-moon-b { width: 66px; left: calc(5% + 80px); top: 82px; }
}
@media (prefers-reduced-motion: reduce) { .vs-planet, .vs-ship { animation: none; } }
.flatcap .vs-planet, .flatcap .vs-ship { animation: none; }

/* ── approach speedlines (menu port): streaks rushing toward the planet ── */
.vs-lines { position: absolute; inset: 4% 2%; z-index: 1; pointer-events: none; }
.vs-lines i {
  position: absolute; width: 110px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(185, 210, 255, 0.8), transparent);
  transform: rotate(-20deg);
  opacity: 0;
  animation: streak 1.1s linear infinite;
}
/* slipstream hugging the hull: over the canopy, along the wing roots, under the belly */
.vs-lines i:nth-child(1) { left: 34%; top: 12%; width: 90px; animation-delay: 0s; }
.vs-lines i:nth-child(2) { left: 52%; top: 24%; animation-delay: 0.45s; }
.vs-lines i:nth-child(3) { left: 18%; top: 38%; width: 120px; animation-delay: 0.2s; }
.vs-lines i:nth-child(4) { left: 58%; top: 52%; width: 95px; animation-delay: 0.75s; }
.vs-lines i:nth-child(5) { left: 28%; top: 68%; animation-delay: 0.55s; }
.vs-lines i:nth-child(6) { left: 46%; top: 82%; width: 100px; animation-delay: 0.95s; }
@keyframes streak {
  0% { transform: rotate(-20deg) translateX(-110px); opacity: 0; }
  20% { opacity: 0.85; }
  70% { opacity: 0.45; }
  100% { transform: rotate(-20deg) translateX(120px); opacity: 0; }
}

/* ── re-entry fire on the hull ── */
.vs-fire { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.vs-fire .glow {
  position: absolute; left: 33%; top: 34%; width: 38%; height: 44%;
  background: radial-gradient(closest-side, rgba(255, 160, 50, 0.75), rgba(255, 95, 20, 0.32) 55%, transparent 78%);
  filter: blur(6px);
  animation: fireflicker 1.1s ease-in-out infinite;
}
.vs-fire i {
  position: absolute; width: 46px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 190, 80, 1), transparent);
  transform: rotate(-20deg);
  animation: emberdrift 1.3s linear infinite;
  opacity: 0;
}
.vs-fire i:nth-child(2) { left: 42%; top: 54%; animation-delay: 0s; }
.vs-fire i:nth-child(3) { left: 50%; top: 62%; width: 34px; animation-delay: 0.45s; }
.vs-fire i:nth-child(4) { left: 37%; top: 44%; width: 30px; animation-delay: 0.8s; }
.vs-fire i:nth-child(5) { left: 46%; top: 48%; width: 40px; animation-delay: 0.25s; }
.vs-fire i:nth-child(6) { left: 40%; top: 60%; width: 28px; animation-delay: 1.05s; }
@keyframes fireflicker {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  35% { opacity: 1; transform: scale(1.14); }
  65% { opacity: 0.65; transform: scale(0.94); }
}
.vs-fire .glow::after {
  content: ""; position: absolute; left: 26%; top: 30%; width: 46%; height: 40%;
  background: radial-gradient(closest-side, rgba(255, 225, 150, 0.85), rgba(255, 150, 60, 0.3) 60%, transparent 80%);
  filter: blur(3px);
  animation: fireflicker 0.7s ease-in-out infinite;
}
@keyframes emberdrift {
  0% { transform: rotate(-20deg) translateX(0); opacity: 0.9; }
  100% { transform: rotate(-20deg) translateX(96px) translateY(-8px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .vs-lines i, .vs-fire .glow, .vs-fire i { animation: none; opacity: 0.4; } }
.flatcap .vs-lines i, .flatcap .vs-fire .glow, .flatcap .vs-fire i { animation: none !important; opacity: 0.55 !important; }
