@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Syne:wght@700;800&display=swap");

:root {
  --carbon: #080807;
  --carbon-elev: #10100e;
  --carbon-card: #141412;
  --bone: #f2efe9;
  --bone-dim: #e5e0d6;
  --ink: #0b0b0a;
  --fg: #f4f1ea;
  --fg-sub: #b8b3a8;
  --fg-muted: #78746c;
  --signal: #ff3d1f;
  --signal-hover: #ff573d;
  --volt: #d4ff00;
  --ok: #2ee59d;
  --warn: #ffb020;
  --line: rgba(244, 241, 234, 0.13);
  --line-strong: rgba(244, 241, 234, 0.32);
  --line-dark: rgba(11, 11, 10, 0.15);
  --font-kr: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-disp: "Syne", "Pretendard Variable", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--carbon);
  color: var(--fg);
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-kr);
  background: var(--carbon);
  color: var(--fg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

/* ── 필름 그레인 & 상단 스크롤 프로그레스 ── */
.film-grain {
  position: fixed;
  inset: -40%;
  z-index: 900;
  pointer-events: none;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.55s steps(3) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -2%); }
  100% { transform: translate(0, 0); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--signal);
  z-index: 950;
  transition: width 0.06s linear;
}

/* ── 커스텀 마그네틱 커서 (데스크톱 전용) ── */
.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fg);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 980;
  transform: translate(-50%, -50%);
  transition: width 0.28s var(--ease-out-expo), height 0.28s var(--ease-out-expo), border-radius 0.28s var(--ease-out-expo), background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #000;
  overflow: hidden;
}

.custom-cursor.is-hover {
  width: 54px;
  height: 54px;
}

.custom-cursor.is-reel {
  width: 92px;
  height: 32px;
  border-radius: 999px;
  mix-blend-mode: normal;
  background: var(--signal);
  color: #fff;
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* ── 공통 그리드 & 유틸리티 ── */
.frame-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3.6vw, 52px);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.serif-it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.crosshair {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  user-select: none;
  line-height: 1;
}

/* ── 고정 아키텍처 헤더 ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 64px;
  background: rgba(8, 8, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-grid {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3.6vw, 52px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 9px;
  height: 9px;
  background: var(--signal);
  display: inline-block;
}

.header-telemetry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--fg-sub);
}

.header-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: #fff;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out-expo);
}

.header-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── 택타일 브루탈리스트 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-kr);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.24s var(--ease-out-expo), color 0.24s var(--ease-out-expo), border-color 0.24s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.btn-signal:hover:not(:disabled) {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn-bone {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--ink);
}

.btn-bone:hover:not(:disabled) {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.btn-ghost {
  background: rgba(244, 241, 234, 0.03);
  border-color: var(--line-strong);
  color: var(--fg);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--ink);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 0.98rem;
}

.btn-full {
  width: 100%;
}

/* ── ACT I: 100SVH WEBGL SHADER + KINETIC HERO ── */
.hero-stage {
  position: relative;
  min-height: 100svh;
  padding-top: 64px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

#shaderCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.86;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 38%, transparent 0%, rgba(8, 8, 7, 0.55) 62%, rgba(8, 8, 7, 0.94) 100%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.35) 0%, transparent 35%, rgba(8, 8, 7, 0.95) 100%);
}

.hero-top-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(18px, 3.6vw, 52px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--fg-sub);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: blinkSignal 1.8s infinite;
}

