/* ===== Rich layers — depth, HUD, motion ===== */

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 10001;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--purple));
  box-shadow: 0 0 12px var(--purple-glow);
  transition: width 0.08s linear;
}

/* Ambient orbs */
.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.ambient-orb.a { width: 420px; height: 420px; background: rgba(168,85,247,0.25); top: 10%; left: -8%; }
.ambient-orb.b { width: 320px; height: 320px; background: rgba(34,211,238,0.15); top: 55%; right: -5%; animation-delay: -6s; }
.ambient-orb.c { width: 260px; height: 260px; background: rgba(168,85,247,0.18); bottom: 5%; left: 30%; animation-delay: -12s; }

@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.08); }
}

/* Hero HUD */
.hero-hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: rgba(168,85,247,0.45);
  border-style: solid;
  border-width: 0;
  opacity: 0.7;
}

.hud-corner.tl { top: calc(var(--nav-h) + 1rem); left: 1.5rem; border-top-width: 2px; border-left-width: 2px; }
.hud-corner.tr { top: calc(var(--nav-h) + 1rem); right: 1.5rem; border-top-width: 2px; border-right-width: 2px; }
.hud-corner.bl { bottom: 5rem; left: 1.5rem; border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner.br { bottom: 5rem; right: 1.5rem; border-bottom-width: 2px; border-right-width: 2px; }

.hero-stats-rail {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.stat-chip {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  padding: 0.5rem 0.75rem;
  background: rgba(8, 8, 18, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  color: var(--text-dim);
  text-align: right;
  animation: chipIn 0.8s ease backwards;
}

.stat-chip:nth-child(1) { animation-delay: 0.2s; border-color: rgba(168,85,247,0.3); color: var(--purple); }
.stat-chip:nth-child(2) { animation-delay: 0.35s; }
.stat-chip:nth-child(3) { animation-delay: 0.5s; }
.stat-chip:nth-child(4) { animation-delay: 0.65s; color: var(--cyan); border-color: rgba(34,211,238,0.25); }

.stat-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

@keyframes chipIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(168,85,247,0.25);
  background: rgba(168,85,247,0.08);
  color: var(--silver);
}

/* Marquee */
.marquee-band {
  position: relative;
  z-index: 2;
  padding: 0.85rem 0;
  background: rgba(8, 8, 16, 0.45);
  backdrop-filter: blur(10px);
  border-block: 1px solid rgba(168,85,247,0.15);
  overflow: hidden;
}

.marquee-band::before,
.marquee-band::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-band::before { left: 0; background: linear-gradient(90deg, rgba(7,7,13,0.9), transparent); }
.marquee-band::after { right: 0; background: linear-gradient(-90deg, rgba(7,7,13,0.9), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  padding: 0 2rem;
  white-space: nowrap;
}

.marquee-track span em {
  font-style: normal;
  color: var(--purple);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section divider */
.section-divider {
  position: relative;
  height: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.5), rgba(34,211,238,0.4), transparent);
}

.section-divider::after {
  content: '◆';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.45rem;
  color: var(--purple);
  background: var(--bg);
  padding: 0 0.75rem;
}

/* Protocol cards */
.protocol-section {
  position: relative;
  z-index: 1;
  padding: 5rem clamp(1rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.protocol-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: rgba(12, 12, 24, 0.55);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
}

.protocol-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  opacity: 0;
  transition: opacity 0.4s;
}

.protocol-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168,85,247,0.35);
  box-shadow: 0 24px 60px rgba(168,85,247,0.12);
}

.protocol-card:hover::before { opacity: 1; }

.protocol-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(168,85,247,0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.protocol-card h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.protocol-card p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.quote-banner {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(168,85,247,0.2);
  background:
    linear-gradient(135deg, rgba(168,85,247,0.08), rgba(34,211,238,0.04)),
    rgba(8, 8, 18, 0.6);
  backdrop-filter: blur(20px);
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--silver);
}

.quote-banner cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--purple);
  font-style: normal;
}

/* Reel frame corners */
.reel-frame {
  position: relative;
}

.reel-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(34,211,238,0.5);
  z-index: 3;
  pointer-events: none;
}

.reel-bracket.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.reel-bracket.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.reel-bracket.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.reel-bracket.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* Bento gallery */
.gallery-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-glass);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
}

.bento-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.3);
  z-index: 2;
}

.bento-item.featured {
  grid-row: span 2;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 0.6s ease;
}

.bento-item:hover img { transform: scale(1.05); }

a.bento-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Cutout 3D gallery cards */
.cutout-card {
  background: radial-gradient(ellipse 80% 60% at 50% 85%, rgba(168,85,247,0.12), rgba(8,8,18,0.9));
  min-height: 280px;
}

