/* ==========================================================================
   Gneul Games — site styles
   Palette: deep black / charcoal, dark crimson accent, silver · ivory · muted gold
   ========================================================================== */

@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/ebgaramond-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/ebgaramond-italic-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
/* Korean display face — subset to the Hangul used on this site; only downloaded when Korean text renders. */
@font-face {
  font-family: "Noto Serif KR Sub";
  src: url("/assets/fonts/notoserifkr-sub.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+AC00-D7AF;
}

:root {
  --ink-0: #070607;
  --ink-1: #0c0a0b;
  --ink-2: #141112;
  --ink-3: #1c1819;
  --line: rgba(222, 210, 192, 0.12);
  --line-strong: rgba(222, 210, 192, 0.22);
  --ivory: #ece4d6;
  --silver: #bdb6ad;
  --muted: #8e877f;
  --crimson: #8e1426;
  --crimson-hi: #a81b31;
  --crimson-deep: #4a0a14;
  --gold: #b99b62;

  --f-display: "Cinzel", "Noto Serif KR Sub", "Times New Roman", serif;
  --f-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --f-ui: "Cinzel", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section-y: clamp(96px, 13vw, 176px);
  --ease: cubic-bezier(.22, .61, .21, 1);
  --header-h: 72px;
}

/* Korean: Hangul body in a clean sans for legibility, headings keep a serif voice */
html[lang="ko"] {
  --f-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif;
  --f-display: "Cinzel", "Noto Serif KR Sub", "Nanum Myeongjo", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--silver);
  font-family: var(--f-body);
  font-size: clamp(17px, 0.35vw + 15.6px, 19px);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ko"] body { font-size: clamp(15.5px, 0.25vw + 14.6px, 17px); line-height: 1.8; word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ivory); }
p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; color: var(--ivory); }

