/* =========================================================
   BurgerMonster — Monochrome / Grunge / Punk theme
   ========================================================= */

/* ===== Local fonts ===== */
@font-face {
  font-family: 'Bowlby One SC';
  src: url('../assets/fonts/BowlbyOneSC-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gmarket Sans';
  src: url('../assets/fonts/GmarketSansTTFLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gmarket Sans';
  src: url('../assets/fonts/GmarketSansTTFMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gmarket Sans';
  src: url('../assets/fonts/GmarketSansTTFBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'KOTRA';
  src: url('../assets/fonts/KOTRA_BOLD.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #000; }

/* ===== Design tokens (오전 — light canvas) ===== */
:root {
  /* surfaces (canvas → surface-1 → surface-2 = subtle warm grays lift) */
  --bg: #ffffff;            /* canvas */
  --bg-2: #f6f6f6;          /* surface-1 (one step up) */
  --surface: #f6f6f6;       /* surface-1 alias */
  --surface-2: #ececec;     /* surface-2 (featured / selected) */
  --border: #e2e2e2;        /* hairline */
  --border-2: #ededed;      /* hairline-soft */

  /* text */
  --text: #0a0a0a;          /* ink */
  --muted: #6a6a6a;         /* ink-muted */

  /* brand: monochrome anchors — primary CTA = black pill on white canvas */
  --primary: #0a0a0a;       /* primary CTA surface = near-black */
  --on-primary: #ffffff;
  --primary-2: #2a2a2a;     /* hover dim */
  --primary-soft: rgba(0, 0, 0, .06);
  --logo-invert: 1;         /* 1 = invert white-on-transparent logo to dark for light bg */

  /* single chromatic accent: links + focus only */
  --accent-blue: #0099ff;
  --accent: #0099ff;        /* back-compat */

  /* gradient spotlight palette (used as cards, never as section bg) */
  --grad-magenta: #d44df0;
  --grad-violet:  #6a4cf5;
  --grad-orange:  #ff7a3d;
  --grad-coral:   #ff5577;

  --success: #22c55e;
  --danger:  #ff5577;

  /* radius scale */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    10px;        /* md */
  --radius-lg: 20px;        /* xl: cards */
  --radius-xxl: 30px;       /* xxl: gradient spotlight */
  --pill: 100px;

  /* depth */
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.4);

  --container: 1199px;

  /* SVG noise texture (base64 encoded grain) */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== Design tokens override (오후 — dark canvas, color-inverted) ===== */
:root[data-time-mode="afternoon"] {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --border: #262626;
  --border-2: #1a1a1a;
  --text: #ffffff;
  --muted: #999999;
  --primary: #ffffff;
  --on-primary: #0a0a0a;
  --primary-2: #e6e6e6;
  --primary-soft: rgba(255, 255, 255, .08);
  --logo-invert: 0;   /* logo PNG is already white-on-transparent — no invert needed */
}
/* Smooth swap when toggling AM ↔ PM */
html, body { transition: background-color .55s ease, color .55s ease; }

/* grain texture disabled — Framer-style design favors clean flat surfaces */
body::before { display: none; }
body > * { position: relative; }

/* ===== Typography — fonts preserved, tight negative tracking like Framer poster type ===== */
h1, h2, h3, h4 {
  font-family: 'Bowlby One SC', sans-serif;
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.04em;     /* aggressive negative — Framer poster cadence */
  text-transform: none;
  color: var(--text);
}
h1 { font-size: clamp(2.6rem, 5.5vw + 1rem, 6.9rem); letter-spacing: -.05em; line-height: .85; }
h2 { font-size: clamp(2rem, 2.8vw + 1rem, 3.3rem); letter-spacing: -.045em; line-height: .95; }
h3 { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.13; }
h4 { font-size: 1.1rem; letter-spacing: -.02em; }

.text-stroke {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}

/* The brand accent is now ink (white) — single-color anchor.
   Use as a visual emphasis without introducing a second chromatic accent. */
.text-accent { color: var(--text); }

/* a single-shot blue signal — links + selection only */
a { color: var(--accent-blue); }
::selection { background: var(--accent-blue); color: #000; }

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }

.section { padding: 96px 0; position: relative; background: var(--bg); transition: background-color .5s ease; }
.section-alt { background: var(--surface); border-top: none; border-bottom: none; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1.05rem; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Gmarket Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--muted);
  opacity: .55;
}

/* ===== Header — dark translucent bar over the light canvas ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, .85);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: border-color .25s, background .25s, transform .35s cubic-bezier(.16, 1, .3, 1);
}
.site-header.scrolled {
  border-bottom-color: rgba(255, 255, 255, .08);
  background: rgba(10, 10, 10, .94);
}
/* Smart hide — JS toggles this class when the user scrolls down. Colors are unchanged;
   the header just slides off the top of the viewport. */
.site-header.header-hidden { transform: translateY(-100%); }
/* Nav drawer must stay visible even when the header is "hidden" (e.g., open drawer + scroll) */
.site-header.header-hidden .nav.open { transform: translateY(100%); }
/* Logo PNG is white-on-transparent — display as-is on the dark header */
.site-header .brand img { filter: none; }
/* Nav links read against the dark header bar */
.site-header .nav a { color: rgba(255, 255, 255, .65); }
.site-header .nav a:hover { color: #ffffff; background: rgba(255, 255, 255, .08); }
.site-header .nav a.active { color: #ffffff; background: rgba(255, 255, 255, .12); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  transition: opacity .15s, transform .15s;
  flex-shrink: 0;
}
.brand:hover { opacity: .85; transform: scale(1.02); }
.brand img {
  height: 60px;
  width: auto;
  display: block;
}
@media (max-width: 820px) {
  .header-inner { height: 76px; }
  .brand img { height: 44px; }
}
@media (max-width: 480px) {
  .brand img { height: 38px; }
}

.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  color: var(--muted);
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 500;
  font-size: .92rem;
  text-transform: none;
  letter-spacing: -.01em;
  border-radius: var(--pill);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  gap: 5px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Language switch (KO/EN pill in the dark header) ===== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--pill);
  padding: 3px;
  margin-left: 8px;
}
.lang-btn {
  padding: 5px 11px;
  border-radius: var(--pill);
  font-family: 'Gmarket Sans', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
  background: transparent;
  transition: color .15s, background .15s;
  cursor: pointer;
}
.lang-btn:hover { color: #ffffff; }
.lang-btn.active {
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
}
@media (max-width: 480px) {
  .lang-switch { margin-left: 4px; }
  .lang-btn { padding: 4px 9px; font-size: .68rem; }
}

/* ===== Time-of-day toggle (오전 ☀️ / 오후 🌙) ===== */
.time-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  padding: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
  border: 0;
  transition: background .15s, transform .15s;
}
.time-toggle:hover { background: rgba(255, 255, 255, .16); transform: scale(1.06); }
.time-toggle .ti-am { display: inline; }
.time-toggle .ti-pm { display: none; }
:root[data-time-mode="afternoon"] .time-toggle .ti-am { display: none; }
:root[data-time-mode="afternoon"] .time-toggle .ti-pm { display: inline; }
@media (max-width: 480px) {
  .time-toggle { width: 30px; height: 30px; font-size: .95rem; margin-left: 4px; }
}

@media (max-width: 820px) {
  /* Full-screen drawer menu — Studio-JT style: poster-size display text + dark canvas */
  .nav {
    position: fixed;
    top: 0; right: 0; left: 0; bottom: 0;
    padding: 96px 32px 32px;
    background: rgba(10, 10, 10, .96);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
            backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 0;
    transform: translateY(-100%);
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
    overflow-y: auto;
    z-index: 49;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .nav.open { transform: translateY(0); }
  .nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }
  .nav a {
    display: block;
    padding: 18px 6px;
    font-family: 'Bowlby One SC', sans-serif;
    font-size: clamp(2rem, 8vw + .5rem, 4.4rem);
    letter-spacing: -.05em;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(40px);
    opacity: 0;
    transition: color .15s, transform .55s cubic-bezier(.16, 1, .3, 1), opacity .55s ease;
  }
  .nav.open a { transform: translateY(0); opacity: 1; }
  /* Stagger reveal — each item slides up 60ms after the previous */
  .nav.open li:nth-child(1) a { transition-delay: .08s; }
  .nav.open li:nth-child(2) a { transition-delay: .14s; }
  .nav.open li:nth-child(3) a { transition-delay: .20s; }
  .nav.open li:nth-child(4) a { transition-delay: .26s; }
  .nav.open li:nth-child(5) a { transition-delay: .32s; }
  .nav a:hover { color: #ffffff; background: transparent; }
  .nav a.active { color: #ffffff; background: transparent; }
  .nav a.active::after { display: none; }
  .nav-toggle { display: flex; z-index: 51; }
  /* Hamburger morphs to X when drawer is open */
  body.nav-locked { overflow: hidden; }
}

/* ===== Buttons — pill on dark, no shadow, surface lift only ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--pill);
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 500;
  font-size: .92rem;
  text-transform: none;
  letter-spacing: -.01em;
  transition: transform .15s, background .2s, color .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

/* primary = white pill on dark (single anchor CTA shape) */
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); }

/* secondary = charcoal pill (surface-1 lift) */
.btn-ghost,
.btn-outline,
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface);
}
.btn-ghost:hover,
.btn-outline:hover,
.btn-secondary:hover { background: var(--surface-2); border-color: var(--surface-2); }

/* the previous CTA-inner hover override is no longer needed — disabled */
.cta-inner .btn-outline:hover { background: var(--surface-2); color: var(--text); border-color: var(--surface-2); }

/* =========================================================
   Supercell-style home (sc-*)
   Full-bleed game hero · games grid · studio statement · join CTA
   ========================================================= */

/* BANNER HERO — full-bleed key art (logo + characters baked in). Background is locked
   to white in both AM/PM modes so the side gutters (viewport > 1600px max-width img)
   always match the PNG's own white background — banner never reveals the dark canvas. */
.banner-hero {
  background: #ffffff;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.banner-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1600px;
  margin: 0 auto;
  /* preserve crisp character art on retina displays */
  image-rendering: -webkit-optimize-contrast;
}
/* Hairline white cover (0.6%) flattens the PNG's soft wavy bottom — fixed to white in
   both modes to match the banner-hero's locked-white background. */
.banner-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: .6%;
  background: #ffffff;
  pointer-events: none;
}
@media (max-width: 720px) {
  /* on phones, the wide banner reads as tiny — give it a touch of breathing room */
  .banner-hero { padding: 8px 0; }
}

/* GAMES grid */
.sc-games {
  padding: 96px 0;
  background: var(--bg);
}
.sc-section-head {
  margin-bottom: 56px;
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
}
.sc-section-head .eyebrow { margin-bottom: 0; }
.sc-section-title {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: clamp(1.8rem, 2.4vw + .8rem, 3.2rem);
  letter-spacing: -.045em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}
.sc-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .sc-games-grid { grid-template-columns: 1fr; gap: 16px; }
}

