/* Gyuni Player — ultra-CSS landing
   - Intentional “design > content” aesthetic.
   - Scroll effects are primarily CSS (sticky + progressive-enhanced scroll timelines).
*/

:root{
  --bg0:#05060a;
  --bg1:#070814;
  --ink:#e9ecff;
  --muted:rgba(233,236,255,.72);
  --faint:rgba(233,236,255,.10);
  --glass:rgba(10,12,20,.44);
  --glass2:rgba(255,255,255,.06);
  --line:rgba(255,255,255,.10);
  --hot:#a8ff5c;
  --vio:#8a6bff;
  --aqua:#27f0ff;
  --pink:#ff4bd8;
  --gold:#ffd26a;

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow2: 0 10px 25px rgba(0,0,0,.35);

  --radius: 22px;
  --radius2: 30px;

  --pad: clamp(18px, 3vw, 42px);
  --max: 1120px;
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; background: var(--bg0); }
body{
  margin:0;
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "SF Pro Display", "SF Pro Text", Segoe UI, Roboto, Helvetica, Arial, "Noto Sans KR", sans-serif;
  letter-spacing: -0.012em;
  overflow-x:auto;
  overflow-y:hidden;
  background:
    radial-gradient(1200px 700px at 18% 8%, rgba(138,107,255,.22), transparent 55%),
    radial-gradient(900px 600px at 82% 10%, rgba(39,240,255,.14), transparent 60%),
    radial-gradient(900px 800px at 50% 100%, rgba(255,75,216,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 60%, #040512);
}

/* Presentation deck: “scroll” triggers a crossfade to the next scene (Kudanil-style).
   The page itself does NOT move; scenes are stacked and JS switches active scene.
*/
.has-deck{
  overflow-x: auto;
  overflow-y: hidden;
}
.has-deck .deck{
  height: 100vh;
  width: 100%;
  min-width: var(--max); /* keep desktop layout fixed; narrow windows scroll horizontally */
  overflow: hidden; /* no page scrolling */
  position: relative;
}
.has-deck .deck::after{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
  background:
    radial-gradient(900px 520px at 50% 20%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(5,6,10,.78), rgba(5,6,10,.0) 55%);
  mix-blend-mode: overlay;
}
.has-deck .deck.is-turning::after{
  opacity: 1;
}

/* Scene stack (crossfade) — only one visible at a time */
.scene{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(0, 14px, 0) scale(1.01);
  transition:
    opacity .55s ease,
    transform .65s cubic-bezier(.2,.9,.18,1);
  overflow: visible; /* allow content to be visible */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.scene.is-active{
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  transform: translate3d(0,0,0) scale(1);
  overflow: visible; /* ensure content is visible */
}
.scene.is-leaving{
  opacity: 0;
  z-index: 5;
  transform: translate3d(0,-10px,0) scale(1.005);
}

/* NOTE: We intentionally avoid `visibility` toggling.
   Some browsers can get “stuck hidden” under rapid class churn.
   Opacity + pointer-events is enough here. */

/* JS-off fallback: show first scene only if JS hasn't initialized */
body:not(.js-scenes-ready) .scene:first-child{
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
  visibility: visible;
  transform: translate3d(0,0,0) scale(1);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: none; }

::selection{
  background: rgba(39,240,255,.22);
  color: var(--ink);
}

/* Ambient “film grain” */
.grain{
  position: fixed;
  inset: -30%;
  pointer-events:none;
  opacity:.18;
  mix-blend-mode: overlay;
  filter: contrast(120%) brightness(110%);
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,.06) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(120deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.10) 0 1px, transparent 1px 3px);
  transform: translate3d(0,0,0);
  animation: grainFloat 9s linear infinite;
}
@keyframes grainFloat{
  0%{ transform: translate3d(-2%, -3%, 0) rotate(-.6deg); }
  50%{ transform: translate3d(3%, 2%, 0) rotate(.6deg); }
  100%{ transform: translate3d(-2%, -3%, 0) rotate(-.6deg); }
}

/* Massive glow orbs */
.orbs{
  position: fixed;
  inset: 0;
  pointer-events:none;
  opacity:.9;
  filter: blur(28px) saturate(130%);
}
.orb{
  position:absolute;
  width: min(62vmax, 900px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(255,255,255,.04), transparent 62%);
  mix-blend-mode: screen;
  animation: orb 14s ease-in-out infinite;
}
.orb.o1{ left:-18vmax; top:-16vmax; background:
  radial-gradient(circle at 35% 35%, rgba(138,107,255,.40), transparent 55%),
  radial-gradient(circle at 55% 55%, rgba(39,240,255,.22), transparent 60%); }
.orb.o2{ right:-22vmax; top:-12vmax; animation-duration: 18s; background:
  radial-gradient(circle at 35% 35%, rgba(255,75,216,.32), transparent 58%),
  radial-gradient(circle at 55% 55%, rgba(255,210,106,.16), transparent 62%); }
.orb.o3{ left:10vmax; bottom:-26vmax; animation-duration: 16s; background:
  radial-gradient(circle at 40% 40%, rgba(39,240,255,.26), transparent 60%),
  radial-gradient(circle at 55% 55%, rgba(168,255,92,.14), transparent 64%); }
@keyframes orb{
  0%{ transform: translate3d(0,0,0) scale(1); }
  45%{ transform: translate3d(4vmax, -2vmax, 0) scale(1.06); }
  100%{ transform: translate3d(0,0,0) scale(1); }
}

/* ---------- Layout ---------- */
.wrap{
  width: var(--max);
  margin: 0 auto;
}

.topbar{
  position: fixed;
  inset: 16px 0 auto 0;
  z-index: 50;
  pointer-events: none;
}
.topbar .wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
  width: calc(100% - 2*var(--pad));
  max-width: none;
}

