@font-face {
  font-family: "Commit Mono";
  src: url("./assets/fonts/CommitMonoV143-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ── Korean Retrospace v0.3 · Black HUD ── */
:root {
  --cheong: #1e5a73;
  --jeok: #b5533f;
  --hwang: #d6a23e;
  --baek: #f8f4ec;
  --heuk: #1a1c21;
  --nok: #6e8b4e;
  --byeok: #6f9aa3;
  --hong: #d98b7a;
  --yuhwang: #8a6a2e;
  --ja: #5e2f3a;

  /* 바탕: 흑 */
  --navy: #050505;
  --navy-deep: #000;
  --panel: rgba(214, 162, 62, 0.035);
  --hud: var(--hwang);
  --hud-dim: rgba(214, 162, 62, 0.4);
  --hud-faint: rgba(214, 162, 62, 0.12);
  --text: #f2e6cc;
  --text-dim: rgba(242, 230, 204, 0.66);

  --font-display: "Hahmlet", "Noto Serif KR", serif;
  --font-body: "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "Commit Mono", ui-monospace, monospace;

  --shell: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --topbar-h: 64px;
  --pad: clamp(18px, 3vw, 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--navy-deep);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--navy);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a,
button {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--hud);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

/* ── Background: grid · stars · scanlines ── */
.hud-bg {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(214, 162, 62, 0.6), transparent),
    radial-gradient(1px 1px at 78% 8%, rgba(214, 162, 62, 0.45), transparent),
    radial-gradient(1px 1px at 64% 62%, rgba(214, 162, 62, 0.4), transparent),
    radial-gradient(1px 1px at 28% 82%, rgba(214, 162, 62, 0.5), transparent),
    radial-gradient(1px 1px at 92% 44%, rgba(214, 162, 62, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 44% 36%, rgba(214, 162, 62, 0.5), transparent),
    linear-gradient(rgba(214, 162, 62, 0.14) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(214, 162, 62, 0.14) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(214, 162, 62, 0.055) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(214, 162, 62, 0.055) 1px, transparent 1px) 0 0 / 16px 16px,
    radial-gradient(ellipse at 50% 30%, #16120a 0%, var(--navy) 55%, var(--navy-deep) 100%);
  opacity: 0.9;
}

.hud-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.35) 3px),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.7) 100%);
}

/* ── Pixel logo ── */
.pixel-logo {
  display: block;
  line-height: 0;
}

.pixel-logo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.pixel-logo rect {
  transform-box: fill-box;
  transform-origin: center;
}

.px { fill: currentColor; }
.px--accent { fill: var(--jeok); }
.px--dead { fill: none; stroke: currentColor; stroke-width: 0.08; opacity: 0.45; }
.px-ghost--cheong { fill: var(--byeok); }
.px-ghost--jeok { fill: var(--jeok); }
.px-ghost--byeok { fill: var(--byeok); }
.px-ghost--hong { fill: var(--hong); }

.pixel-logo.is-glitching svg {
  filter: drop-shadow(0.35em 0 0 rgba(181, 83, 63, 0.8)) drop-shadow(-0.35em 0 0 rgba(111, 154, 163, 0.75));
}

.pixel-logo.is-hidden {
  opacity: 0;
}

/* 계속 지지직거리는 로고 */
.pixel-logo.is-noisy svg {
  animation: logoNoise 0.32s steps(2, end) infinite;
}

@keyframes logoNoise {
  0% { transform: translate(0, 0); opacity: 1; }
  25% { transform: translate(-0.12em, 0); }
  50% { transform: translate(0.1em, 0.04em); opacity: 0.88; }
  75% { transform: translate(0, -0.04em); }
  100% { transform: translate(0.06em, 0); opacity: 1; }
}