@keyframes blinkSignal {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.hero-center {
  position: relative;
  z-index: 2;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 72px) clamp(18px, 3.6vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag-bracket {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 7, 0.6);
  color: var(--fg);
}

.tag-bracket.signal {
  border-color: var(--signal);
  color: var(--signal);
}

.kinetic-h1 {
  margin: 0;
  font-size: clamp(2.85rem, 7.6vw, 7.4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.kinetic-h1 .line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.kinetic-h1 .line-inner {
  display: block;
  transform: translateY(108%);
  animation: maskRise 0.95s var(--ease-out-expo) forwards;
}

.kinetic-h1 .line-mask:nth-child(2) .line-inner {
  animation-delay: 0.1s;
}

.kinetic-h1 .line-mask:nth-child(3) .line-inner {
  animation-delay: 0.2s;
}

@keyframes maskRise {
  to { transform: translateY(0); }
}

.hero-editorial-row {
  margin-top: clamp(24px, 4vh, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.hero-lead {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: var(--fg-sub);
  line-height: 1.62;
}

.hero-cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 히어로 하단 4분할 원장 바 */
.hero-ledger {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.78);
  backdrop-filter: blur(10px);
}

.hero-ledger-grid {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ledger-cell {
  padding: 18px clamp(16px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ledger-cell:last-child {
  border-right: none;
}

.ledger-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}

.ledger-val {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

/* ── 벨로시티 리액티브 키네틱 마키 티커 ── */
.marquee-band {
  border-bottom: 1px solid var(--line);
  background: var(--signal);
  color: #080807;
  overflow: hidden;
  padding: 12px 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── 섹션 헤더 아키텍처 ── */
.arch-section {
  border-bottom: 1px solid var(--line);
  padding: clamp(68px, 9vw, 128px) 0;
  position: relative;
}

.arch-section.paper {
  background: var(--bone);
  color: var(--ink);
  border-bottom-color: var(--line-dark);
}

.sec-index-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.arch-section.paper .sec-index-bar {
  border-bottom-color: var(--line-dark);
  color: #57544e;
}

.sec-headline-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.sec-h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.sec-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--fg-sub);
  line-height: 1.65;
}

.arch-section.paper .sec-sub {
  color: #3d3b37;
}

/* ── ACT II: INTERACTIVE AI PRODUCTION PIPELINE CONSOLE ── */
.pipeline-frame {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  border: 1px solid var(--line);
  background: var(--carbon-elev);
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.pipe-tab {
  text-align: left;
  padding: 28px 30px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

.pipe-tab:last-child {
  border-bottom: none;
}

.pipe-tab:hover {
  background: rgba(244, 241, 234, 0.03);
}

.pipe-tab.is-active {
  background: rgba(255, 61, 31, 0.08);
}

.pipe-num {
  font-family: var(--font-disp);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg-muted);
  line-height: 1;
}

.pipe-tab.is-active .pipe-num {
  color: var(--signal);
}

.pipe-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.pipe-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-sub);
}

.pipeline-monitor {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #060605;
}

.monitor-bar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.monitor-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #090908;
}

.monitor-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06);
  transition: transform 0.7s var(--ease-out-expo);
}

.monitor-hud {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.45) 0%, transparent 45%, rgba(8, 8, 7, 0.88) 100%);
}

.monitor-terminal {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #d7d2c8;
  min-height: 132px;
  white-space: pre-wrap;
}

/* ── ACT III: 50-SEAT HARDWARE MATRIX (STARK BONE PAPER SECTION) ── */
.seat-architecture {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: start;
}

.cohort-counter-block {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.big-cohort-num {
  font-family: var(--font-disp);
  font-size: clamp(4.2rem, 8vw, 7.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.rollover-chain {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  flex-wrap: wrap;
}

.chain-node {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 13px;
  border: 1px solid var(--ink);
}

.chain-node.active {
  background: var(--ink);
  color: var(--bone);
}

.chain-node.next {
  border-style: dashed;
  color: #57544e;
}

.hardware-chassis {
  background: var(--ink);
  color: var(--fg);
  padding: clamp(22px, 3.2vw, 36px);
  border: 1px solid var(--ink);
  box-shadow: 0 28px 60px rgba(11, 11, 10, 0.18);
}

.chassis-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.screen-bar {
  height: 6px;
  width: 68%;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, rgba(244, 241, 234, 0.65), transparent);
  position: relative;
}

.screen-bar::after {
  content: "PRIVATE YOUTUBE SCREEN // INVITED GMAIL ONLY";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  white-space: nowrap;
}

.seat-matrix-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
}

.seat-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(244, 241, 234, 0.22);
  background: rgba(244, 241, 234, 0.03);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fg-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  padding: 0;
}

.seat-cell:hover {
  transform: scale(1.12);
  border-color: #fff;
  color: #fff;
  z-index: 2;
}

.seat-cell.is-taken {
  background: rgba(244, 241, 234, 0.22);
  border-color: rgba(244, 241, 234, 0.35);
  color: var(--fg-muted);
}

.seat-cell.is-next {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(255, 61, 31, 0.65);
}

.chassis-legend {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--fg-sub);
}

.legend-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch-box {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(244, 241, 234, 0.35);
}

/* ── ACT IV: ARCHITECTURAL CURRICULUM INDEX + FLOATING CURSOR REEL ── */
.index-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-bottom: none;
}

