:root {
  --ink: #07131d;
  --deep: #02070b;
  --paper: #f3eee2;
  --cream: #f7e6c2;
  --cyan: #48dff2;
  --acid: #d8ff3e;
  --line: rgba(247, 230, 194, .19);
  --muted: rgba(247, 230, 194, .62);
  --max: 1540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cream); background: var(--ink); font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--deep); background: var(--cyan); }

.skip { position: fixed; z-index: 999; left: 12px; top: 12px; padding: 12px 16px; color: var(--deep); background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { position: fixed; z-index: 100; inset: 0 0 auto; height: 76px; padding: 0 clamp(20px, 4vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid transparent; transition: .3s ease; }
.header.scrolled, .header.dark.scrolled { background: rgba(7,19,29,.87); border-color: rgba(72,223,242,.18); backdrop-filter: blur(18px); }
.wordmark { width: max-content; font-size: 15px; font-weight: 950; letter-spacing: -.04em; line-height: .8; }
.wordmark span { display: block; color: var(--cyan); letter-spacing: .12em; font-size: 9px; }
.header nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 52px); }
.header nav a { position: relative; padding: 10px 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: var(--cyan); transition: right .2s; }
.header nav a:hover::after, .header nav a:focus-visible::after { right: 0; }
.language-picker { position: relative; justify-self: end; }
.language { width: 42px; height: 42px; border: 1px solid rgba(247,230,194,.3); border-radius: 50%; background: transparent; cursor: pointer; font-size: 10px; font-weight: 900; }
.language:hover { color: var(--deep); background: var(--cyan); border-color: var(--cyan); }
.language-menu { position: absolute; top: 52px; right: 0; width: 210px; max-height: min(520px, calc(100vh - 90px)); padding: 10px; display: grid; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); border: 1px solid rgba(72,223,242,.25); background: rgba(7,19,29,.97); box-shadow: 0 24px 60px rgba(0,0,0,.38); transition: .2s; }
.language-menu.open { visibility: visible; opacity: 1; transform: none; }
.language-menu button { padding: 10px 12px; border: 0; color: var(--cream); background: transparent; text-align: left; cursor: pointer; font-size: 12px; }
.language-menu button:hover, .language-menu button[aria-current="true"] { color: var(--deep); background: var(--cyan); }
.menu { display: none; }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 11vw, 180px) clamp(20px, 4vw, 72px); }
.index { margin: 0; color: var(--cyan); font: 700 10px/1.3 "Courier New", monospace; letter-spacing: .14em; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.cta { display: flex; align-items: center; justify-content: space-between; width: min(100%, 290px); padding: 18px 20px; color: var(--deep); background: var(--paper); font-size: 13px; font-weight: 900; transition: .2s; }
.cta:hover { color: var(--deep); background: var(--cyan); transform: translateY(-2px); }
.cta.light { color: var(--deep); background: var(--paper); }
.cta.acid { background: var(--acid); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

.hero { position: relative; min-height: min(100svh, 1100px); padding: 120px clamp(20px, 4vw, 72px) 70px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(30px, 6vw, 100px); overflow: hidden; background: radial-gradient(circle at 75% 45%, rgba(72,223,242,.18), transparent 28%), var(--ink); }
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(72,223,242,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(72,223,242,.2) 1px, transparent 1px); background-size: 88px 88px; mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 78%, transparent); }
.hero-copy { position: relative; z-index: 1; align-self: center; }
.hero h1 { margin: 18px 0 30px; font-size: clamp(66px, 10.5vw, 178px); line-height: .77; letter-spacing: -.085em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--cream); }
.lead { max-width: 610px; margin: 0 0 38px; color: rgba(247,230,194,.83); font-size: clamp(18px, 1.45vw, 24px); line-height: 1.6; word-break: keep-all; }
.logo-stage { position: relative; z-index: 1; margin: 0; align-self: center; display: grid; place-items: center; }
.logo-stage::before { content: ""; position: absolute; inset: 4%; border: 1px solid rgba(72,223,242,.35); border-radius: 50%; }
.logo-stage .orbit { position: absolute; inset: -7%; border: 1px dashed rgba(216,255,62,.35); border-radius: 50%; animation: spin 28s linear infinite; }
.logo-stage .orbit::after { content: ""; position: absolute; top: 10%; left: 12%; width: 12px; height: 12px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 24px var(--acid); }
.logo-visual { position: relative; width: min(78%, 620px); aspect-ratio: 1; display: block; }
.logo-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 55px rgba(0,0,0,.45)); transition: opacity .35s ease; }
.logo-gif { opacity: 0; }
.logo-stage.gif-ready .logo-gif { opacity: 1; }
.logo-stage.gif-ready .logo-poster { opacity: 0; }
.logo-stage figcaption { position: absolute; right: 4%; bottom: 3%; color: var(--muted); font: 700 9px "Courier New", monospace; letter-spacing: .12em; }
@keyframes spin { to { transform: rotate(360deg); } }

