@font-face {
  font-family: "Pretendard";
  src: url("assets/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --bg: #f6f5f1;
  --bg-hero: #efeee9;
  --surface: #ffffff;
  --surface-2: #f1f0eb;
  --paper: #fbfaf6;
  --paper-edge: #e9e6dd;
  --ink: #111111;
  --ink-2: #57564f;
  --ink-3: #8f8d85;
  --line: #e2e0d9;
  --accent: #dc1f1a;
  --logo: #dc1f1a;
  --accent-press: #9c120e;
  --cine: #0a0a09;
  --cine-ink: #f3f0e8;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0c; --bg-hero: #121210; --surface: #191916; --surface-2: #211f1c;
    --paper: #1c1b18; --paper-edge: #2c2a26;
    --ink: #f3f2ec; --ink-2: #aaa89f; --ink-3: #75736b; --line: #2d2c27;
    --accent: #ec3a33; --accent-press: #a1150f; --logo: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e0c; --bg-hero: #121210; --surface: #191916; --surface-2: #211f1c;
  --paper: #1c1b18; --paper-edge: #2c2a26;
  --ink: #f3f2ec; --ink-2: #aaa89f; --ink-3: #75736b; --line: #2d2c27;
  --accent: #ec3a33; --accent-press: #a1150f; --logo: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip; word-break: keep-all; overflow-wrap: break-word;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 14px; }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.14; letter-spacing: -.045em; font-weight: 720; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap;
  box-shadow: 0 4px 0 var(--accent-press); transition: filter .12s, transform .08s, box-shadow .08s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-press); }
.btn-sm { height: 38px; padding: 0 16px; border-radius: 11px; font-size: 14px; box-shadow: 0 3px 0 var(--accent-press); }
.btn-sm:active { transform: translateY(3px); }
.btn-lg { height: 60px; padding: 0 34px; font-size: 18px; border-radius: 16px; }
.btn-ghost { display: inline-flex; align-items: center; height: 52px; padding: 0 20px; border-radius: 14px; color: var(--ink-2); font-size: 16px; font-weight: 560; transition: color .15s, background .15s; }
.btn-ghost:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* Logo lockup */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--logo); width: fit-content; }
.logo svg { fill: currentColor; display: block; }
.logo-mark { width: 45px; height: 20px; }
.logo-word { width: 84px; height: 15px; }

/* Corner logo: sits on the hero and scrolls away with it */
.corner-logo { position: absolute; z-index: 10; top: 22px; left: max(20px, calc((100vw - 1320px) / 2)); }
.corner-logo .logo-mark { width: 50px; height: 22px; }
.corner-logo .logo-word { width: 94px; height: 17px; }