.index-stat {
  padding: 16px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.index-stat:last-child {
  border-right: none;
}

.curriculum-ledger {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ep-row {
  border-bottom: 1px solid var(--line);
  transition: background 0.24s ease;
}

.ep-row:last-child {
  border-bottom: none;
}

.ep-row-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: clamp(22px, 2.8vw, 34px) 12px;
  display: grid;
  grid-template-columns: 90px 160px 1fr auto;
  align-items: baseline;
  gap: 20px;
  cursor: pointer;
  transition: padding-left 0.3s var(--ease-out-expo);
}

.ep-row:hover {
  background: rgba(244, 241, 234, 0.035);
}

.ep-row:hover .ep-row-trigger {
  padding-left: 24px;
}

.ep-num {
  font-family: var(--font-disp);
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  font-weight: 800;
  color: var(--fg-muted);
  transition: color 0.2s ease;
}

.ep-row:hover .ep-num,
.ep-row.is-open .ep-num {
  color: var(--signal);
}

.ep-tool {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-sub);
  letter-spacing: 0.06em;
}

.ep-main-title {
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.ep-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.ep-plus {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.28s var(--ease-out-expo);
}

.ep-row.is-open .ep-plus {
  transform: rotate(45deg);
  color: var(--signal);
}

.ep-drawer {
  display: none;
  padding: 0 24px 28px 110px;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}

.ep-row.is-open .ep-drawer {
  display: grid;
}

.ep-drawer-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
}

.ep-drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 커서 추적 플로팅 16:9 시네마 릴 프리뷰 */
.floating-reel {
  position: fixed;
  left: 0;
  top: 0;
  width: 340px;
  aspect-ratio: 16 / 9;
  pointer-events: none;
  z-index: 700;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.86);
  transition: opacity 0.26s var(--ease-out-expo), transform 0.26s var(--ease-out-expo);
  border: 1px solid var(--line-strong);
  background: #050505;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.75);
}

.floating-reel.is-visible {
  opacity: 1;
}

.floating-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-reel-hud {
  position: absolute;
  inset: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 45%, rgba(0,0,0,0.78));
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

@media (hover: none), (pointer: coarse), (max-width: 960px) {
  .floating-reel {
    display: none !important;
  }
}

/* ── ACT V: PERFORATED PHYSICAL TICKET ISSUANCE DESK (#apply) ── */
.issuance-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 40px;
  align-items: start;
}

.perforated-ticket {
  background: var(--bone);
  color: var(--ink);
  position: relative;
  border: 1px solid rgba(244, 241, 234, 0.25);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.65);
}

.ticket-head {
  background: var(--ink);
  color: var(--bone);
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(244, 241, 234, 0.16);
}

.ticket-body {
  padding: 26px;
}

.ticket-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.ticket-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.t-field-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #635f58;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.t-field-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

/* 실제 절취선 + 양쪽 펀칭 노치 */
.ticket-perf-line {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.ticket-perf-line::before,
.ticket-perf-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--carbon);
  transform: translateY(-50%);
}

.ticket-perf-line::before {
  left: -11px;
}

.ticket-perf-line::after {
  right: -11px;
}

.perf-dashes {
  width: 100%;
  margin: 0 18px;
  border-top: 2px dashed rgba(11, 11, 10, 0.28);
}

.ticket-stub {
  padding: 16px 26px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.barcode-svg {
  height: 40px;
  width: 180px;
}

.ticket-stamp {
  display: inline-block;
  padding: 5px 11px;
  border: 2px solid var(--signal);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

.ticket-stamp.issued {
  border-color: #0b7a4b;
  color: #0b7a4b;
}

/* 발권 입력 데스크 */
.desk-panel {
  border: 1px solid var(--line);
  background: var(--carbon-elev);
  padding: clamp(24px, 3.4vw, 40px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-sub);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.req {
  color: var(--signal);
}

.mini-link-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
}

.mini-link-btn:hover {
  background: var(--fg);
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #070706;
  color: var(--fg);
  font-size: 0.96rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--signal);
  background: #0d0d0b;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.alert {
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  margin-top: 16px;
}

.alert-warn {
  background: rgba(255, 176, 32, 0.09);
  border-color: var(--warn);
  color: #ffe2a8;
}

.alert-danger {
  background: rgba(255, 61, 31, 0.12);
  border-color: var(--signal);
  color: #ffc4b8;
}

.alert-success {
  background: rgba(46, 229, 157, 0.09);
  border-color: var(--ok);
  color: #b8f7dc;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 0.88rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--signal);
}

.bank-ledger-box {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: #070706;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.bank-account-text {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

/* ── ACT VI: SWISS INDEX FAQ & MONUMENTAL FOOTER ── */
.faq-ledger {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 8px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: baseline;
  gap: 16px;
  font-weight: 800;
  font-size: 1.08rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--fg-muted);
  transition: transform 0.25s var(--ease-out-expo);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--signal);
}