.brand{
  pointer-events: auto;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
}
.brand .mark{
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: url("img/GP_icon_32x32.png") center / contain no-repeat;
  box-shadow: none;
}
.brand .name{
  font-weight: 680;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.nav{
  pointer-events: auto;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,12,20,.62), rgba(10,12,20,.22));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  max-width: calc(100vw - 220px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar{ height: 0; }
.nav{ scrollbar-width: none; }
.nav a{
  position:relative;
  font-size: 12.5px;
  color: rgba(233,236,255,.86);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  flex: 0 0 auto;
  white-space: nowrap;
}
.nav a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(233,236,255, .98);
}
.nav a.active{
  background:
    radial-gradient(circle at 20% 10%, rgba(39,240,255,.18), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border-color: rgba(39,240,255,.26);
  color: rgba(233,236,255, .98);
}
.nav a.active:hover{
  transform: translateY(-1px);
}
.nav a.emph{
  background:
    radial-gradient(circle at 20% 10%, rgba(39,240,255,.22), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border-color: rgba(39,240,255,.22);
}

/* Language switcher */
.lang{
  pointer-events: auto;
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,12,20,.62), rgba(10,12,20,.22));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  flex: 0 0 auto;
}
.lang a{
  font-size: 12px;
  letter-spacing: .06em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(233,236,255,.82);
}
.lang a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(233,236,255,.98);
}
.lang a[aria-current]{
  background: rgba(39,240,255,.10);
  border-color: rgba(39,240,255,.24);
  color: rgba(233,236,255,.98);
}

/* Mobile menu (drawer) — default hidden, enabled via (pointer: coarse) media query */
.nav-check{
  position: fixed;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle{
  display:none;
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.nav-toggle::before{
  content:"";
  width: 16px;
  height: 10px;
  background:
    linear-gradient(rgba(233,236,255,.9), rgba(233,236,255,.9)) 0 0 / 100% 2px no-repeat,
    linear-gradient(rgba(233,236,255,.7), rgba(233,236,255,.7)) 0 50% / 100% 2px no-repeat,
    linear-gradient(rgba(233,236,255,.55), rgba(233,236,255,.55)) 0 100% / 100% 2px no-repeat;
  opacity: .9;
}

.nav-drawer{
  display:none;
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}
.nav-scrim{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .22s ease;
}
.nav-side{
  position:absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 86vw);
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(10,12,20,.88), rgba(10,12,20,.62));
  border-left: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(16px);
  transform: translateX(102%);
  transition: transform .26s cubic-bezier(.2,.9,.18,1);
}
.nav-side .nav-title{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 10px 8px;
  color: rgba(233,236,255,.82);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-side a{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(233,236,255,.92);
  margin: 10px 8px;
}
.nav-side a:active{
  background: rgba(255,255,255,.08);
  border-color: rgba(39,240,255,.22);
}
.nav-side a.active{
  border-color: rgba(39,240,255,.24);
  background: rgba(39,240,255,.10);
}

#nav-check:checked ~ .nav-drawer{
  pointer-events: auto;
  opacity: 1;
}
#nav-check:checked ~ .nav-drawer .nav-scrim{
  opacity: 1;
}
#nav-check:checked ~ .nav-drawer .nav-side{
  transform: translateX(0);
}

