/* =========================================================
   Arcforge Studio · image-forward studio site
   Dark · bold · tile-driven (Supercell-style energy)
   ========================================================= */

:root {
  /* ===== default skin: CLEAN — bright, Supercell-style ===== */
  --bg:        #faf8f3;
  --bg-2:      #efece3;
  --surface:   #ffffff;
  --surface-2: #f5f1ea;
  --line:      rgba(22,20,14,0.12);
  --line-2:    rgba(22,20,14,0.22);

  --text:      #16140f;
  --muted:     #5e5a51;
  --faint:     #9a958a;

  --gold:      #2f6df0;   /* primary / Project-A accent */
  --gold-deep: #1f51c4;
  --gold-btn:  #16140f;    /* button fill (ink) */
  --ember:     #ff5a3c;    /* Project-B accent */
  --teal:      #16a06b;    /* Project-C accent */
  --on-gold:   #ffffff;

  --glow: radial-gradient(78vw 60vh at 82% -12%, rgba(47,109,240,0.10), transparent 55%),
          radial-gradient(70vw 50vh at -6% 26%, rgba(255,90,60,0.06), transparent 55%);
  --hero-base: linear-gradient(155deg, #1a2438 0%, #141826 45%, #0f1018 100%);

  --display: "Archivo", "Noto Sans SC", -apple-system, system-ui, sans-serif;
  --sans:    "Archivo", "Noto Sans SC", "PingFang SC", -apple-system, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* ---- skin: CINEMATIC (deep blue-black, electric cyan) ---- */
html[data-skin="cine"] {
  --bg:#0a0d14; --bg-2:#0f131c; --surface:#141925; --surface-2:#1b2230;
  --line:rgba(255,255,255,0.10); --line-2:rgba(255,255,255,0.20);
  --text:#eef2f8; --muted:#9aa3b2; --faint:#5f6776;
  --gold:#3da9fc; --gold-deep:#1f7fd1; --gold-btn:#3da9fc; --on-gold:#04121f;
  --ember:#ff6b5a; --teal:#4fd1c0;
  --glow: radial-gradient(80vw 60vh at 82% -10%, rgba(61,169,252,0.16), transparent 55%),
          radial-gradient(70vw 50vh at -5% 28%, rgba(124,92,255,0.12), transparent 55%);
  --hero-base: linear-gradient(155deg,#10243a 0%,#0c1422 45%,#070a12 100%);
}

/* ---- skin: MONO (parchment, near-black, lone terracotta) ---- */
html[data-skin="mono"] {
  --bg:#eae6dc; --bg-2:#e0dbcf; --surface:#f5f2ea; --surface-2:#eae5da;
  --line:rgba(20,18,12,0.16); --line-2:rgba(20,18,12,0.30);
  --text:#14130f; --muted:#55524a; --faint:#8a8579;
  --gold:#b8442a; --gold-deep:#963320; --gold-btn:#14130f; --on-gold:#f5f2ea;
  --ember:#9a958a; --teal:#6f6c63;
  --glow: radial-gradient(80vw 60vh at 82% -14%, rgba(184,68,42,0.08), transparent 55%);
  --hero-base: linear-gradient(155deg,#26221c 0%,#1b1813 50%,#121009 100%);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--glow), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.0; }
p { text-wrap: pretty; }

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============ Shared type ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-label {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: clamp(26px, 4vw, 48px);
}
.section-label::after {
  content: "";
  flex: 1; height: 1px;
  background: var(--line);
}
.section-label b { color: var(--text); font-weight: 600; }

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
}
html[data-lang="zh"] .display { letter-spacing: 0.005em; line-height: 1.08; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(10,11,14,0.55);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f3f0e8;
}
.pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--faint);
}
.pill.live::before { background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 28%, transparent); }
.pill.proto::before { background: var(--ember); }
.pill.rnd::before   { background: var(--teal); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { font-family: var(--mono); transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--gold-btn); color: var(--on-gold); border-color: var(--gold-btn); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ============ Topnav ============ */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-sigil {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  color: var(--gold);
}
.brand-sigil svg { width: 17px; height: 17px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }

.topnav nav {
  justify-self: end;
  display: flex; gap: clamp(18px, 2.5vw, 36px);
  font-size: 14.5px; font-weight: 600;
  color: var(--muted);
}
.topnav nav a { padding-block: 6px; position: relative; white-space: nowrap; }
.topnav nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width .22s ease;
}
.topnav nav a:hover { color: var(--text); }
.topnav nav a:hover::after { width: 100%; }

.nav-actions { display: inline-flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang button {
  min-width: 40px; height: 30px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--faint);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  transition: background .18s, color .18s;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }

.skinpick { display: inline-flex; gap: 7px; align-items: center; }
.skinpick button {
  width: 18px; height: 18px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.skinpick button:hover { transform: scale(1.14); }
.skinpick button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.skin-clean { background: linear-gradient(135deg, #2f6df0 50%, #ff5a3c 50%); }
.skin-cine  { background: linear-gradient(135deg, #3da9fc 50%, #0a0d14 50%); }
.skin-mono  { background: linear-gradient(135deg, #b8442a 50%, #8a8579 50%); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--hero-base);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,10,16,0.30) 0%, transparent 26%, transparent 48%, rgba(12,10,16,0.55) 80%, var(--bg) 100%),
    radial-gradient(120% 80% at 15% 100%, rgba(12,10,16,0.55), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 8vw, 104px);
  padding-top: 120px;
}
.hero-inner .pill { margin-bottom: 22px; }
.hero .display { color: #f7f3ea; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .wm { display: block; }
.hero h1 .wm.sub { color: var(--gold); }
.hero-tag {
  max-width: 30ch;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 600;
  color: #f1ede4;
  line-height: 1.35;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ Section frame ============ */
.section { padding-block: clamp(64px, 8vw, 116px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }

/* ============ Games / tiles ============ */
.games-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.games-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.02em; }
html[data-lang="zh"] .games-head h2 { letter-spacing: 0.01em; line-height: 1.2; }

.tiles { display: grid; gap: clamp(16px, 1.8vw, 24px); }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 24px); }

.tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  isolation: isolate;
}
.tile.lg { aspect-ratio: 16 / 9; }
.tile.sm { aspect-ratio: 4 / 3; }
.tile-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile-art { transform: scale(1.04); }
.tile-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgba(8,9,12,0.55) 70%, rgba(8,9,12,0.92) 100%);
}
.tile.acc-gold  { --accent: var(--gold); }
.tile.acc-ember { --accent: var(--ember); }
.tile.acc-teal  { --accent: var(--teal); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 55% at 50% 122%, color-mix(in srgb, var(--accent, transparent) 30%, transparent), transparent 72%);
  box-shadow: inset 0 -3px 0 0 color-mix(in srgb, var(--accent, transparent) 80%, transparent);
  opacity: 0; transition: opacity .45s ease;
}
.tile:hover::after { opacity: 1; }
.tile-meta {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 2.6vw, 36px);
  pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.tile-meta .pill { pointer-events: auto; }
.tile-title {
  font-family: var(--display); font-weight: 800;
  letter-spacing: -0.01em;
  color: #f3f0e8;
}
.tile.lg .tile-title { font-size: clamp(34px, 4.4vw, 64px); }
.tile.sm .tile-title { font-size: clamp(26px, 3vw, 40px); }
.tile-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(255,255,255,0.80);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tile-code {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint);
}
.tile-meta .tile-code { color: rgba(255,255,255,0.62); }

/* ============ Statement band ============ */
.statement { text-align: center; }
.statement .big {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 4.2vw, 60px);
  letter-spacing: -0.02em; line-height: 1.06;
  max-width: 16ch; margin-inline: auto;
}
html[data-lang="zh"] .statement .big { letter-spacing: 0.01em; line-height: 1.3; max-width: 22ch; }
.statement .big em { font-style: normal; color: var(--gold); }
.statement .sub {
  margin-top: 22px; color: var(--muted);
  max-width: 56ch; margin-inline: auto;
  font-size: clamp(15px, 1.4vw, 17.5px);
}
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 4vw, 48px);
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1; color: var(--text);
}
.stat .lbl { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.stat .sub { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ============ Gallery band ============ */
.gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
}
.shot {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.shot image-slot { display: block; width: 100%; height: 100%; }
.shot.tall { aspect-ratio: 4 / 5; }
.shot.wide { aspect-ratio: 16 / 11; }
.shot-cap {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
  background: rgba(10,11,14,0.6); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 11px; pointer-events: none;
}

/* ============ Careers ============ */
.careers-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }
.careers-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -0.02em; margin-bottom: 14px; }
html[data-lang="zh"] .careers-head h2 { letter-spacing: 0.01em; line-height: 1.25; }
.careers-head p { color: var(--muted); font-size: clamp(15px,1.4vw,17px); }

