/* SSINOCEAN Online Exhibition v2 — museum grammar
   Dark hall, visual-first, labels appear on approach */

:root {
  --mint: #00B0AD;
  --mint-ink: #006B69;
  --hall: #0b131d;
  --hall-2: #101c29;
  --ink: #f2f6f8;
  --dim: #8fa0b0;
  --line: rgba(255, 255, 255, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Noto Sans', 'Apple SD Gothic Neo', sans-serif;
  background: var(--hall);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: 'Outfit', 'Noto Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- vertical premiere hall ---------- */
.hall {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.hall::-webkit-scrollbar { display: none; }
.ex, .gate {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
}

/* entrance / exit gates */
.gate {
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 28px 16dvh;
  background:
    radial-gradient(700px 400px at 50% 110%, rgba(0, 176, 173, .22), transparent 65%),
    linear-gradient(180deg, #070d15, var(--hall-2));
}
.gate img.sym { height: 44px; margin-bottom: 26px; }
.gate-kicker {
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase; color: var(--mint);
  margin-bottom: 14px;
}
.gate h1 { font-size: clamp(34px, 9vw, 56px); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
.gate .sub { margin-top: 14px; font-size: 14.5px; color: var(--dim); max-width: 420px; line-height: 1.65; }
.gate .hint {
  position: absolute; bottom: 30px; left: 0; right: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--mint);
  animation: bob 2.2s ease-in-out infinite;
}
.gate .hint::after { content: ''; display: block; margin: 10px auto 0; width: 1px; height: 26px; background: linear-gradient(180deg, var(--mint), transparent); }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(7px); opacity: 1; } }

/* exhibit rooms — 3 layers: .ex-img (scroll parallax, JS transform)
   > .ex-zoom (approach zoom) > .ex-bg (ken burns + lights-on) */
.ex-img { position: absolute; inset: -12% 0; will-change: transform; }
.ex-zoom {
  position: absolute; inset: 0;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}
.ex.zoomed .ex-zoom { transform: scale(1.06); }
.ex-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: kenburns 18s ease-in-out infinite alternate;
  filter: brightness(.32);
  transition: filter 1.1s ease .1s;
}
.ex.seen .ex-bg { filter: brightness(1); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* 3D pedestal room */
.ex-bg.ex-3d {
  animation: none;
  background:
    radial-gradient(55% 42% at 50% 36%, #1c3040, transparent 72%),
    radial-gradient(140% 90% at 50% 115%, #10202e, transparent 60%),
    #0b131d;
}
.ex-3d model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.ex-bg.ex-depth { animation: none; background: #0b131d; }
.ex-3d::before {
  content: ''; position: absolute; left: 50%; bottom: 21%; transform: translateX(-50%);
  width: 54%; height: 6%; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 176, 173, .16), transparent 70%);
  pointer-events: none;
}
/* ---------- product hotspots ---------- */
.ex-bg.no-kb { animation: none; }
.spots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.spot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: auto; cursor: pointer; }
.spot::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 10px rgba(0, 176, 173, .9);
}
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(0, 176, 173, .8);
  animation: spot-pulse 2.2s ease-out infinite;
}
@keyframes spot-pulse {
  0% { transform: scale(.6); opacity: 1; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
.spot-tip {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(6px);
  width: max-content; max-width: 210px;
  background: rgba(10, 20, 32, .92); backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 176, 173, .45); border-radius: 10px;
  padding: 10px 13px; text-align: left;
  opacity: 0; pointer-events: none; transition: .25s;
}
.spot-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 1.5px; height: 12px; background: rgba(0, 176, 173, .7);
}
.spot.open .spot-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.spot.open::after { animation: none; opacity: 0; }
.spot-tip b { display: block; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; color: #fff; }
.spot-tip span { display: block; font-size: 11.5px; color: #b9c5d1; margin-top: 3px; line-height: 1.5; }
.spot.flip .spot-tip { left: auto; right: -6px; transform: translateY(6px); }
.spot.flip.open .spot-tip { transform: translateY(0); }
.spot.flip .spot-tip::after { left: auto; right: 16px; }

.rot-pill {
  position: absolute; z-index: 2; top: 18px; left: 50%; transform: translateX(-50%);
  font-family: 'Outfit', sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: #9ee6e4; background: rgba(0, 176, 173, .14);
  border: 1px solid rgba(0, 176, 173, .4); border-radius: 999px; padding: 6px 14px;
}
.ex::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 29, .35) 0%, transparent 30%, transparent 46%, rgba(7, 12, 20, .96) 100%);
}
.ex-label {
  position: relative; z-index: 2; margin-top: auto; width: 100%;
  padding: 0 26px calc(30px + env(safe-area-inset-bottom));
  max-width: 720px; margin-left: auto; margin-right: auto;
}
/* staggered entrance: kicker → title → exhibitor → CTA */
.ex-label > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.ex.seen .ex-label > * { opacity: 1; transform: translateY(0); }
.ex.seen .ex-label > *:nth-child(1) { transition-delay: .5s; }
.ex.seen .ex-label > *:nth-child(2) { transition-delay: .3s; }
.ex.seen .ex-label > *:nth-child(3) { transition-delay: .42s; }
.ex.seen .ex-label > *:nth-child(4) { transition-delay: .54s; }
.ex.seen .ex-label > *:nth-child(5) { transition-delay: .68s; }
.ex.seen .ex-label > *:nth-child(6) { transition-delay: .8s; }
.deep-go { display: block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--mint); }
.deep-go:hover { text-decoration: underline; }
.ex-no {
  position: absolute; top: -46dvh; right: 26px;
  font-family: 'Outfit', sans-serif; font-size: 12px; letter-spacing: .18em; color: rgba(255,255,255,.55);
}
.ex-flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--mint);
  margin-bottom: 12px;
}
.ex-flag::before { content: ''; width: 22px; height: 1.5px; background: var(--mint); }
.ex-flag, .ex-label .who { text-shadow: 0 1px 14px rgba(0, 0, 0, .65); }
.ex-label h2 { font-size: clamp(28px, 7vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.ex-label .who { margin-top: 8px; font-size: 14px; color: #c3cdd6; }
.ex-cta {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 13.5px; font-weight: 700;
  border-radius: 999px; padding: 12px 22px; transition: .2s;
}
.ex-cta:hover { background: var(--mint-ink); border-color: var(--mint-ink); }

/* exit gate extras */
.gate .row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.btn-mint, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 13px 26px; font-size: 14px; font-weight: 700; border: none; transition: .2s;
}
.btn-mint { background: var(--mint-ink); color: #fff; }
.btn-mint:hover { background: #008a87; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .4); }
.btn-ghost:hover { border-color: #fff; }
.gate .legal { position: absolute; bottom: 18px; left: 24px; right: 24px; font-size: 10.5px; color: #55667a; line-height: 1.6; }

/* ---------- lobby picker & hall tabs ---------- */
body { animation: page-in .45s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body.fade-out { opacity: 0; transition: opacity .26s ease; }

.picker {
  position: relative; height: 100dvh;
  scroll-snap-align: start; scroll-snap-stop: always;
  background: linear-gradient(180deg, #070d15, var(--hall-2));
  padding: 0 20px;
}
.pick-head { padding-top: calc(30px + env(safe-area-inset-top)); text-align: center; }
.pick-grid {
  position: absolute; left: 20px; right: 20px;
  top: calc(84px + env(safe-area-inset-top)); bottom: calc(28px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
}
.pick {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background-size: cover; background-position: center; cursor: pointer; padding: 0;
  transition: transform .2s, border-color .2s;
}
.pick:hover { transform: translateY(-3px); border-color: var(--mint); }
.pick::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 20, .18), rgba(7, 12, 20, .86) 82%);
}
.pick .pk-in {
  position: absolute; left: 16px; right: 16px; bottom: 15px; z-index: 1; text-align: left;
}
.pick b { display: block; font-family: 'Outfit', sans-serif; font-size: clamp(16px, 4.4vw, 21px); font-weight: 600; color: #fff; }
.pick .pk-in > span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--mint); margin-top: 4px; }

.cnav {
  position: fixed; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  top: 0; left: 0; right: 0;
  padding: calc(10px + env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(180deg, rgba(7, 12, 20, .92), rgba(7, 12, 20, .55) 75%, transparent);
}
.cn-logo { flex: none; display: flex; }
.cn-logo img { height: 22px; }
.cn-tab {
  border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(10, 20, 32, .5);
  color: #b9c5d1; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  padding: 8px 13px; white-space: nowrap; backdrop-filter: blur(6px);
}
.cn-tab[data-on="1"] { background: var(--mint-ink); border-color: var(--mint-ink); color: #fff; }
@media (min-width: 900px) {
  .cnav {
    top: 0; bottom: 0; left: 0; right: auto; width: 190px;
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 26px 18px;
    background: linear-gradient(90deg, rgba(7, 12, 20, .92), rgba(7, 12, 20, .55) 75%, transparent);
  }
  .cn-logo { margin-bottom: 18px; padding-left: 4px; }
  .cn-tab { text-align: left; padding: 11px 15px; font-size: 13.5px; }
  body.tabbed .ex-label { padding-left: 210px; max-width: none; margin: auto 0 0; }
  body.tabbed .gate { padding-left: 210px; }
}

/* ---------- approach sheet ---------- */
#veil {
  position: fixed; inset: 0; background: rgba(4, 8, 14, .6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: .3s; z-index: 90;
}
#sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
  background: #101c29; border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--line);
  padding: 14px 24px calc(28px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .9, .25, 1);
  max-width: 640px; margin: 0 auto; max-height: 78dvh; overflow-y: auto;
}
body.open #veil { opacity: 1; pointer-events: auto; }
body.open #sheet { transform: translateY(0); }
#sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); margin: 0 auto 18px; }
#sheet .s-flag { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--mint); }
#sheet h3 { font-size: 24px; font-weight: 600; margin-top: 8px; }
#sheet .s-who { font-size: 13.5px; color: var(--dim); margin-top: 4px; }
#sheet .s-desc { font-size: 14px; color: #c3cdd6; line-height: 1.7; margin-top: 14px; }
#sheet .s-specs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
#sheet .spec { font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: #c3cdd6; border-radius: 7px; padding: 5px 10px; }
#sheet .s-via { margin-top: 18px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
#sheet .s-via .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
#sheet .s-via.ssi { color: var(--mint); } #sheet .s-via.ssi .dot { background: var(--mint); }
#sheet .s-via.dir { color: #9db2c6; } #sheet .s-via.dir .dot { background: #9db2c6; }
#sheet .s-map { margin-top: 18px; }
#sheet .s-map:empty { display: none; }
#sheet .s-map svg {
  width: 100%; display: block; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
#sheet .s-map .arc { stroke-dasharray: 5 6; animation: chartdash 1.1s linear infinite; }
@keyframes chartdash { to { stroke-dashoffset: -11; } }
#sheet .s-map .cap { font-size: 11.5px; color: var(--dim); margin: 8px 4px 0; }
#sheet .s-row { display: flex; gap: 10px; margin-top: 22px; }
#sheet .s-row button { flex: 1; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 700; border: none; }
#sheet .s-follow { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25) !important; }
#sheet .s-quote { background: var(--mint-ink); color: #fff; }

/* ---------- scroll-driven side walk (version B) ---------- */
.walkwrap { position: relative; }
.walk-sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.track {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; will-change: transform;
}
.track .ex { position: relative; width: 100vw; height: 100%; flex: none; }
.walk-progress {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(38vw, 220px); height: 2px; border-radius: 1px;
  background: rgba(255, 255, 255, .16); z-index: 40;
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.walk-progress.on { opacity: 1; }
.walk-progress .dot {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 12px rgba(0, 176, 173, .9);
}

/* ---------- visit progress rail ---------- */
.rail {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  height: 32dvh; width: 2px; border-radius: 1px;
  background: rgba(255, 255, 255, .16); z-index: 40;
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.rail.on { opacity: 1; }
.rail .dot {
  position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 12px rgba(0, 176, 173, .9);
  transition: top .25s ease-out;
}
.rail .num {
  position: absolute; right: 12px; top: -3px;
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; color: rgba(255, 255, 255, .65);
  transition: top .25s ease-out;
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: #f2f6f8; color: #0b131d; font-size: 13.5px; font-weight: 600;
  border-radius: 10px; padding: 12px 20px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 99; max-width: 88vw; text-align: center;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- corridor (version C) ---------- */
.corr-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(7, 12, 20, .92), transparent);
}
.corr-top img { height: 22px; }
.corr-top .t { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--mint); }
.corr-top .sp { flex: 1; }
.corr-top a.back { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.corr-top a.back:hover { color: #fff; }

.corridor {
  display: flex; align-items: stretch;
  height: 100dvh; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background:
    linear-gradient(180deg, #060b12 0%, #0d1826 55%, #0d1826 74%, #091220 74.5%, #060c15 100%);
}
.corridor::-webkit-scrollbar { display: none; }

.hall-arch {
  flex: 0 0 78vw; max-width: 420px;
  scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 30px; position: relative;
}
.hall-arch .k { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--mint); margin-bottom: 12px; }
.hall-arch h2 { font-size: clamp(26px, 6vw, 38px); font-weight: 600; }
.hall-arch p { margin-top: 10px; font-size: 13px; color: var(--dim); max-width: 260px; line-height: 1.6; }
.hall-arch::before, .hall-arch::after {
  content: ''; position: absolute; top: 12dvh; bottom: 12dvh; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.hall-arch::before { left: 8px; } .hall-arch::after { right: 8px; }

.piece {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 4vw; position: relative;
}
.piece .spot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46vh; height: 34dvh; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 244, 214, .13), transparent 75%);
}
.frame {
  position: relative;
  height: 52dvh; aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, .18);
  outline: 10px solid #0a1420;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .6);
  background-size: cover; background-position: center;
  cursor: pointer; transition: transform .3s ease;
}
.piece:hover .frame { transform: scale(1.02); }
.frame .new {
  position: absolute; top: 12px; left: 12px;
  font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .2em;
  background: var(--mint); color: #04211f; border-radius: 4px; padding: 4px 8px;
}
.plaque { margin-top: 3.2dvh; text-align: center; max-width: 300px; }
.plaque b { font-family: 'Outfit', sans-serif; font-size: 16.5px; font-weight: 600; display: block; }
.plaque span { font-size: 12px; color: var(--dim); display: block; margin-top: 4px; }
.plaque .peek { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-top: 8px; display: inline-block; }

.corr-end {
  flex: 0 0 86vw; max-width: 460px;
  scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 32px;
}

.corr-hint {
  position: fixed; bottom: 22px; left: 0; right: 0; z-index: 50; text-align: center;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
  animation: slide 2.4s ease-in-out infinite; pointer-events: none;
}
@keyframes slide { 0%, 100% { transform: translateX(0); opacity: .7; } 50% { transform: translateX(10px); opacity: 1; } }

@media (min-width: 900px) {
  .ex-label { padding-bottom: 48px; }
  .ex-no { right: calc(34px - (100vw - 100%) / 2); }
  .frame { height: 58dvh; }
}