.sc-game-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xxl);
  overflow: hidden;
  background: var(--surface);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  isolation: isolate;
}
.sc-game-tile:hover { transform: translateY(-4px); }
.sc-game-tile-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sc-game-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.sc-game-tile:hover .sc-game-tile-art img { transform: scale(1.04); }
.sc-game-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.78));
}
.sc-game-tile-name {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: clamp(1.6rem, 2vw + .8rem, 2.4rem);
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0 0 6px;
  color: #ffffff;
  text-transform: uppercase;
}
.sc-game-tile-tag {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin: 0;
  letter-spacing: -.012em;
}

/* Coming soon variant — light surface with soft violet/coral wash, no hover lift */
.sc-game-tile-coming {
  background:
    radial-gradient(circle at 30% 30%, rgba(106,76,245,.08), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(212,77,240,.06), transparent 60%),
    var(--surface);
  cursor: default;
  border: 1px solid var(--border-2);
}
.sc-game-tile-coming:hover { transform: none; }
.sc-game-tile-coming .sc-game-tile-overlay {
  background: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sc-game-tile-coming .sc-game-tile-name {
  color: var(--muted);
  opacity: .85;
}
.sc-game-tile-coming .sc-game-tile-tag {
  color: var(--muted);
  opacity: .6;
}

/* STUDIO STATEMENT section */
.sc-statement {
  padding: 144px 0;
  background: var(--bg);
  text-align: center;
}
.sc-statement .eyebrow {
  justify-content: center;
}
.sc-statement-actions {
  margin-top: 36px;
}

/* ===== Brand statement section ===== */
.brand-statement {
  padding: 128px 0;
  background: var(--bg);
  text-align: center;
}
.display-statement {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: clamp(2.4rem, 5vw + .8rem, 5.8rem);
  letter-spacing: -.05em;
  line-height: .85;
  margin: 0 0 24px;
  color: var(--text);
  text-transform: uppercase;
}
.display-statement-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, .8vw + .8rem, 1.4rem);
  line-height: 1.3;
  letter-spacing: -.012em;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Hero (legacy — kept for backward compat, no longer used on home) ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  padding: 80px 0;
  border-bottom: none;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(.45);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 2;
}
.hero-title {
  position: relative;
  font-size: clamp(2rem, 4.4vw + 1rem, 4.6rem);
  letter-spacing: .01em;
  margin: 0 0 40px;
}
.hero-sub {
  color: #ffffff;
  font-size: clamp(1rem, 1.6vw + .25rem, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 880px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.hero-sub-break { display: none; }
.hero-tagline {
  margin: 0 auto 24px;
  font-family: 'Bowlby One SC', sans-serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 6.2vw + 1rem, 6.9rem);
  letter-spacing: -.045em;
  line-height: .9;
  color: var(--text);
  text-transform: uppercase;
}

.hero-tagline-sub {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, .9vw + .8rem, 1.4rem);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -.012em;
  max-width: 720px;
}

