:root {
  --bg: #07080c;
  --bg-2: #10131a;
  --ink: #f4efe6;
  --muted: #b7b1a6;
  --line: rgba(244, 239, 230, 0.12);
  --gold: #e0b15a;
  --gold-2: #8d6a2f;
  --card: #12151c;
  --serif: "Syne", "Segoe UI", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --pad: max(22px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(224, 177, 90, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(80, 110, 180, 0.12), transparent 55%),
    var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 380;
  overflow-x: clip;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.045em; line-height: 0.96; }
h1, h2, h3, p { overflow-wrap: break-word; }
.skip {
  position: absolute; left: 12px; top: -48px; background: var(--gold); color: #111; padding: 8px 12px; z-index: 50;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.mast {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 12, 0.72);
  border-bottom: 1px solid transparent;
}
.mast.is-stuck { border-bottom-color: var(--line); }
.topbar { display: flex; justify-content: flex-end; padding: 8px var(--pad) 0; }
.langs { display: flex; gap: 4px; }
.langs button {
  background: transparent; color: var(--ink); border: 1px solid transparent;
  min-width: 44px; min-height: 36px; border-radius: 999px; cursor: pointer;
  letter-spacing: 0.08em; font-size: 12px;
}
.langs button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px var(--pad) 16px;
}
.brand { text-decoration: none; letter-spacing: 0.18em; font-size: 13px; font-weight: 560; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color 0.2s ease, text-shadow 0.2s ease; }
.site-nav a:hover { color: var(--ink); text-shadow: 0 0 18px rgba(224, 177, 90, 0.55); }
.nav-cta {
  text-decoration: none; color: #14120c; background: var(--gold);
  border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 560;
}
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 8px 12px; }
html.booting main, html.booting .site-footer { opacity: 0; }