.faq-body {
  padding: 0 24px 26px 88px;
  color: var(--fg-sub);
  max-width: 840px;
  font-size: 0.95rem;
}

.monument-footer {
  padding: 64px 0 44px;
  background: #050504;
}

.footer-wordmark {
  font-family: var(--font-disp);
  font-size: clamp(2.6rem, 9.2vw, 9rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: rgba(244, 241, 234, 0.12);
  text-transform: uppercase;
  margin-bottom: 36px;
  user-select: none;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--fg-muted);
}

/* ── 내 강의실 (/classroom) 전용 아키텍처 ── */
.classroom-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px clamp(18px, 3.6vw, 52px) 80px;
}

.lookup-shell {
  max-width: 560px;
  margin: 40px auto;
  border: 1px solid var(--line-strong);
  background: var(--carbon-elev);
  padding: clamp(28px, 4vw, 44px);
}

.stepper-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  margin: 20px 0;
}

.step-pill {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-muted);
}

.step-pill:last-child {
  border-right: none;
}

.step-pill.done {
  color: var(--ok);
  background: rgba(46, 229, 157, 0.06);
}

.step-pill.current {
  color: #fff;
  background: rgba(255, 61, 31, 0.16);
}

.status-banner {
  border: 1px solid var(--line-strong);
  background: var(--carbon-elev);
  padding: 26px 30px;
  margin-bottom: 22px;
}

.progress-card {
  border: 1px solid var(--line);
  background: var(--carbon-elev);
  padding: 20px 26px;
  margin-bottom: 24px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(244, 241, 234, 0.12);
  margin-top: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--signal);
  transition: width 0.35s var(--ease-out-expo);
}

.cinema-grid {
  display: grid;
  grid-template-columns: 1.38fr 0.82fr;
  border: 1px solid var(--line);
  background: var(--carbon-elev);
}

.cinema-stage-card {
  border-right: 1px solid var(--line);
}

.cinema-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030303;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.cinema-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.cinema-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cinema-screen-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  background: radial-gradient(circle, rgba(8, 8, 7, 0.3) 0%, rgba(8, 8, 7, 0.88) 100%);
}

.cinema-body {
  padding: 28px;
}

.notes-box {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  background: #070706;
}

.notes-pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  font-family: var(--font-kr);
  font-size: 0.9rem;
  color: var(--fg-sub);
  line-height: 1.7;
}

.playlist-panel {
  display: flex;
  flex-direction: column;
}

.playlist-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.filter-pills {
  display: flex;
  gap: 4px;
}

.filter-pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-muted);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--ink);
  font-weight: 700;
}

.playlist-scroll {
  max-height: 700px;
  overflow-y: auto;
}

.playlist-item {
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.16s ease;
}

.playlist-item:hover {
  background: rgba(244, 241, 234, 0.04);
}

.playlist-item.active {
  background: rgba(255, 61, 31, 0.12);
  border-left: 3px solid var(--signal);
}

.pl-check {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.playlist-item.completed .pl-check {
  background: var(--ok);
  border-color: var(--ok);
  color: #050504;
  font-weight: 700;
}

/* ── 스크롤 리빌 트랜지션 ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .film-grain { animation: none; }
  .kinetic-h1 .line-inner { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 반응형 브레이크포인트 ── */
@media (max-width: 1060px) {
  .hero-editorial-row,
  .sec-headline-grid,
  .pipeline-frame,
  .seat-architecture,
  .issuance-grid,
  .cinema-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-steps {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .cinema-stage-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .hero-ledger-grid,
  .index-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .ledger-cell:nth-child(2),
  .index-stat:nth-child(2) {
    border-right: none;
  }
  .ledger-cell:nth-child(1),
  .ledger-cell:nth-child(2),
  .index-stat:nth-child(1),
  .index-stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .header-telemetry {
    display: none;
  }
}

@media (max-width: 720px) {
  .ep-row-trigger {
    grid-template-columns: 52px 1fr auto;
  }
  .ep-tool {
    display: none;
  }
  .ep-drawer {
    padding: 0 16px 24px 16px;
    grid-template-columns: 1fr;
  }
  .seat-matrix-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .form-grid,
  .ticket-fields,
  .stepper-bar,
  .hero-ledger-grid,
  .index-summary-strip {
    grid-template-columns: 1fr;
  }
  .ledger-cell,
  .index-stat,
  .step-pill {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
  .faq-item summary {
    grid-template-columns: 44px 1fr auto;
  }
  .faq-body {
    padding-left: 16px;
  }
  .hide-mobile {
    display: none !important;
  }
}
