/* ==========================================================================
   Sea Different Action × neXus Stage — Luminous Ocean Pop & Scroll Theatre CSS
   ========================================================================== */
:root {
  /* Luminous Sunlit Ocean Palette (Bright, airy, pearl-nacre + crisp tidal ink) */
  --pearl: #F8FCFF;
  --sand: #FAF7F1;
  --mist: #EAF8FC;
  --foam: #FFFFFF;
  --ink: #0C2540;
  --ink-soft: #355270;
  --ink-muted: #64809C;
  --lagoon: #0FA2BE;
  --aqua: #3BE0F0;
  --coral: #E86A48;
  --gold: #F5C85C;
  --line: rgba(12, 37, 64, 0.14);
  --line-strong: #0C2540;

  /* Curated Distinct Typography Per Section (Restrained, editorial, non-repetitive) */
  --f-hero-en: "Instrument Serif", Georgia, serif;
  --f-song: "Noto Serif SC", "Songti SC", serif;
  --f-sans: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-wenkai: "LXGW WenKai TC", "Kaiti SC", serif;
  --f-classic: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --f-kinetic: "Anton", Impact, "Noto Sans SC", sans-serif;
  --f-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(18px, 4.8vw, 68px);
  --nav-h: 66px;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --pop: cubic-bezier(0.2, 1.55, 0.38, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--aqua); color: var(--ink); }

/* ---------- Global Top Tidal Progress + P5 Dual Wave Curtain Wipe ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3.5px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--lagoon), var(--aqua), var(--coral));
  z-index: 120;
}
.wipe { position: fixed; inset: 0; z-index: 130; pointer-events: none; overflow: hidden; }
.wipe::before, .wipe::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -30%; width: 160%;
  background: var(--lagoon);
  transform: translateX(-130%) skewX(-18deg);
}
.wipe::after {
  background: var(--sand);
  border-left: 12px solid var(--aqua);
}
.wipe.go::before { animation: waveSweep 0.72s var(--ease); }
.wipe.go::after { animation: waveSweep 0.72s 0.07s var(--ease); }
@keyframes waveSweep {
  0% { transform: translateX(-130%) skewX(-18deg); }
  45%, 55% { transform: translateX(0) skewX(-18deg); }
  100% { transform: translateX(130%) skewX(-18deg); }
}

/* ---------- Ambient Background Swimming Paopao Layer ---------- */
.paopao-ambient {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.paopao-swimmer {
  position: absolute; width: clamp(54px, 5.5vw, 82px); height: auto;
  opacity: 0.22; filter: drop-shadow(0 8px 18px rgba(15, 162, 190, 0.22));
  will-change: transform;
}
.paopao-swimmer.p1 { top: 22vh; left: -90px; animation: swimAcrossA 32s linear infinite; }
.paopao-swimmer.p2 { top: 68vh; right: -90px; width: clamp(44px, 4.2vw, 66px); opacity: 0.17; animation: swimAcrossB 38s 6s linear infinite; }
@keyframes swimAcrossA {
  0%   { transform: translate3d(0, 0, 0) rotate(6deg); }
  25%  { transform: translate3d(32vw, -22px, 0) rotate(-5deg); }
  50%  { transform: translate3d(64vw, 16px, 0) rotate(7deg); }
  75%  { transform: translate3d(92vw, -18px, 0) rotate(-4deg); }
  100% { transform: translate3d(122vw, 6px, 0) rotate(5deg); }
}
@keyframes swimAcrossB {
  0%   { transform: translate3d(0, 0, 0) scaleX(-1) rotate(5deg); }
  50%  { transform: translate3d(-62vw, -26px, 0) scaleX(-1) rotate(-6deg); }
  100% { transform: translate3d(-124vw, 12px, 0) scaleX(-1) rotate(4deg); }
}

/* ---------- Click Ripple Star Burst (.boom) ---------- */
.boom { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 140; }
.boom i {
  position: absolute; left: -36px; top: -36px; width: 72px; height: 72px;
  border: 2.5px solid var(--lagoon); border-radius: 50%;
  animation: boomRing 0.5s var(--ease) forwards;
}
.boom b {
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px;
  background: var(--aqua);
  clip-path: polygon(50% 0, 62% 36%, 98% 36%, 68% 58%, 79% 92%, 50% 71%, 21% 92%, 32% 58%, 2% 36%, 38% 36%);
  animation: boomStar 0.45s var(--pop) forwards;
}
@keyframes boomRing { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.65); opacity: 0; } }
@keyframes boomStar { 0% { transform: scale(0) rotate(0); } 60% { transform: scale(1) rotate(24deg); opacity: 1; } 100% { transform: scale(0.5) rotate(45deg); opacity: 0; } }