/* ---------- Hero ---------- */
.hero{
  min-height: 100vh;
  display:flex;
  align-items: center;
  padding: calc(120px + 2vh) 0 80px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
}

.headline{
  position: relative;
}
.kicker{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  color: rgba(233,236,255,.92);
  font-size: 12.5px;
}
.kicker .dot{
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--hot);
  box-shadow: 0 0 25px rgba(168,255,92,.55);
}

h1{
  margin: 18px 0 10px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .92;
  letter-spacing: -0.05em;
  font-weight: 780;
  text-wrap: balance;
  background:
    linear-gradient(90deg, rgba(233,236,255,.98), rgba(233,236,255,.72)),
    radial-gradient(circle at 30% 30%, rgba(39,240,255,.35), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(255,75,216,.28), transparent 55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.55));
}

.sub{
  margin: 12px 0 22px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

.cta{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  color: rgba(233,236,255,.92);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: .01em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(39,240,255,.25);
  background: rgba(255,255,255,.08);
}
.btn.primary{
  border-color: rgba(39,240,255,.28);
  background:
    radial-gradient(circle at 20% 10%, rgba(39,240,255,.22), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
}
.btn .chev{
  width: 10px; height: 10px;
  border-right: 2px solid rgba(233,236,255,.75);
  border-bottom: 2px solid rgba(233,236,255,.75);
  transform: rotate(-45deg);
}

.hero-art{
  position: relative;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(500px 360px at 20% 20%, rgba(39,240,255,.22), transparent 55%),
    radial-gradient(520px 360px at 80% 30%, rgba(255,75,216,.18), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(138,107,255,.18), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 460px;
}
.hero-art::before{
  content:"";
  position:absolute; inset:-40%;
  background:
    conic-gradient(from 190deg at 50% 50%,
      rgba(39,240,255,.0),
      rgba(39,240,255,.18),
      rgba(255,75,216,.12),
      rgba(138,107,255,.14),
      rgba(39,240,255,.0));
  filter: blur(24px);
  animation: spin 18s linear infinite;
}
.hero-art::after{
  content:"";
  position:absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 10px);
  opacity:.08;
  mix-blend-mode: overlay;
}
@keyframes spin{
  to{ transform: rotate(360deg); }
}

.hero-card{
  position:absolute;
  inset: auto 16px 16px 16px;
  padding: 18px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,12,20,.74), rgba(10,12,20,.26));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.hero-card .row{
  display:flex; gap: 10px; align-items:center; justify-content:space-between;
}
.hero-card .tag{
  display:inline-flex; align-items:center; gap: 8px;
  font-size: 12px;
  color: rgba(233,236,255,.78);
}
.hero-card .tag b{ color: rgba(233,236,255,.95); font-weight: 760; }
.hero-card .chips{
  display:flex; gap: 8px; flex-wrap: wrap; justify-content:flex-end;
}
.chip{
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(233,236,255,.82);
}
.chip.hot{ border-color: rgba(168,255,92,.22); box-shadow: 0 0 0 1px rgba(168,255,92,.08) inset; }
.chip.vio{ border-color: rgba(138,107,255,.22); box-shadow: 0 0 0 1px rgba(138,107,255,.08) inset; }
.chip.aqua{ border-color: rgba(39,240,255,.22); box-shadow: 0 0 0 1px rgba(39,240,255,.08) inset; }
.chip.pink{ border-color: rgba(255,75,216,.20); box-shadow: 0 0 0 1px rgba(255,75,216,.08) inset; }

/* ---------- Panels (scroll “curtain”) ---------- */
.panels{
  position: relative;
  padding: 0;
}

.panel{
  position: relative;
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.06);
}
.panel:last-child{
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.panel .sticky{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items: center;
  padding: 70px 0;
}

/* “Scene” framing: hide the sense of continuous page flow */
.has-deck .panel{
  border-top-color: rgba(255,255,255,.07);
}
.has-deck .panel::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  /* soft vignette to reduce “scrolling page” cues */
  background:
    radial-gradient(900px 700px at 50% 20%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(1200px 900px at 50% 110%, rgba(0,0,0,.55), transparent 55%);
  opacity: .75;
}

.panel-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.media-col{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.media-hint{
  font-size: 12.5px;
  color: rgba(233,236,255,.68);
  letter-spacing: -0.01em;
}

.stage-media{
  cursor: pointer;
  position: relative;
  transform: translateZ(0);
  transition: transform .18s ease;
}
.stage-media:focus-visible{
  outline: 3px solid rgba(39,240,255,.22);
  outline-offset: 6px;
}
.stage-media.is-playing{
  transform: scale(1.03);
  z-index: 30;
}
.scene.is-active .stage-media.is-playing .img{
  opacity: 0;
}
.stage-video{
  position:absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0,0,0,.92);
  box-shadow:
    0 40px 120px rgba(0,0,0,.55),
    0 16px 40px rgba(0,0,0,.35);
  z-index: 1;
}
.stage-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,12,20,.62);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  cursor: pointer;
  z-index: 2;
}
.stage-close::before,
.stage-close::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: rgba(233,236,255,.85);
  transform-origin: center;
}
.stage-close::before{ transform: translate(-50%,-50%) rotate(45deg); }
.stage-close::after{ transform: translate(-50%,-50%) rotate(-45deg); }
.stage-close:active{
  transform: scale(.98);
  background: rgba(255,255,255,.08);
  border-color: rgba(39,240,255,.22);
}