::selection { background: var(--crimson); color: #fff; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.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: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ivory); color: var(--ink-0); font-family: var(--f-ui); font-size: 13px; letter-spacing: .08em; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-ui); font-size: 12px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
html[lang="ko"] .studio-hangul { font-family: "Noto Serif KR Sub", serif; }
html[lang="ko"] .eyebrow { letter-spacing: .18em; font-size: 12.5px; }
.eyebrow .numeral {
  font-family: var(--f-display); font-size: 13px; letter-spacing: .1em; color: var(--ivory);
  padding-right: 14px; border-right: 1px solid var(--line-strong);
}
h2 {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.08; letter-spacing: .01em; font-weight: 500;
  margin-top: 22px;
}
html[lang="ko"] h2 { font-weight: 600; letter-spacing: -.01em; line-height: 1.25; font-size: clamp(30px, 3.6vw, 50px); }
h3 { font-family: var(--f-display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; }
html[lang="ko"] h3 { font-weight: 600; line-height: 1.35; }
.lead { font-size: 1.22em; line-height: 1.55; color: var(--ivory); }
html[lang="ko"] .lead { font-size: 1.12em; line-height: 1.75; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ivory); --bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-ui); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--fg); background: var(--bg);
  border: 1px solid var(--bd);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
  isolation: isolate; white-space: nowrap;
}
html[lang="ko"] .btn { letter-spacing: .08em; font-size: 14px; }
.btn svg { width: 12px; height: 12px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
/* bevelled corners for a subtle gothic silhouette */
.btn::before, .btn::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--gold); opacity: .55; transition: opacity .35s; }
.btn::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.btn::after { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }
.btn:hover::before, .btn:hover::after { opacity: 1; }
.btn-crimson { --bg: var(--crimson); --bd: #b7314699; --fg: #f6eee4; }
.btn-crimson:hover { --bg: var(--crimson-hi); --bd: #d24b5f; }
.btn-ghost { --bg: rgba(10, 8, 9, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { --bd: var(--ivory); --bg: rgba(236, 228, 214, .06); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 11.5px; }
.btn-sm::before, .btn-sm::after { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(7, 6, 7, .82); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); flex: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-family: "Cinzel", serif; font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.primary-nav ul { display: flex; gap: 30px; }
.primary-nav ul a {
  position: relative; display: block; padding: 8px 0;
  font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--silver); text-decoration: none; transition: color .3s;
}
html[lang="ko"] .primary-nav ul a { letter-spacing: .08em; font-size: 14px; font-family: var(--f-body); }
.primary-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--crimson-hi); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.primary-nav ul a:hover, .primary-nav ul a.is-current { color: var(--ivory); }
.primary-nav ul a:hover::after, .primary-nav ul a.is-current::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-family: "Cinzel", serif; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.lang-switch button { background: none; border: 0; padding: 8px 6px; cursor: pointer; color: var(--muted); letter-spacing: .14em; transition: color .3s; }
.lang-switch button[aria-pressed="true"] { color: var(--ivory); }
.lang-switch button:hover { color: var(--ivory); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); cursor: pointer; }
.menu-bars { position: relative; display: block; width: 18px; height: 8px; margin: 0 auto; }
.menu-bars i { position: absolute; left: 0; right: 0; height: 1px; background: var(--ivory); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-bars i:first-child { top: 0; } .menu-bars i:last-child { top: 7px; }
.menu-open .menu-bars i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-bars i:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .header-inner { gap: 16px; }
  .header-tools { margin-left: auto; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: -1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 40px;
    padding: 24px var(--gutter) 64px;
    background: rgba(7, 6, 7, .97);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s;
  }
  .menu-open .primary-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-open .site-header { background: rgba(7, 6, 7, .97); border-bottom-color: var(--line); }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav ul a { font-family: var(--f-display); font-size: clamp(26px, 7vw, 36px); letter-spacing: .06em; text-transform: none; padding: 10px 0; color: var(--ivory); }
  html[lang="ko"] .primary-nav ul a { font-size: clamp(24px, 6.4vw, 32px); font-weight: 600; letter-spacing: 0; }
  .primary-nav ul a::after { display: none; }
  .nav-cta { align-self: flex-start; min-height: 52px; padding: 0 26px; font-size: 13px; }
}
@media (max-width: 420px) { .brand-word { font-size: 12.5px; letter-spacing: .24em; } .brand-mark { width: 26px; height: 26px; } }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(72px, 9vh, 112px);
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink-0); }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img {
  object-fit: cover; object-position: 50% 38%;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.06);
  animation: hero-in 2.4s var(--ease) both;
  will-change: transform;
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.12); filter: brightness(.5); } to { opacity: 1; transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.06); filter: none; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(7, 6, 7, .55) 78%, rgba(7, 6, 7, .9) 100%),
    linear-gradient(180deg, rgba(7, 6, 7, .6) 0%, rgba(7, 6, 7, 0) 16%, rgba(7, 6, 7, 0) 40%, rgba(7, 6, 7, .72) 62%, rgba(7, 6, 7, .93) 82%, var(--ink-0) 100%);
}
.hero-content { position: relative; width: 100%; max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; opacity: var(--hero-fade, 1); }
.hero-content > * { animation: rise 1.2s var(--ease) both; }
.hero-title { width: clamp(280px, 46vh, 440px); max-width: 84vw; margin: 0 0 8px; animation-delay: .5s; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .6)); }
.hero-tagline {
  animation-delay: .85s;
  font-family: "Cinzel", serif; font-weight: 500; color: var(--ivory);
  font-size: clamp(14px, 1.25vw, 17px); letter-spacing: .3em; text-transform: uppercase;
}
html[lang="ko"] .hero-tagline { font-family: var(--f-display); letter-spacing: .12em; font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; }
.hero-intro { animation-delay: 1s; max-width: 52ch; margin-top: 14px; color: var(--silver); font-size: 1.08em; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.hero-actions { animation-delay: 1.15s; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 28px; }
.hero-meta { animation-delay: 1.3s; margin-top: 22px; font-family: "Cinzel", serif; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
html[lang="ko"] .hero-meta { font-family: var(--f-body); letter-spacing: .06em; font-size: 13.5px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: "Cinzel", serif; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; writing-mode: vertical-rl;
  animation: rise 1.2s 1.6s var(--ease) both;
}
.scroll-cue i { position: relative; width: 1px; height: 56px; background: var(--line-strong); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ivory); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { top: -40%; } 60%, 100% { top: 100%; } }

/* Narrow portrait screens: show the whole portrait key art, content flows beneath */
@media (max-aspect-ratio: 3/4) {
  .hero { min-height: 0; display: block; padding: 0 0 72px; }
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 2 / 3; max-height: 92vh; max-height: 92svh; }
  .hero-media img { object-position: 50% 30%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(7, 6, 7, .5) 0%, rgba(7, 6, 7, 0) 16%, rgba(7, 6, 7, 0) 55%, rgba(7, 6, 7, .85) 82%, var(--ink-0) 100%); }
  .hero-content { margin: -34vw auto 0; padding: 0 var(--gutter); opacity: 1; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; gap: 16px; }
  .hero-meta { letter-spacing: .16em; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.subhead { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.subhead h3 { margin-top: 16px; font-size: clamp(28px, 3vw, 42px); }
.subhead-note { margin-top: 16px; color: var(--muted); max-width: 60ch; }
.subhead-row { max-width: none; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.subhead-row .subhead-note { margin-top: 0; }

/* thin ornamental rule between major sections */
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(var(--container), calc(100% - var(--gutter) * 2)); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.section + .section::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg);
  background: var(--ink-0); border: 1px solid var(--gold); opacity: .7;
}

/* ---------- The Game ---------- */
.section-game { padding-top: clamp(80px, 10vw, 140px); }
.game-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.game-intro-text p:not(.eyebrow) { margin-top: 24px; max-width: 58ch; }
.game-intro-text .lead { margin-top: 30px; }
.facts { border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: "Cinzel", serif; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
html[lang="ko"] .facts dt { font-family: var(--f-body); letter-spacing: .04em; font-size: 14px; padding-top: 0; }
.facts dd { color: var(--ivory); }
@media (max-width: 900px) { .game-intro { grid-template-columns: 1fr; } }

/* Heroines */
.heroines { margin-top: clamp(96px, 12vw, 168px); scroll-margin-top: calc(var(--header-h) + 8px); }
.heroine-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.heroine-tabs [role="tab"] {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 22px 4px 22px 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--muted); transition: color .35s var(--ease);
}
.heroine-tabs [role="tab"]::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--crimson-hi); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.heroine-tabs [role="tab"][aria-selected="true"] { color: var(--ivory); }
.heroine-tabs [role="tab"][aria-selected="true"]::before { transform: scaleX(1); }
.heroine-tabs [role="tab"]:hover { color: var(--ivory); }
.tab-name { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; }
html[lang="ko"] .tab-name { font-weight: 600; }
.tab-school { font-family: "Cinzel", serif; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); opacity: .75; }
html[lang="ko"] .tab-school { font-family: var(--f-body); letter-spacing: .04em; font-size: 13px; }
[aria-selected="true"] .tab-school { opacity: 1; }