/* ===== Single-game showcase spotlight ===== */
.game-spotlight {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 56px;
  align-items: center;
}
.spotlight-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-2);
  aspect-ratio: 3 / 4;
}
.spotlight-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spotlight-tag {
  display: inline-block;
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: -.012em;
  text-transform: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 5px 14px;
  margin-bottom: 18px;
}
.spotlight-title {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem);
  letter-spacing: -.045em;
  line-height: .95;
  margin: 0 0 18px;
}
.spotlight-desc {
  color: var(--muted);
  font-size: clamp(1rem, .5vw + .9rem, 1.15rem);
  line-height: 1.4;
  letter-spacing: -.012em;
  margin: 0 0 28px;
}
.spotlight-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .game-spotlight {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    text-align: center;
  }
  .spotlight-art { max-width: 420px; width: 100%; }
  .spotlight-cta { justify-content: center; }
}

/* ===== Under construction page ===== */
.under-construction {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.under-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(10px) brightness(.55);
  transform: scale(1.08); /* hide blurred edges */
  pointer-events: none;
}
.under-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 50% 40%, rgba(255, 255, 255, .04), transparent 70%),
    linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.65) 100%);
}
.under-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.under-icon {
  font-size: clamp(3.5rem, 8vw, 6rem);
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
}
.under-title {
  font-size: clamp(2rem, 4vw + 1rem, 4rem);
  line-height: 1.1;
  margin: 12px 0 24px;
}
.under-sub {
  color: var(--muted);
  font-size: clamp(1rem, .6vw + .8rem, 1.15rem);
  line-height: 1.7;
  margin: 0 auto 36px;
  max-width: 540px;
}
.under-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .under-construction { padding: 56px 0; }
  .under-cta .btn { width: 100%; max-width: 320px; }
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Gmarket Sans', sans-serif;
  font-size: .8rem;
  letter-spacing: -.012em;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
}
.hero-scroll-mark {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--muted);
  opacity: .6;
}
.hero-scroll:hover { color: var(--text); }
.hero-scroll:hover .hero-scroll-mark { background: var(--text); opacity: 1; }
@media (max-width: 720px) {
  .hero { min-height: calc(100vh - 76px); padding: 56px 0; }
  .hero-title { margin: 0 0 24px; }
  .hero-sub { white-space: normal; }
  .hero-sub-break { display: inline; }
  .hero-scroll { bottom: 20px; font-size: .68rem; }
}