/* ── Shared bits ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.btn--solid {
  color: var(--navy-deep);
  background: var(--hud);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn--solid:hover {
  background: var(--baek);
}

.btn--line {
  color: var(--hud);
  border: 1px solid var(--hud-dim);
}

.btn--line:hover {
  color: var(--navy-deep);
  background: var(--hud);
}

.btn--small {
  min-height: 38px;
  font-size: 0.72rem;
}

.led {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--hud);
  animation: ledBlink 1.2s steps(1, end) infinite;
}

.led--on {
  background: var(--nok);
  box-shadow: 0 0 6px var(--nok);
  animation-duration: 2.4s;
}

@keyframes ledBlink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.25; }
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.15em;
  vertical-align: -0.12em;
  background: var(--hud);
  animation: cursorBlink 1s steps(1, end) infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.barcode {
  display: block;
  width: 70px;
  height: 18px;
}

.barcode svg,
.vp-barcode svg {
  display: block;
  width: 100%;
  height: 100%;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
}

.title,
.series-title,
.subtitle {
  color: var(--hud);
  text-shadow: 0 0 18px rgba(214, 162, 62, 0.22);
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  word-break: keep-all;
}

.title--xl {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
}

.lead {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  word-break: keep-all;
}

.copy {
  max-width: 36em;
  margin: 18px 0 0;
  color: var(--text-dim);
  word-break: keep-all;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ── Boot screen ── */
.boot-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--baek);
  background:
    linear-gradient(rgba(214, 162, 62, 0.14) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(214, 162, 62, 0.14) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(214, 162, 62, 0.055) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(214, 162, 62, 0.055) 1px, transparent 1px) 0 0 / 16px 16px,
    radial-gradient(ellipse at 50% 45%, #120f08 0%, #030303 60%, #000 100%);
  transition: opacity 650ms ease, visibility 650ms ease;
}

.boot-screen::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.22) 3px);
}

.boot-screen.is-instant {
  transition: none;
}

.boot-skip {
  position: absolute;
  z-index: 3;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 24px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--hud);
  background: transparent;
  border: 1px solid var(--hud-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  transition: border-color 160ms ease;
}

.boot-skip:hover {
  border-color: var(--hud);
}

.boot-screen.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.boot-fx {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.boot-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(100% - 48px, 620px);
}

.boot-content.is-shaking {
  animation: bootShake 90ms steps(2, end) infinite;
}

@keyframes bootShake {
  0% { transform: translate(2px, -1px); }
  50% { transform: translate(-3px, 1px); }
  100% { transform: translate(1px, 2px); }
}

.boot-logo {
  width: 100%;
  color: var(--hwang);
}

.boot-subtitle {
  min-height: 1.5em;
  margin: 0;
  color: rgba(248, 244, 236, 0.78);
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 3.2vw, 1rem);
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.language-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 28px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 600ms ease, visibility 600ms;
}

.language-panel.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.language-controls {
  display: flex;
  gap: 10px;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 88px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--baek);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--hud-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.language-button__light {
  width: 8px;
  height: 8px;
  background: var(--hud-dim);
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--navy-deep);
  background: var(--hud);
  border-color: var(--hud);
  outline: none;
}

.language-button:hover .language-button__light,
.language-button:focus-visible .language-button__light {
  background: var(--navy-deep);
}

.language-label,
.boot-index {
  color: rgba(248, 244, 236, 0.55);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.boot-index {
  position: absolute;
  right: 24px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  margin: 0;
}

.noscript-note {
  margin: 0;
  color: rgba(248, 244, 236, 0.6);
  font-size: 0.8rem;
  line-height: 1.8;
  text-align: center;
}

/* ── Brand page ── */
.brand-page {
  min-height: 100svh;
  opacity: 0;
  transition: opacity 600ms ease;
}

.brand-page.is-visible {
  opacity: 1;
}

/* 언어를 바꿀 때: 본문이 잠깐 사라졌다가 새 언어로 나타난다 */
.shell,
.footer {
  transition: opacity 220ms ease;
}

.brand-page.is-switching .shell,
.brand-page.is-switching .footer {
  opacity: 0;
}

/* ── Top bar ── */
.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
}

/* 선 없이 아래로 풀리면서 본문과 이어진다 */
.topbar::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 -18px;
  content: "";
  background: linear-gradient(rgba(0, 0, 0, 0.94) 55%, rgba(0, 0, 0, 0));
  backdrop-filter: blur(8px);
  mask-image: linear-gradient(#000 62%, transparent);
  pointer-events: none;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  width: min(100% - var(--gutter) * 2, var(--shell));
  min-height: var(--topbar-h);
  margin-inline: auto;
  padding-top: env(safe-area-inset-top);
}

.brand {
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(214, 162, 62, 0.45);
}

