:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5f5f5f;
  --line: #ececec;
  --orange: #fd6206;
  --orange-ink: #d45305;
  --soft: #fff4ec;
  --max: 1180px;
  --header: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 0.55em; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(16px);
}
.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.brand img {
  height: 58px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--orange); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn {
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(253, 98, 6, 0.22);
}
.btn-primary:hover { background: #e45805; color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-cta { min-height: 44px; padding: 0 18px; font-size: 0.92rem; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span:before,
.nav-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span:before { top: -5px; }
.nav-toggle span:after { top: 5px; }

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f4f6f8;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.05s ease;
}
.hero-slides img.is-on {
  opacity: 1;
  animation: heroDrift 12s ease-in-out infinite alternate;
}
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.94) 30%, rgba(255,255,255,0.38) 52%, rgba(255,255,255,0.06) 72%, transparent 88%);
}
.hero-inner { position: relative; z-index: 2; padding: 80px 0 88px; max-width: 620px; color: var(--ink); }
.hero-inner h1 { color: #111; }
.hero-inner h1 .accent { color: var(--orange); }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker:before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.hero .lead {
  max-width: 520px;
  font-size: 1.12rem;
  color: #4d4d4d;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-meta a { color: var(--ink); text-decoration: none; }
.hero-meta a:hover { color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.section { padding: 88px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head p { margin: 0; max-width: 360px; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px 22px;
  background: #fff;
  min-height: 176px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service:hover {
  transform: translateY(-6px);
  border-color: #ffd2b3;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.06);
}
.service svg { width: 28px; height: 28px; color: var(--orange); margin-bottom: 16px; }
.service h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 28px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.88rem; }

.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.project {
  text-decoration: none;
  color: inherit;
  cursor: default;
}
.project-art {
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 10;
}
.project-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.project:hover .project-art img { transform: scale(1.04); }
.project h3, .project h2 { font-size: 1.05rem; margin: 14px 0 4px; }
.project p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.soon {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.game-intro { max-width: 720px; }
.game-intro p { color: var(--muted); font-size: 1.05rem; }
.projects.catalog { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
@media (max-width: 980px) {
  .projects.catalog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .projects.catalog { grid-template-columns: 1fr; }
}

.cinema {
  padding: 24px 0 88px;
}
.cinema-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.cinema-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
  aspect-ratio: 16 / 9;
}
.cinema-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cinema-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
.hero-inner .kicker,
.hero-inner h1,
.hero-inner .lead,
.hero-inner .hero-meta,
.hero-inner .actions {
  animation: rise 0.85s ease forwards;
}
.hero-inner h1 { animation-delay: 0.08s; }
.hero-inner .lead { animation-delay: 0.16s; }
.hero-inner .hero-meta { animation-delay: 0.24s; }
.hero-inner .actions { animation-delay: 0.32s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(17,17,17,0.05); }

@keyframes rise {
  from { transform: translateY(16px); }
  to { transform: none; }
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  min-height: 180px;
}
.step b {
  display: block;
  color: var(--orange);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.principles { padding: 0 0 72px; }
.desk {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffaf6;
}
.desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.desk-urls p { margin: 0 0 16px; }
.desk-urls small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}
.desk-urls code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--ink);
}

.cta-band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-box h2 { margin-bottom: 8px; }
.cta-box p { margin: 0; color: var(--muted); }

.panel {
  background: var(--soft);
  border: 1px solid #ffe1cc;
  border-radius: 20px;
  padding: 28px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fact { border-top: 2px solid var(--orange); padding-top: 12px; }
.fact b { display: block; font-size: 1.05rem; }
.fact span { color: var(--muted); font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
a.card:hover { border-color: #ffd2b3; box-shadow: 0 10px 30px rgba(253, 98, 6, 0.06); }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.legal { max-width: 760px; }
.legal h1 { margin-bottom: 0.25em; }
.legal .meta { color: var(--muted); margin-bottom: 2rem; }
.legal h2 { margin-top: 1.7em; }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal li { margin: 0.35em 0; }
.store-urls {
  background: var(--soft);
  border: 1px solid #ffe1cc;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 28px;
}
.store-urls code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  word-break: break-all;
  margin: 4px 0 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1rem;
}
.footer-logo img {
  width: 28px;
  height: 28px;
  max-width: 28px;
  object-fit: contain;
}
.footer-logo:hover { color: var(--ink); }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.legal-line { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .services, .projects, .stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: 0; }
  .stats { gap: 8px; border: 0; }
  .stat { border: 1px solid var(--line); border-radius: 14px; }
  .hero { min-height: 560px; }
  .cinema-grid, .desk-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-slides img { transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 800px) {
  .header-inner { gap: 12px; }
  .brand img { height: 46px; }
  .btn-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: var(--header);
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .nav.open { display: flex; }
  .services, .projects, .facts, .grid, .footer-grid, .stats, .steps { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 520px; }
  .hero-inner { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
}
