@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #000000;
  --surface: #111111;
  --ink: #ffffff;
  --muted: #b5b5b5;
  --accent: #7dff5a;          /* NEON 의 초록 */
  --accent-ink: #000000;
  --field-1: #9ae187; --field-1-ink: #000000;
  --field-2: #93f1f7; --field-2-ink: #000000;
  --field-3: #f3ea7a; --field-3-ink: #000000;
  --field-4: #fbb65c; --field-4-ink: #000000;
  --field-5: #b9c8ff; --field-5-ink: #000000;
  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-giant: clamp(3.4rem, 8.3vw, 8rem);
  --m: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --face: "Roundo", "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--face); font-size: var(--step-body); line-height: 1.5; word-break: keep-all; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #000; }
.wrap { padding-left: var(--m); padding-right: var(--m); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 버튼 (한 가지 모양: 사각) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); font: 600 var(--step-body)/1 var(--face); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); background: #a6ff8c; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.dark { background: #000; color: #fff; }
.btn.dark:hover { background: #222; }

/* ---------- 헤더 + 모자이크 ---------- */
.mast { position: relative; height: 52svh; min-height: 340px; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; }
.mast > * { min-width: 0; min-height: 0; }
.mast img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.mast .t1 { background: var(--field-2); grid-row: span 2; }
.mast .t2 { background: var(--field-3); }
.mast .t3 { background: var(--field-5); }
.mast .t4 { background: var(--accent); }
.mast .wide { grid-column: span 2; }
.mast .drift { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-2%); } }
.mast-cell { overflow: hidden; }

.bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: stretch; z-index: 5; }
.bar .mark { background: #000; color: #fff; padding: 14px 18px; font-weight: 600; text-decoration: none; display: flex; align-items: center; }
.bar nav { background: var(--accent); display: flex; align-items: center; gap: 22px; padding: 0 20px; flex: 0 0 auto; width: auto; min-width: calc(42% - 120px); }
.bar nav a { color: #000; text-decoration: none; font-weight: 500; font-size: var(--step-small); white-space: nowrap; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar .act { margin-left: auto; background: #000; color: #fff; padding: 0 18px; display: flex; align-items: center; text-decoration: none; font-size: var(--step-small); }

.hero-copy { display: grid; grid-template-columns: 42% 1fr; padding: 72px var(--m) 96px; align-items: start; }
.hero-copy .stand { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; color: var(--ink); }
.hero-copy .stand small { display: block; margin-top: 18px; font-size: var(--step-body); color: var(--muted); }
.hero-copy h1 { font-size: var(--step-giant); letter-spacing: -0.05em; line-height: .92; }
.hero-copy h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-copy h1 .ln > span { display: block; animation: rise .9s var(--ease) both; }
.hero-copy h1 .ln:nth-child(2) > span { animation-delay: .11s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-copy .sub { margin-top: 36px; max-width: 38ch; font-size: var(--step-body); }
.hero-copy .acts { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; animation: fadeup .8s .45s var(--ease) both; }
.hero-copy .acts a.link { color: var(--ink); }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 챕터(색 면) 공통 ---------- */
.ch { min-height: 90svh; padding: 120px var(--m); position: relative; }
.ch h2 { font-size: var(--step-head); max-width: 18ch; }
.ch .lede { margin-top: 20px; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
.f1 { background: var(--field-1); color: var(--field-1-ink); }
.f2 { background: var(--field-2); color: var(--field-2-ink); }
.f3 { background: var(--field-3); color: var(--field-3-ink); }
.f4 { background: var(--field-4); color: var(--field-4-ink); }
.f5 { background: var(--field-5); color: var(--field-5-ink); }
.dark { background: #000; color: #fff; }