.heroine-panels { position: relative; margin-top: clamp(28px, 3vw, 40px); }
.heroine-panel { animation: panel-in .8s var(--ease) both; }
.heroine-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.heroine-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(240px, 40%) minmax(0, 1fr); align-items: end;
  min-height: clamp(460px, 44vw, 600px);
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.stage-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.9); transform: scale(1.02); transition: transform 6s linear; }
.heroine-panel:not([hidden]) .stage-bg { transform: scale(1.07); }
.heroine-stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 6, 7, .35) 0%, rgba(7, 6, 7, .15) 30%, rgba(7, 6, 7, .8) 58%, rgba(7, 6, 7, .94) 100%),
    linear-gradient(0deg, rgba(7, 6, 7, .85) 0%, rgba(7, 6, 7, 0) 40%);
}
.heroine-sprite { position: relative; display: flex; justify-content: center; align-self: end; padding: 24px 0 26px; }
.heroine-sprite::before {
  content: ""; position: absolute; left: 50%; bottom: 14px; width: 78%; aspect-ratio: 1 / .26; transform: translateX(-50%);
  border-radius: 50%; border: 1px solid rgba(236, 228, 214, .18);
  background: radial-gradient(closest-side, rgba(142, 20, 38, .45), rgba(142, 20, 38, 0));
}
.heroine-panel[data-hue="holy"] .heroine-sprite::before { background: radial-gradient(closest-side, rgba(185, 155, 98, .38), rgba(185, 155, 98, 0)); }
.heroine-panel[data-hue="ember"] .heroine-sprite::before { background: radial-gradient(closest-side, rgba(190, 80, 40, .4), rgba(190, 80, 40, 0)); }
.heroine-sprite img { position: relative; width: clamp(220px, 24vw, 300px); height: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .7)); }
.heroine-body { align-self: center; padding: clamp(32px, 4vw, 56px) clamp(28px, 4.5vw, 64px) clamp(32px, 4vw, 56px) clamp(8px, 2vw, 24px); }
.heroine-school { font-family: "Cinzel", serif; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
html[lang="ko"] .heroine-school { font-family: var(--f-body); letter-spacing: .06em; font-size: 14px; }
.heroine-name { font-family: var(--f-display); font-size: clamp(46px, 6vw, 84px); line-height: 1; margin-top: 10px; letter-spacing: .01em; }
html[lang="ko"] .heroine-name { font-weight: 600; letter-spacing: -.01em; }
.heroine-desc { margin-top: 20px; max-width: 42ch; color: var(--ivory); font-size: 1.1em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { padding: 5px 12px; border: 1px solid var(--line-strong); background: rgba(7, 6, 7, .4); font-family: "Cinzel", serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--silver); }
html[lang="ko"] .tags li { font-family: var(--f-body); letter-spacing: .02em; font-size: 13px; }
.stage-cap, .feature-media figcaption {
  font-family: "Cinzel", serif; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.stage-cap { margin-top: 12px; }
html[lang="ko"] .stage-cap, html[lang="ko"] .feature-media figcaption { font-family: var(--f-body); letter-spacing: .04em; font-size: 12.5px; }
.feature-media img { width: 100%; border: 1px solid var(--line); background: var(--ink-2); }
@media (max-width: 760px) {
  .heroine-stage { grid-template-columns: 1fr; min-height: 0; }
  .heroine-stage::after { background: linear-gradient(180deg, rgba(7, 6, 7, .2) 0%, rgba(7, 6, 7, .55) 35%, rgba(7, 6, 7, .93) 58%, rgba(7, 6, 7, .97) 100%); }
  .heroine-sprite { padding: 28px 0 12px; }
  .heroine-sprite img { width: 210px; }
  .heroine-body { padding: 8px 22px 30px; }
  .heroine-tabs [role="tab"] { padding: 18px 6px 16px 0; }
  .tab-school { letter-spacing: .14em; font-size: 10px; }
}

/* Regions */
.regions { margin-top: clamp(110px, 13vw, 180px); }
.region-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: region; }
.region { position: relative; aspect-ratio: 3 / 4.4; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.region img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.32); transform-origin: 50% 58%; filter: brightness(1.3) saturate(1.05); transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.region::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 6, 7, .1) 30%, rgba(7, 6, 7, .92) 100%); pointer-events: none; }
.region:hover img { transform: scale(1.4); filter: brightness(1.5) saturate(1.1); }
.region-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 18px; }
.region-num { display: block; font-family: "Cinzel", serif; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
html[lang="ko"] .region-num { font-family: var(--f-body); letter-spacing: .06em; font-size: 13px; }
.region h4 { margin-top: 8px; font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; }
html[lang="ko"] .region h4 { font-weight: 600; }
.region p { margin-top: 6px; font-size: .86em; color: var(--silver); line-height: 1.4; }
@media (max-width: 1020px) {
  .region-list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 40vw);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 18px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .region { scroll-snap-align: start; }
}
@media (max-width: 560px) { .region-list { grid-auto-columns: 72vw; } }