/* ---------- Kinetic Hard-Shadow Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-sans); font-weight: 800; font-size: 15px; letter-spacing: 0.02em;
  padding: 12px 24px; color: var(--ink); background: var(--foam);
  border: 2px solid var(--ink); transform: skewX(-10deg);
  box-shadow: 5px 5px 0 var(--lagoon);
  transition: transform 0.18s var(--pop), box-shadow 0.18s var(--pop), background 0.15s;
  cursor: pointer; white-space: nowrap;
}
.btn > span { display: inline-flex; align-items: center; gap: 6px; transform: skewX(10deg); }
.btn:hover { transform: skewX(-10deg) translate(-3px, -3px); box-shadow: 8px 8px 0 var(--lagoon); }
.btn:active { transform: skewX(-10deg) translate(3px, 3px); box-shadow: 1px 1px 0 var(--lagoon); }
.btn-primary { background: var(--lagoon); color: var(--foam); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:hover { background: #0c8fa8; box-shadow: 8px 8px 0 var(--ink); }
.btn-coral { background: var(--coral); color: var(--foam); box-shadow: 5px 5px 0 var(--ink); }
.btn-sm { font-size: 13px; padding: 8px 16px; box-shadow: 3.5px 3.5px 0 var(--ink); }

/* ---------- Sticky Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad);
  background: rgba(248, 252, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 15px; letter-spacing: 0.01em; }
.nav-brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-brand em { font-family: var(--f-hero-en); font-style: italic; font-weight: 400; font-size: 19px; color: var(--lagoon); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; }
.nav-links a { position: relative; padding: 7px 11px; isolation: isolate; font-weight: 700; color: var(--ink-soft); }
.nav-links a::before {
  content: ""; position: absolute; inset: 2px 0; background: var(--aqua);
  transform: skewX(-12deg) scaleX(0); transform-origin: 0 50%;
  transition: transform 0.22s var(--ease); z-index: -1;
}
.nav-links a:hover::before, .nav-links a.on::before { transform: skewX(-12deg) scaleX(1); }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-coord { font-family: var(--f-mono); font-size: 11px; color: var(--ink-muted); }
.menu-btn {
  display: none; font-family: var(--f-mono); font-weight: 700; font-size: 12px;
  background: var(--foam); color: var(--ink); border: 2px solid var(--ink); padding: 6px 12px; cursor: pointer;
}

/* ---------- 00. HERO: High-Density Luminous 3D Buoyant Digital Ocean ---------- */
.hero {
  position: relative; min-height: 94svh; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 28px) var(--pad) 38px; overflow: hidden;
  background: linear-gradient(180deg, #E8FAFF 0%, #B8F2FA 52%, #5CDCEB 100%);
}
#hero-ocean { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(65% 55% at 50% 18%, rgba(255, 255, 255, 0.72), transparent 72%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.55) 0%, rgba(248, 252, 255, 0.08) 48%, rgba(12, 37, 64, 0.22) 100%);
}
.hero-top, .hero-center, .hero-foot { position: relative; z-index: 2; }
.hero-top {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); font-weight: 700;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px);
  border: 1.5px solid var(--ink); padding: 5px 13px;
  box-shadow: 3px 3px 0 var(--lagoon);
}
.hero-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--lagoon); display: inline-block; }

.hero-center { max-width: 980px; margin: clamp(22px, 5vh, 52px) 0; }
.hero-card {
  display: inline-block; padding: clamp(22px, 3.4vw, 38px) clamp(24px, 3.8vw, 44px);
  background: rgba(255, 254, 251, 0.84);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(15, 162, 190, 0.88);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.hero-eyebrow {
  margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--lagoon); text-transform: uppercase;
}
.hero-en {
  margin: 0; font-family: var(--f-hero-en); font-style: italic; font-weight: 400;
  font-size: clamp(54px, 9.2vw, 128px); line-height: 0.9; letter-spacing: -0.02em; color: var(--ink);
}
.hero-zh {
  margin: 12px 0 14px; font-family: var(--f-song); font-weight: 700;
  font-size: clamp(24px, 3.3vw, 42px); line-height: 1.22; color: var(--ink);
}
.hero-zh mark {
  background: var(--aqua); color: var(--ink); padding: 0 0.22em;
}
.hero-sub {
  margin: 0; max-width: 44em; font-size: clamp(15px, 1.35vw, 17.5px); color: var(--ink-soft); font-weight: 500;
}

.hero-foot {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 16px; align-items: center;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
  border: 2px solid var(--ink); padding: 14px 22px;
  box-shadow: 6px 6px 0 var(--ink);
}
.h-stat { display: flex; flex-direction: column; padding-right: 14px; border-right: 1px solid var(--line); }
.h-stat span { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--lagoon); letter-spacing: 0.1em; }
.h-stat strong { font-family: var(--f-kinetic); font-weight: 400; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.05; letter-spacing: 0.02em; }
.h-stat small { font-size: 12.5px; color: var(--ink-soft); }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-left: 8px; }

/* ---------- Leftward-Moving Partner & Keyword Chain Ticker (User Favorite!) ---------- */
.chain-ticker {
  position: relative; z-index: 6;
  background: var(--ink); color: var(--foam);
  transform: rotate(-1.35deg); margin: -6px -2vw 0; padding: 12px 0;
  border-block: 2.5px solid var(--aqua);
  box-shadow: 0 7px 0 var(--lagoon);
  overflow: hidden;
}
.chain-track {
  display: flex; align-items: center; width: max-content;
  animation: chainLeft 30s linear infinite;
}
.chain-ticker:hover .chain-track { animation-play-state: paused; }
@keyframes chainLeft { to { transform: translate3d(-50%, 0, 0); } }
.chain-item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 26px; white-space: nowrap;
  font-family: var(--f-sans); font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
}
.chain-item img {
  height: 28px; width: auto; object-fit: contain;
  background: rgba(255, 255, 255, 0.94); border-radius: 6px; padding: 2px 6px;
}
.chain-item i { color: var(--aqua); font-style: normal; font-family: var(--f-mono); margin-left: 14px; }

/* ---------- Shared Section Chrome + Reversible Scroll Reveal ---------- */
.sec { position: relative; z-index: 2; padding: clamp(76px, 9vw, 118px) var(--pad); overflow: clip; }
.sec-sand { background: var(--sand); }
.sec-mist {
  background: var(--mist) radial-gradient(rgba(15, 162, 190, 0.16) 1px, transparent 1.4px) 0 0 / 14px 14px;
}
.sec-pearl {
  background: var(--pearl) radial-gradient(rgba(12, 37, 64, 0.08) 1px, transparent 1.4px) 0 0 / 16px 16px;
}
.sec-head {
  position: relative; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 20px;
  margin-bottom: clamp(34px, 4.5vw, 52px); padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.sec-head::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 8px; width: 132px;
  background: var(--lagoon); transform: skewX(-28deg);
}
.sec-head::before {
  content: ""; position: absolute; z-index: 3; left: -3vw; right: -3vw; top: 14px; bottom: 0;
  background: var(--aqua); transform: translateX(-122%) skewX(-18deg); pointer-events: none;
}
.sec-head .num { width: 100%; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; color: var(--lagoon); }
.sec-head h2 { margin: 0; line-height: 1.08; color: var(--ink); }
.sec-head .tag-pill {
  font-family: var(--f-sans); font-weight: 800; font-size: 14px;
  background: var(--ink); color: var(--foam); padding: 4px 12px;
  transform: skewX(-10deg); margin-bottom: 4px; box-shadow: 4px 4px 0 var(--aqua);
}
.sec-head .tag-pill span { display: inline-block; transform: skewX(10deg); }