.sys {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 10px;
  padding: 6px 12px;
  border-inline: 1px solid var(--hud-faint);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.5;
}

.sys__label {
  color: var(--hud);
}

.sys__time {
  grid-row: span 2;
  align-self: center;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.lang-toggle {
  flex: none;
  min-width: 52px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--hud);
  background: transparent;
  border: 1px solid var(--hud-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition: border-color 160ms ease;
}

.lang-toggle:hover {
  border-color: var(--hud);
}

/* ── Shell ── */
.shell {
  display: grid;
  gap: 24px;
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin: 40px auto 0;
}

.stack {
  min-width: 0;
}

/* ── Module (HUD panel) ── */
.module {
  position: relative;
  padding: clamp(28px, 4vw, 48px) var(--pad) clamp(24px, 3vw, 36px);
  background: var(--panel);
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

/* 테두리: 왼쪽 아래에서 출발해 한 바퀴(왼쪽 ↑ · 위 → · 오른쪽 ↓ · 아래 ←) 그려지고,
   모서리 표식이 튀어나온 뒤 내용이 채워진다 */
.frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.frame__edge {
  position: absolute;
  background: var(--hud-dim);
}

.frame__edge--left { top: 0; bottom: 0; left: 0; width: 1px; transform-origin: bottom; }
.frame__edge--top { top: 0; right: 0; left: 0; height: 1px; transform-origin: left; }
.frame__edge--right { top: 0; right: 0; bottom: 0; width: 1px; transform-origin: top; }
.frame__edge--bottom { right: 0; bottom: 0; left: 0; height: 1px; transform-origin: right; }

.frame__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--hud);
}

.frame__corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; transform-origin: top left; }
.frame__corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; transform-origin: top right; }
.frame__corner--br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; transform-origin: bottom right; }
.frame__corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; transform-origin: bottom left; }

.is-waiting > .frame .frame__edge--left,
.is-waiting > .frame .frame__edge--right { transform: scaleY(0); }
.is-waiting > .frame .frame__edge--top,
.is-waiting > .frame .frame__edge--bottom { transform: scaleX(0); }
.is-waiting > .frame .frame__corner,
.is-waiting > :not(.frame) { opacity: 0; }

.is-drawing > .frame .frame__edge { animation: 130ms linear both; }
.is-drawing > .frame .frame__edge--left { animation-name: edgeY; }
.is-drawing > .frame .frame__edge--top { animation-name: edgeX; animation-delay: 130ms; }
.is-drawing > .frame .frame__edge--right { animation-name: edgeY; animation-delay: 260ms; }
.is-drawing > .frame .frame__edge--bottom { animation-name: edgeX; animation-delay: 390ms; }
.is-drawing > .frame .frame__corner { animation: cornerPop 300ms cubic-bezier(0.2, 0.9, 0.3, 1) 520ms both; }
.is-drawing > :not(.frame) { animation: frameFill 200ms ease-out 680ms both; }

@keyframes edgeX { from { transform: scaleX(0); } }
@keyframes edgeY { from { transform: scaleY(0); } }

@keyframes cornerPop {
  0% { opacity: 0; transform: scale(0); }
  55% { opacity: 1; transform: scale(2.4); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes frameFill { from { opacity: 0; } }

/* 글자 자리는 테두리 선이 지나가지 않도록 선 위에 올려 가린다 */
.module__tag,
.module__code {
  position: absolute;
  z-index: 2;
  top: -0.75em;
  margin: 0;
  padding: 0 10px;
  color: var(--hud);
  background: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.module__tag {
  left: 24px;
}

.module__code {
  right: 24px;
  color: var(--text-dim);
  font-size: 0.66rem;
}

.module__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}

.module__head .copy {
  margin: 0;
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.panel {
  position: relative;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--hud-dim);
}

.panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 14px;
  color: var(--navy-deep);
  background: var(--hud);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.panel__toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 24px;
  padding: 0;
  color: var(--navy-deep);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.panel__toggle span {
  display: block;
  transition: transform 240ms ease;
}

.panel__toggle:hover span {
  opacity: 0.6;
}

.panel__toggle:focus-visible {
  outline-color: var(--baek);
}

.panel.is-collapsed .panel__toggle span {
  transform: rotate(180deg);
}

.panel__body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 320ms ease;
}

.panel.is-collapsed .panel__body {
  grid-template-rows: 0fr;
}

.panel__inner {
  min-height: 0;
  overflow: hidden;
}

.panel__foot {
  margin: 8px 16px 16px;
  padding: 8px 12px;
  color: var(--hud);
  border: 1px solid var(--hud-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* ── Connectors: 모듈을 하나의 흐름으로 잇는 선 ── */
.link {
  position: relative;
  height: 72px;
}

.link__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  border-left: 1px dashed var(--hud-dim);
}

.link__line i {
  position: absolute;
  left: -3px;
  width: 5px;
  height: 5px;
  background: var(--hud);
  animation: packet 1.8s linear infinite;
}

@keyframes packet {
  from { top: 0; }
  to { top: calc(100% - 5px); }
}

.link__label {
  position: absolute;
  top: 50%;
  left: 56px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  transform: translateY(-50%);
}

/* ── Viewport (HUD screen) ── */
.viewport {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--hud-dim);
}

.viewport--tall {
  aspect-ratio: 4 / 5;
}

.viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.85) contrast(1.05);
}