.manifesto { display: grid; grid-template-columns: .3fr 1fr; gap: 50px clamp(30px, 6vw, 100px); }
.manifesto-copy h2, .section-heading h2, .contact h2, .world-copy h2 { margin: 18px 0 28px; font-size: clamp(42px, 6.2vw, 96px); line-height: .98; letter-spacing: -.06em; word-break: keep-all; }
.manifesto-copy > p:last-child, .section-heading > p:last-child, .world-copy > p:last-child { max-width: 760px; color: var(--muted); font-size: 16px; line-height: 1.85; word-break: keep-all; }
.services { grid-column: 1 / -1; margin-top: 55px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.services article { min-height: 370px; padding: clamp(26px, 3vw, 48px); display: flex; flex-direction: column; border-right: 1px solid var(--line); transition: .25s; }
.services article:last-child { border: 0; }
.services article:hover { color: var(--deep); background: var(--cyan); }
.services article > span, .link-card > span { color: var(--cyan); font: 700 10px "Courier New", monospace; }
.services article:hover > span, .services article:hover p { color: var(--deep); }
.services h3 { margin: auto 0 18px; font-size: clamp(27px, 2.6vw, 40px); letter-spacing: -.05em; }
.services p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; word-break: keep-all; }

.featured { position: relative; min-height: min(88svh, 980px); overflow: hidden; display: grid; align-items: end; }
.featured > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,7,11,.95) 0%, rgba(2,7,11,.7) 42%, rgba(2,7,11,.15) 85%), linear-gradient(0deg, rgba(2,7,11,.75), transparent 55%); }
.featured-copy { position: relative; z-index: 1; max-width: 720px; padding: clamp(80px, 9vw, 150px) clamp(20px, 4vw, 72px); }
.status { display: flex; align-items: center; gap: 10px; margin: 22px 0; color: var(--acid); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 15px var(--acid); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.featured h2 { margin: 0; font-size: clamp(72px, 11vw, 172px); line-height: .74; letter-spacing: -.085em; }
.featured-copy > p:not(.index,.status) { max-width: 560px; margin: 34px 0; color: rgba(247,230,194,.75); font-size: 17px; line-height: 1.7; word-break: keep-all; }

.world-links, .story-access { border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .35fr 1fr; gap: 25px 55px; align-items: end; }
.section-heading .index { align-self: start; }
.section-heading h2 { margin-top: 0; }
.section-heading > p:last-child { grid-column: 2; margin: -5px 0 48px; }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.link-card { position: relative; min-height: 260px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); transition: .25s; }
.link-card:last-child { border: 0; }
.link-card:hover { color: var(--deep); background: var(--acid); }
.link-card h3 { margin: auto 0 10px; font-size: clamp(25px, 2.3vw, 38px); letter-spacing: -.05em; }
.link-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.link-card:hover p, .link-card:hover > span { color: rgba(2,7,11,.7); }
.link-card b { position: absolute; top: 27px; right: 30px; font-size: 24px; }
.english-book { margin: 18px 0 0 auto; width: max-content; max-width: 100%; display: flex; gap: 35px; padding: 14px 0; color: var(--cyan); border-bottom: 1px solid var(--cyan); font-size: 12px; font-weight: 800; }