/* Distinct Typography per Section (Zero repetitive fancy font!) */
.font-ch1 h2 { font-family: var(--f-song); font-weight: 700; font-size: clamp(32px, 4.6vw, 56px); }
.font-ch2 h2 { font-family: var(--f-sans); font-weight: 800; font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.02em; }
.font-ch3 h2 { font-family: var(--f-wenkai); font-weight: 700; font-size: clamp(34px, 4.8vw, 58px); }
.font-ch4 h2 { font-family: var(--f-classic); font-weight: 600; font-size: clamp(34px, 4.8vw, 58px); }
.font-ch5 h2 { font-family: var(--f-kinetic); font-weight: 400; font-size: clamp(42px, 6.8vw, 96px); letter-spacing: 0.02em; text-transform: uppercase; transform: skewX(-6deg); }
.font-ch6 h2 { font-family: var(--f-sans); font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); }

html.js .sec-head h2, html.js .sec-head .tag-pill { opacity: 0; }
.sec-head.in::before { animation: headSweep 0.68s var(--ease); }
.sec-head.in h2 { animation: headSlam 0.34s 0.28s both; }
.sec-head.in .tag-pill { animation: pillPop 0.3s 0.44s both; }
@keyframes headSweep {
  0% { transform: translateX(-122%) skewX(-18deg); }
  46%, 54% { transform: translateX(0) skewX(-18deg); }
  100% { transform: translateX(122%) skewX(-18deg); }
}
@keyframes headSlam {
  0% { opacity: 0; transform: translateX(-16px); }
  100% { opacity: 1; transform: none; }
}
@keyframes pillPop {
  0% { opacity: 0; transform: skewX(-10deg) scale(1.5); }
  100% { opacity: 1; transform: skewX(-10deg) scale(1); }
}

html.js .rv {
  opacity: 0; transform: translateY(34px) skewY(1.8deg);
  transition: opacity 0.55s var(--ease), transform 0.68s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
html.js .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   STAGE 01 (#bottle): Scroll-Scrubbed 3D Ocean Expedition Envelope (250vh)
   ========================================================================== */
#bottle.pin {
  position: relative; height: 245vh; z-index: 2;
  background: linear-gradient(180deg, var(--pearl) 0%, var(--mist) 55%, var(--sand) 100%);
  border-bottom: 2px solid var(--ink);
}
.pin-stage {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  display: grid; place-items: center; overflow: hidden;
}
.bottle-bg-word {
  position: absolute; font-family: var(--f-hero-en); font-style: italic;
  font-size: clamp(90px, 19vw, 280px); color: rgba(15, 162, 190, 0.08);
  pointer-events: none; white-space: nowrap; user-select: none;
}
.card-wrap { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.env {
  position: relative; z-index: 2; width: min(530px, 86vw); aspect-ratio: 1.56;
  perspective: 960px;
  opacity: calc(1 - var(--o, 0));
  transform:
    translateY(calc((1 - var(--k, 0)) * 28vh + var(--o, 0) * 28vh))
    rotate(calc((1 - var(--k, 0)) * -9deg))
    scale(calc(0.82 + var(--k, 0) * 0.18));
}
.env-body {
  position: absolute; inset: 0; background: #14547E;
  border: 2.5px solid var(--ink); box-shadow: 10px 10px 0 var(--aqua);
}
.env-body::before {
  content: ""; position: absolute; inset: 0; background: #1B6C9E;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
}
.env-body::after {
  content: ""; position: absolute; inset: 0; background: #2182B8;
  clip-path: polygon(0 100%, 50% 48%, 100% 100%);
}
.flap {
  position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 2;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--f, 0) * 178deg));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.env-to {
  position: absolute; left: 20px; bottom: 16px; z-index: 3;
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.55; color: var(--foam);
}
.seal {
  position: absolute; left: 50%; top: 56%; z-index: 4;
  transform: translate(-50%, -50%) rotate(-6deg);
  font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.08em;
  background: var(--gold); color: var(--ink); padding: 8px 14px;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); white-space: nowrap;
}
.letter {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: min(580px, 88vw); padding: clamp(22px, 3vw, 34px);
  background: var(--foam); color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 12px 12px 0 var(--lagoon), -5px -5px 0 var(--ink);
  pointer-events: none;
  transform:
    translate(-50%, calc(-50% - var(--r, 0) * (1 - var(--o, 0)) * min(520px, 84vw) * 0.38))
    rotate(calc(-6deg + var(--o, 0) * 4.5deg))
    scale(calc(0.62 + var(--o, 0) * 0.38));
}
#bottle.front .letter { z-index: 4; }
#bottle.live .letter { pointer-events: auto; }
#bottle .letter.gone { visibility: hidden; }
.l-step {
  --v: clamp(0, calc(var(--li, 0) - var(--n, 0)), 1);
  opacity: var(--v);
  transform: translateY(calc((1 - var(--v)) * 16px));
}
.l-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1.5px dashed var(--line); padding-bottom: 10px; }
.l-head span { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--lagoon); }
.l-head img { width: 38px; height: 38px; object-fit: contain; }
.l-quote {
  margin: 16px 0 12px; font-family: var(--f-song); font-weight: 700;
  font-size: clamp(23px, 3.4vw, 34px); line-height: 1.3; color: var(--ink);
}
.l-quote em { font-style: normal; background: var(--aqua); padding: 0 0.16em; }
.l-body { margin: 0 0 14px; font-size: 15px; color: var(--ink-soft); line-height: 1.72; }
.l-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.l-tags b {
  font-family: var(--f-mono); font-size: 11.5px; padding: 4px 10px;
  background: var(--mist); border: 1.5px solid var(--ink);
}
.card-hint {
  position: absolute; left: 0; right: 0; bottom: 24px; margin: 0; text-align: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--ink-soft);
  opacity: calc(1 - var(--o, 0) * 2.5);
}