.viewport::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.28) 3px),
    linear-gradient(transparent 55%, rgba(0, 0, 0, 0.55));
}

.viewport__hud {
  position: absolute;
  z-index: 2;
  inset: 0;
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.vp-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0;
}

.vp-corner--tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.vp-corner--tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.vp-corner--bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.vp-corner--br { right: 14px; bottom: 14px; border-right-width: 2px; border-bottom-width: 2px; }

.vp-scan {
  position: absolute;
  left: 0;
  width: 100%;
  height: 18%;
  background: linear-gradient(transparent, rgba(214, 162, 62, 0.16), transparent);
  animation: scanDown 4.5s linear infinite;
}

@keyframes scanDown {
  from { top: -18%; }
  to { top: 100%; }
}

.vp-render {
  position: absolute;
  top: 28px;
  left: 44px;
  margin: 0;
  line-height: 1.5;
}

.vp-barcode {
  position: absolute;
  top: 34%;
  left: 18px;
  width: 16px;
  height: 90px;
}

.vp-scene {
  position: absolute;
  right: 44px;
  bottom: 26px;
  margin: 0;
  color: var(--baek);
}

/* 디지털 지구본 */
.viewport--map {
  background: radial-gradient(circle at 50% 52%, #171209 0%, var(--navy-deep) 70%);
}

.map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vp-telemetry {
  position: absolute;
  top: 28px;
  right: 44px;
  margin: 0;
  line-height: 1.5;
  text-align: right;
}

.vp-sector {
  position: absolute;
  bottom: 26px;
  left: 44px;
  margin: 0;
}

.target {
  position: absolute;
  top: 40%;
  left: 60%;
  width: 0;
  height: 0;
}

.target__mark {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  background:
    linear-gradient(var(--jeok), var(--jeok)) center / 100% 2px no-repeat,
    linear-gradient(var(--jeok), var(--jeok)) center / 2px 100% no-repeat;
}

.target__mark::before {
  position: absolute;
  inset: 11px;
  content: "";
  border: 2px solid var(--jeok);
  border-radius: 50%;
  background: var(--navy-deep);
  box-shadow: 0 0 10px rgba(181, 83, 63, 0.7);
  animation: targetPulse 1.6s ease-in-out infinite;
}

.target__mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--baek);
  transform: translate(-50%, -50%);
}

@keyframes targetPulse {
  50% { box-shadow: 0 0 22px rgba(181, 83, 63, 0.95); }
}

.target__label {
  position: absolute;
  top: -26px;
  left: 28px;
  margin: 0;
  padding: 4px 8px;
  color: var(--baek);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--hud-dim);
  border-left: 2px solid var(--jeok);
  line-height: 1.5;
  white-space: nowrap;
}

.target__label span {
  color: var(--hud);
}