/* Hero */
.hero { position: relative; padding-top: 64px; min-height: max(720px, 100svh); background: var(--bg-hero); overflow: hidden; display: grid; place-items: start center; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; z-index: 1; pointer-events: none; background: linear-gradient(color-mix(in srgb, var(--bg) 0%, transparent), var(--bg)); }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 46% 32% at 50% 32%, var(--bg-hero) 35%, transparent 100%); }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: clamp(56px, 10vh, 112px) 20px 0; }
.kicker { color: var(--accent); font-size: 17px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 18px; }
h1 { font-size: clamp(42px, 6.2vw, 86px); line-height: 1.1; letter-spacing: -.05em; font-weight: 760; }
.h1-row { display: block; white-space: nowrap; }
.roller { display: inline-block; position: relative; height: 1.12em; vertical-align: bottom; overflow: hidden; text-align: left; transition: width .5s cubic-bezier(.22, 1, .36, 1);
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.roller-track { display: flex; flex-direction: column; align-items: flex-start; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.roller-track span { display: block; height: 1.12em; line-height: 1.12em; white-space: nowrap; color: var(--accent); }
.hero-sub { max-width: 30em; margin: 26px auto 0; color: color-mix(in srgb, var(--ink) 84%, transparent); font-size: clamp(17px, 1.45vw, 21px); font-weight: 520; line-height: 1.6; letter-spacing: -.025em; text-wrap: balance; }
.hero-cta { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.sprite { position: absolute; }
.in { animation: in-up .6s var(--d, 0ms) var(--ease) both; }
.d1 { --d: 140ms; }
.d2 { --d: 280ms; }
.d3 { --d: 400ms; }
@keyframes in-up { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

/* Cinematic scene */
.cine { position: relative; z-index: 1; height: max(640px, 100svh); background: var(--cine); color: var(--cine-ink); }
/* Light-to-dark hand-off: the dusk starts over the bottom of the hero so the scene has no hard top edge */
.cine-fade { position: absolute; z-index: 3; bottom: 100%; left: 0; right: 0; height: 22vh; pointer-events: none; background: linear-gradient(color-mix(in srgb, var(--cine) 0%, transparent), color-mix(in srgb, var(--cine) 55%, transparent) 60%, var(--cine)); }
.cine-stage { position: relative; height: 100%; overflow: hidden; }
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cine-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 48%, transparent 45%, rgba(0, 0, 0, .72) 100%); }
.cine-grain { position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: screen; animation: grain .9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0) } 20% { transform: translate(-4%, 3%) } 40% { transform: translate(3%, -5%) } 60% { transform: translate(-2%, 6%) } 80% { transform: translate(5%, 2%) } 100% { transform: translate(-3%, -2%) } }
.cine-captions { position: absolute; left: clamp(20px, 6vw, 96px); bottom: clamp(120px, 17vh, 170px); width: min(640px, calc(100% - 40px)); }
.cine-captions li { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; filter: blur(8px); transform: translateY(14px); transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); }
.cine-captions li.on { opacity: 1; filter: none; transform: none; }
.cap-k { display: block; font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: var(--accent); margin-bottom: 18px; }
.cap-t { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -.045em; font-weight: 720; }
.cap-s { margin-top: 16px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: rgba(243, 240, 232, .62); letter-spacing: -.02em; max-width: 30em; }
.scrubber { position: absolute; left: clamp(20px, 6vw, 96px); right: clamp(20px, 6vw, 96px); bottom: clamp(28px, 5vh, 48px); }
.scrub-track { height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.scrub-fill { display: block; height: 100%; width: 100%; background: var(--cine-ink); transform-origin: left; transform: scaleX(0); will-change: transform; }
.scrub-chapters { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.scrub-chapters button { justify-self: start; border: 0; background: none; padding: 4px 0; cursor: pointer; color: rgba(243, 240, 232, .4); font-size: 13px; font-weight: 560; letter-spacing: -.01em; transition: color .3s; }
.scrub-chapters button:hover, .scrub-chapters button.on { color: var(--cine-ink); }

/* Continuous flow */
.flow { padding: clamp(72px, 9vw, 128px) 0 calc(clamp(80px, 10vw, 140px) + 22vh); }
.flow-head { margin-bottom: 40px; }
.flow-band { position: relative; height: clamp(300px, 34vw, 440px); }
.flow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.flow-hint { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: space-between; width: min(100% - 48px, var(--wrap)); margin-inline: auto; color: var(--ink-3); font-size: 13px; pointer-events: none; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.features li { padding: 28px 28px 0 0; }
.features li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.f-k { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 720; letter-spacing: -.045em; margin-bottom: 12px; }
.features p { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; letter-spacing: -.02em; }

/* Page-turning ledger */
.how { position: relative; background: var(--bg); }
.how-stage { position: relative; height: max(680px, 100svh); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: clamp(20px, 4vh, 44px) 20px clamp(20px, 3vh, 32px); overflow: hidden; }
.how-top { text-align: center; }
.book-wrap { align-self: center; perspective: 4200px; }
.book {
  --bw: min(980px, 88vw, calc((100svh - 300px) * 1.56));
  position: relative; width: var(--bw); height: calc(var(--bw) / 1.56); transform-style: preserve-3d;
  transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, 0deg)); transition: transform .2s linear;
}
.book::before { content: ""; position: absolute; inset: 4% -2% -6%; background: radial-gradient(ellipse at 50% 60%, rgba(0, 0, 0, .22), transparent 70%); filter: blur(24px); transform: translateZ(-40px); }
.page, .face { position: absolute; top: 0; width: 50%; height: 100%; background: var(--paper); overflow: hidden; }
.page-left { left: 0; border-radius: 14px 2px 2px 14px; box-shadow: inset -30px 0 40px -30px rgba(0, 0, 0, .18), 0 1px 0 var(--paper-edge); }
.page-right { right: 0; border-radius: 2px 14px 14px 2px; box-shadow: inset 30px 0 40px -30px rgba(0, 0, 0, .18), 0 1px 0 var(--paper-edge); }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transform: rotateY(calc(var(--a, 0) * -1deg)); }
.face { inset: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.front { border-radius: 2px 14px 14px 2px; box-shadow: inset 30px 0 40px -30px rgba(0, 0, 0, .18); }
.face.back { transform: rotateY(180deg); border-radius: 14px 2px 2px 14px; box-shadow: inset -30px 0 40px -30px rgba(0, 0, 0, .18); }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 60%); opacity: var(--shade, 0); }
.face.back::after { background: linear-gradient(270deg, rgba(0, 0, 0, .28), transparent 60%); }
.pg-text { position: absolute; inset: 0; padding: clamp(24px, 4.2%, 52px) clamp(28px, 7%, 64px); display: flex; flex-direction: column; justify-content: center; }
.pg-title { margin-top: 0; font-size: clamp(26px, 2.9vw, 40px); font-weight: 740; letter-spacing: -.045em; line-height: 1.15; }
.pg-desc { margin-top: 12px; color: var(--ink-2); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.6; letter-spacing: -.02em; }
.pg-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
/* The last spread: one message set across the middle of the open book, under the DJNG mark */
.book-finale { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 14%; text-align: center; transform: translateZ(6px); opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.book.at-end .book-finale { opacity: 1; pointer-events: auto; }
.finale-mark { width: clamp(64px, 9%, 96px); aspect-ratio: 133.36 / 60; fill: var(--logo); filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--ink) 14%, transparent)); margin-bottom: clamp(20px, 3.4%, 32px); }
.book-finale .pg-desc { max-width: 24em; }
.book-finale .btn { margin-top: 28px; }
.pg-visual { position: absolute; inset: 0; padding: clamp(24px, 4.2%, 52px); display: grid; grid-template-rows: 1fr auto; }
/* A soft pool of colour behind each illustration, like a printed plate on the page */
.pg-visual::before { content: ""; position: absolute; left: 50%; top: 44%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 7%, transparent), color-mix(in srgb, var(--ink) 2%, transparent) 62%, transparent); pointer-events: none; }
.pg-art { position: relative; grid-row: 1; width: 100%; max-width: 430px; align-self: center; justify-self: center; overflow: visible; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.pg-visual.drawn .pg-art { opacity: 1; transform: none; }
/* Step illustrations: translucent isometric layers that follow the page's ink and accent in both themes */
.pg-iso polygon { stroke-width: 1.5; stroke-linejoin: round; }
.pg-iso .r { stroke: var(--accent); }
.pg-iso .r.t1 { fill: color-mix(in srgb, var(--accent) 14%, transparent); } .pg-iso .r.s1 { fill: color-mix(in srgb, var(--accent) 30%, transparent); } .pg-iso .r.s1b { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.pg-iso .r.t2 { fill: color-mix(in srgb, var(--accent) 22%, transparent); } .pg-iso .r.s2 { fill: color-mix(in srgb, var(--accent) 38%, transparent); } .pg-iso .r.s2b { fill: color-mix(in srgb, var(--accent) 30%, transparent); }
.pg-iso .r.t3 { fill: color-mix(in srgb, var(--accent) 34%, transparent); } .pg-iso .r.s3 { fill: color-mix(in srgb, var(--accent) 52%, transparent); } .pg-iso .r.s3b { fill: color-mix(in srgb, var(--accent) 42%, transparent); }
.pg-iso .k { stroke: color-mix(in srgb, var(--ink) 62%, transparent); }
.pg-iso .k.t1 { fill: color-mix(in srgb, var(--ink) 5%, transparent); } .pg-iso .k.s1 { fill: color-mix(in srgb, var(--ink) 13%, transparent); } .pg-iso .k.s1b { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
.pg-iso .k.t2 { fill: color-mix(in srgb, var(--ink) 8%, transparent); } .pg-iso .k.s2 { fill: color-mix(in srgb, var(--ink) 18%, transparent); } .pg-iso .k.s2b { fill: color-mix(in srgb, var(--ink) 12%, transparent); }
.pg-iso .k-line { stroke: color-mix(in srgb, var(--ink) 60%, transparent); stroke-width: 6; stroke-linecap: round; }
.pg-iso .k-line.thin { stroke-width: 1.5; }
.pg-iso .r-line { stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.pg-iso .guide { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .6; }
.pg-iso .r-text { fill: var(--accent); font-family: Pretendard, system-ui, sans-serif; font-weight: 750; }
.pg-iso .k-text { fill: var(--ink-2); font-family: Pretendard, system-ui, sans-serif; font-weight: 650; }
.book-nav { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.book-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; transition: background .15s, opacity .2s; }
.book-nav button:hover { background: var(--surface-2); }
.book-nav button:disabled { opacity: .35; cursor: default; }
.bn-dots { display: flex; gap: 8px; }
.bn-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.bn-dots i.on { width: 22px; background: var(--ink); }

/* Final CTA */
.final { position: relative; min-height: 580px; display: grid; place-items: center; overflow: hidden; }
.final-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.final-copy { position: relative; text-align: center; display: grid; justify-items: center; gap: 32px; padding: 40px 20px; pointer-events: none; }
.final-copy a { pointer-events: auto; }
.final h2 { font-size: clamp(40px, 5.6vw, 76px); text-shadow: 0 0 28px var(--bg), 0 0 10px var(--bg); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.f-brand { display: flex; align-items: center; gap: 18px; }
.f-brand .logo-mark { width: 36px; height: 16px; }
.f-brand .logo-word { width: 67px; height: 12px; }
.f-brand small { color: var(--ink-3); font-size: 13px; }
.f-links { display: flex; gap: 22px; flex-wrap: wrap; }
.f-links a { color: var(--ink-2); font-size: 14px; transition: color .15s; }
.f-links a:hover { color: var(--accent); }
.f-social { display: flex; gap: 8px; }
.f-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); transition: color .15s, border-color .15s, background .15s; }
.f-social a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); background: var(--surface); }
.f-social svg { width: 16px; height: 16px; fill: currentColor; }
.theme-btn { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
.theme-btn span { width: 30px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; color: var(--ink-3); transition: background .2s, color .2s; }
.theme-btn .t-sun { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] .theme-btn .t-sun { background: none; color: var(--ink-3); }
:root[data-theme="dark"] .theme-btn .t-moon { background: var(--surface-2); color: var(--ink); }

@media (max-width: 1023px) {
  .features { grid-template-columns: 1fr; }
  .features li, .features li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .book { --bw: min(88vw, calc((100svh - 300px) * .78)); height: calc(var(--bw) * 1.28); }
  .page-left { display: none; }
  .page-right, .leaf { left: 0; right: auto; width: 100%; }
  .page-right, .face.front { border-radius: 14px; }
  .how-stage { overflow: hidden; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .corner-logo { top: 16px; left: 16px; }
  .corner-logo .logo-mark { width: 41px; height: 18px; }
  .corner-logo .logo-word { width: 77px; height: 14px; }
  .hero { min-height: max(660px, 100svh); }
  .hero-copy { padding-top: 48px; }
  h1 { font-size: clamp(34px, 10.4vw, 48px); }
  .hero-sub { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 4px; }
  .cine { height: max(600px, 100svh); }
  .cine-captions { bottom: 118px; }
  .cap-t { font-size: 32px; }
  .scrub-chapters button { font-size: 12px; }
  .flow-hint { width: calc(100% - 32px); }
  .flow-canvas { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .final { min-height: 480px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in { animation: none; }
  .cine-grain { animation: none; }
  .cine-captions li, .roller, .roller-track, .book, .pg-art { transition: none; }
  .pg-art { opacity: 1; transform: none; }
}