/* ==========================================================================
   SECTION 02 (#decade): UN Ocean Decade Bento + Camera Shutter Polaroid Wall
   ========================================================================== */
.decade-bento {
  display: grid; grid-template-columns: 1.38fr 1fr; gap: 22px; align-items: stretch; margin-bottom: 36px;
}
.bento-lead {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--foam); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--lagoon);
  padding: 18px; cursor: pointer; transition: transform 0.22s var(--pop), box-shadow 0.22s var(--pop);
}
.bento-lead:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--lagoon); }
.bento-main-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1.5px solid var(--ink); }
.bento-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.bento-lead:hover .bento-main-img img { transform: scale(1.03); }
.bento-badge {
  position: absolute; left: 12px; top: 12px;
  background: var(--ink); color: var(--foam); font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  padding: 5px 10px; border: 1.5px solid var(--aqua);
}
.bento-open-pill {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--foam); color: var(--ink); font-weight: 800; font-size: 12.5px;
  padding: 6px 12px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--aqua);
}
.bento-caption { margin-top: 14px; }
.bento-caption h3 { margin: 0 0 6px; font-size: clamp(19px, 2vw, 24px); font-weight: 800; }
.bento-caption p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.bento-thumbs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px;
}
.bento-thumbs button {
  padding: 0; border: 1.5px solid var(--ink); aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; background: var(--mist);
}
.bento-thumbs button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.bento-thumbs button:hover img { transform: scale(1.1); }

.bento-side { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.bento-card {
  display: grid; grid-template-rows: 1fr auto;
  background: var(--foam); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px;
}
.bento-card figure { margin: 0; position: relative; overflow: hidden; border: 1.5px solid var(--ink); min-height: 170px; }
.bento-card figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-card .bc-txt { padding-top: 11px; }
.bento-card .bc-txt span { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--lagoon); }
.bento-card .bc-txt h4 { margin: 3px 0 0; font-size: 16.5px; font-weight: 800; }

/* Camera Shutter Polaroid Wall */
.shutter-wall {
  position: relative; background: var(--foam); border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--aqua); padding: 22px 24px 30px; overflow: hidden;
}
.shutter-flash {
  position: absolute; inset: 0; background: #FFFFFF; opacity: 0; pointer-events: none; z-index: 6;
}
.shutter-flash.fire { animation: camFlash 0.52s ease-out; }
@keyframes camFlash { 0% { opacity: 0.96; } 100% { opacity: 0; } }
.shutter-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1.5px dashed var(--line);
}
.shutter-hud { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; }
.shutter-hud i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: inline-block; animation: recBlink 1.4s infinite; }
@keyframes recBlink { 50% { opacity: 0.25; } }
.polaroid-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.polaroid {
  background: #FFFDF9; border: 2px solid var(--ink); padding: 10px 10px 16px;
  box-shadow: 5px 5px 0 rgba(12, 37, 64, 0.16);
  transform: rotate(var(--rot, -2deg));
  transition: transform 0.35s var(--pop), box-shadow 0.3s;
}
.polaroid:hover { z-index: 3; transform: translateY(-8px) rotate(0deg) scale(1.03); box-shadow: 10px 10px 0 var(--lagoon); }
.polaroid figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption {
  margin-top: 10px; font-family: var(--f-wenkai); font-weight: 700; font-size: 15px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
}
.polaroid figcaption small { font-family: var(--f-mono); font-size: 10.5px; color: var(--lagoon); }

/* ==========================================================================
   STAGE 03 (#pillars): neXus Diagonal Wave-Cut 3-Stage Showcase (300vh)
   ========================================================================== */