/* ── 01 Hero ── */
.hero__stack {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero__logo {
  width: min(100%, 760px);
  margin: 0;
  color: var(--hud);
}

.hero__slogan {
  margin: 32px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero__note {
  max-width: 30em;
  margin: 14px 0 0;
  color: var(--text-dim);
  word-break: keep-all;
}

/* Intro 영상 박스: 왼쪽 위 모서리를 100px 깎은 5각형 */
.intro-box {
  --cut: 100px;
  width: min(100%, 440px);
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 1px;
  background: var(--hud);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

.intro-box__screen {
  position: relative;
  aspect-ratio: 412 / 640;
  overflow: hidden;
  background: #000;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

.intro-box__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-box__hud {
  position: absolute;
  inset: 0;
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.2) 3px);
}

.intro-box__rec {
  position: absolute;
  top: 26px;
  right: 44px;
  margin: 0;
  color: var(--baek);
}

.intro-box__toggle {
  position: absolute;
  bottom: 22px;
  left: 44px;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  color: var(--hud);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--hud-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1;
}

.intro-box__toggle:hover {
  border-color: var(--hud);
}

/* ── Ticker ── */
.ticker {
  overflow: hidden;
  margin: 24px 0 48px;
  padding: 12px 0;
  border-block: 1px solid var(--hud-dim);
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.ticker b {
  margin-right: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.ticker i {
  color: var(--hud);
  font-style: normal;
}

.t-cheong { color: var(--byeok); }
.t-jeok { color: var(--hong); }
.t-hwang { color: var(--hwang); }
.t-baek { color: var(--baek); }
.t-heuk { color: var(--navy-deep); -webkit-text-stroke: 1px var(--baek); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Series visuals ── */
.series-visual--han { background: var(--cheong); }
.series-visual--random { background: var(--heuk); }

.obang-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 1fr);
}

.mosaic span {
  background: var(--c);
}

/* ── 02 Files ── */
.files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
  max-width: 860px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.files li {
  min-width: 0;
}

.file__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--hud-dim);
  transition: border-color 160ms ease, transform 200ms ease;
}

.file__link:hover {
  border-color: var(--hud);
  transform: translateY(-4px);
}

.file__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.file__bar > span:nth-child(2) {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
}

.file__foot,
.work__bar,
.work__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.file__bar,
.work__bar {
  color: var(--hud);
  border-bottom: 1px solid var(--hud-faint);
}

.file__bar .led,
.work__bar .led {
  margin: 0;
}

.file__visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.file__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.22) 3px);
}

.file__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.file__link:hover img {
  transform: scale(1.05);
}


.file__body {
  display: grid;
  gap: 4px;
  padding: 16px 14px 18px;
}

.file__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.file__text {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  word-break: keep-all;
}

.file__foot,
.work__foot {
  align-self: end;
  color: var(--text-dim);
  border-top: 1px solid var(--hud-faint);
}

.file__foot span:last-child,
.work__foot .work__open {
  color: var(--hud);
}

/* ── Meter (공정 · 믹스) ── */
.meter__list {
  display: grid;
  gap: 14px;
  padding: 20px 16px 8px;
  margin: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.meter__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 6px 12px;
  align-items: center;
}

.meter__name {
  grid-column: 1 / -1;
}

.meter__name span {
  margin-left: 6px;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.meter__bar {
  --bar: var(--hud);
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--hud-faint) 0 6px, transparent 6px 8px);
}

.meter__bar--alt { --bar: var(--byeok); }
.meter__bar--hong { --bar: var(--hong); }

.meter__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--bar) 0 6px, transparent 6px 8px);
  transition: width 1200ms steps(24, end);
}

.meter.is-live .meter__bar i {
  width: 100%;
}

.meter__list li:nth-child(2) .meter__bar i { transition-delay: 300ms; }
.meter__list li:nth-child(3) .meter__bar i { transition-delay: 600ms; }
.meter__list li:nth-child(4) .meter__bar i { transition-delay: 900ms; }

.meter__tag {
  justify-self: end;
  padding: 1px 6px;
  color: var(--hud);
  font-size: 0.66rem;
  border: 1px solid;
}

.meter__tag--alt { color: var(--byeok); }
.meter__tag--hong { color: var(--hong); font-family: var(--font-display); }

/* ── 공정: 이름 ┄ 한글 ┄ [담당] ── */
.pipeline {
  display: grid;
  gap: 16px;
  padding: 22px 16px;
  margin: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  letter-spacing: 0.06em;
}

.pipeline li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipeline__name {
  flex: none;
  width: 15ch;
  white-space: nowrap;
}

.pipeline__dots {
  flex: 1;
  min-width: 10px;
  height: 0;
  border-top: 2px dotted var(--hud-dim);
}