.roles { border-top: 1px solid var(--line); }
.role {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 24px; align-items: center;
  padding: clamp(18px, 2vw, 26px) 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s ease, background .2s ease;
}
.role:hover { padding-left: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%); }
.role h3 { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.8vw, 23px); letter-spacing: -0.01em; }
html[data-lang="zh"] .role h3 { letter-spacing: 0; }
.role-team, .role-loc { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; }
.role-apply {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; gap: 6px; align-items: center;
}
.role-apply:hover { color: var(--text); }
.role-apply .arrow { transition: transform .2s ease; }
.role-apply:hover .arrow { transform: translateX(3px); }
.careers-note { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.careers-note a { color: var(--gold); }

/* ============ News ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.news-item { border-top: 2px solid var(--gold-deep); padding-top: 18px; }
.news-date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }
.news-tag { display: block; margin: 6px 0 10px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.news-item h4 { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.2; }
html[data-lang="zh"] .news-item h4 { line-height: 1.35; }

/* ============ Subscribe ============ */
.subscribe {
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 140% at 100% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 55%),
    var(--surface);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.subscribe h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.02em; margin-bottom: 14px; }
html[data-lang="zh"] .subscribe h2 { letter-spacing: 0.01em; line-height: 1.25; }
.subscribe p { color: var(--muted); max-width: 44ch; }
.subform { display: flex; gap: 12px; flex-wrap: wrap; }
.subform .input {
  flex: 1; min-width: 220px; min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 15px;
}
.subform .input:focus { border-color: var(--gold); outline: none; }
.subform .btn { white-space: nowrap; }
.form-note { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.form-note.error { color: var(--ember); }
.sub-direct {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.sub-direct dt { color: var(--faint); letter-spacing: 0.16em; text-transform: uppercase; font-size: 10.5px; }
.sub-direct dd { margin: 0; }
.sub-direct a:hover { color: var(--gold); }

/* ============ Footer ============ */
.pagefoot {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  letter-spacing: 0.05em;
}
.pagefoot .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .topnav nav { display: none; }
}
@media (max-width: 900px) {
  .tile-row { grid-template-columns: 1fr; }
  .tile.lg { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .shot:first-child { grid-column: span 2; aspect-ratio: 16/9; }
  .news-grid { grid-template-columns: 1fr; }
  .subscribe { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topnav-inner { grid-template-columns: auto auto; gap: 12px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .role { grid-template-columns: 1fr; gap: 6px; align-items: start; }
  .role-team, .role-loc, .role-apply { font-size: 11px; }
  .hero-cta { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .shot:first-child { grid-column: auto; }
}