.cutout-card .bento-overlay {
  background: linear-gradient(0deg, rgba(7,7,13,0.92) 0%, transparent 55%);
}

.cutout-stage {
  position: relative;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 900px;
  padding: 1.5rem 1rem 2.5rem;
  overflow: hidden;
}

.cutout-stage-sm { min-height: 200px; }

.cutout-platform {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) rotateX(72deg);
  width: 55%;
  height: 2.5rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34,211,238,0.35), rgba(168,85,247,0.08) 60%, transparent 70%);
  box-shadow: 0 0 40px rgba(168,85,247,0.25);
  animation: platformPulse 3s ease-in-out infinite;
}

@keyframes platformPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) rotateX(72deg) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) rotateX(72deg) scale(1.06); }
}

.cutout-img {
  position: relative;
  z-index: 2;
  max-height: 92%;
  width: auto;
  max-width: 88%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 32px rgba(168,85,247,0.35)) drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transform: translateZ(24px) translateY(0);
  animation: cutoutFloat 4.5s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cutout-card:hover .cutout-img {
  transform: translateZ(40px) translateY(-8px) scale(1.03);
}

@keyframes cutoutFloat {
  0%, 100% { transform: translateZ(24px) translateY(0); }
  50% { transform: translateZ(32px) translateY(-10px); }
}

.cutout-glow {
  position: absolute;
  inset: 20% 15% 25%;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 60%, rgba(168,85,247,0.2), transparent 65%);
  pointer-events: none;
}

/* Final public archive cards — live content, no production cutout language. */
.live-stage-card,
.gesture-entry-card {
  min-height: 280px;
  background: #070812;
  overflow: hidden;
}

.archive-portrait-card {
  background:
    radial-gradient(circle at 50% 30%, rgba(168,85,247,.20), transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(34,211,238,.08), transparent 45%),
    #070812;
}

.archive-portrait-card > img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 20%;
  filter:drop-shadow(0 18px 32px rgba(0,0,0,.28));
}

.archive-live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(.72) contrast(1.05) brightness(.74);
}

.archive-live-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 38%, transparent 15%, rgba(9,8,20,.1) 48%, rgba(7,7,15,.82) 100%);
}

.live-tag i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #7ee7a7;
  box-shadow: 0 0 12px rgba(126,231,167,.8);
}

.gesture-entry-card {
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(circle at 70% 20%, rgba(34,211,238,.16), transparent 42%),
    radial-gradient(circle at 18% 65%, rgba(168,85,247,.18), transparent 44%),
    #070812;
}

.gesture-entry-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  grid-template-columns: repeat(3, auto);
  gap: .75rem;
  padding-bottom: 3.5rem;
  text-align: center;
}

.gesture-entry-visual span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201,184,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  font-size: 1.25rem;
  box-shadow: 0 0 24px rgba(168,85,247,.08);
}

.gesture-entry-visual b {
  grid-column: 1 / -1;
  margin-top: .2rem;
  color: rgba(226,219,245,.62);
  font: .52rem/1.6 var(--font-display);
  letter-spacing: .14em;
}

.bilingual-line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.bilingual-line span:last-child {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.section-sub { margin-top: -0.5rem; }

.hero-sub .sub-en,
.quote-banner .quote-en {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78em;
  color: var(--text-muted);
  font-style: normal;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7,7,13,0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.bento-overlay .tag {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.bento-overlay h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.bento-overlay p {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Section nav dots */
.section-nav {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.section-nav a {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,0.4);
  background: transparent;
  transition: all 0.3s;
  position: relative;
  padding: 10px;
  background-clip: content-box;
  box-sizing: content-box;
}

.section-nav a.active {
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple-glow);
  transform: scale(1.3);
}

.section-nav a::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.section-nav a:hover::after,
.section-nav a.active::after { opacity: 1; color: var(--text); }

/* Stagger reveal */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.42s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Debut strip */
.debut-strip {
  position: relative;
  z-index: 1;
  padding: 4rem clamp(1rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.debut-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(168,85,247,0.25);
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(168,85,247,0.12), transparent),
    rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(20px);
}

.debut-strip h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.debut-strip p {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.7;
}

.debut-date-block {
  text-align: center;
  padding: 1.25rem 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(34,211,238,0.3);
  background: rgba(34,211,238,0.06);
}

.debut-date-block .date {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan-glow);
}

.debut-date-block small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.home-page .os-side-label { z-index: 6; opacity: 0.5; }

@media (max-width: 900px) {
  .hero-stats-rail { display: none; }
  .protocol-grid { grid-template-columns: 1fr; }
  .gallery-bento { grid-template-columns: 1fr; }
  .bento-item.featured { grid-row: span 1; }
  .debut-strip-inner { grid-template-columns: 1fr; text-align: center; }
  .debut-strip p { max-width: none; }
  .section-nav { display: none; }
}