/* Hero overlay — dark tint over the video for text legibility. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, .45);
}
/* Removed legacy blobs */
.blob { display: none; }

/* Marquee strip */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 1.4rem;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Section-driven theme swap — DISABLED =====
   Per DESIGN.md: "Don't ship a light-mode marketing page. Framer's identity is dark."
   The JS observer still toggles body.bg-light when data-theme="light" sections enter view,
   but the class no longer rewrites tokens — the canvas stays dark site-wide. */
body { transition: background-color .5s ease, color .5s ease; }

/* ===== Header: light theme follow ===== */
.site-header .brand img { transition: filter .35s ease; }
.nav-toggle, .nav-toggle span { transition: background .35s ease, border-color .35s ease; }

/* body.bg-light header/nav rules removed — dark canvas everywhere */

/* ===== Page Hero ===== */
.page-hero {
  padding: 128px 0 88px;
  position: relative;
  border-bottom: none;
  background: var(--bg);
}
.page-hero h1 {
  margin: 12px 0 20px;
  font-family: 'Bowlby One SC', sans-serif;  /* match Hero Siege title face */
  letter-spacing: -.04em;
  line-height: 1.08;
  text-transform: uppercase;
}
.page-sub { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
.page-sub strong { color: var(--text); font-weight: 800; }

/* ===== Grid ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ===== Cards ===== */
.card-game {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, background .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
}
.card-game::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .2s;
}
.card-game:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: var(--border);
}
.card-thumb {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #1f1f1f 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card-thumb.has-image { background: #000; aspect-ratio: 3 / 4; }
.card-thumb.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: .25;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.card-thumb::after {
  content: "▶ PLAY";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .92);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  opacity: 0;
  transition: opacity .2s;
}
.card-game:hover .card-thumb::after { opacity: 1; }
.card-body { padding: 20px 22px 24px; }
.card-tag {
  display: inline-block;
  font-family: 'Gmarket Sans', sans-serif;
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
}
.card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: .9rem; line-height: 1.3; letter-spacing: -.01em; }

.card-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s, background .2s, border-color .2s;
  position: relative;
}
/* Hover always "lifts" — brighter than rest. Light mode: warm white; dark mode: subtle gray-up. */
.card-feature:hover {
  transform: translateY(-2px);
  background: #fbfbfb;
  border-color: var(--border);
}
/* When card sits inside section-alt (which is surface-1), lift card to surface-2 for contrast */
.section-alt .card-feature { background: var(--surface-2); }
.section-alt .card-feature:hover { background: #fbfbfb; }

/* Dark mode (오후) — flip direction: hover gets *brighter* than rest dark surface. */
:root[data-time-mode="afternoon"] .card-feature:hover {
  background: var(--surface-2);
  border-color: var(--border);
}
:root[data-time-mode="afternoon"] .section-alt .card-feature:hover { background: #262626; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: var(--bg);
}
.card-feature h3 { margin-bottom: 10px; letter-spacing: -.025em; }
.card-feature p { color: var(--muted); font-size: .95rem; letter-spacing: -.01em; line-height: 1.4; }

/* Gradient spotlight card variant — DESIGN.md signature surface (rounded-xxl 30px, colored ground) */
.card-feature.spotlight-violet,
.card-feature.spotlight-magenta,
.card-feature.spotlight-orange,
.card-feature.spotlight-coral {
  border-radius: var(--radius-xxl);
  border: 0;
  color: #ffffff;
  padding: 36px 32px;
}
.card-feature.spotlight-violet {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, var(--grad-violet), var(--grad-magenta));
}
.card-feature.spotlight-magenta {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, var(--grad-magenta), var(--grad-coral));
}
.card-feature.spotlight-orange {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, var(--grad-orange), var(--grad-coral));
}
.card-feature.spotlight-coral {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, var(--grad-coral), var(--grad-magenta));
}
.card-feature[class*="spotlight-"]:hover { background-blend-mode: normal; transform: translateY(-2px); }
.card-feature[class*="spotlight-"] h3 { color: #ffffff; letter-spacing: -.035em; }
.card-feature[class*="spotlight-"] p { color: rgba(255,255,255,.88); }
.card-feature[class*="spotlight-"] .feature-icon {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
  color: #ffffff;
}

/* Vision grid — wider min so 6 cards lay out as 3+3 on desktop, not 4+2 */
.vision-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}
@media (max-width: 720px) {
  .vision-grid { grid-template-columns: 1fr; gap: 20px; }
}

.vision-title {
  font-family: 'Gmarket Sans', sans-serif;
  letter-spacing: .01em;
}

/* Value cards on About page — richer content with tagline + body paragraphs. */
.value-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.value-card h3 {
  font-family: 'Gmarket Sans', sans-serif;
  font-size: 1.85rem;
  letter-spacing: .01em;
  margin-bottom: 16px;
  text-transform: none;
}
.value-card .value-tagline {
  color: var(--text);
  font-family: 'Gmarket Sans', sans-serif;
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: .01em;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-2);
}
.value-card p:not(.value-tagline) {
  color: var(--muted);
  font-family: 'Gmarket Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 14px;
  font-weight: 500;
}
.value-card p:not(.value-tagline):last-child { margin-bottom: 0; }

.card-benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform .15s, border-color .15s;
}
.card-benefit:hover { transform: translateY(-2px); border-color: var(--primary); }
.card-benefit span { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.card-benefit strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.card-benefit p { color: var(--muted); font-size: .85rem; }

/* ===== Filter bar ===== */
.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 9px 18px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  min-width: 240px;
  font-size: .9rem;
  transition: border-color .15s;
}
.search-input:focus { outline: none; border-color: var(--primary); }