/* ---------- Gameplay ---------- */
.section-gameplay { background: linear-gradient(180deg, var(--ink-0), var(--ink-1) 18%, var(--ink-1) 82%, var(--ink-0)); }
.trailer { position: relative; }
.trailer-button, .trailer-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line-strong); background: #000; cursor: pointer; overflow: hidden; }
.trailer-button img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) saturate(.95); transition: transform 1.4s var(--ease), filter .8s var(--ease); }
.trailer-button:hover img { transform: scale(1.03); filter: brightness(.72); }
.trailer-play {
  position: absolute; left: 50%; top: 50%; width: clamp(68px, 8vw, 96px); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; color: var(--ivory);
  border: 1px solid rgba(236, 228, 214, .6); background: rgba(7, 6, 7, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background-color .4s var(--ease), transform .4s var(--ease), border-color .4s;
}
.trailer-play svg { width: 34%; margin-left: 6%; }
.trailer-button:hover .trailer-play { background: var(--crimson); border-color: var(--crimson-hi); transform: translate(-50%, -50%) scale(1.05); }
.trailer-label { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(18px, 3vw, 36px); text-align: left; display: flex; flex-direction: column; gap: 6px; }
.trailer-kicker { font-family: "Cinzel", serif; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
html[lang="ko"] .trailer-kicker { font-family: var(--f-body); letter-spacing: .08em; font-size: 13.5px; }
.trailer-title { font-family: "Cinzel", serif; font-size: clamp(22px, 2.6vw, 36px); color: var(--ivory); letter-spacing: .06em; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-note { margin-top: 12px; font-size: .82em; color: var(--muted); }

.features { margin-top: clamp(96px, 11vw, 160px); display: grid; gap: clamp(88px, 11vw, 150px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.is-flipped .feature-media { order: 2; }
.feature-media figcaption { margin-top: 10px; }
.feature-media { position: relative; }
.feature-media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--line); z-index: -1; }
.feature.is-flipped .feature-media::before { inset: -14px -14px 14px 14px; }
.feature-num { display: block; font-family: "Cinzel", serif; font-size: 13px; letter-spacing: .3em; color: var(--crimson-hi); margin-bottom: 18px; }
.feature-text h3 { font-size: clamp(26px, 2.6vw, 38px); }
.feature-text p { margin-top: 20px; max-width: 46ch; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.is-flipped .feature-media { order: 0; }
  .feature-media::before { display: none; }
}

.gallery { margin-top: clamp(110px, 12vw, 170px); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery-grid button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--ink-2); cursor: zoom-in; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: brightness(.88); }
.gallery-grid button:hover img, .gallery-grid button:focus-visible img { transform: scale(1.05); filter: brightness(1.05); }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

.preview-band {
  margin-top: clamp(96px, 11vw, 150px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center;
  padding: clamp(32px, 4.5vw, 56px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(142, 20, 38, .16), transparent 60%),
    var(--ink-2);
}
.preview-band h3 { margin-top: 14px; }
.preview-band p:not(.eyebrow) { margin-top: 14px; max-width: 54ch; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 900px) { .preview-band { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .preview-actions { flex-direction: column; align-items: stretch; } }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.studio-hangul { margin-top: 10px; font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: .5em; color: var(--muted); }
.studio-head .lead { margin-top: 28px; max-width: 30ch; }
.studio-body p + p { margin-top: 20px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line-strong); }
.pillar { padding: 36px clamp(20px, 2.6vw, 40px) 8px 0; }
.pillar + .pillar { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line); }
.pillar-num { font-family: "Cinzel", serif; font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.pillar h3 { margin-top: 16px; font-size: clamp(22px, 1.9vw, 27px); }
.pillar p { margin-top: 16px; font-size: .96em; }
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0 28px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Contact ---------- */
.section-contact { padding-bottom: clamp(110px, 13vw, 180px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: end; }
.contact-main p:not(.eyebrow) { margin-top: 22px; max-width: 46ch; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 36px; }
.email-link {
  font-family: var(--f-display); font-size: clamp(22px, 3vw, 40px); color: var(--ivory); text-decoration: none;
  background: linear-gradient(var(--crimson-hi), var(--crimson-hi)) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px; transition: background-size .5s var(--ease); overflow-wrap: anywhere;
}
.email-link:hover { background-size: 100% 1px; }
.copy-btn { min-height: 40px; padding: 0 16px; background: none; border: 1px solid var(--line-strong); cursor: pointer; font-family: "Cinzel", serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--silver); transition: border-color .3s, color .3s; }
html[lang="ko"] .copy-btn { font-family: var(--f-body); letter-spacing: .04em; font-size: 13px; }
.copy-btn:hover { border-color: var(--ivory); color: var(--ivory); }
.copy-status { font-size: .85em; color: var(--gold); min-height: 1em; }
.contact-links ul { margin-top: 18px; border-top: 1px solid var(--line-strong); }
.contact-links li { border-bottom: 1px solid var(--line); }
.contact-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; text-decoration: none; transition: padding .4s var(--ease), color .3s; }
.contact-links a:hover { padding-left: 10px; }
.link-name { color: var(--ivory); }
.link-host { font-size: .8em; color: var(--muted); text-align: right; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .contact-links a { flex-direction: column; gap: 2px; } .link-host { text-align: left; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); font-size: .86em; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px 40px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); }
.footer-brand .brand-word { font-size: 12.5px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-meta a, .to-top { text-decoration: none; transition: color .3s; }
.footer-meta a:hover, .to-top:hover { color: var(--ivory); }
.to-top { font-family: "Cinzel", serif; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
html[lang="ko"] .to-top { font-family: var(--f-body); letter-spacing: .04em; font-size: 13px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 4, 5, .96); color: var(--ivory); }
.lightbox[open] { display: grid; place-items: center; animation: fade .35s var(--ease); }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; width: auto; border: 1px solid var(--line); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; background: rgba(7, 6, 7, .6); border: 1px solid var(--line-strong); cursor: pointer; color: var(--ivory); transition: border-color .3s; }
.lb-btn:hover { border-color: var(--ivory); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: .9em; color: var(--silver); padding: 0 80px; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 64px; transform: none; } .lb-caption { bottom: 20px; padding: 0 20px; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .feature-media.reveal { clip-path: inset(0 0 100% 0); transform: none; transition: clip-path 1.3s var(--ease) var(--d, 0ms), opacity .6s var(--ease) var(--d, 0ms); }
.js .feature-media.reveal.is-in { clip-path: inset(-20px -20px -40px -20px); }

/* Smooth language switch */
[data-i18n] { transition: opacity .22s ease; }
html[data-lang-pending] [data-i18n] { opacity: 0; }
.lang-swap [data-i18n] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .feature-media.reveal { opacity: 1; transform: none; clip-path: none; }
  .hero-media img { transform: scale(1.02); }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px var(--gutter); text-align: center; background: radial-gradient(60% 50% at 50% 40%, rgba(142, 20, 38, .14), transparent 70%); }
.nf h1 { font-family: var(--f-display); font-size: clamp(30px, 5vw, 52px); line-height: 1.15; }
.nf .btn { margin-top: 12px; }

/* per-region framing so each guardian sits in the card */
.region:nth-child(1) img { object-position: 60% 55%; transform-origin: 60% 58%; }
.region:nth-child(3) img { object-position: 74% 55%; transform-origin: 74% 58%; }