.pipeline__ko {
  flex: none;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.pipeline__tag {
  flex: none;
  min-width: 56px;
  padding: 2px 8px;
  color: var(--hud);
  border: 1px solid;
  font-size: 0.68rem;
  text-align: center;
}

.pipeline__tag--ai {
  color: var(--byeok);
}

/* ── Terminal ── */
.terminal__body {
  min-height: 200px;
  padding: 18px 16px 20px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
  letter-spacing: 0.04em;
  line-height: 2;
  overflow-x: auto;
}

.terminal__body p {
  margin: 0;
  white-space: pre;
}

.terminal__body b {
  color: var(--nok);
  font-weight: 400;
}

.terminal__body i {
  color: var(--hud);
  font-style: normal;
}

.terminal__warn {
  color: var(--hong);
}

.terminal.is-typing .terminal__body p {
  visibility: hidden;
}

.terminal.is-typing .terminal__body p.is-shown {
  visibility: visible;
}

/* ── Contact: 지구본 + channels ── */
.globe-box {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--hud-dim);
  background: radial-gradient(circle at 50% 52%, #171209 0%, var(--navy-deep) 70%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

/* 오른쪽 끝에 가까우면 좌표 표시를 왼쪽으로 넘긴다 */
.target.is-flipped .target__label {
  right: 28px;
  left: auto;
  border-right: 2px solid var(--jeok);
  border-left: 1px solid var(--hud-dim);
}

.copy--wide {
  max-width: none;
}

.channels {
  display: grid;
  margin: 28px 0 0;
  border-top: 1px solid var(--hud-faint);
  font-family: var(--font-mono);
}

.channels div {
  display: grid;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hud-faint);
}

.channels dt {
  color: var(--hud);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.channels dd {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.channels a {
  text-decoration: none;
  border-bottom: 1px solid var(--hud-dim);
}

.channels a:hover {
  color: var(--hud);
}

.series-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.series-roman {
  margin: 12px 0 0;
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.spec {
  display: grid;
  margin: 32px 0 0;
  border: 1px solid var(--hud-dim);
  font-family: var(--font-mono);
}

.spec div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hud-faint);
}

.spec div:last-child {
  border-bottom: 0;
}

.spec dt {
  color: var(--hud);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1.9;
}

.spec dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  margin-top: 64px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  padding: 32px 0;
}

.footer__brand {
  display: grid;
  gap: 10px;
  margin-left: auto;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.footer__brand p {
  margin: 0;
}

.replay-intro {
  justify-self: start;
  min-height: 36px;
  padding: 0 12px;
  color: var(--hud);
  background: transparent;
  border: 1px solid var(--hud-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  transition: border-color 160ms ease;
}

.replay-intro:hover {
  border-color: var(--hud);
}

.footer__brand .pixel-logo {
  width: 120px;
  color: var(--hud);
}

.endline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  padding-bottom: 32px;
}

.endline__rule {
  height: 1px;
  background: var(--hud);
}

.endline__label {
  padding: 8px 20px;
  color: var(--hud);
  border: 1px solid var(--hud);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ── Intro: 다운로드 창 ── */
.boot-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.boot-stage > * {
  grid-area: 1 / 1;
}

.dl {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  color: var(--hud);
  font-family: var(--font-mono);
  opacity: 0;
  transform: translateY(50px);
}

.dl.is-arriving {
  opacity: 1;
  transform: none;
  transition: opacity 260ms ease-out, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dl.is-gone {
  visibility: hidden;
}

/* 테두리: 위 → 오른쪽 → 아래 → 왼쪽 순서로 그려진다 */
.dl__edge {
  position: absolute;
  z-index: 1;
  background: var(--hud);
  pointer-events: none;
}

.dl__edge--top { top: 0; left: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: left; }
.dl__edge--right { top: 0; right: 0; width: 3px; height: 100%; transform: scaleY(0); transform-origin: top; }
.dl__edge--bottom { right: 0; bottom: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: right; }
.dl__edge--left { bottom: 0; left: 0; width: 3px; height: 100%; transform: scaleY(0); transform-origin: bottom; }

.dl.is-framed .dl__edge {
  transform: none;
  transition: transform 110ms linear;
}

.dl.is-framed .dl__edge--right { transition-delay: 100ms; }
.dl.is-framed .dl__edge--bottom { transition-delay: 200ms; }
.dl.is-framed .dl__edge--left { transition-delay: 300ms; }

.dl__bar {
  display: flex;
  justify-content: flex-end;
  height: 26px;
  padding: 3px 5px;
  background: var(--hud);
  clip-path: inset(0 100% 0 0);
}

.dl.is-titled .dl__bar {
  clip-path: inset(0 0 0 0);
  transition: clip-path 180ms steps(6, end);
}

.dl__buttons {
  display: flex;
  gap: 3px;
}

.dl__buttons i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--hud);
  background: #000;
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1;
}

.dl__body {
  padding: 22px 22px 26px;
  opacity: 0;
}

.dl.is-ready .dl__body {
  animation: dlBodyOn 160ms steps(2, end) forwards;
}

@keyframes dlBodyOn {
  0% { opacity: 0; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.dl__label {
  margin: 0 0 16px;
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  letter-spacing: 0.02em;
}

.dl__dots {
  display: inline-block;
  width: 2.4ch;
  overflow: hidden;
  vertical-align: bottom;
  animation: dlDots 900ms steps(4, end) infinite;
}

@keyframes dlDots {
  from { width: 0; }
  to { width: 3.2ch; }
}

.dl__gauge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5ch;
  align-items: center;
  gap: 14px;
}

.dl__track {
  display: block;
  height: 30px;
  padding: 4px;
  border: 3px solid var(--hud);
}

.dl__fill {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--hud) 0 9px, transparent 9px 13px);
}

.dl__pct {
  font-size: clamp(1rem, 3.6vw, 1.3rem);
  text-align: right;
}

.dl.is-glitching {
  filter: drop-shadow(4px 0 0 rgba(181, 83, 63, 0.85)) drop-shadow(-4px 0 0 rgba(111, 154, 163, 0.85));
}

/* 부제 타이핑 커서 */
.type-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 0.15em;
  vertical-align: -0.2em;
  background: var(--hud);
  opacity: 0;
}