/* ===== Game Modal ===== */
.game-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.game-modal.open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.modal-tag {
  display: inline-block;
  font-family: 'Gmarket Sans', sans-serif;
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}
.modal-head h2 { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.05; margin-top: 4px; }
.modal-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--text);
  border: none;
  font-size: 1.05rem;
  transition: background .15s, color .15s;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.modal-frame-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
.modal-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-frame-wrap.is-unavailable iframe { visibility: hidden; }
.modal-frame-wrap.is-unavailable::after {
  content: "🚧  Coming Soon  ·  곧 플레이할 수 있도록 준비 중이에요";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,255,255,.05), transparent 70%),
    var(--bg-2);
  color: var(--text);
  font-family: 'Bowlby One SC', sans-serif;
  font-size: clamp(1rem, 1.6vw + .4rem, 1.5rem);
  letter-spacing: .04em;
  line-height: 1.4;
}
.modal-desc { padding: 18px 22px; color: var(--muted); }

/* ===== Two col ===== */
.two-col { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col h2 { margin-bottom: 16px; }
.two-col p { color: var(--muted); }

/* ===== Timeline ===== */
.timeline {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border-2);
}
.timeline li {
  position: relative;
  padding: 8px 0 32px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -28px; top: 14px;
  width: 14px; height: 14px;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--primary);
  border-radius: 0;
  transform: rotate(45deg);
}
.t-year {
  font-family: 'Bowlby One SC', sans-serif;
  color: var(--primary);
  font-size: 1.5rem;
}
.timeline h4 { margin-bottom: 6px; font-size: 1.15rem; }
.timeline p { color: var(--muted); font-size: .95rem; }

/* ===== Jobs list ===== */
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  transition: border-color .15s, transform .15s;
}
.job-item:hover { background: var(--surface-2); border-color: var(--border); }
.job-item h3 { font-size: 1.2rem; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.job-meta {
  color: var(--muted);
  font-size: .78rem;
  font-family: 'Gmarket Sans', sans-serif;
  text-transform: none;
  letter-spacing: -.01em;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.job-meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-apply-btn {
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid var(--primary);
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 500;
  font-size: .85rem;
  text-transform: none;
  letter-spacing: -.01em;
  transition: background .15s, border-color .15s;
}
.job-apply-btn:hover {
  background: var(--primary-2);
  border-color: var(--primary-2);
}
@media (max-width: 640px) { .job-item { grid-template-columns: 1fr; } }

/* ===== Recruit channels (careers page) ===== */
.recruit-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.recruit-channel {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: background .2s, border-color .2s, transform .2s;
}
.recruit-channel:hover { background: var(--surface-2); border-color: var(--border); transform: translateY(-2px); }
.recruit-channel h3 {
  font-size: 1.7rem;
  margin: 0;
  letter-spacing: -.035em;
  line-height: 1;
}
.recruit-channel p {
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.recruit-channel .btn { margin-top: 10px; }
@media (max-width: 720px) {
  .recruit-channels { grid-template-columns: 1fr; gap: 16px; }
  .recruit-channel { padding: 32px 24px; }
}

/* ===== Form ===== */
.apply-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 820px;
  margin: 0 auto;
}
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field span {
  font-family: 'Gmarket Sans', sans-serif;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -.012em;
}
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: .95rem;
  font-family: 'Gmarket Sans', sans-serif;
  color: var(--text);
  letter-spacing: -.01em;
  transition: box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(0,153,255,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.checkbox { flex-direction: row; align-items: flex-start; gap: 12px; }
.field.checkbox input { width: 18px; height: 18px; accent-color: var(--accent-blue); margin-top: 2px; }
.field.checkbox span {
  color: var(--muted);
  font-size: .85rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
  font-weight: 400;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.form-result {
  margin-top: 18px;
  font-size: .95rem;
  min-height: 1.5em;
}
.form-result.success { color: var(--success); }
.form-result.error { color: var(--primary); }

/* ===== Contact card ===== */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.contact-card p, .contact-card a { color: var(--muted); font-size: .95rem; }
.contact-card a:hover { color: var(--primary); }

/* ===== CTA section ===== */
.cta-section { background: var(--bg); border-top: none; }
/* Gradient spotlight card — used on home CTA and careers contact strip.
   Per DESIGN.md: gradient lives on the CARD, never on a section background. */
.cta-inner {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, var(--grad-violet) 0%, var(--grad-magenta) 55%, var(--grad-coral) 100%);
  border-radius: var(--radius-xxl);
  padding: 72px 56px;
  text-align: center;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.cta-inner::before { display: none; }
.cta-inner h2 {
  color: var(--text);
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
  letter-spacing: -.045em;
  line-height: .95;
}
.cta-inner p { margin-bottom: 32px; font-weight: 400; max-width: 540px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,.88); letter-spacing: -.01em; }
/* On the gradient card, primary CTA stays white for high contrast against the colored ground.
   (Light canvas elsewhere uses a black pill, but on the gradient white reads more clearly.) */
.cta-inner .btn-primary {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  box-shadow: none;
}
.cta-inner .btn-primary:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  padding-bottom: 56px;
}
.site-footer .brand img { height: 72px; filter: brightness(calc(1 - var(--logo-invert))); transition: filter .55s ease; }
@media (max-width: 640px) { .site-footer .brand img { height: 56px; } }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  margin-bottom: 14px;
  font-size: .82rem;
  text-transform: none;
  letter-spacing: -.012em;
  color: var(--muted);
  font-weight: 500;
}
.footer-cols a {
  color: var(--text);
  font-size: .88rem;
  letter-spacing: -.01em;
  display: inline-block;
  padding: 4px 0;
  transition: color .15s, opacity .15s;
}
.footer-cols a:hover { opacity: .65; }
.copyright {
  padding: 24px 24px;
  border-top: 1px solid var(--border-2);
  color: var(--muted);
  font-size: .78rem;
  font-family: 'Gmarket Sans', sans-serif;
  text-align: center;
  letter-spacing: -.012em;
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; gap: 40px; } }