/* ---------- Showcase (LAVA-like “gallery scene”) ---------- */
.showcase{
  display:grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 44px;
  align-items: center;
  position: relative;
}
.big-no{
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(233,236,255,.50);
  font-weight: 760;
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  margin-bottom: 14px;
}

.rail{
  position: relative;
  display:flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.rail::-webkit-scrollbar{ height: 10px; }
.rail::-webkit-scrollbar-track{ background: transparent; }
.rail::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}
.rail::-webkit-scrollbar-thumb:hover{ background: rgba(39,240,255,.18); background-clip: padding-box; }

.shot{
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: min(520px, 82vw);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(10,12,20,.62), rgba(10,12,20,.22));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  overflow:hidden;
  display:flex;
  flex-direction: column;
}
.shot-top, .shot-bottom{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 14px 14px;
  gap: 12px;
}
.shot-title{
  font-weight: 760;
  letter-spacing: -0.02em;
}
.shot-tag{
  font-size: 12px;
  color: rgba(233,236,255,.70);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.shot-media{
  position: relative;
  height: clamp(240px, 38vh, 340px);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

/* Faux before/after reveal (CSS only): the “after” slides in like a curtain */
.ba{
  position:absolute;
  inset: 10px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.ba::before{
  display: none; /* 이미지만 보이게 */
}
.ba::after{
  content:"";
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  filter: saturate(116%) contrast(108%);
  opacity: 0;
  transition: opacity .7s ease;
}
.scene.is-active .ba::after{
  opacity: 1;
}
.ba-ui::before, .ba-ui::after{ background-image: url('img/guide_02.png'); }
.ba-sub::before, .ba-sub::after{ background-image: url('img/guide_03.png'); }
.ba-theme::before, .ba-theme::after{ background-image: url('img/guide_04.png'); }

/* Showcase fade in (same as other panels) */
.scene.is-active .shot{ animation: fadeIn .7s both; }
.scene.is-active .shot:nth-child(1){ animation-delay: .1s; }
.scene.is-active .shot:nth-child(2){ animation-delay: .2s; }
.scene.is-active .shot:nth-child(3){ animation-delay: .3s; }

.panel h2{
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 760;
  text-wrap: balance;
}
.panel p{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
  max-width: 60ch;
}

.panel .meta{
  display:flex; gap: 10px; flex-wrap: wrap;
}
.pill{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(233,236,255,.82);
  font-size: 12px;
}
.pill i{
  width: 10px; height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 25px rgba(255,255,255,.08);
}
.pill.aqua i{ background: rgba(39,240,255,.60); box-shadow: 0 0 22px rgba(39,240,255,.35); }
.pill.pink i{ background: rgba(255,75,216,.60); box-shadow: 0 0 22px rgba(255,75,216,.30); }
.pill.vio i{ background: rgba(138,107,255,.60); box-shadow: 0 0 22px rgba(138,107,255,.30); }
.pill.hot i{ background: rgba(168,255,92,.65); box-shadow: 0 0 22px rgba(168,255,92,.26); }
.pill.gold i{ background: rgba(255,210,106,.70); box-shadow: 0 0 22px rgba(255,210,106,.25); }

/* Simple image display — just the image, fade in on scene activation */
.stage{
  position: relative;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  min-height: 0;
}
.stage .img{
  display:block;
  width: 100%;
  max-width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .7s ease;
  border-radius: 0;
  box-shadow:
    0 40px 120px rgba(0,0,0,.55),
    0 16px 40px rgba(0,0,0,.35);
  filter: saturate(108%) contrast(104%);
}
.scene.is-active .stage .img{
  opacity: 1;
}

/* Text fade in (same as showcase) */
.scene .copy{
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity .7s ease .1s, transform .7s ease .1s;
  position: relative;
  z-index: 1;
  will-change: opacity, transform;
}
.scene.is-active .copy{ 
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------- Footer / Legal ---------- */
.footer{
  padding: 70px 0 80px;
}
.has-deck .footer{
  min-height: 100vh;
  display:flex;
  align-items: center;
  padding: 120px 0 90px;
}
.footer-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.footer-card .inner{
  padding: var(--pad);
  display:flex;
  gap: 16px;
  align-items:flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer h3{
  margin:0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.footer p{
  margin:0;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.65;
  font-size: 14px;
}
.links{
  display:flex; gap: 10px; flex-wrap: wrap; justify-content:flex-end;
}
.links a{
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(233,236,255,.84);
}
.links a:hover{ border-color: rgba(39,240,255,.22); }

/* Info cards (page 06) */
.info-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.info-grid .footer-card{
  height: 100%;
}
.info-grid .footer-card .inner{
  display: block;
}

/* ---------- Simple page shell (support/privacy) ---------- */
.page{
  min-height: 100vh;
  padding: 120px 0 80px;
}
.page h1{
  margin-top: 0;
  font-size: clamp(34px, 4.2vw, 56px);
}
.card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: var(--pad);
}
.card h2{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.card p{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}
.card code{
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(233,236,255,.90);
}
.divider{
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 18px 0;
}

/* ---------- Responsiveness ---------- */
/* Mobile template: allow fluid layout + vertical scroll + side menu.
   Desktop keeps a fixed layout; when too narrow, the browser can horizontal-scroll.
*/
@media (pointer: coarse){
  body{
    overflow-x: hidden;
    overflow-y: auto;
  }
  .has-deck{
    overflow-x: hidden;
    overflow-y: auto;
  }
  .has-deck .deck{
    height: auto;
    overflow: visible;
    min-width: 0;
  }
  /* Stack scenes as normal sections */
  .scene{
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
    z-index: auto;
  }
  .scene.is-leaving{ opacity: 1; transform: none; }

  /* Mobile: show content by default (desktop uses .is-active to fade-in) */
  .scene .copy{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .stage .img{
    opacity: 1;
    transition: none;
  }
  .stage-media.is-playing .img{
    opacity: 0;
  }

  .wrap{
    width: calc(100% - 2*var(--pad));
  }
  .panel{
    height: auto;
    min-height: auto;
  }
  .panel .sticky{
    min-height: auto;
    padding: 110px 0 70px;
  }
  .panel-grid{ grid-template-columns: 1fr; }
  .showcase{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: 1fr; }

  /* Desktop pill-nav -> mobile drawer */
  .nav{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .nav-drawer{ display:block; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .grain, .orb, .hero-art::before{ animation: none !important; }
  .scene{ transition: none !important; }
  .scene.is-active .curtain,
  .scene.is-active .frame,
  .scene.is-active .copy,
  .scene.is-active .frame .img,
  .scene.is-active .shot,
  .scene.is-active .ba::after{
    animation: none !important;
  }
}

