:root {
  color-scheme: dark;
  --bg: #0e1015;
  --bg-soft: #151821;
  --surface: #1b1f29;
  --surface-strong: #232936;
  --text: #f4f1e8;
  --muted: #b8b3a8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d8b66a;
  --accent-strong: #f0d38e;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(216, 182, 106, 0.12), transparent 32rem),
    linear-gradient(180deg, #10131a 0%, var(--bg) 35%, #0b0d11 100%);
  line-height: 1.7;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(14, 16, 21, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo,
.footer-logo {
  display: block;
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 11px;
  background: #f6f0e5;
  box-shadow: 0 5px 18px rgba(0,0,0,.22);
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: .35rem .65rem;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--surface-strong);
  color: var(--text);
}

html[data-lang="ja"] [data-lang="en"],
html[data-lang="en"] [data-lang="ja"] { display: none !important; }

main { overflow: clip; }
.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.section { padding: 92px 0; }
.section.compact { padding: 64px 0; }
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 20px;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
  margin-bottom: 12px;
}
.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--muted);
  max-width: 760px;
}
.muted { color: var(--muted); }

.hero {
  min-height: min(790px, calc(100svh - 68px));
  display: grid;
  align-items: center;
  padding: 72px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.hero-copy { max-width: 720px; }
.hero-title-small {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 900px;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 750;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); border-color: rgba(255,255,255,.3); }
.button.primary { background: var(--accent); color: #17130b; border-color: transparent; }
.button.secondary { background: rgba(255,255,255,.055); }

/* BOD visual direction: warm shop light, editorial framing, and a clear game-first CTA. */
.hero { position: relative; min-height: 760px; }
.hero::before { content: ""; position: absolute; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; right: -14vw; top: 6%; border: 1px solid rgba(216,182,106,.18); border-radius: 50%; box-shadow: 0 0 0 28px rgba(216,182,106,.025), 0 0 0 56px rgba(216,182,106,.018); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 680px; text-wrap: balance; }
.hero-copy .lead strong { color: var(--text); }
.hero-metrics { display: flex; gap: 26px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 470px; }
.hero-metrics div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.hero-metrics strong { grid-row: span 2; font-size: 1.75rem; line-height: 1; color: var(--accent-strong); }
.hero-metrics span { color: var(--muted); font-size: .78rem; letter-spacing: .05em; }

.key-visual,
.asset-slot {
  display: block;
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(216,182,106,.18), transparent 45%),
    linear-gradient(315deg, rgba(99,115,148,.18), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow);
}
.image-slot { background: #161a22; }
.image-slot img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.character-art img { object-fit: contain; padding: 22px; }
.key-visual img { position: absolute; inset: 0; object-fit: cover; }
.key-visual .visual-mark { z-index: 1; }
.key-visual { min-height: 530px; border-radius: 28px; transform: rotate(1.2deg); box-shadow: 0 28px 90px rgba(0,0,0,.38), 0 0 0 8px rgba(255,255,255,.025); }
.key-visual::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 20px; z-index: 1; pointer-events: none; }
.key-visual::after { z-index: 2; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding-top: 40px; }
.visual-stamp { position: absolute; top: 30px; right: 28px; z-index: 3; display: grid; gap: 2px; color: #251d0d; font-size: .62rem; font-weight: 900; letter-spacing: .18em; text-align: right; }
.visual-stamp span { padding: 3px 7px; background: var(--accent-strong); }
.key-visual .visual-mark { align-items: end; justify-items: start; text-align: left; padding: 34px; background: linear-gradient(0deg, rgba(7,9,12,.72), transparent 48%); }
.key-visual .visual-mark > div { padding: 12px 14px; border-radius: 12px; background: rgba(7,9,12,.34); backdrop-filter: blur(4px); }
.visual-mark strong { font-size: clamp(1.45rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.image-slot::after { display: none; }
.key-visual::after,
.asset-slot::after {
  content: attr(data-asset);
  position: absolute;
  inset: auto 16px 14px 16px;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  letter-spacing: .02em;
}
.key-visual .visual-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: rgba(255,255,255,.72);
}
.visual-mark strong { display: block; color: var(--text); font-size: clamp(1.5rem, 4vw, 3rem); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card { position: relative; overflow: hidden; min-height: 270px; padding: 30px; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.card::after { content: ""; position: absolute; right: -35px; bottom: -45px; width: 130px; height: 130px; border: 1px solid rgba(216,182,106,.22); border-radius: 50%; }
.card:hover { transform: translateY(-4px); border-color: rgba(216,182,106,.42); background: linear-gradient(145deg, rgba(216,182,106,.11), rgba(255,255,255,.025)); }
.card p:last-child { margin-bottom: 0; }
.card-number {
  color: var(--accent-strong);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .12em;
  margin-bottom: 20px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 28px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(216,182,106,.08), rgba(255,255,255,.025));
  border: 1px solid var(--line);
}
.game-card .asset-slot { min-height: 260px; }
.game-card h2 { font-size: clamp(2rem, 4.5vw, 4.2rem); }

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: flow;
}
.flow-step { background: linear-gradient(160deg, var(--surface-strong), var(--surface)); }
.flow-step h3 { letter-spacing: .12em; font-size: 1rem; }
.flow-step::before {
  content: "0" counter(flow);
  display: block;
  color: var(--accent-strong);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .12em;
  margin-bottom: 28px;
}
.flow-step p { color: var(--muted); margin-bottom: 0; }

.character-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.character-art { min-height: 520px; }
.tag {
  display: inline-flex;
  padding: .3rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.gallery-item {
  appearance: none;
  text-align: left;
  color: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery-item .asset-slot { min-height: 300px; box-shadow: none; }
.gallery-item .asset-slot { border-radius: 16px; transition: transform .2s ease, border-color .2s ease; }
.gallery-item:hover .asset-slot, .gallery-item:focus-visible .asset-slot { transform: translateY(-4px); border-color: rgba(216,182,106,.62); }
.gallery-caption { padding: 12px 2px 0; color: var(--muted); font-size: .9rem; }

.demo-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.fact {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.fact strong { display: block; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: .9rem; }

.cta-panel {
  padding: clamp(30px, 6vw, 72px);
  border-radius: 28px;
  border: 1px solid rgba(216,182,106,.25);
  background: linear-gradient(135deg, rgba(216,182,106,.13), rgba(255,255,255,.025));
}
.cta-panel { position: relative; overflow: hidden; }
.cta-panel::before { content: "BOD"; position: absolute; right: 4%; bottom: -20%; color: rgba(216,182,106,.09); font-size: 16rem; font-weight: 900; line-height: 1; letter-spacing: -.12em; pointer-events: none; }
.cta-panel > * { position: relative; z-index: 1; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  gap: 18px 28px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-inner .footer-brand { color: var(--text); font-weight: 800; margin-right: auto; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo { width: 58px; height: 47px; border-radius: 10px; box-shadow: none; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover, .footer-inner a:focus-visible { color: var(--text); }
.asset-note {
  padding: 14px 16px;
  border: 1px dashed rgba(216,182,106,.35);
  border-radius: 12px;
  color: var(--muted);
  font-size: .9rem;
  margin-top: 20px;
}

.lightbox {
  width: min(92vw, 1080px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  color: var(--text);
  background: #11141b;
  box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(0,0,0,.78); }
.lightbox-inner { padding: 20px; }
.lightbox-head { display:flex; gap:16px; align-items:center; margin-bottom:14px; }
.lightbox-head strong { margin-right:auto; }
.lightbox-close {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  border-radius: 10px;
  padding: .45rem .65rem;
  cursor: pointer;
}
.lightbox .asset-slot { min-height: min(62vw, 620px); }

@media (max-width: 900px) {
  .header-inner { padding: 0 18px; gap: 12px; }
  .site-nav .nav-link { display: none; }
  .hero { min-height: auto; padding: 54px 0 72px; }
  .hero-grid,
  .split,
  .character-grid,
  .game-card { grid-template-columns: 1fr; }
  .hero-grid .key-visual { min-height: 380px; }
  .key-visual { transform: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .demo-facts { grid-template-columns: repeat(2, 1fr); }
  .character-art { min-height: 430px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 68px 0; }
  .section.compact { padding: 48px 0; }
  .header-inner { min-height: 62px; }
  .brand { font-size: .93rem; gap: 8px; }
  .brand-logo { width: 58px; height: 47px; }
  .lang-switch button { padding: .3rem .5rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero-title-small { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .hero-grid .key-visual, .character-art { min-height: 330px; }
  .hero-metrics { gap: 14px; }
  .hero-metrics strong { font-size: 1.4rem; }
  .flow, .gallery, .demo-facts { grid-template-columns: 1fr; }
  .flow-step { min-height: 0; }
  .gallery-item .asset-slot { min-height: 210px; }
  .button { width: 100%; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner .footer-brand { margin-right: 0; }
}

/* Parchment ledger direction: warm paper, ink, leather, and brass. */
:root {
  color-scheme: light;
  --bg: #e7dcc9;
  --bg-soft: #f0e7d7;
  --surface: #f8f1e4;
  --surface-strong: #e3d2b5;
  --text: #2d261d;
  --muted: #746957;
  --line: rgba(74,56,37,.2);
  --accent: #a85e31;
  --accent-strong: #bd753e;
  --shadow: 0 22px 55px rgba(83,61,35,.17);
}
body {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 15% 10%, rgba(255,255,255,.55), transparent 28rem), radial-gradient(circle at 90% 80%, rgba(157,103,52,.12), transparent 32rem), repeating-linear-gradient(0deg, rgba(93,66,35,.025) 0, rgba(93,66,35,.025) 1px, transparent 1px, transparent 5px);
}
.site-header { background: rgba(240,231,215,.9); border-bottom: 1px solid rgba(93,66,35,.24); box-shadow: 0 4px 18px rgba(83,61,35,.07); }
.brand, .site-nav a { color: var(--text); }
.brand-logo { border-color: rgba(93,66,35,.28); box-shadow: 0 4px 12px rgba(83,61,35,.14); }
.site-nav .nav-link { color: var(--muted); }
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible { color: var(--accent); }
.lang-switch { border-color: rgba(93,66,35,.25); background: rgba(255,255,255,.3); }
.lang-switch button { color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--surface); }
.section-kicker { color: var(--accent); }
h1, h2, h3 { color: var(--text); }
.hero { min-height: min(820px, calc(100svh - 76px)); }
.hero::before { border-color: rgba(168,94,49,.22); box-shadow: 0 0 0 28px rgba(168,94,49,.045), 0 0 0 56px rgba(168,94,49,.025); }
.hero-copy .lead strong { color: var(--text); }
.hero-metrics { border-top-color: rgba(74,56,37,.24); }
.hero-metrics strong { color: var(--accent); }
.hero-metrics span, .muted { color: var(--muted); }
.button { border-color: rgba(74,56,37,.22); }
.button.primary { background: var(--accent); color: #fff9ed; box-shadow: 0 9px 20px rgba(157,84,44,.22); }
.button.secondary { color: var(--text); background: rgba(255,255,255,.34); }
.key-visual, .asset-slot { border-color: rgba(74,56,37,.25); background: linear-gradient(145deg, rgba(255,255,255,.6), rgba(215,192,156,.4)), var(--surface); box-shadow: var(--shadow); }
.key-visual { border-radius: 6px; box-shadow: 0 28px 65px rgba(83,61,35,.25), 0 0 0 8px rgba(255,255,255,.22); }
.key-visual::before { border-color: rgba(255,245,226,.65); }
.visual-stamp span { color: #fff8e9; background: var(--accent); }
.key-visual .visual-mark { background: linear-gradient(0deg, rgba(35,25,16,.72), transparent 52%); }
.key-visual .visual-mark > div { background: rgba(35,25,16,.5); border-left-color: var(--accent-strong); }
.split > div:first-child::before { background: var(--accent); }
.section:nth-of-type(even) { background: rgba(255,250,239,.24); }
.card { background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.18)); border-color: rgba(74,56,37,.2); box-shadow: 0 10px 24px rgba(83,61,35,.06); }
.card::after { border-color: rgba(168,94,49,.26); }
.card:hover { border-color: rgba(168,94,49,.55); background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(231,207,173,.35)); }
.card-number, .flow-step::before { color: var(--accent); }
.game-card { background: linear-gradient(135deg, rgba(168,94,49,.12), rgba(255,255,255,.45) 65%); border-color: rgba(74,56,37,.24); box-shadow: var(--shadow); }
.flow { border-color: rgba(74,56,37,.23); }
.flow-step { background: transparent; border-color: rgba(74,56,37,.2); }
.flow-step p { color: var(--muted); }
.character-art { background: radial-gradient(circle at 50% 34%, rgba(168,94,49,.2), transparent 52%), var(--surface); }
.tag, .fact { border-color: rgba(74,56,37,.22); background: rgba(255,255,255,.22); }
.fact span { color: var(--muted); }
.cta-panel { border-color: rgba(168,94,49,.38); background: linear-gradient(120deg, rgba(168,94,49,.16), rgba(255,255,255,.36)); box-shadow: var(--shadow); }
.cta-panel::before { color: rgba(168,94,49,.1); }
.site-footer { border-top-color: rgba(74,56,37,.23); color: var(--muted); }
.footer-inner .footer-brand { color: var(--text); }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover, .footer-inner a:focus-visible { color: var(--accent); }
.lightbox { color: var(--text); background: var(--surface); border-color: rgba(74,56,37,.24); }
.lightbox::backdrop { background: rgba(45,31,19,.65); }
.lightbox-close { color: var(--text); background: var(--bg-soft); border-color: rgba(74,56,37,.25); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Studio redesign: a warmer workshop identity with a sharper editorial grid. */
:root {
  --bg: #0b0d0d;
  --bg-soft: #111514;
  --surface: #171c1a;
  --surface-strong: #202824;
  --text: #f6f0e4;
  --muted: #aaa99e;
  --line: rgba(246,240,228,.13);
  --accent: #d6a75b;
  --accent-strong: #efc978;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
}
body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(239,201,120,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(239,201,120,.035) 1px, transparent 1px), radial-gradient(circle at 80% 0%, rgba(214,167,91,.14), transparent 34rem), linear-gradient(180deg, #101412 0%, var(--bg) 45%, #080a0a 100%);
  background-size: 72px 72px, 72px 72px, auto, auto;
}
.site-header { background: rgba(11,13,13,.86); border-bottom-color: rgba(239,201,120,.16); }
.header-inner { min-height: 76px; }
.brand { letter-spacing: .01em; }
.brand-logo { width: 58px; height: 48px; border: 1px solid rgba(214,167,91,.3); }
.site-nav { gap: 25px; }
.site-nav .nav-link { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero { min-height: min(820px, calc(100svh - 76px)); padding: 88px 0; }
.hero::before { border-color: rgba(239,201,120,.2); }
.hero-grid { gap: clamp(44px, 8vw, 112px); }
.section-kicker { font-size: .68rem; letter-spacing: .24em; }
h1, h2, h3 { font-weight: 800; }
.hero-copy h1 { font-size: clamp(3.5rem, 8vw, 7.4rem); letter-spacing: -.075em; line-height: .9; }
.hero-copy .lead { max-width: 560px; }
.hero-actions { margin-top: 34px; }
.button { min-height: 50px; border-radius: 5px; padding-inline: 1.2rem; }
.button.primary { box-shadow: 0 10px 24px rgba(214,167,91,.14); }
.key-visual { min-height: 580px; border-radius: 8px; transform: rotate(1deg); border-color: rgba(239,201,120,.25); box-shadow: 0 34px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04); }
.key-visual::before { inset: 11px; border-radius: 3px; border-color: rgba(255,255,255,.38); }
.key-visual .visual-mark { padding: 30px; }
.key-visual .visual-mark > div { border-left: 3px solid var(--accent); border-radius: 0 5px 5px 0; background: rgba(7,9,12,.48); }
.studio-logo-hero { position: absolute; z-index: 2; top: 28px; left: 28px; width: 86px; height: 72px; object-fit: cover; border-radius: 5px; border: 1px solid rgba(214,167,91,.42); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.section { padding: 116px 0; }
.section:nth-of-type(even) { background: rgba(255,255,255,.018); }
.split { gap: clamp(44px, 8vw, 120px); }
.split > div:first-child { position: relative; }
.split > div:first-child::before { content: ""; display: block; width: 42px; height: 3px; margin-bottom: 24px; background: var(--accent); }
.card, .flow-step, .game-card, .fact { border-radius: 6px; border-color: rgba(246,240,228,.14); }
.card { min-height: 300px; padding: 32px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018)); }
.card::after { border-color: rgba(239,201,120,.28); }
.card-number { font-size: .68rem; letter-spacing: .2em; }
.game-card { padding: clamp(28px, 5vw, 58px); background: linear-gradient(130deg, rgba(214,167,91,.14), rgba(255,255,255,.025) 55%); }
.game-card .asset-slot { min-height: 300px; }
.flow { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-step { min-height: 220px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.flow-step:last-child { border-right: 0; }
.flow-step::before { color: var(--accent); }
.character-art { border-radius: 6px; background: radial-gradient(circle at 50% 34%, rgba(214,167,91,.2), transparent 52%), var(--surface); }
.gallery-item .asset-slot { border-radius: 6px; }
.cta-panel { border-radius: 6px; background: linear-gradient(120deg, rgba(214,167,91,.16), rgba(255,255,255,.03)); }
.footer-inner .footer-brand { letter-spacing: .01em; }
@media (max-width: 900px) {
  .hero { padding-top: 64px; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .header-inner { min-height: 66px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .key-visual { min-height: 390px; }
  .studio-logo-hero { width: 68px; height: 56px; top: 20px; left: 20px; }
  .section { padding: 82px 0; }
}

/* Final visual direction override: the public face is a paper ledger, not a dark dashboard. */
:root { color-scheme: light; --bg:#e7dcc9; --bg-soft:#f0e7d7; --surface:#f8f1e4; --surface-strong:#e3d2b5; --text:#2d261d; --muted:#746957; --line:rgba(74,56,37,.2); --accent:#a85e31; --accent-strong:#bd753e; --shadow:0 22px 55px rgba(83,61,35,.17); }
body { background-color:var(--bg); background-image:radial-gradient(circle at 15% 10%,rgba(255,255,255,.55),transparent 28rem),radial-gradient(circle at 90% 80%,rgba(157,103,52,.12),transparent 32rem),repeating-linear-gradient(0deg,rgba(93,66,35,.025) 0,rgba(93,66,35,.025) 1px,transparent 1px,transparent 5px); }
.site-header { background:rgba(240,231,215,.9); border-bottom-color:rgba(93,66,35,.24); box-shadow:0 4px 18px rgba(83,61,35,.07); }
.brand,.site-nav a,h1,h2,h3,.footer-inner .footer-brand { color:var(--text); }
.brand-logo { border-color:rgba(93,66,35,.28); box-shadow:0 4px 12px rgba(83,61,35,.14); }
.site-nav .nav-link,.footer-inner a,.muted,.hero-metrics span,.flow-step p { color:var(--muted); }
.site-nav .nav-link:hover,.site-nav .nav-link:focus-visible,.footer-inner a:hover,.footer-inner a:focus-visible { color:var(--accent); }
.lang-switch { border-color:rgba(93,66,35,.25); background:rgba(255,255,255,.3); }
.lang-switch button { color:var(--muted); }
.lang-switch button[aria-pressed="true"] { background:var(--text); color:var(--surface); }
.section-kicker,.card-number,.flow-step::before,.hero-metrics strong { color:var(--accent); }
.hero::before { border-color:rgba(168,94,49,.22); box-shadow:0 0 0 28px rgba(168,94,49,.045),0 0 0 56px rgba(168,94,49,.025); }
.hero-copy .lead strong { color:var(--text); }
.hero-metrics { border-top-color:rgba(74,56,37,.24); }
.button { border-color:rgba(74,56,37,.22); }
.button.primary { background:var(--accent); color:#fff9ed; box-shadow:0 9px 20px rgba(157,84,44,.22); }
.button.secondary { color:var(--text); background:rgba(255,255,255,.34); }
.key-visual,.asset-slot { border-color:rgba(74,56,37,.25); background:linear-gradient(145deg,rgba(255,255,255,.6),rgba(215,192,156,.4)),var(--surface); box-shadow:var(--shadow); }
.key-visual { border-radius:6px; box-shadow:0 28px 65px rgba(83,61,35,.25),0 0 0 8px rgba(255,255,255,.22); }
.key-visual::before { border-color:rgba(255,245,226,.65); }
.visual-stamp span { color:#fff8e9; background:var(--accent); }
.key-visual .visual-mark { background:linear-gradient(0deg,rgba(35,25,16,.72),transparent 52%); }
.key-visual .visual-mark > div { background:rgba(35,25,16,.5); border-left-color:var(--accent-strong); }
.section:nth-of-type(even) { background:rgba(255,250,239,.24); }
.card { background:linear-gradient(145deg,rgba(255,255,255,.62),rgba(255,255,255,.18)); border-color:rgba(74,56,37,.2); box-shadow:0 10px 24px rgba(83,61,35,.06); }
.card::after { border-color:rgba(168,94,49,.26); }
.card:hover { border-color:rgba(168,94,49,.55); background:linear-gradient(145deg,rgba(255,255,255,.8),rgba(231,207,173,.35)); }
.game-card { background:linear-gradient(135deg,rgba(168,94,49,.12),rgba(255,255,255,.45) 65%); border-color:rgba(74,56,37,.24); box-shadow:var(--shadow); }
.flow { border-color:rgba(74,56,37,.23); }
.flow-step { background:transparent; border-color:rgba(74,56,37,.2); }
.character-art { background:radial-gradient(circle at 50% 34%,rgba(168,94,49,.2),transparent 52%),var(--surface); }
.tag,.fact { border-color:rgba(74,56,37,.22); background:rgba(255,255,255,.22); }
.fact span { color:var(--muted); }
.cta-panel { background:linear-gradient(120deg,rgba(168,94,49,.16),rgba(255,255,255,.36)); border-color:rgba(168,94,49,.38); box-shadow:var(--shadow); }
.cta-panel::before { color:rgba(168,94,49,.1); }
.site-footer { border-top-color:rgba(74,56,37,.23); color:var(--muted); }
.lightbox { color:var(--text); background:var(--surface); border-color:rgba(74,56,37,.24); }
.lightbox::backdrop { background:rgba(45,31,19,.65); }
.lightbox-close { color:var(--text); background:var(--bg-soft); border-color:rgba(74,56,37,.25); }

/* Keep the studio home page distinct; the parchment treatment belongs to BOD only. */
body:not(.bod-site) {
  --bg:#0b0d0d; --bg-soft:#111514; --surface:#171c1a; --surface-strong:#202824; --text:#f6f0e4; --muted:#aaa99e; --line:rgba(246,240,228,.13); --accent:#d6a75b; --accent-strong:#efc978; --shadow:0 24px 80px rgba(0,0,0,.38);
  color:var(--text); background-color:var(--bg); background-image:linear-gradient(rgba(239,201,120,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(239,201,120,.035) 1px,transparent 1px),radial-gradient(circle at 80% 0%,rgba(214,167,91,.14),transparent 34rem),linear-gradient(180deg,#101412 0%,var(--bg) 45%,#080a0a 100%); background-size:72px 72px,72px 72px,auto,auto;
}
body:not(.bod-site) .site-header { background:rgba(11,13,13,.86); border-bottom-color:rgba(239,201,120,.16); box-shadow:none; }
body:not(.bod-site) .brand, body:not(.bod-site) .site-nav a, body:not(.bod-site) h1, body:not(.bod-site) h2, body:not(.bod-site) h3, body:not(.bod-site) .footer-inner .footer-brand { color:var(--text); }
body:not(.bod-site) .site-nav .nav-link, body:not(.bod-site) .footer-inner a, body:not(.bod-site) .muted { color:var(--muted); }
body:not(.bod-site) .site-nav .nav-link:hover, body:not(.bod-site) .site-nav .nav-link:focus-visible, body:not(.bod-site) .footer-inner a:hover, body:not(.bod-site) .footer-inner a:focus-visible { color:var(--text); }
body:not(.bod-site) .lang-switch { border-color:var(--line); background:rgba(255,255,255,.04); }
body:not(.bod-site) .lang-switch button { color:var(--muted); }
body:not(.bod-site) .lang-switch button[aria-pressed="true"] { background:var(--surface-strong); color:var(--text); }
body:not(.bod-site) .section-kicker, body:not(.bod-site) .card-number, body:not(.bod-site) .flow-step::before, body:not(.bod-site) .hero-metrics strong { color:var(--accent-strong); }
body:not(.bod-site) .hero::before { border-color:rgba(239,201,120,.2); box-shadow:0 0 0 28px rgba(239,201,120,.025),0 0 0 56px rgba(239,201,120,.018); }
body:not(.bod-site) .button { border-color:var(--line); }
body:not(.bod-site) .button.primary { background:var(--accent); color:#17130b; }
body:not(.bod-site) .button.secondary { color:var(--text); background:rgba(255,255,255,.055); }
body:not(.bod-site) .key-visual, body:not(.bod-site) .asset-slot { border-color:var(--line); background:linear-gradient(145deg,rgba(214,167,91,.18),transparent 45%),linear-gradient(315deg,rgba(99,115,148,.18),transparent 50%),var(--surface); box-shadow:var(--shadow); }
body:not(.bod-site) .section:nth-of-type(even) { background:transparent; }
body:not(.bod-site) .card { background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.018)); border-color:var(--line); box-shadow:none; }
body:not(.bod-site) .card:hover { border-color:rgba(239,201,120,.42); background:linear-gradient(145deg,rgba(214,167,91,.11),rgba(255,255,255,.025)); }
body:not(.bod-site) .game-card { background:linear-gradient(130deg,rgba(214,167,91,.14),rgba(255,255,255,.025) 55%); border-color:var(--line); box-shadow:none; }
body:not(.bod-site) .flow { border-color:var(--line); }
body:not(.bod-site) .flow-step { background:transparent; border-color:var(--line); }
body:not(.bod-site) .character-art { background:radial-gradient(circle at 50% 34%,rgba(214,167,91,.2),transparent 52%),var(--surface); }
body:not(.bod-site) .tag, body:not(.bod-site) .fact { border-color:var(--line); background:rgba(255,255,255,.04); }
body:not(.bod-site) .cta-panel { background:linear-gradient(120deg,rgba(214,167,91,.16),rgba(255,255,255,.03)); border-color:rgba(214,167,91,.25); box-shadow:none; }
body:not(.bod-site) .site-footer { border-top-color:var(--line); }
body:not(.bod-site) .lightbox { color:var(--text); background:#11141b; border-color:var(--line); }
body:not(.bod-site) .lightbox-close { color:var(--text); background:var(--surface); border-color:var(--line); }
