/* ==========================================================================
   site.css — seonin.online v7 · design system + shared shell
   Light paper · navy ink · hairlines · pastel accents used sparingly.
   No external fonts / CDNs. Light theme only.
   1 tokens · 2 base · 3 layout · 4 type · 5 shell (header/footer)
   6 components · 7 comic (panel/bubble/strip) · 8 compare · 9 lightbox
   10 home · 11 motion & utilities
   ========================================================================== */

/* 1. TOKENS -------------------------------------------------------------- */
:root {
  --bg: #FAFAF7;
  --bg-tint: #F3F2EC;
  --surface: #FFFFFF;
  --ink: #1B2A49;
  --ink-hover: #263A63;
  --ink-2: #46526B;            /* secondary text (AA on bg) */
  --ink-3: #5E687D;            /* muted text (AA on bg, ~5.3:1) */
  --line: #E5E4DD;
  --line-2: #D3D2C9;

  --lav: #C9B8F2;   --lav-soft: #F1ECFC;
  --mint: #B5EAD7;  --mint-soft: #E8F7F1;
  --peach: #FFD1BA; --peach-soft: #FFF1EA;
  --butter: #FFF1A8; --butter-soft: #FFFAE0;

  --focus: #5B47C4;
  --ok: #1E6B4F;
  --err: #A3312A;

  --font: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(27, 42, 73, .04), 0 6px 20px -10px rgba(27, 42, 73, .10);
  --shadow-lg: 0 2px 4px rgba(27, 42, 73, .05), 0 20px 40px -18px rgba(27, 42, 73, .22);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s14: 112px;

  --max: 1120px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; } }

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--lav); color: var(--ink); }
[hidden] { display: none !important; }
main:focus { outline: none; }
hr, .divider { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 3. LAYOUT -------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--s10); }
.section--tight { padding-block: var(--s8); }
.section--tint { background: var(--bg-tint); }
.section--line { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding-block: var(--s14); } .section--tight { padding-block: var(--s10); } }

.stack > * + * { margin-top: var(--stack, var(--s2)); }
.stack--lg { --stack: var(--s4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.grid { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: var(--s6); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); }
  .split--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

/* 4. TYPE ---------------------------------------------------------------- */
h1, .h1 { font-size: clamp(2.125rem, 1.45rem + 3vw, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
h2, .h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h3, .h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.eyebrow {
  display: inline-block; margin-bottom: var(--s2);
  font-size: .8125rem; line-height: 1.4; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
html[lang="ko"] .eyebrow { letter-spacing: .02em; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.center { text-align: center; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .875rem; color: var(--ink-3); }
.meta li + li::before { content: "·"; margin-right: 16px; color: var(--line-2); }
.meta li { display: inline-flex; align-items: center; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration-color: var(--ink-3); }

.section-head { max-width: 680px; margin-bottom: var(--s6); }
.section-head .lead { margin-top: var(--s2); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2) var(--s4); }
.section-head--row > div { max-width: 680px; }

.page-head { padding-block: var(--s8) var(--s6); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: var(--s2); }
@media (min-width: 768px) { .page-head { padding-block: var(--s10) var(--s8); } }

/* 5. SHELL --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 20px -16px rgba(27, 42, 73, .35); }
.site-header__inner { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 8px; margin-right: auto;
  font-weight: 800; font-size: 1.125rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.brand__mark { width: 24px; height: 24px; flex: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }

.site-nav__list { display: flex; flex-direction: column; gap: 2px; }
.site-nav__link {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.site-nav__link:hover { background: var(--bg-tint); color: var(--ink); }
.site-nav__link[aria-current="page"] { color: var(--ink); background: var(--lav-soft); }

@media (max-width: 899.98px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 24px -20px rgba(27, 42, 73, .45);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: block; }
}
@media (min-width: 900px) {
  .brand { margin-right: 16px; }
  .site-nav { margin-right: auto; }
  .site-nav__list { flex-direction: row; }
  .site-nav__link { min-height: 40px; font-size: .9375rem; }
  .site-nav__link[aria-current="page"] { background: transparent; border-radius: 0; box-shadow: inset 0 -2px 0 var(--ink); }
  .nav-toggle { display: none !important; }
}

.lang-toggle { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.lang-toggle button {
  min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-3);
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s var(--ease), background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: var(--s8) var(--s4); font-size: .9375rem; color: var(--ink-2); }
.site-footer__grid { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer__about { max-width: 36ch; margin-top: 12px; }
.site-footer__title { margin-bottom: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.site-footer__links li + li { margin-top: 8px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3);
}

/* 6. COMPONENTS ---------------------------------------------------------- */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 12px;
  font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-hover); }
.btn--secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); padding-inline: 12px; }
.btn--ghost:hover { background: var(--bg-tint); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: .875rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow::after { content: "\2192"; transition: transform .15s; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); box-shadow: var(--shadow); }
@media (min-width: 768px) { .card { padding: var(--s4); } }
.card--flat { box-shadow: none; }
.card--tight { padding: var(--s2); }
.card--link { transition: border-color .15s, box-shadow .15s; }
.card--link:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__title { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.card__body { margin-top: 8px; color: var(--ink-2); }
.card__media { margin: calc(var(--s3) * -1) calc(var(--s3) * -1) var(--s3); border-radius: var(--r) var(--r) 0 0; overflow: hidden; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .card__media { margin: calc(var(--s4) * -1) calc(var(--s4) * -1) var(--s3); } }
.card__media img { width: 100%; }

/* Badges (status vocabulary: Building / Early access / Projected / Lab) */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .02em; white-space: nowrap;
  background: var(--bg-tint); color: var(--ink); border: 1px solid rgba(27, 42, 73, .08);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge--plain::before { display: none; }
.badge--building { background: var(--mint); }
.badge--early { background: var(--lav); }
.badge--projected { background: var(--peach); }
.badge--lab { background: var(--butter); }
.badge--outline { background: transparent; border-color: var(--line-2); }

/* Avatar / pastel fills */
.avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid rgba(27, 42, 73, .08); font-weight: 800; font-size: 1.125rem; color: var(--ink); }
.bg-lav { background: var(--lav); } .bg-mint { background: var(--mint); }
.bg-peach { background: var(--peach); } .bg-butter { background: var(--butter); }
.hl { background: linear-gradient(transparent 58%, var(--butter) 58%); padding-inline: 2px; }