.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center;
  padding: 42px var(--pad) 20px; overflow: clip;
}
.eyebrow { margin: 0 0 14px; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; color: var(--gold); }
h1 { margin: 0; font-size: clamp(52px, 7vw, 96px); }
.lead { max-width: 640px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  border-radius: 999px; padding: 16px 28px; background: var(--gold); color: #16130c;
  border: 0; font-weight: 560; min-height: 56px; font-size: 17px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button:hover, .nav-cta:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 18px 40px rgba(224, 177, 90, 0.38);
}
.nav-cta { transition: transform 0.25s ease, box-shadow 0.25s ease; min-height: 48px; padding: 12px 20px; }
.type-line { min-height: 1.4em; margin: 18px 0 0; color: var(--gold); font-size: clamp(18px, 2vw, 24px); font-family: var(--serif); }
.type-line::after {
  content: ""; display: inline-block; width: 11px; height: 1.05em; margin-left: 6px;
  background: var(--gold); vertical-align: text-bottom; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.dash-top span { margin-left: auto; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.code-live {
  margin: 8px 0 0; min-height: 250px; white-space: pre-wrap;
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 15px; line-height: 1.65; color: #f4efe6;
}

.stage { perspective: 1200px; min-height: 420px; }
.stage-inner {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -16deg));
  transition: transform 0.35s ease;
}
.dash, .phone {
  border: 1px solid var(--line); background: linear-gradient(180deg, #1a1e28, #0d1016);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.dash { border-radius: 22px; padding: 16px; min-height: 320px; }
.dash-top { display: flex; gap: 8px; margin-bottom: 14px; }
.dash-top i, .kpi i, .row i, .bars i { display: block; background: #2a303c; border-radius: 6px; height: 8px; }
.dash-top i:first-child { width: 54px; background: var(--gold); }
.dash-top i:nth-child(2) { width: 36px; }
.dash-top i:nth-child(3) { width: 36px; margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: #0c0f15; border-radius: 12px; padding: 12px; }
.kpi i { width: 40%; margin-bottom: 16px; }
.kpi b { display: block; height: 18px; width: 55%; background: var(--ink); border-radius: 4px; opacity: 0.9; }
.rows { margin-top: 12px; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 1.4fr 0.6fr 0.4fr; gap: 8px; align-items: center; background: #0c0f15; border-radius: 10px; padding: 10px; }
.row i { width: 70%; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: 12px; }
.bars i { width: 100%; height: var(--h); background: linear-gradient(#e0b15a, #6d5424); border-radius: 6px 6px 2px 2px; }
.phone {
  position: absolute; right: 18px; bottom: 8px; width: 150px; height: 250px;
  border-radius: 28px; padding: 14px; transform: translateZ(60px) rotateY(-8deg);
}
.phone .screen { height: 100%; border-radius: 18px; background: #f4efe6; padding: 12px; }
.phone .screen i { display: block; height: 8px; border-radius: 4px; background: #10151c; margin-bottom: 8px; }
.phone .screen i:nth-child(1) { width: 40%; background: var(--gold-2); }
.phone .screen i:nth-child(2) { height: 52px; width: 100%; }
.phone .screen i:nth-child(3), .phone .screen i:nth-child(4) { width: 100%; height: 22px; background: #e7e1d4; }

.section { padding: 72px var(--pad); content-visibility: auto; contain-intrinsic-size: 720px; }
.section-head { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); }
.section-head p, .studio p, .map-copy p { margin: 0; color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px;
  min-height: 160px; cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover, .card.is-open { transform: translateY(-4px); border-color: rgba(224, 177, 90, 0.55); }
.card em { font-style: normal; color: var(--gold); letter-spacing: 0.12em; font-size: 12px; }
.card h3 { margin: 12px 0 8px; font-size: 28px; }
.card p { margin: 0; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.card:hover p, .card.is-open p, .card:focus-within p { max-height: 140px; }
.card.wide { grid-column: span 2; }

.work-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.shot h3 { margin: 12px 0 6px; font-size: 28px; }
.shot p { margin: 0; color: var(--muted); }
.kicker { color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; margin: 10px 0 0; }
.shot-photo {
  width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid var(--line); background: #0c0f15;
}
.shot-photo.device { width: min(100%, 280px); margin-inline: auto; }

.platforms, .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.platform, .step { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; min-height: 150px; }
.platform em, .step em { font-style: normal; color: var(--gold); letter-spacing: 0.12em; font-size: 12px; }
.platform h3, .step h3 { margin: 14px 0 8px; font-size: 26px; }
.platform p, .step p { margin: 0; color: var(--muted); }
.steps { grid-template-columns: repeat(4, 1fr); }

.world { background: linear-gradient(180deg, transparent, rgba(224, 177, 90, 0.06)); }
.regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.regions span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; }

.studio { background: #0c0f15; border-block: 1px solid var(--line); }
.faqs { display: grid; gap: 10px; }
.faqs details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.faqs summary { cursor: pointer; font-weight: 560; }
.faqs p { margin: 10px 0 0; color: var(--muted); }

.visit { background: transparent; }
.map-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 22px; align-items: start; }
.map-copy h2 { margin: 0 0 12px; font-size: clamp(36px, 4vw, 60px); }
.map-link { color: var(--gold); font-weight: 560; }
.map-frame { width: 100%; min-height: 460px; height: 100%; border: 0; border-radius: 24px; background: #151820; }
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.inquiry label { display: grid; gap: 6px; font-size: 14px; }
.inquiry label.wide { grid-column: 1 / -1; }
.inquiry input, .inquiry select, .inquiry textarea {
  width: 100%; border: 1px solid var(--line); background: #0c0f15; border-radius: 14px; padding: 12px 14px;
}
.inquiry textarea { min-height: 120px; resize: vertical; }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }

.legal h2, .legal-fold h2 { margin: 18px 0 12px; font-size: clamp(36px, 4vw, 60px); }
.legal-fold summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 76px; font-size: 16px;
}
.legal-fold summary::-webkit-details-marker { display: none; }
.legal-fold summary .eyebrow { margin: 0; }
.legal-fold:not([open]) > :not(summary) { display: none; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 8px 18px; margin: 12px 0 0; }
.legal-grid dt { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-grid dd { margin: 0 0 8px; }
.site-footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .hero, .section-head, .map-layout, .work-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 1; }
  .steps, .platforms { grid-template-columns: 1fr 1fr; }
  .phone { position: relative; right: auto; bottom: auto; margin-top: 16px; transform: none; }
  .map-frame { height: 380px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; min-height: 44px; }
  .site-nav {
    display: none; position: absolute; top: 96px; left: 12px; right: 12px;
    flex-direction: column; align-items: flex-start; padding: 16px;
    background: #141820; border: 1px solid var(--line); border-radius: 18px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .bento, .steps, .platforms, .inquiry, .legal-grid { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .inquiry input, .inquiry select, .inquiry textarea { font-size: 16px; }
  .map-frame { height: 300px; min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-inner, .card, .button, .nav-cta { transition: none; }
  .card p { max-height: none; }
  .type-line::after { animation: none; }
}