.films { border-bottom: 1px solid var(--line); }
.promo { margin-top: 50px; }
.promo-video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); }
.promo > p { margin: 18px 0 9px; color: var(--cyan); font: 700 9px "Courier New", monospace; letter-spacing: .1em; }
.promo h3 { margin: 0; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.035em; }
.film-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.film button { position: relative; width: 100%; padding: 0; border: 0; background: #000; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; }
.film button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.film button:hover img { opacity: .72; transform: scale(1.025); }
.film button > span { position: absolute; inset: 50% auto auto 50%; width: 64px; height: 64px; display: grid; place-items: center; color: var(--deep); background: var(--acid); border-radius: 50%; transform: translate(-50%,-50%); }
.film button.playing iframe { width: 100%; height: 100%; border: 0; }
.film > p { margin: 18px 0 9px; color: var(--cyan); font: 700 9px "Courier New", monospace; letter-spacing: .1em; }
.film h3 { margin: 0; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.035em; }
.channel { margin-top: 65px; padding: 24px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: clamp(20px, 2.4vw, 36px); font-weight: 800; }
.channel:hover { color: var(--cyan); }

.contact { min-height: 72svh; display: grid; align-content: center; }
.contact h2 { max-width: 1060px; }
.email { margin-top: 60px; padding: 24px 0; display: flex; justify-content: space-between; border-bottom: 2px solid var(--cream); font-size: clamp(22px, 3.7vw, 58px); font-weight: 850; letter-spacing: -.045em; }
.email:hover { color: var(--cyan); border-color: var(--cyan); }
footer { padding: 42px clamp(20px, 4vw, 72px); display: flex; justify-content: space-between; align-items: flex-end; color: var(--deep); background: var(--paper); }
footer > div { display: grid; gap: 5px; }
footer b { font-size: 17px; letter-spacing: .08em; }
footer span, footer nav { font: 700 9px "Courier New", monospace; letter-spacing: .08em; }
footer nav { display: flex; gap: 28px; }
footer a:hover { color: #006c82; }

/* Grid Defense */
.game-hero { position: relative; min-height: min(100svh, 1100px); display: grid; align-items: end; overflow: hidden; }
.game-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,7,11,.96), rgba(2,7,11,.5) 55%, rgba(2,7,11,.2)), linear-gradient(0deg, rgba(2,7,11,.83), transparent 60%); }
.game-hero-copy { position: relative; z-index: 1; max-width: 1120px; padding: 130px clamp(20px, 4vw, 72px) 70px; }
.game-hero h1 { margin: 26px 0 34px; font-size: clamp(84px, 15vw, 240px); line-height: .67; letter-spacing: -.09em; }
.game-hero h1 span, .game-hero h1 em { display: block; }
.game-hero h1 em { padding-left: .55em; color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--cream); }
.game-hero-copy > p:not(.status,.eyebrow) { max-width: 620px; margin: 0 0 38px; color: rgba(247,230,194,.76); font-size: 18px; line-height: 1.75; word-break: keep-all; }
.game-section .section-heading { margin-top: 30px; }
.gameplay { margin: 75px 0 0; border: 1px solid rgba(72,223,242,.32); background: var(--deep); }
.gameplay img { width: 100%; }
.gameplay figcaption { padding: 13px 16px; display: flex; justify-content: space-between; color: var(--cyan); font: 700 9px "Courier New", monospace; letter-spacing: .1em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; }
.pillars article { padding: 36px; border-right: 1px solid var(--line); }
.pillars article:last-child { border: 0; }
.pillars span { color: var(--cyan); font: 700 10px "Courier New", monospace; }
.pillars h3 { margin: 65px 0 16px; font-size: 28px; letter-spacing: -.04em; }
.pillars p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; word-break: keep-all; }
.world { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(50px, 7vw, 120px); color: var(--deep); background: var(--paper); }
.world-image img { width: 100%; box-shadow: 24px 24px 0 var(--cyan); }
.world-copy .eyebrow, .world-copy .index { color: #00778c; }
.world-copy > p:last-child { color: rgba(2,7,11,.68); }
.story-access { border-bottom: 0; }
.game-films { max-width: none; padding-left: max(clamp(20px,4vw,72px), calc((100vw - var(--max))/2 + 72px)); padding-right: max(clamp(20px,4vw,72px), calc((100vw - var(--max))/2 + 72px)); background: var(--deep); }
.release { max-width: none; min-height: 72svh; display: grid; align-content: center; background: var(--cyan); color: var(--deep); }
.release .status { color: var(--deep); }
.release .status i { background: var(--deep); box-shadow: none; }
.release h2 { max-width: 1050px; margin: 15px 0 26px; font-size: clamp(46px, 7vw, 110px); line-height: .95; letter-spacing: -.065em; word-break: keep-all; }
.release > p:not(.status) { max-width: 650px; font-size: 16px; line-height: 1.7; }
.release-links { margin-top: 45px; display: flex; align-items: center; gap: 35px; font-size: 13px; font-weight: 850; }

.legal { min-height: 100vh; padding-top: 140px; }
.legal article { max-width: 820px; margin: auto; }
.legal h1 { font-size: clamp(48px, 8vw, 100px); letter-spacing: -.06em; }
.legal h2 { margin-top: 50px; }
.legal p { color: var(--muted); line-height: 1.8; }

@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto auto; height: 68px; }
  .menu { display: block; margin-right: 18px; padding: 10px 0; border: 0; background: transparent; font-size: 10px; font-weight: 850; }
  .language-picker { order: 3; }
  .header nav { position: fixed; left: 0; right: 0; top: 68px; padding: 24px; display: grid; gap: 4px; background: rgba(7,19,29,.97); transform: translateY(-135%); transition: transform .3s; }
  .header nav.open { transform: none; }
  .header nav a { padding: 12px 0; font-size: 20px; }
  .hero { grid-template-columns: 1fr; padding-top: 105px; }
  .hero-copy { align-self: auto; padding-bottom: 0; }
  .hero h1 { font-size: clamp(65px, 17vw, 118px); }
  .logo-stage { width: min(90vw, 620px); margin: -20px auto 0; }
  .manifesto, .section-heading { grid-template-columns: 1fr; }
  .manifesto-copy, .section-heading > p:last-child { grid-column: 1; }
  .services, .link-cards { grid-template-columns: 1fr; }
  .services article, .link-card { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .services article:last-child, .link-card:last-child { border-bottom: 0; }
  .film-grid { grid-template-columns: 1fr; gap: 55px; }
  .game-hero h1 em { padding-left: .2em; }
  .world { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillars article { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillars article:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .section { padding-top: 90px; padding-bottom: 90px; }
  .hero { min-height: min(900px, 100svh); }
  .hero h1 { line-height: .82; }
  .logo-stage figcaption { bottom: -2%; }
  .manifesto-copy h2, .section-heading h2, .contact h2, .world-copy h2 { font-size: 44px; }
  .featured { min-height: 820px; }
  .featured-shade { background: linear-gradient(0deg, rgba(2,7,11,.95), rgba(2,7,11,.48)); }
  .featured-copy { padding-bottom: 70px; }
  .featured h2 { font-size: 80px; }
  .link-card { min-height: 220px; }
  .film button > span { width: 54px; height: 54px; }
  .email { font-size: 19px; }
  footer { gap: 35px; align-items: flex-start; flex-direction: column; }
  footer nav { flex-wrap: wrap; gap: 16px; }
  .game-hero { min-height: min(860px, 100svh); }
  .game-hero-copy { padding-bottom: 50px; }
  .game-hero h1 { font-size: 82px; line-height: .76; }
  .gameplay { margin-top: 45px; }
  .world-image img { box-shadow: 12px 12px 0 var(--cyan); }
  .release-links { align-items: flex-start; flex-direction: column; }
}

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

/* Korean keep-all cannot be shared with Japanese and Chinese paragraphs. */
html:lang(ja) [data-en], html:lang(zh-Hans) [data-en], html:lang(zh-Hant) [data-en] { word-break: normal; overflow-wrap: anywhere; }
.header nav, .section-heading > *, .manifesto > *, .link-card, .services article { min-width: 0; }
html:lang(ja) .release-links, html:lang(zh-Hans) .release-links, html:lang(zh-Hant) .release-links { flex-wrap: wrap; }
.game-hero-copy { min-width: 0; width: 100%; }
@media(max-width:600px){.game-hero h1{font-size:clamp(68px,20vw,82px)}}

/* All 12 languages remain within easy reach on a small screen. */
.language-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(360px, calc(100vw - 40px)); max-height: min(520px, calc(100dvh - 100px)); overscroll-behavior: contain; }
.language-menu [data-lang="auto"] { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
.language-menu button { min-width: 0; overflow-wrap: anywhere; }