/* ===== Reveal animations — disabled =====
   Framer's marketing canvas presents content with confident always-visible defaults.
   The .reveal class is now a no-op (no fade-in required). The JS observer still adds
   .in but it doesn't change appearance. */
.reveal, .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  body::before { display: none; }
}

/* Debug mode visuals (set by ?debug=1) */
[data-bm-debug] .container { outline: 1px dashed rgba(255,255,255,.1); }

/* =========================================================
   Responsive refinements
   ========================================================= */

/* 태블릿 — 1024px 이하 */
@media (max-width: 1024px) {
  .section { padding: 88px 0; }
  .hero { padding: 64px 0 88px; }
  .page-hero { padding: 72px 0 56px; }
  .grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
  .grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .cta-inner { padding: 56px 40px; }
  .marquee-track { font-size: 1.6rem; gap: 36px; }
  .marquee-track span { gap: 36px; }
}

/* 모바일 — 720px 이하 */
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 48px 0 72px; }
  .page-hero { padding: 56px 0 40px; }
  .hero-sub, .page-sub { font-size: 1rem; }
  .hero-cta { margin-bottom: 48px; gap: 12px; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .hero-stats { gap: 32px; padding-top: 32px; }
  .hero-stats strong { font-size: 1.8rem; }
  .marquee { padding: 16px 0; }
  .marquee-track { font-size: 1.2rem; gap: 28px; }
  .marquee-track span { gap: 28px; }
  .marquee-track .dot { width: 8px; height: 8px; }
  .apply-form { padding: 24px 20px; }
  .filter-bar { padding: 12px 0; gap: 12px; }
  .search-input { min-width: 0; width: 100%; }
  .job-item { padding: 18px 20px; }
  .job-apply-btn { width: 100%; text-align: center; }
  .contact-card { padding: 22px; }
  .modal-content { border-radius: var(--radius); }
  .modal-head { padding: 14px 16px; }
  .modal-head h2 { font-size: 1.15rem; }
  .modal-desc { padding: 14px 16px; font-size: .9rem; }
  .icon-btn { width: 38px; height: 38px; }
  .cta-inner { padding: 44px 24px; }
  .cta-inner h2 { font-size: 1.7rem; }
  .timeline { padding-left: 28px; }
  .timeline li { grid-template-columns: 96px 1fr; gap: 20px; padding: 6px 0 24px; }
  .t-year { font-size: 1.25rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* 작은 모바일 — 420px 이하 */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.7rem; }
  .btn { padding: 14px 22px; font-size: .82rem; letter-spacing: .12em; }
  .hero-stats { gap: 24px; }
  .hero-stats > div { min-width: 84px; }
  .hero-stats strong { font-size: 1.55rem; }
  .card-thumb { font-size: 3.5rem; }
  .card-feature { padding: 28px 22px; }
  .card-feature h3 { font-size: 1.15rem; }
  .feature-icon { width: 48px; height: 48px; font-size: 1.5rem; }
  .modal-head { flex-wrap: wrap; }
  .modal-actions { order: -1; margin-left: auto; }
  .filter-tab { padding: 8px 12px; font-size: .72rem; letter-spacing: .1em; }
  .timeline { padding-left: 22px; }
  .timeline li { grid-template-columns: 80px 1fr; gap: 16px; }
  .t-year { font-size: 1.05rem; }
}

/* 가로 화면 모바일 (랜드스케이프) — 게임 모달 높이 보정 */
@media (max-height: 480px) and (orientation: landscape) {
  .modal-content { max-height: calc(100vh - 16px); }
  .modal-frame-wrap { aspect-ratio: auto; height: calc(100vh - 160px); }
}

/* 게임 모달 - 모바일에서 풀스크린에 가깝게 */
@media (max-width: 720px) {
  .game-modal { padding: 0; }
  .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .modal-frame-wrap { aspect-ratio: 4 / 3; }
}

/* 큰 데스크탑 — 1440px 이상에서 컨테이너 너비 확장 */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
}


/* ===== Cross-document View Transitions (Chromium 126+) =====
   Enables the browser to crossfade between two same-origin pages on navigation. Other
   browsers ignore both the meta tag and this at-rule, falling back to a hard load. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .35s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}
/* The header logo gets a tagged transition so it stays visually anchored across pages */
.site-header .brand img { view-transition-name: brand-logo; }
::view-transition-old(brand-logo),
::view-transition-new(brand-logo) {
  animation-duration: .35s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}

/* ===== Wave SVG dividers (Studio-JT-style flowing section transitions) =====
   Two variants: down (curve bottom-fills the section above) and up (curve top-fills the
   section below). Color follows the adjacent surface so the wave reads as that surface
   spilling into the seam. Negative margin closes the 1px sub-pixel gap on retina. */