.type-cursor.is-typing {
  opacity: 1;
}

.type-cursor.is-blinking {
  opacity: 1;
  animation: cursorBlink 1s steps(1, end) infinite;
}

/* ── Top bar (한 페이지용) ── */
.topbar__status {
  display: flex;
  align-items: center;
  margin: 0 auto 0 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  min-height: 34px;
  padding: 0 12px;
  color: var(--navy-deep);
  background: var(--hud);
  border: 1px solid var(--hud);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* ── Navigator ── */
.navigator {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid var(--hud-dim);
}

.navigator__title {
  margin: 0;
  padding: 8px 14px;
  color: var(--navy-deep);
  background: var(--hud);
  font-size: 0.7rem;
}

.navigator__list {
  display: grid;
  padding: 8px 0;
  margin: 0;
  list-style: none;
}

.navigator__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--text-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 160ms ease, background 160ms ease;
}

.navigator__list a [lang="ko"] {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.navigator__no {
  color: var(--hud-dim);
}

.navigator__list a:hover {
  color: var(--hud);
}

.navigator__list a.is-active {
  color: var(--hud);
  background: rgba(214, 162, 62, 0.08);
  border-left-color: var(--hud);
}

.navigator__list a.is-active .navigator__no {
  color: var(--hud);
}

.navigator__list a.is-active::after {
  margin-left: auto;
  content: "◀";
  font-size: 0.6rem;
  animation: ledBlink 1.2s steps(1, end) infinite;
}

.navigator__meter {
  position: relative;
  height: 4px;
  margin: 4px 14px 0;
  background: var(--hud-faint);
}

.navigator__meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--hud);
}

.navigator__readout {
  margin: 0;
  padding: 10px 14px 12px;
  color: var(--hud);
  font-size: 0.64rem;
}

/* ── Series (한 페이지 안의 시리즈 블록) ── */
.series__head {
  display: grid;
  gap: 32px;
  align-items: center;
}

.series__about {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px dashed var(--hud-dim);
}

.subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.works {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px dashed var(--hud-dim);
}