/* Lists */
.list > li { position: relative; padding-left: 18px; color: var(--ink-2); }
.list > li + li { margin-top: 8px; }
.list > li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.steps { counter-reset: step; display: grid; gap: var(--s3); }
.steps > li { counter-increment: step; position: relative; padding-left: 48px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); font-size: .875rem; font-weight: 800;
}
.steps h3 { font-size: 1.0625rem; }
.steps p { margin-top: 4px; color: var(--ink-2); }

/* Note */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--butter-soft); border: 1px solid #EEE2A2; font-size: .9375rem; }
.note > * + * { margin-left: 0; }

/* Tiers & roadmap */
.tier { display: flex; flex-direction: column; gap: var(--s2); }
.tier__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier__name { font-size: 1.125rem; font-weight: 800; }
.tier__price { font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.tier__price small { margin-left: 6px; font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.tier__desc { color: var(--ink-2); }
.tier .btn { margin-top: auto; }
.tier--featured { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.roadmap__when { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--s2); }

/* Forms */
.field { display: grid; gap: 6px; }
.label { font-size: .9375rem; font-weight: 600; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); transition: border-color .15s;
}
.input::placeholder { color: #6B7488; }
.input:hover { border-color: var(--ink-3); }
.input:focus { border-color: var(--ink); }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-radius: var(--r-sm); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input:disabled { background: var(--bg-tint); color: var(--ink-3); }
.field__hint { font-size: .8125rem; color: var(--ink-3); }
.inline-form { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .inline-form { flex-direction: row; } .inline-form .input { flex: 1; } }
.form-status { margin-top: 12px; font-size: .9375rem; font-weight: 600; }
.form-status[data-state] { padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg-tint); }
.form-status[data-state="success"] { background: var(--mint-soft); color: var(--ok); }
.form-status[data-state="duplicate"] { background: var(--lav-soft); color: var(--ink); }
.form-status[data-state="invalid"], .form-status[data-state="error"] { background: #FCEDEB; color: var(--err); }
.form-status[data-state="loading"] { color: var(--ink-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; list-style: none; cursor: pointer; font-size: 1.0625rem; font-weight: 700;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; flex: none; width: 28px; text-align: center; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--ink-3); }
.faq__item[open] > .faq__q::after { content: "\2212"; }
.faq__q:hover { color: var(--ink-hover); }
.faq__a { max-width: 68ch; padding-bottom: 20px; color: var(--ink-2); }
.faq__a > * + * { margin-top: 10px; }

/* 7. COMIC -------------------------------------------------------------- */
.panel { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); container-type: inline-size; }
.panel > img { width: 100%; }
.panel--bare { border: 0; border-radius: 10px; }
.cut-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
html[lang="ko"] .cut-label { letter-spacing: .02em; }
.bubble {
  position: absolute; z-index: 1; max-width: 66%; margin: 0; padding: .45em .8em .5em;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 1.1em;
  font-size: 14px; font-size: clamp(11px, 4.4cqi, 20px); font-weight: 700; line-height: 1.3;
}
.bubble::after {
  content: ""; position: absolute; bottom: -.42em; left: 1.4em; width: .7em; height: .7em;
  background: inherit; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
}
.bubble__who { display: block; margin-bottom: 1px; font-size: .62em; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); }
.bubble--tl { top: 4%; left: 4%; }
.bubble--tr { top: 4%; right: 4%; }
.bubble--tc { top: 4%; left: 50%; transform: translateX(-50%); }
.bubble--ml { top: 17%; left: 4%; }
.bubble--mr { top: 17%; right: 4%; }
.bubble--low { top: auto; bottom: 6%; }
.bubble--tail-r::after { left: auto; right: 1.4em; }
.bubble--soft { border-style: dashed; }
.bubble--sfx { padding: .25em .6em; border-radius: 6px; background: var(--butter); font-size: clamp(14px, 6.5cqi, 30px); font-weight: 900; letter-spacing: .04em; transform: rotate(-4deg); }
.bubble--sfx::after { display: none; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.strip > li { scroll-snap-align: start; }
@media (min-width: 768px) { .strip { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; } }
.strip__link { display: block; text-decoration: none; border-radius: 12px; }
.strip__img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-tint); transition: border-color .15s, box-shadow .15s; }
.strip__link:hover .strip__img { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.strip__label { display: block; margin-top: 10px; }

/* 8. COMPARE SLIDER ---------------------------------------------------- */
.compare {
  --pos: 50%; position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg-tint); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.compare__img { width: 100%; pointer-events: none; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before .compare__img { height: 100%; object-fit: cover; }
.compare--crop { aspect-ratio: 4 / 5; }
.compare--crop > .compare__img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.compare--crop .compare__img { object-position: 50% 30%; }
.compare__label {
  position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; pointer-events: none;
}
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 1; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(27, 42, 73, .25); pointer-events: none; }
.compare__handle::after {
  content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 1.125rem; font-weight: 700; color: var(--ink);
}
.compare__range:focus-visible ~ .compare__handle::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.compare-caption { margin-top: 12px; font-size: .875rem; color: var(--ink-3); }

/* 9. LIGHTBOX ---------------------------------------------------------- */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 16px 80px; }
@media (min-width: 768px) { .lightbox { padding: 56px 88px; } }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(15, 22, 38, .92); }
.lightbox__figure { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; max-width: min(960px, 100%); max-height: 100%; }
.lightbox__img { width: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); border-radius: 10px; background: #fff; transition: opacity .2s; }
.lightbox__img.is-loading { opacity: .3; }
.lightbox__caption { max-width: 62ch; text-align: center; font-size: .9375rem; color: #E7EAF1; }
.lightbox__count { position: absolute; top: 22px; left: 20px; margin: 0; font-size: .875rem; color: #C3CAD8; }
.lightbox__btn {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.5rem; line-height: 1;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev, .lightbox__next { bottom: 16px; }
.lightbox__prev { left: calc(50% - 60px); }
.lightbox__next { right: calc(50% - 60px); }
@media (min-width: 768px) {
  .lightbox__prev, .lightbox__next { bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox__prev { left: 20px; }
  .lightbox__next { right: 20px; }
}

/* 10. HOME --------------------------------------------------------------- */
.home-hero { padding-block: var(--s6) var(--s10); }
@media (min-width: 900px) { .home-hero { padding-block: var(--s10) var(--s14); } }
.home-hero__grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .home-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s8); } }
.home-hero h1 { max-width: 16ch; }
html[lang="ko"] .home-hero h1 { max-width: 18ch; }
.home-hero .lead { margin-top: var(--s3); }
.home-hero .btn-row { margin-top: var(--s4); }
.home-hero .meta { margin-top: var(--s3); }

.cardstack { position: relative; width: 100%; max-width: 320px; margin-inline: auto; aspect-ratio: 100 / 128; }
@media (min-width: 900px) { .cardstack { max-width: 440px; } }
.cardstack__card { position: absolute; width: 54%; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.cardstack__card img { width: 100%; border-radius: 10px; }
.cardstack__card--l { left: 0; top: 5%; transform: rotate(-2.5deg); }
.cardstack__card--r { right: 0; top: 5%; transform: rotate(2.5deg); }
.cardstack__card--c { left: 23%; top: 0; z-index: 2; }

.crew { display: flex; flex-direction: column; gap: 12px; }
.crew__top { display: flex; align-items: center; gap: 12px; }
.crew__name { font-weight: 800; letter-spacing: .06em; }
.crew__role { font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.crew__line { font-size: .9375rem; color: var(--ink-2); }
.home-sub { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: var(--s8) 0 var(--s3); }
.home-sub h3 { font-size: 1.25rem; }
.home-badges { margin-top: var(--s2); }
.home-early { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 900px) { .home-early { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); } }
.home-early .list { margin-top: var(--s3); }

/* 11. MOTION & UTILITIES -------------------------------------------------- */
.reveal-ready [data-reveal] { transition: opacity .55s var(--ease) calc(var(--i, 0) * 70ms), transform .55s var(--ease) calc(var(--i, 0) * 70ms); }
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(12px); }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: var(--s1); } .mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal-ready [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .skip-link, .lightbox { display: none !important; }
  body { background: #fff; }
}

/* ---- v7 polish ---- */

/* ==== QA fixes v7.1 ==================================================== */
/* 1 header: lang toggle + CTA */
.site-header__actions { gap: 12px; }
.lang-toggle { align-items: center; height: 36px; padding: 3px; gap: 0; }
.lang-toggle button { height: 28px; min-width: 34px; padding: 0 9px; }
.site-header__cta { min-height: 36px; height: 36px; padding-block: 0; }
/* 4 nav: Legal lives in the footer only */
.site-nav__list li:has(> a[hidden]) { display: none; }
/* 2 Korean typography */
html[lang="ko"] :is(h1, h2, h3, .h1, .h2, .h3) { letter-spacing: -.01em; line-height: 1.25; }
html[lang="ko"] :is(.lead, .bubble, p, li) { word-break: keep-all; overflow-wrap: break-word; }
:is(h1, h2, h3, .h1, .h2, .h3) { text-wrap: balance; }
.lead { text-wrap: pretty; }
/* 3 eyebrow contrast */
.eyebrow { color: var(--ink-2); }
/* 7 hero spacing */
.home-hero { padding-block: var(--s5) var(--s6); }
@media (min-width: 900px) { .home-hero { padding-block: var(--s6) var(--s8); } }
.home-hero__grid { align-items: center; }
/* 5 card stack: equal cards, back cards tucked inside the front card */
.cardstack__card { width: 54%; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(27, 42, 73, .10); transform-origin: 50% 50%; }
.cardstack__card--l { left: 23%; right: auto; top: 3%; transform: translateX(-17%) rotate(-2deg) scale(.94); }
.cardstack__card--r { left: 23%; right: auto; top: 3%; transform: translateX(17%) rotate(2deg) scale(.94); }
.cardstack__card--c { left: 23%; top: 3%; z-index: 2; transform: none; }
.cardstack__card--c .panel--bare { border-radius: 10px; }
/* 6 status line */
.home-status { gap: 8px 0; }
.home-status li + li::before { content: ""; display: inline-block; width: 1px; height: 14px; margin: 0 14px; background: var(--line-2); }
.home-status__k { margin-right: 6px; font-weight: 700; color: var(--ink-2); }


/* ---- v7 QA2 ---- */
@media (max-width: 640px) {
  .home-status { flex-direction: column; align-items: flex-start; gap: 6px; }
  .home-status > li + li::before, .home-status > li::before { display: none !important; content: none !important; }
  .home-status > li { border-left: 0 !important; padding-left: 0 !important; margin-left: 0 !important; }
}
@media (hover: none), (max-width: 760px) { .cm-keys { display: none; } }