.np-pin {
  position: relative; height: 300vh; z-index: 2;
}
.np-stage {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow: hidden; background: var(--pearl);
  border-block: 2.5px solid var(--ink);
}
.np-panel {
  --c: 1; --m: var(--c);
  position: absolute; inset: 0; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  background: var(--pearl) radial-gradient(rgba(15, 162, 190, 0.14) 1px, transparent 1.4px) 0 0 / 12px 12px;
}
.np-panel:nth-of-type(1) { z-index: 1; --m: var(--e, 1); }
.np-panel:nth-of-type(2) {
  z-index: 2; background: var(--sand);
  clip-path: polygon(calc((1 - var(--c)) * 122%) 0, 140% 0, 140% 100%, calc((1 - var(--c)) * 122% - 22%) 100%);
}
.np-panel:nth-of-type(3) {
  z-index: 3; background: var(--mist);
  clip-path: polygon(-40% 0, calc(var(--c) * 122%) 0, calc(var(--c) * 122% - 22%) 100%, -40% 100%);
}
.np-art {
  position: relative; overflow: hidden; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  display: grid; place-items: center; padding: clamp(20px, 3.5vw, 44px);
}
.np-panel.rt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.np-panel.rt .np-art {
  order: 2; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.np-art-frame {
  position: relative; width: min(560px, 92%); border: 3px solid var(--foam);
  box-shadow: 12px 12px 0 var(--aqua); background: #EAF6FC; overflow: hidden;
  transform: translateX(calc((1 - var(--m)) * 28px)) scale(calc(0.94 + var(--m) * 0.06));
}
.np-art-frame img { width: 100%; height: auto; max-height: 58vh; object-fit: cover; display: block; }
.np-duo {
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 14px; width: min(600px, 94%); align-items: center;
}
.np-duo figure {
  margin: 0; border: 3px solid var(--foam); box-shadow: 8px 8px 0 var(--coral); background: var(--foam); overflow: hidden;
}
.np-duo figure img { width: 100%; height: 100%; max-height: 50vh; object-fit: cover; }

.np-txt {
  position: relative; z-index: 2; align-self: center;
  padding: 0 var(--pad) 0 clamp(20px, 3.5vw, 48px);
  transform: translateX(calc((1 - var(--m)) * 72px));
  opacity: clamp(0, calc(var(--m) * 2 - 0.5), 1);
}
.np-panel.rt .np-txt {
  padding: 0 clamp(20px, 3.5vw, 48px) 0 var(--pad);
  transform: translateX(calc((1 - var(--m)) * -72px));
}
.np-kicker { font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; color: var(--lagoon); }
.np-txt h3 {
  margin: 12px 0 16px; font-family: var(--f-wenkai); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.15; color: var(--ink);
}
.np-txt h3 span {
  display: inline-block; background: var(--aqua); padding: 0 0.18em;
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: skewX(-6deg);
}
.np-txt p { margin: 0 0 18px; max-width: 28em; font-size: clamp(15.5px, 1.35vw, 18px); color: var(--ink-soft); }
.np-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.np-bullets li {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px;
}
.np-bullets li::before { content: "✦"; color: var(--lagoon); }
.np-watermark {
  position: absolute; right: 2%; bottom: -2%; z-index: 0;
  font-family: var(--f-kinetic); font-size: clamp(90px, 16vw, 230px); line-height: 0.82;
  color: transparent; -webkit-text-stroke: 2px rgba(12, 37, 64, 0.08);
  pointer-events: none; user-select: none;
}
.np-panel.rt .np-watermark { right: auto; left: 2%; }

/* Diagonal Foam + Lagoon Wave-Blade Overlay (.wave-cut) */
.wave-cut { position: absolute; inset: 0; z-index: 6; pointer-events: none; visibility: hidden; }
.wave-cut.on { visibility: visible; }
.wave-cut::before, .wave-cut::after { content: ""; position: absolute; inset: 0; }
.wave-cut::before { background: var(--ink); }
.wave-cut::after { background: var(--aqua); }
.wave-cut.r { --E: calc((1 - var(--c, 0)) * 122%); }
.wave-cut.r::before { clip-path: polygon(calc(var(--E) - 1.8%) 0, var(--E) 0, calc(var(--E) - 22%) 100%, calc(var(--E) - 23.8%) 100%); }
.wave-cut.r::after  { clip-path: polygon(calc(var(--E) - 9.5%) 0, calc(var(--E) - 1.8%) 0, calc(var(--E) - 23.8%) 100%, calc(var(--E) - 31.5%) 100%); }
.wave-cut.l { --F: calc(var(--c, 0) * 122%); }
.wave-cut.l::before { clip-path: polygon(var(--F) 0, calc(var(--F) + 1.8%) 0, calc(var(--F) - 20.2%) 100%, calc(var(--F) - 22%) 100%); }
.wave-cut.l::after  { clip-path: polygon(calc(var(--F) + 1.8%) 0, calc(var(--F) + 9.5%) 0, calc(var(--F) - 12.5%) 100%, calc(var(--F) - 20.2%) 100%); }

.np-tabs {
  position: absolute; z-index: 8; right: var(--pad); top: 18px; display: flex; gap: 8px;
}
.np-tabs button {
  font-family: var(--f-sans); font-weight: 800; font-size: 13px; padding: 8px 14px;
  background: var(--foam); color: var(--ink-soft); border: 2px solid var(--ink);
  transform: skewX(-12deg); cursor: pointer;
}
.np-tabs button span { display: inline-block; transform: skewX(12deg); }
.np-tabs button[aria-selected="true"] { background: var(--ink); color: var(--foam); box-shadow: 4px 4px 0 var(--aqua); }
.np-bar { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(12, 37, 64, 0.1); }
.np-bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--np, 0) * 100%); background: var(--lagoon); }

/* ==========================================================================
   SECTION 04 (#planet + #orbit): PELAGOS 3D Globe + Original-Amplitude 3D Orbit
   ========================================================================== */
.planet-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(24px, 4vw, 52px);
  align-items: center; margin-bottom: 84px;
}
.planet-stage {
  position: relative; width: 100%; aspect-ratio: 1; max-width: 540px; margin: 0 auto;
  cursor: grab; touch-action: none; user-select: none;
}
.planet-stage:active { cursor: grabbing; }
#planet-gl, #planet-hud, #planet-pins { position: absolute; inset: 0; width: 100%; height: 100%; }
#planet-hud, #planet-pins { pointer-events: none; }
.globe-pin {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px;
  margin: -14px 0 0 -14px; padding: 4px 10px 4px 7px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--f-sans); font-weight: 800; font-size: 12px;
  box-shadow: 3px 3px 0 var(--lagoon); cursor: pointer; transition: opacity 0.2s, background 0.2s;
}
.globe-pin i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); display: inline-block; }
.globe-pin.on { background: var(--ink); color: var(--foam); box-shadow: 3px 3px 0 var(--aqua); }
.globe-pin.on i { background: var(--aqua); }

.planet-info .pi-sub { margin: -8px 0 20px; font-size: 15.5px; color: var(--ink-soft); font-weight: 600; }
.station-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.st-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  background: var(--foam); border: 2px solid var(--ink); cursor: pointer;
  font-weight: 700; font-size: 13px; transform: skewX(-8deg);
}
.st-tab b { font-family: var(--f-mono); color: var(--lagoon); font-size: 11.5px; }
.st-tab.on { background: var(--lagoon); color: var(--foam); box-shadow: 4px 4px 0 var(--ink); }
.st-tab.on b { color: var(--gold); }
.station-card {
  background: var(--foam); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--lagoon); padding: 24px;
}
.st-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.st-no { font-family: var(--f-classic); font-style: italic; font-weight: 700; font-size: 26px; color: var(--lagoon); }
.st-tag { font-family: var(--f-mono); font-size: 11px; font-weight: 700; background: var(--mist); padding: 3px 8px; border: 1px solid var(--line); }
.st-title { margin: 0 0 6px; font-family: var(--f-song); font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; }
.st-coords { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; color: var(--lagoon); }
.st-desc { margin: 0 0 16px; font-size: 15px; color: var(--ink-soft); }
.st-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.st-pills span { font-size: 12.5px; font-weight: 700; background: var(--sand); border: 1.5px solid var(--ink); padding: 4px 10px; }
.planet-dl {
  margin-top: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted);
}