.wave-divider {
  display: block;
  width: 100%;
  height: clamp(48px, 5.5vw, 96px);
  margin: -1px 0;
  pointer-events: none;
  background: transparent;
}
.wave-divider path { fill: var(--surface); }
/* Reverse-fill variant — used when the wave bridges into a brand-statement surface */
.wave-divider-up path { fill: var(--bg); }
.wave-divider-down + .sc-games,
.sc-games + .wave-divider-up { background: var(--surface); }

/* ===== Character loader (Studio-JT inspired — burger that bounces while page loads) ===== */
.bm-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(135deg, var(--grad-violet) 0%, var(--grad-magenta) 60%, var(--grad-coral) 100%);
  transition: opacity .55s ease, visibility .55s;
}
.bm-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.bm-loader-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.bm-burger {
  width: 140px;
  height: 140px;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.18));
}
/* Top bun bounces like the burger is being assembled */
.bm-bun-top { animation: bmBunHop 1.1s cubic-bezier(.5,1.6,.4,1) infinite; transform-origin: 60px 38px; }
.bm-burger-stack { animation: bmStack 1.1s ease-in-out infinite; transform-origin: 60px 80px; }
.bm-burger-shadow ellipse { animation: bmShadow 1.1s ease-in-out infinite; transform-origin: 60px 106px; }
@keyframes bmBunHop {
  0%, 100% { transform: translateY(0) rotate(0); }
  40%      { transform: translateY(-30px) rotate(-6deg); }
  70%      { transform: translateY(-6px) rotate(3deg); }
}
@keyframes bmStack {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes bmShadow {
  0%, 100% { transform: scale(1); opacity: .35; }
  40%      { transform: scale(.7); opacity: .15; }
  70%      { transform: scale(.95); opacity: .3; }
}
.bm-loader-word {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: clamp(1.6rem, 3vw + .8rem, 2.8rem);
  color: #ffffff;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.bm-loader-bar {
  width: 220px;
  height: 4px;
  background: rgba(255,255,255,.26);
  border-radius: 999px;
  overflow: hidden;
}
.bm-loader-bar-fill {
  width: 0;
  height: 100%;
  background: #ffffff;
  border-radius: inherit;
  animation: bmFill 1.4s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes bmFill { to { width: 100%; } }
/* Accessibility: respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .bm-burger-stack, .bm-bun-top, .bm-burger-shadow ellipse, .bm-loader-bar-fill { animation: none; }
  .bm-loader-bar-fill { width: 100%; }
}

/* ===== Gradient-flow text (kh-mamun CodePen NdwZdW style) =====
   Linear gradient with 200% width slides horizontally behind the text. background-clip:
   text + transparent fill makes the gradient show through the glyph silhouettes only,
   so colors appear to flow through the type. */
.gradient-flow {
  /* Bright-palette gradient — used by default (오전 / light canvas). Pumped-up brighter
     variants of orange / coral / magenta / violet so the title pops on the white canvas
     instead of muting against it. Same 6-stop loop drifting in 6s. */
  background-image: linear-gradient(
    100deg,
    #ffa066 0%,    /* bright orange — warm peach */
    #ff7aa1 20%,   /* bright coral */
    #e070ff 40%,   /* bright magenta — lavender pink */
    #8e75ff 60%,   /* bright violet — soft periwinkle */
    #ff7aa1 80%,   /* bright coral */
    #ffa066 100%   /* bright orange */
  );
  background-size: 200% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s linear infinite;
  /* Larger than the baseline page-hero h1 — this title carries the section by itself */
  font-size: clamp(3.4rem, 7.2vw + 1rem, 8.6rem);
  /* line-height: 1.1 — KOTRA_BOLD glyphs fill their em fully (cap reaches the top edge),
     so a sub-1 line-height would clip the upper crown of 우/즐 etc. */
  line-height: 1.1;
  letter-spacing: -.05em;
  padding-top: .04em;  /* tiny extra room above so the filter glow + glyph crown both fit */
}
/* KOTRA_BOLD takes over from .page-hero h1's Bowlby fallback. The compound selector
   `.page-hero h1.gradient-flow` (0,2,1) outranks `.page-hero h1` (0,1,1). */
.page-hero h1.gradient-flow,
h1.gradient-flow {
  font-family: 'KOTRA', 'Bowlby One SC', sans-serif;
  text-transform: none;
}
/* Dark canvas (오후) — bright jewel palette that reads clearly on dark bg.
   Same 4-hue loop as light mode but slightly softer so it doesn't blow out. */
:root[data-time-mode="afternoon"] .gradient-flow {
  background-image: linear-gradient(
    100deg,
    #ffb888 0%,    /* bright peach */
    #ff92b8 20%,   /* bright pink coral */
    #db85ff 40%,   /* bright magenta */
    #a599ff 60%,   /* bright periwinkle */
    #ff92b8 80%,   /* bright pink coral */
    #ffb888 100%   /* bright peach */
  );
}
/* KOTRA_BOLD has tall, full-em Hangul glyphs (closer to Bowlby's cap height than the
   default system fallback), so the language-specific bump is smaller now. */
:lang(ko) .gradient-flow {
  font-size: clamp(2.8rem, 6vw + 1rem, 7.4rem);
  letter-spacing: -.04em;
}
.gradient-flow {
  /* No outline stroke. Crisp edges via a sub-pixel drop-shadow that integrates with the
     gradient fill + a soft far drop-shadow for depth. Bright variant for light canvas
     (오전); afternoon override below switches both shadows to deep tones. */
  -webkit-text-stroke: 0;
  filter:
    drop-shadow(0 0 .35px rgba(142, 117, 255, .55))
    drop-shadow(0 8px 22px rgba(142, 117, 255, .22));
}
:root[data-time-mode="afternoon"] .gradient-flow {
  filter:
    drop-shadow(0 0 .35px rgba(165, 153, 255, .7))
    drop-shadow(0 8px 26px rgba(219, 133, 255, .35));
}
.gradient-flow > span { color: inherit; }   /* override .text-accent / inherited tokens */
@keyframes gradientFlow {
  0%   { background-position:   0% center; }
  100% { background-position: 200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-flow { animation: none; background-position: 25% center; }
}

/* ===== Legal bar (footer bottom strip — dark charcoal like CookApps style) ===== */
.legal-bar {
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 22px 0;
  margin-top: 24px;
}
.legal-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-copy {
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
  letter-spacing: -.01em;
  margin: 0;
}
.legal-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.legal-links a {
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
  letter-spacing: -.01em;
  transition: color .15s;
}
.legal-links a:hover { color: #ffffff; }
@media (max-width: 640px) {
  .legal-bar-inner { justify-content: center; text-align: center; }
  .legal-links { gap: 20px; }
}


/* ===== Policy pages (Terms of Service / Privacy Policy) ===== */
.policy-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 8px 0 20px;
  color: var(--text);
}
.policy-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2, rgba(0, 0, 0, .04));
  border-radius: 999px;
  margin-bottom: 18px;
}
.policy-tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.policy-tab:hover { color: var(--text); }
.policy-tab.active {
  background: var(--brand, #f3791f);
  color: #fff;
}
/* --- Language picker (custom dropdown) --- */
.lang-picker {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  font-family: inherit;
}
.lang-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 16px;
  min-width: 168px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, .12));
  border-radius: 12px;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.lang-picker-trigger:hover {
  border-color: var(--brand, #f3791f);
  box-shadow: 0 4px 12px rgba(243, 121, 31, .14);
  transform: translateY(-1px);
}
.lang-picker-trigger:focus-visible {
  outline: 0;
  border-color: var(--brand, #f3791f);
  box-shadow: 0 0 0 3px rgba(243, 121, 31, .22);
}
.lang-picker-flag {
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
}
.lang-picker-name {
  flex: 1 1 auto;
  text-align: left;
}
.lang-picker-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform .2s ease, color .18s;
}
.lang-picker.open .lang-picker-chevron {
  transform: rotate(180deg);
  color: var(--brand, #f3791f);
}

.lang-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, .1));
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}
.lang-picker.open .lang-picker-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lang-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: .94rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s, color .12s;
  user-select: none;
}
.lang-picker-option:hover,
.lang-picker-option:focus-visible {
  background: rgba(243, 121, 31, .1);
  color: var(--brand, #f3791f);
  outline: 0;
}
.lang-picker-option.active {
  background: rgba(243, 121, 31, .08);
  color: var(--brand, #f3791f);
  font-weight: 600;
}
.lang-picker-option .lang-picker-name {
  flex: 1 1 auto;
}
.lang-picker-check {
  flex: 0 0 auto;
  color: var(--brand, #f3791f);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s, transform .15s;
}
.lang-picker-option.active .lang-picker-check {
  opacity: 1;
  transform: scale(1);
}

[data-time-mode="pm"] .lang-picker-trigger {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
[data-time-mode="pm"] .lang-picker-trigger:hover {
  background: rgba(255, 255, 255, .07);
  border-color: var(--brand, #f3791f);
  box-shadow: 0 4px 14px rgba(243, 121, 31, .22);
}
[data-time-mode="pm"] .lang-picker-menu {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
}
[data-time-mode="pm"] .lang-picker-option:hover,
[data-time-mode="pm"] .lang-picker-option:focus-visible {
  background: rgba(243, 121, 31, .18);
}
[data-time-mode="pm"] .lang-picker-option.active {
  background: rgba(243, 121, 31, .14);
}
.policy-section { padding-top: 40px; padding-bottom: 80px; }
.policy-body {
  max-width: 860px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.75;
}
.policy-content { animation: policyFadeIn .3s ease; }
@keyframes policyFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.policy-intro {
  font-size: 1rem;
  color: var(--muted);
  padding: 20px 24px;
  background: var(--surface-2, rgba(0, 0, 0, .03));
  border-left: 3px solid var(--brand, #f3791f);
  border-radius: 8px;
  margin-bottom: 36px;
}
.policy-h {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, .08));
  color: var(--text);
}
.policy-body p { margin: 0 0 14px; font-size: .96rem; }
.policy-ol, .policy-ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.policy-ol li, .policy-ul li {
  margin-bottom: 8px;
  font-size: .95rem;
}
.policy-ol strong { color: var(--text); font-weight: 600; }
.policy-body a { color: var(--brand, #f3791f); text-decoration: underline; text-underline-offset: 2px; }
.policy-body a:hover { text-decoration: none; }
.policy-effective {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border, rgba(0, 0, 0, .08));
  font-size: .9rem;
  color: var(--muted);
  text-align: right;
  font-style: italic;
}
@media (max-width: 640px) {
  .policy-section { padding-top: 24px; padding-bottom: 56px; }
  .policy-body { line-height: 1.7; }
  .policy-h { font-size: 1.1rem; margin-top: 32px; }
  .policy-intro { padding: 16px 18px; font-size: .94rem; }
}
