:root {
  color-scheme: dark;
  --paper: #101411;
  --ink: #f2f2e9;
  --muted: #b8c0b6;
  --quiet: #7f8d83;
  --line: rgba(237, 241, 224, .18);
  --accent: #d4f46a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Manrope, 'Noto Sans KR', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 72% 0%, rgba(122, 147, 92, .16), transparent 42%), var(--paper); }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 16px; background: var(--accent); color: #111; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.shell { width: min(1600px, calc(100% - 72px)); margin: 0 auto; }

.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark { width: 20px; height: 20px; display: inline-block; border: 1px solid var(--accent); border-radius: 50%; position: relative; }
.brand-mark::after { content: ''; width: 5px; height: 5px; border-radius: 50%; position: absolute; top: 6px; left: 6px; background: var(--accent); }
.topbar .nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 46px); }
.topbar .nav-links a { color: var(--muted); text-decoration: none; font-size: 12px; transition: color .2s ease; }
.topbar .nav-links a:hover { color: var(--accent); }
.top-count { font: 11px var(--mono); color: var(--quiet); white-space: nowrap; }

.hero { min-height: min(790px, calc(100svh - 72px)); display: flex; align-items: end; position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: center 48%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 11, 9, .92) 0%, rgba(7, 11, 9, .7) 42%, rgba(7, 11, 9, .16) 100%), linear-gradient(0deg, rgba(7, 11, 9, .65), transparent 46%); }
.hero-inner { width: min(1600px, calc(100% - 72px)); margin: 0 auto; padding: 104px 0 clamp(54px, 8vh, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 330px); gap: 7vw; align-items: end; }
.eyebrow { color: var(--accent); font: 11px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 22px; }
.hero h1 { font-size: clamp(56px, 10vw, 154px); line-height: .91; letter-spacing: -.085em; font-weight: 800; margin: 0; max-width: 900px; text-wrap: balance; }
.hero h1 span { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.08em; color: var(--accent); }
.hero-lead { max-width: 520px; color: rgba(244, 246, 237, .78); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; margin: 28px 0 0; }
.hero-aside { padding: 22px 0 4px 24px; border-left: 1px solid rgba(212, 244, 106, .6); color: var(--muted); align-self: end; }
.hero-aside strong { display: block; color: var(--ink); font-size: 25px; line-height: 1.18; letter-spacing: -.04em; margin-bottom: 10px; }
.hero-aside p { font-size: 13px; line-height: 1.65; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button-link { display: inline-flex; min-height: 48px; padding: 0 18px; justify-content: center; align-items: center; gap: 18px; color: #131710; background: var(--accent); text-decoration: none; font-size: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button-link:hover { transform: translateY(-2px); background: #e1ffa0; }
.button-link.ghost { border: 1px solid rgba(242, 242, 233, .65); background: transparent; color: var(--ink); }
.button-link.ghost:hover { background: rgba(242, 242, 233, .1); }
.hero-bottom { position: absolute; bottom: 18px; left: 50%; width: min(1600px, calc(100% - 72px)); transform: translateX(-50%); display: flex; justify-content: space-between; color: rgba(244,246,237,.65); font: 10px var(--mono); letter-spacing: .08em; }

.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 24px 22px 26px 0; display: flex; align-items: baseline; gap: 12px; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { font: 400 clamp(28px, 4vw, 50px)/1 var(--serif); letter-spacing: -.06em; color: var(--accent); }
.stat span { color: var(--muted); font-size: 12px; }

.section { padding: clamp(72px, 11vw, 148px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: end; padding-bottom: 36px; }
.section-index { color: var(--quiet); font: 11px var(--mono); letter-spacing: .12em; }
.section-head h2 { font-size: clamp(36px, 6vw, 82px); line-height: .98; letter-spacing: -.07em; margin: 0; max-width: 760px; }
.section-head p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; max-width: 330px; }

.deck-index { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 22px; border-top: 1px solid var(--line); scrollbar-width: thin; }
.deck-index a { display: inline-flex; gap: 10px; align-items: center; flex: 0 0 auto; padding: 9px 12px; color: var(--muted); text-decoration: none; border: 1px solid transparent; font-size: 12px; }
.deck-index a:hover { border-color: var(--line); color: var(--ink); }
.deck-index span { color: var(--accent); font: 10px var(--mono); }
.deck-spread { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.7fr); gap: clamp(28px, 6vw, 92px); align-items: center; padding: clamp(36px, 6vw, 82px) 0; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.deck-spread:nth-of-type(even) { grid-template-columns: minmax(0, 1.7fr) minmax(260px, .78fr); }
.deck-spread:nth-of-type(even) .deck-art { order: -1; }
.deck-copy { padding: 6px 0; }
.deck-number { display: flex; gap: 12px; align-items: center; color: var(--deck-accent, var(--accent)); font: 11px var(--mono); letter-spacing: .12em; margin: 0 0 26px; }
.deck-number::after { content: ''; height: 1px; width: 50px; background: currentColor; }
.deck-copy h3 { margin: 0 0 14px; font-size: clamp(36px, 5.5vw, 76px); line-height: .98; letter-spacing: -.07em; text-wrap: balance; }
.deck-subtitle { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 24px; max-width: 50ch; }
.deck-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--quiet); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.scene-peek { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0 0 28px; list-style: none; }
.scene-peek li { border-bottom: 1px solid var(--line); color: var(--muted); padding: 7px 2px; margin-right: 8px; font-size: 11px; }
.open-deck { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700; }
.open-deck span { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--deck-accent, var(--accent)); color: var(--deck-accent, var(--accent)); border-radius: 50%; transition: transform .2s ease, color .2s ease, background .2s ease; }
.open-deck:hover span { transform: translateX(4px); background: var(--deck-accent, var(--accent)); color: #101411; }
.deck-art { min-width: 0; }
.deck-cover { display: block; position: relative; overflow: hidden; aspect-ratio: 1.67; background: #252c28; color: var(--ink); }
.deck-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.65,.25,1); }
.deck-spread:hover .deck-cover img { transform: scale(1.035); }
.cover-overlay { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(5,8,7,.58),transparent 55%); }
.cover-caption { position: absolute; left: 18px; bottom: 17px; color: #f4f2e8; font: 10px var(--mono); letter-spacing: .1em; }
.shot-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 2px; }
.shot-strip img { display: block; width: 100%; aspect-ratio: 1.68; object-fit: cover; background: #252c28; }

.library { background: #d9e0d2; color: #111812; padding: clamp(72px, 10vw, 132px) 0; }
.library .section-head { border-bottom: 1px solid rgba(16,24,18,.23); }
.library .section-index { color: #52614e; }
.library .section-head p { color: #445044; }
.library .eyebrow { color: #405a30; }
.library-title { font-size: clamp(44px, 8vw, 108px); line-height: .9; letter-spacing: -.085em; margin: 0; }
.library-title em { font-family: var(--serif); font-weight: 400; }
.library-tools { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 20px; align-items: center; padding: 24px 0 18px; }
.search-wrap { position: relative; }
.search-wrap::before { content: '⌕'; position: absolute; left: 0; top: 4px; font-size: 24px; color: #455344; }
.template-search { width: 100%; border: 0; border-bottom: 1px solid rgba(16,24,18,.46); background: transparent; color: #111812; padding: 11px 10px 11px 30px; outline-offset: 4px; }
.template-search::placeholder { color: #5d685d; }
.family-filters { display: flex; justify-content: end; gap: 6px; flex-wrap: wrap; }
.family-filter { border: 1px solid rgba(16,24,18,.24); background: transparent; color: #354133; padding: 10px 12px; cursor: pointer; font-size: 11px; transition: color .2s ease, background .2s ease; }
.family-filter[aria-pressed="true"], .family-filter:hover { background: #142016; color: #e5efdd; }
.family-filter span { opacity: .65; font: 10px var(--mono); margin-left: 5px; }
.filter-status { color: #536050; font: 10px var(--mono); margin: 0 0 16px; min-height: 1em; }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px 18px; }
.template-card { min-width: 0; border-top: 1px solid rgba(16,24,18,.26); padding-top: 10px; }
.template-card[hidden] { display: none; }
.template-preview { position: relative; display: block; color: inherit; text-decoration: none; overflow: hidden; background: #111913; aspect-ratio: 16/10; }
.template-preview img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .55s ease; }
.template-preview:hover img { transform: scale(1.025); }
.review-badge { position: absolute; left: 10px; top: 10px; padding: 7px 9px; background: #192319; color: #f3f4e9; font: 10px/1 var(--sans); font-weight: 750; letter-spacing: .01em; }
.review-badge.status-production { background: #203c21; color: #e6ffd0; }
.review-badge.status-blocked { background: #752d20; color: #fff0e8; }
.preview-cta { position: absolute; right: 10px; bottom: 10px; font: 9px var(--mono); color: white; background: rgba(13,22,15,.8); padding: 8px 9px; }
.template-card .type { display: flex; justify-content: space-between; gap: 8px; color: #52614e; font: 9px var(--mono); letter-spacing: .09em; margin: 11px 0 8px; text-transform: uppercase; }
.template-card h3 { font-size: 18px; line-height: 1.18; letter-spacing: -.045em; margin: 0 0 7px; }
.template-card h3 a { text-decoration: none; }
.template-card h3 a:hover { text-decoration: underline; text-decoration-color: #647b47; text-underline-offset: 4px; }
.template-card p { color: #475247; font-size: 12px; line-height: 1.55; margin: 0; }
.template-card .template-relation { display: flex; gap: 9px; align-items: baseline; margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(16,24,18,.16); color: #263325; font-size: 10px; }
.template-relation b { flex: 0 0 auto; color: #53634d; font-size: 9px; }
.template-guidance { margin-top: 8px; border-bottom: 1px solid rgba(16,24,18,.16); color: #344332; }
.template-guidance summary { padding: 8px 0; cursor: pointer; font-size: 10px; font-weight: 700; }
.template-guidance summary::marker { color: #69804b; }
.template-guidance dl { margin: 0; padding: 2px 0 12px; }
.template-guidance dt { margin-top: 8px; color: #53634d; font: 9px var(--mono); text-transform: uppercase; }
.template-guidance dd { margin: 3px 0 0; color: #344332; font-size: 10px; line-height: 1.55; }
.no-results { display: none; padding: 48px 0; color: #455344; }
.no-results.is-visible { display: block; }

.films { padding: clamp(72px, 10vw, 132px) 0; }
.film-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px, 3vw, 44px); margin-top: 36px; }
.film { min-width: 0; }
.film-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 11px 0; }
.film-head span { color: var(--quiet); font: 10px var(--mono); }
.film video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #0a0d0b; }
.film:first-child video { aspect-ratio: 9/16; object-fit: contain; background: #080b09; }
.film h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.04em; margin: 14px 0 8px; }
.film p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0 0 12px; }
.caption-link { color: var(--accent); font: 10px var(--mono); text-underline-offset: 4px; }
.source-note { margin: 30px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; line-height: 1.7; }
.source-note a { color: var(--muted); }

.closing { padding: clamp(64px, 9vw, 110px) 0 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.closing h2 { margin: 0; font-size: clamp(32px, 5vw, 68px); letter-spacing: -.075em; line-height: .95; }
.closing p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 18px 0 0; }
.closing-nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 18px; }
.closing-nav a { color: var(--muted); text-decoration: none; font-size: 11px; }
.closing-nav a:hover { color: var(--accent); }
.legal { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 14px 0; margin-top: 34px; color: var(--quiet); font: 9px var(--mono); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .template-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .section-head { grid-template-columns: .5fr 1.5fr; }
  .section-head > p { grid-column: 2; }
  .family-filters { justify-content: start; }
  .library-tools { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .shell, .hero-inner, .hero-bottom { width: min(100% - 36px, 540px); }
  .topbar { height: 60px; gap: 8px; }
  .brand { font-size: 12px; gap: 8px; }
  .brand-mark { width: 17px; height: 17px; }
  .brand-mark::after { top: 5px; left: 5px; }
  .topbar .nav-links { gap: 12px; }
  .topbar .nav-links a { font-size: 10px; }
  .top-count { display: none; }
  .hero { min-height: min(760px, calc(100svh - 60px)); }
  .hero::after { background: linear-gradient(90deg, rgba(7,11,9,.84), rgba(7,11,9,.3)), linear-gradient(0deg, rgba(7,11,9,.74), transparent 68%); }
  .hero-inner { display: block; padding: 20vh 0 76px; }
  .hero h1 { font-size: clamp(54px, 16vw, 92px); }
  .hero-lead { font-size: 15px; max-width: 38ch; }
  .hero-aside { display: none; }
  .hero-bottom { font-size: 8px; }
  .stat { display: block; padding: 18px 6px 18px 0; }
  .stat + .stat { padding-left: 10px; }
  .stat b { display: block; font-size: 32px; margin-bottom: 7px; }
  .stat span { font-size: 9px; }
  .section-head { display: block; padding-bottom: 25px; }
  .section-index { display: block; margin-bottom: 18px; }
  .section-head h2 { font-size: clamp(42px, 13vw, 70px); }
  .section-head p { margin-top: 16px; font-size: 13px; }
  .deck-spread, .deck-spread:nth-of-type(even) { grid-template-columns: 1fr; gap: 22px; padding: 34px 0 46px; }
  .deck-spread:nth-of-type(even) .deck-art { order: 0; }
  .deck-copy { order: 1; }
  .deck-art { order: 0; }
  .deck-number { margin-bottom: 15px; }
  .deck-copy h3 { font-size: clamp(38px, 12vw, 58px); }
  .deck-subtitle { font-size: 13px; margin-bottom: 18px; }
  .shot-strip img { aspect-ratio: 1.5; }
  .library-title { font-size: clamp(48px, 14vw, 76px); }
  .library-tools { gap: 14px; padding: 18px 0 12px; }
  .family-filters { display: grid; grid-template-columns: repeat(2,1fr); }
  .family-filter { text-align: left; }
  .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .template-card h3 { font-size: 15px; }
  .template-card p { font-size: 11px; }
  .template-card .type { font-size: 8px; }
  .preview-cta { right: 6px; bottom: 6px; font-size: 8px; padding: 6px; }
  .film-grid { grid-template-columns: 1fr; gap: 32px; }
  .film video { aspect-ratio: 16/9; object-fit: contain; }
  .film:first-child video { aspect-ratio: 9/16; max-height: 70vh; }
  .closing { display: block; }
  .closing-nav { justify-content: start; margin-top: 28px; }
  .legal { margin-top: 26px; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