/* Original-Amplitude 3D Orbit Gallery (Large Card Size + Unobstructed Center Title!) */
.orbit-wrap {
  position: relative; padding: 34px 0 46px;
  background: linear-gradient(180deg, rgba(234, 248, 252, 0.7), rgba(250, 247, 241, 0.9));
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden; cursor: grab; user-select: none;
}
.orbit-wrap:active { cursor: grabbing; }
.orbit-stage {
  position: relative; height: clamp(460px, 56vw, 640px);
  display: flex; align-items: center; justify-content: center;
  perspective: 1500px;
}
.orbit-center {
  position: relative; z-index: 20; text-align: center; pointer-events: none;
  padding: 18px 32px; border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 52%, rgba(255, 255, 255, 0) 100%);
}
.orbit-center span {
  display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--lagoon);
}
.orbit-center h3 {
  margin: 4px 0; font-family: var(--f-song); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px); letter-spacing: 0.06em; padding-left: 0.06em; color: var(--ink);
}
.orbit-center small { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

.orbit-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.orbit-card {
  position: absolute; left: 50%; top: 50%;
  width: clamp(190px, 19vw, 256px); aspect-ratio: 4 / 3;
  margin-left: calc(clamp(190px, 19vw, 256px) * -0.5);
  margin-top: calc(clamp(190px, 19vw, 256px) * -0.375);
  background: var(--foam); border: 3px solid #FFFDF9;
  outline: 1.5px solid var(--ink);
  border-radius: 26px 10px 24px 10px;
  box-shadow: 0 18px 38px -14px rgba(12, 37, 64, 0.28);
  overflow: hidden; cursor: pointer; will-change: transform, opacity;
}
.orbit-card img { width: 100%; height: 100%; object-fit: cover; }
.orbit-pill {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  background: rgba(12, 37, 64, 0.84); backdrop-filter: blur(6px);
  color: var(--foam); padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; gap: 6px;
}
.orbit-pill b { font-family: var(--f-mono); color: var(--aqua); }
.orbit-hint { text-align: center; font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); margin: 4px 0 0; }

/* ==========================================================================
   STAGE 05 (#works-h): Exact neXus #speakers Velocity-Skew Horizontal Rail
   ========================================================================== */
#works { overflow: visible; }
.hs { position: relative; margin: 0 calc(var(--pad) * -1); }
.hs-stage {
  position: relative; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 24px var(--pad) 38px;
}
.hs-stage::-webkit-scrollbar { display: none; }
.hs-track {
  position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 24px; width: max-content;
}
.hs-div {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start;
  align-self: stretch; justify-content: flex-end; padding-right: 8px;
}
.hs-div b {
  font-family: var(--f-kinetic); font-weight: 400; font-size: clamp(58px, 6.8vw, 102px);
  line-height: 0.86; writing-mode: vertical-rl; transform: rotate(180deg);
  color: transparent; -webkit-text-stroke: 2px var(--ink);
}
.hs-div span {
  margin-top: 12px; font-weight: 800; font-size: 13.5px; white-space: nowrap;
  background: var(--lagoon); color: var(--foam); padding: 3px 10px;
  transform: skewX(-10deg); border: 1.5px solid var(--ink);
}

.w-card {
  flex: 0 0 clamp(230px, 21vw, 286px); position: relative; cursor: pointer;
  scroll-snap-align: start; outline: none;
  transition: transform 0.22s var(--pop);
}
.w-ph {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--ink); border: 2px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.w-ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.38s var(--ease), filter 0.3s;
}
.w-ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 37, 64, 0.55) 100%);
  pointer-events: none;
}
.w-idx {
  position: absolute; left: 0; top: 0; z-index: 3;
  font-family: var(--f-mono); font-weight: 700; font-size: 11px;
  background: var(--ink); color: var(--aqua); padding: 5px 10px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.w-body {
  position: relative; z-index: 3; margin: -32px 10px 0 12px;
  background: var(--foam); color: var(--ink); padding: 12px 14px 13px;
  border: 2px solid var(--ink); transform: skewX(-6deg);
  box-shadow: 6px 6px 0 var(--lagoon);
  transition: transform 0.22s var(--pop), box-shadow 0.22s var(--pop);
}
.w-body > * { transform: skewX(6deg); }
.w-body h4 { margin: 0; font-size: 16.5px; line-height: 1.25; font-weight: 800; }
.w-body .w-org { margin: 4px 0 0; font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--lagoon); }
.w-body .w-tag { margin: 3px 0 0; font-size: 13px; color: var(--ink-soft); }
.w-more {
  display: block; margin: 12px 0 0 14px; font-family: var(--f-mono); font-weight: 700;
  font-size: 11.5px; color: var(--lagoon); opacity: 0; transition: opacity 0.2s;
}
.w-card:hover { transform: translateY(-8px) rotate(-1deg); }
.w-card:hover .w-ph img { transform: scale(1.07); }
.w-card:hover .w-body { transform: skewX(-6deg) translate(-4px, -4px); box-shadow: 10px 10px 0 var(--coral); }
.w-card:hover .w-more { opacity: 1; }

.hs-bar { display: none; }
.hs.pinned .hs-stage {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow: hidden; display: flex; align-items: center;
  scroll-snap-type: none; padding-top: 0; padding-bottom: 0;
}
.hs.pinned .hs-stage::before {
  content: "SEA DIFFERENT"; position: absolute; left: 2%; top: 50%;
  transform: translate(calc(var(--hp, 0) * -28%), -50%);
  font-family: var(--f-kinetic); font-size: clamp(110px, 21vw, 320px); line-height: 0.82;
  color: transparent; -webkit-text-stroke: 2px rgba(15, 162, 190, 0.13);
  white-space: nowrap; pointer-events: none;
}
.hs.pinned .hs-track {
  will-change: transform;
  transform: translate3d(var(--tx, 0px), 0, 0) skewX(var(--sk, 0deg));
}
.hs.pinned .hs-bar {
  display: block; position: absolute; left: var(--pad); right: var(--pad); bottom: 26px;
  height: 5px; background: var(--line); border: 1px solid rgba(12, 37, 64, 0.2);
}
.hs.pinned .hs-bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--hp, 0) * 100%); background: var(--lagoon);
}