.works__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.works__count {
  margin: 0;
  color: var(--hud);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

/* 작품 갤러리: 비율을 지키는 세로 흐름 */
.gallery {
  padding: 0;
  margin: 0;
  list-style: none;
  columns: 2;
  column-gap: clamp(10px, 2vw, 16px);
}

.gallery li {
  margin-bottom: clamp(10px, 2vw, 16px);
  break-inside: avoid;
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  padding: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--hud-dim);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 200ms ease;
}

.work:hover {
  border-color: var(--hud);
  transform: translateY(-3px);
}

.work__bar {
  box-shadow: inset 0 3px 0 var(--accent, var(--hud));
}

.work__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #000;
}

.work__media img {
  width: 100%;
  height: auto;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 300ms ease;
}

.work__media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.18) 3px);
}

.work:hover .work__media img {
  filter: none;
  transform: scale(1.03);
}

.work__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--hud);
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--hud);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.work__play > span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.work__title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work__open {
  flex: none;
}

/* ── Work viewer ── */
.viewer {
  width: min(calc(100% - 24px), 1100px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  color: var(--text);
  background: #000;
  border: 0;
  overflow: auto;
}

.viewer__panel {
  position: relative;
}

/* 열릴 때: 뒤 화면이 흐려지고 테두리가 그려진다 / 닫힐 때: 페이드아웃 */
.viewer::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  animation: frameFill 260ms ease-out both;
}

.viewer.is-closing {
  animation: fadeOut 240ms ease-in both;
}

.viewer.is-closing::backdrop {
  animation: fadeOut 240ms ease-in both;
}

@keyframes fadeOut { to { opacity: 0; } }

.viewer__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  padding: 0;
  color: var(--navy-deep);
  background: transparent;
  border: 1px solid var(--navy-deep);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
}

.viewer__close:focus-visible {
  outline-color: var(--baek);
}

.viewer__stage {
  display: grid;
  place-items: center;
  min-height: 200px;
  background:
    linear-gradient(rgba(214, 162, 62, 0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(214, 162, 62, 0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    #000;
}

.viewer__stage img,
.viewer__stage video {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 210px);
  background: #000;
}

.viewer__info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--hud-dim);
}

.viewer__info .eyebrow {
  margin: 0 0 6px;
}

.viewer__title {
  margin: 0;
  color: var(--hud);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
}

.viewer__nav {
  display: flex;
  gap: 8px;
}

.link--short {
  height: 40px;
}

/* ── Breakpoints ── */
@media (max-width: 1179px) {
  .sys {
    display: none;
  }
}

@media (max-width: 899px) {
  .topbar__inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .topbar__status,
  .topbar__contact {
    display: none;
  }

  .lang-toggle {
    margin-left: auto;
  }

  .module__code {
    display: none;
  }
}

@media (max-width: 520px) {
  .intro-box {
    width: min(100%, 320px);
  }

  .file__bar > span:nth-child(2),
  .work__bar > span:nth-child(2),
  .work__open {
    display: none;
  }

  .file__bar,
  .file__foot,
  .work__bar,
  .work__foot {
    padding: 6px 8px;
    font-size: 0.6rem;
  }

  .file__body {
    padding: 10px 8px 12px;
  }

  .file__text {
    font-size: 0.74rem;
  }

  .file__foot {
    white-space: nowrap;
  }

  .file__foot [data-barcode] {
    display: none;
  }

  .work__title {
    font-size: 0.72rem;
  }

  .work__play {
    width: 40px;
    height: 40px;
  }

  .endline__label {
    padding: 7px 12px;
    font-size: 0.68rem;
  }
}

@media (min-width: 720px) {
  .gallery {
    columns: 3;
  }

  .channels div {
    grid-template-columns: 140px 1fr;
    align-items: baseline;
  }
}

@media (min-width: 960px) {
  .split--top {
    align-items: start;
  }

  .split,
  .series__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

@media (min-width: 1280px) {
  .gallery {
    columns: 4;
  }
}

@media (min-width: 1100px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: start;
    gap: 28px;
  }

  .navigator {
    position: sticky;
    top: calc(var(--topbar-h) + 40px);
  }
}

@media (max-width: 1099px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .navigator {
    position: fixed;
    z-index: 45;
    top: calc(var(--topbar-h) + 4px);
    right: var(--gutter);
    width: min(280px, calc(100% - var(--gutter) * 2));
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }

  .navigator.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .meter__bar i {
    width: 100%;
  }
}