/* ==========================================================================
   STAGE 06 (#launch): Navigator Arrow Pull-Out -> Tide-Chaser Mini-Program & Gacha
   ========================================================================== */
.kx-pin {
  --a: 0; --w: 0; --t: 0;
  position: relative; height: 225vh; z-index: 2; background: var(--sand);
}
.kx-stage {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: hidden;
  border-block: 2.5px solid var(--ink);
}
.kx-stage::before {
  content: "TIDE CHASER"; position: absolute; left: 3%; top: 52%;
  transform: translate(calc(var(--a) * -10%), -50%);
  font-family: var(--f-kinetic); font-size: clamp(96px, 19vw, 280px); line-height: 0.82;
  color: transparent; -webkit-text-stroke: 2px rgba(12, 37, 64, 0.09);
  white-space: nowrap; pointer-events: none;
}
.kx-arrow {
  position: absolute; left: 0; top: clamp(20px, 9vh, 80px); z-index: 4;
  display: flex; align-items: center; gap: 18px;
  width: min(620px, 88vw); padding: 14px 56px 14px 32px;
  background: var(--lagoon); color: var(--foam); border: 2.5px solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 50%, calc(100% - 38px) 100%, 0 100%, 20px 50%);
  transform-origin: 0 50%;
  transform: translateX(calc(var(--w) * 126vw)) skewX(calc(var(--a) * -14deg));
  pointer-events: none;
}
.kx-arrow b { font-family: var(--f-kinetic); font-size: 42px; line-height: 0.9; color: var(--gold); }
.kx-arrow div small { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; }
.kx-arrow div strong { font-size: clamp(18px, 2.2vw, 26px); }

.kx-panel {
  position: absolute; inset: 0; z-index: 2;
  background: var(--mist) radial-gradient(rgba(15, 162, 190, 0.15) 1px, transparent 1.4px) 0 0 / 12px 12px;
  clip-path: polygon(0 0, calc(var(--w) * 125%) 0, calc(var(--w) * 125% - 25%) 100%, 0 100%);
  pointer-events: none;
}
.kx-pin.live .kx-panel { pointer-events: auto; }
.kx-in { padding: clamp(18px, 3vh, 34px) var(--pad) 44px; will-change: transform; }

.gacha-layout {
  position: relative; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(24px, 3.6vw, 48px);
  align-items: center; max-width: 1220px; margin: 0 auto;
}
/* Clean Single-Header WeChat Mini-Program Phone Shell + QR */
.mp-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mp-live-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px;
  background: #E6FBF2; color: #087443; border: 1.5px solid #087443; border-radius: 999px;
  font-size: 12.5px; font-weight: 800;
}
.mp-live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #12B76A; display: inline-block; }
.phone-bezel {
  width: 248px; padding: 9px; border-radius: 36px;
  background: #10243A; border: 2.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--lagoon);
}
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--foam); aspect-ratio: 9 / 19.2; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.qr-strip {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 276px;
  background: var(--foam); border: 2px solid var(--ink); padding: 10px 12px;
  box-shadow: 5px 5px 0 var(--ink);
}
.qr-strip img { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.qr-strip b { display: block; font-size: 14px; }
.qr-strip span { font-size: 12px; color: var(--ink-soft); }

/* Foil Pack Tear & Holographic Card Stage */
.gacha-stage {
  position: relative; background: var(--foam); border: 2.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink); padding: clamp(20px, 2.8vw, 32px); overflow: hidden;
}
.confetti-box { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.c-piece {
  position: absolute; width: 10px; height: 16px; top: 50%; left: 50%;
  animation: confBurst 1.05s cubic-bezier(0.16, 0.88, 0.3, 1) forwards;
}
@keyframes confBurst {
  0% { transform: translate(-50%, -50%) scale(0.4) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--dr)); opacity: 0; }
}
.gacha-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.gacha-top h3 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.easter-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pack-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foil-pack {
  position: relative; background: var(--sand); border: 2px solid var(--ink); padding: 12px;
  text-align: center; cursor: pointer; transition: transform 0.22s var(--pop), box-shadow 0.22s var(--pop);
  box-shadow: 5px 5px 0 var(--lagoon);
}
.foil-pack:hover { transform: translateY(-7px) rotate(-1.5deg); box-shadow: 9px 9px 0 var(--coral); }
.foil-pack figure {
  margin: 0 0 10px; aspect-ratio: 3 / 4; overflow: hidden; border: 1.5px solid var(--ink); position: relative;
}
.foil-pack figure::before {
  content: "✂ 点击撕封抽卡"; position: absolute; left: 0; right: 0; top: 0;
  background: rgba(12, 37, 64, 0.84); color: var(--gold);
  font-family: var(--f-mono); font-size: 10.5px; padding: 4px 0; border-bottom: 1.5px dashed var(--gold);
}
.foil-pack img { width: 100%; height: 100%; object-fit: cover; }
.foil-pack b { display: block; font-size: 14.5px; }
.foil-pack small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-muted); }

.drawn-view[hidden] { display: none; }
.drawn-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.holo-card {
  position: relative; aspect-ratio: 3 / 4.2; border: 2.5px solid var(--ink); border-radius: 16px;
  overflow: hidden; box-shadow: 8px 8px 0 var(--gold); cursor: pointer;
  animation: cardPop 0.45s var(--pop);
}
@keyframes cardPop { from { transform: scale(0.55) rotate(-10deg); opacity: 0; } to { transform: none; opacity: 1; } }
.holo-card img { width: 100%; height: 100%; object-fit: cover; }
.holo-card::after {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(125deg, transparent 36%, rgba(255, 255, 255, 0.55) 48%, rgba(59, 224, 240, 0.42) 52%, transparent 64%);
  animation: holoSheen 3.2s ease-in-out infinite; pointer-events: none;
}
@keyframes holoSheen { 0%, 100% { transform: translateX(-38%); } 50% { transform: translateX(38%); } }
.rarity-pill {
  display: inline-block; font-family: var(--f-mono); font-weight: 700; font-size: 12px;
  padding: 3px 10px; background: var(--ink); color: var(--gold); margin-bottom: 8px;
}
.drawn-info h4 { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.drawn-info .latin { margin: 0 0 12px; font-family: var(--f-classic); font-style: italic; font-size: 17px; color: var(--lagoon); }
.qa-box { background: var(--sand); border: 1.5px solid var(--ink); padding: 12px 14px; margin-bottom: 14px; }
.qa-box b { display: block; font-size: 14px; color: var(--coral); margin-bottom: 4px; }
.qa-box p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ==========================================================================
   SECTION 07 (#connect): Arcana-Style Collaboration Tiers + Contact Port
   ========================================================================== */
.tiers-fan {
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 18px 0 54px;
}
.tier-card {
  flex: 1 1 280px; max-width: 360px; background: var(--foam); border: 2px solid var(--ink);
  padding: 26px 24px; box-shadow: 8px 8px 0 var(--lagoon);
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transition: transform 0.28s var(--pop), box-shadow 0.28s var(--pop);
}
.tier-card:hover { z-index: 3; transform: translateY(-12px) rotate(0deg) scale(1.02); box-shadow: 12px 12px 0 var(--coral); }
.tier-card.hl { background: var(--ink); color: var(--foam); box-shadow: 8px 8px 0 var(--aqua); }
.tier-card .tk { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--lagoon); letter-spacing: 0.1em; }
.tier-card.hl .tk { color: var(--aqua); }
.tier-card h3 { margin: 8px 0 12px; font-family: var(--f-song); font-size: 25px; }
.tier-card ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.tier-card li { padding: 7px 0; border-top: 1px dashed var(--line); }
.tier-card.hl li { border-color: rgba(255, 255, 255, 0.2); }
.tier-card li::before { content: "▸ "; color: var(--lagoon); font-weight: 700; }
.tier-card.hl li::before { color: var(--aqua); }

.port-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  background: var(--foam); border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 26px 30px;
}
.port-bar h3 { margin: 0 0 6px; font-size: 22px; }
.port-bar p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.port-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.footer {
  padding: 28px var(--pad) 38px; background: var(--ink); color: rgba(255, 255, 255, 0.78);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  font-family: var(--f-mono); font-size: 12px;
}
.footer b { color: var(--aqua); }

/* ---------- Modals (6-Photo Lightbox & Detail Archive Card) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-bd {
  position: absolute; inset: 0;
  background: rgba(12, 37, 64, 0.78) repeating-linear-gradient(-50deg, rgba(59, 224, 240, 0.08) 0 14px, transparent 14px 28px);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative; z-index: 2; width: min(860px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--foam); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--aqua); padding: 26px 28px 22px;
  transform: rotate(-0.6deg); animation: modalPop 0.36s var(--pop);
}
@keyframes modalPop { from { opacity: 0; transform: translateY(36px) rotate(3deg) scale(0.9); } to { opacity: 1; transform: rotate(-0.6deg); } }
.modal-x {
  float: right; font-family: var(--f-mono); font-weight: 700; font-size: 12px;
  background: var(--ink); color: var(--foam); border: 0; padding: 6px 12px; cursor: pointer;
}
.modal-x:hover { background: var(--coral); }
.m-grid { clear: both; display: grid; grid-template-columns: 300px 1fr; gap: 26px; padding-top: 10px; align-items: start; }
.m-grid.wide { grid-template-columns: 1fr; gap: 16px; }
.m-grid figure { margin: 0; border: 2px solid var(--ink); overflow: hidden; background: var(--mist); }
.m-grid.wide figure { aspect-ratio: 16 / 10; }
.m-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.m-kicker { font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; color: var(--lagoon); }
.m-txt h3 { margin: 8px 0 8px; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
.m-txt .m-sub { margin: 0 0 12px; font-family: var(--f-mono); font-size: 12.5px; color: var(--coral); font-weight: 700; }
.m-txt p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.modal-nav {
  display: flex; justify-content: space-between; margin-top: 20px; padding-top: 12px; border-top: 2px solid var(--ink);
}
.modal-nav button {
  font-family: var(--f-mono); font-weight: 700; font-size: 13px; background: none; border: 0; color: var(--ink); cursor: pointer;
}
.modal-nav button:hover { color: var(--lagoon); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links, .nav-coord { display: none; }
  .menu-btn { display: inline-block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; left: 0; right: 0; top: var(--nav-h);
    background: var(--foam); border-bottom: 2px solid var(--ink); padding: 14px var(--pad);
  }
  .hero-foot { grid-template-columns: 1fr 1fr; }
  .decade-bento, .planet-grid, .gacha-layout { grid-template-columns: 1fr; }
  .polaroid-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; }
  .h-stat { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .np-panel, .np-panel.rt { grid-template-columns: 1fr; }
  .np-art, .np-panel.rt .np-art { order: 0; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); padding: 16px; }
  .np-txt, .np-panel.rt .np-txt { padding: 8px var(--pad) 20px; }
  .np-tabs { top: auto; bottom: 14px; right: 14px; }
  .orbit-stage { height: 400px; }
  .orbit-card { width: 148px; margin-left: -74px; margin-top: -55px; }
  .hs-div b { writing-mode: horizontal-tb; transform: none; font-size: 34px; }
  .w-card { flex-basis: 68vw; }
  .kx-pin { height: auto; }
  .kx-stage { position: relative; top: auto; height: auto; overflow: visible; }
  .kx-arrow { display: none; }
  .kx-panel { position: relative; clip-path: none; pointer-events: auto; }
  .pack-row { grid-template-columns: 1fr; }
  .drawn-wrap, .m-grid { grid-template-columns: 1fr; }
  .tier-card { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .chain-track, .paopao-swimmer, .holo-card::after { animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}
