:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-2: #10131a;
  --ink: #f4efe6;
  --muted: #9a9386;
  --line: rgba(244, 239, 230, 0.1);
  --card: rgba(255, 255, 255, 0.035);
  --gold: #f0b45a;
  --copper: #e06b3a;
  --mint: #6ee7b7;
  --navy: #1a2b4b;
  --ok: #8fd4a8;
  --err: #ff8a6a;
  --btn-ink: #f4efe6;
  --btn-ink-text: #14110d;
  --form-fill: rgba(255, 255, 255, 0.03);
  --nav-sheet: #11141b;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  --stage-gold: rgba(240, 180, 90, 0.16);
  --stage-copper: rgba(224, 107, 58, 0.12);
  --grid-line: rgba(244, 239, 230, 0.035);
  --ghost-hover: rgba(244, 239, 230, 0.3);
  --card-lift-border: rgba(244, 239, 230, 0.22);
  --header-fill: color-mix(in srgb, var(--bg) 72%, transparent);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-2: #ebe4d6;
  --ink: #16130f;
  --muted: #6a6358;
  --line: rgba(22, 19, 15, 0.12);
  --card: #fffdf8;
  --gold: #b07518;
  --copper: #c45c2e;
  --mint: #1f7a52;
  --ok: #1f6b3a;
  --err: #b03a1c;
  --btn-ink: #16130f;
  --btn-ink-text: #f4efe6;
  --form-fill: #fff;
  --nav-sheet: #fffdf8;
  --shadow: 0 18px 40px rgba(40, 30, 16, 0.12);
  --stage-gold: rgba(240, 180, 90, 0.32);
  --stage-copper: rgba(224, 107, 58, 0.18);
  --grid-line: rgba(22, 19, 15, 0.055);
  --ghost-hover: rgba(22, 19, 15, 0.28);
  --card-lift-border: rgba(22, 19, 15, 0.18);
  --header-fill: color-mix(in srgb, var(--bg) 82%, transparent);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  font: 17px/1.55 Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  transition: background-color .2s, color .2s;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  min-width: 0;
}

.stage {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -10%, var(--stage-gold), transparent 55%),
    radial-gradient(700px 420px at 90% 8%, var(--stage-copper), transparent 50%),
    var(--bg);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-a { width: 380px; height: 380px; left: -80px; top: 120px; background: rgba(240, 180, 90, 0.22); }
.orb-b { width: 320px; height: 320px; right: -40px; top: 40%; background: rgba(224, 107, 58, 0.18); animation-delay: -6s; }
.orb-c { width: 280px; height: 280px; left: 40%; bottom: 8%; background: rgba(110, 231, 183, 0.08); animation-delay: -11s; }
.grid-fade {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}
.cursor-glow {
  position: fixed; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(240, 180, 90, 0.12), transparent 62%);
  transform: translate(-999px, -999px);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; width: 100%; max-width: 100%;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--header-fill);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: Syne, sans-serif; font-weight: 800; letter-spacing: -0.03em;
  text-decoration: none; font-size: clamp(15px, 4.4vw, 18px);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand img {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
}
.nav { display: flex; gap: 22px; align-items: center; min-width: 0; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav-staff { display: none; }
.top-end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.staff {
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); min-height: 40px; display: inline-flex; align-items: center;
}
.staff:hover { color: var(--ink); border-color: var(--ghost-hover); }
.theme-btn {
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; border-radius: 999px; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.theme-btn svg { width: 18px; height: 18px; display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; border-radius: 10px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s; }
.menu-btn.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
h1, h2, h3 { font-family: Syne, sans-serif; letter-spacing: -0.04em; }
h1 {
  font-size: clamp(32px, 6.2vw, 62px);
  line-height: 1.02; font-weight: 800; max-width: 11ch;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; margin-bottom: 10px; }
h3 { font-size: 22px; font-weight: 700; }
.lede {
  margin: 16px 0 24px; max-width: 28ch; width: 100%;
  font-size: clamp(16px, 2.2vw, 18px); color: var(--muted);
  overflow-wrap: anywhere; white-space: normal;
}
.sub { color: var(--muted); max-width: 46ch; margin-bottom: 20px; }
.hero { padding: 48px 0 12px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px 48px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-shot {
  display: block; text-decoration: none; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s, border-color .25s;
}
.hero-shot:hover { border-color: rgba(240, 180, 90, 0.35); }
.hero-shot img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  transition: transform .7s;
}
.hero-shot:hover img { transform: scale(1.03); }

.swap {
  display: inline-grid; vertical-align: baseline; min-width: 5.4ch;
}
.swap-word {
  grid-area: 1 / 1;
  color: var(--gold);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s, transform .45s;
}
.swap-word.is-on { opacity: 1; transform: none; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 20px; min-height: 48px; font-weight: 600; text-decoration: none; border: 0;
  cursor: pointer; border-radius: 999px; transition: transform .2s, background .2s, box-shadow .2s;
  touch-action: manipulation;
  white-space: normal; max-width: 100%;
}
.btn:hover { transform: translateY(-1px); }
.btn-glow {
  background: linear-gradient(180deg, #f6c56e, var(--gold));
  color: #1a1208; box-shadow: 0 0 0 1px rgba(240, 180, 90, 0.4), 0 12px 30px rgba(240, 180, 90, 0.18);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ghost-hover); }
.btn-ink { background: var(--btn-ink); color: var(--btn-ink-text); }

.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 10px 0; margin-top: 8px;
  max-width: 100%; contain: inline-size;
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: ticker 32s linear infinite;
  font-family: Syne, sans-serif; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 13px; color: var(--muted);
}
.marquee-track span { white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

section { padding: 72px 0; }
#work { padding-top: 48px; }
.section-head {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-end;
  margin-bottom: 24px; flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.chip.is-on, .chip:hover { color: var(--ink); border-color: rgba(240, 180, 90, 0.45); background: rgba(240, 180, 90, 0.08); }

.work-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.work-card {
  grid-column: span 2;
  display: flex; flex-direction: column;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  min-height: 100%;
  transition: transform .35s, border-color .25s, box-shadow .35s;
}
.work-card.featured { grid-column: span 2; }
.work-card.local { grid-column: span 6; display: grid; grid-template-columns: 1.2fr 1fr; }
.work-card.local .browser { grid-column: 1; }
.work-card.local .local-preview { grid-column: 1; }
.work-card.local .work-meta { grid-column: 2; grid-row: 1 / span 2; justify-content: center; padding: 28px 32px; }
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 180, 90, 0.35);
  box-shadow: var(--shadow);
}
.work-card.is-off { display: none; }
.browser {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
.dots {
  width: 34px; height: 8px; border-radius: 999px;
  background:
    radial-gradient(circle at 4px 4px, #ff6b6b 3px, transparent 4px),
    radial-gradient(circle at 16px 4px, #f0b45a 3px, transparent 4px),
    radial-gradient(circle at 28px 4px, #6ee7b7 3px, transparent 4px);
}
.url { flex: 1; }
.pill {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted);
}
.pill.live { color: var(--mint); border-color: rgba(110, 231, 183, 0.35); }
.pill.review { color: var(--gold); border-color: rgba(240, 180, 90, 0.35); }
.pill.dev { color: #9ec0ff; border-color: rgba(158, 192, 255, 0.3); }
.shot { aspect-ratio: 16 / 9; overflow: hidden; background: #0b0d12; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.work-card:hover .shot img { transform: scale(1.04); }
.shot.eft { background: #07080c; }
.shot.kind { background: #0d1628; }
.shot.wardog { background: #12140e; }
.shot.ownerlot { background: #e8f0e6; }
.work-meta { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.work-meta .kind { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.work-meta p:last-of-type { color: var(--muted); font-size: 15px; }
.game-art {
  aspect-ratio: 1.15 / 1;
  display: grid; place-items: center;
}
.game-art img { width: min(46%, 150px); height: auto; border-radius: 28px; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.till-art { background: radial-gradient(circle at 50% 40%, #1d3a2a, #0a100d); }
.nook-art { background: radial-gradient(circle at 50% 40%, #4a3324, #1a120d); }
.smartbnb-art { background: radial-gradient(circle at 50% 40%, #2a4a78, #0c1524); }
.local-preview {
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 4px; padding: 22px;
  background:
    linear-gradient(180deg, transparent, rgba(7, 8, 12, 0.7)),
    linear-gradient(135deg, #c9b48a, #8a5a32 60%, #2a1c14);
}
.local-preview strong { font-family: Syne, sans-serif; font-size: 28px; }
.local-preview em { font-style: normal; color: rgba(244, 239, 230, 0.8); }
.local-preview span {
  margin-top: 8px; width: fit-content; padding: 6px 10px; border-radius: 999px;
  background: var(--copper); font-size: 12px; font-weight: 700;
}

.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.stat-grid { display: grid; gap: 12px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px;
}
.num { font-family: Syne, sans-serif; font-size: 40px; letter-spacing: -0.05em; color: var(--gold); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.grid.packs, .grid.prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.card.accent { border-color: rgba(240, 180, 90, 0.28); box-shadow: inset 0 0 0 1px rgba(240, 180, 90, 0.08); }
.card.lift { transition: transform .3s, border-color .25s; }
.card.lift:hover { transform: translateY(-4px); border-color: var(--card-lift-border); }
.price { font-family: Syne, sans-serif; font-size: 40px; line-height: 1; letter-spacing: -0.04em; }
.price span { font-size: 15px; color: var(--muted); }
.card ul { padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.card .btn { margin-top: auto; }

#packages, #prices { border-top: 1px solid var(--line); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
form.quote { display: grid; gap: 10px; }
form.quote input, form.quote textarea, form.quote select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  background: var(--form-fill); border-radius: 12px;
  font-size: 16px; max-width: 100%;
}
form.quote input:focus, form.quote textarea:focus, form.quote select:focus {
  outline: 2px solid rgba(240, 180, 90, 0.45); border-color: transparent;
}
form.quote textarea { min-height: 120px; resize: vertical; }
.ok { color: var(--ok); }
.err { color: var(--err); }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  color: var(--muted); font-size: 14px;
}
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink); }

@media (max-width: 1100px) {
  .work-card, .work-card.featured { grid-column: span 3; }
  .work-card.local { grid-column: span 6; }
}
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; left: 12px; right: 12px;
    top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nav-sheet); border: 1px solid var(--line); border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; min-height: 44px; }
  .nav-staff { display: block; }
  .top-end .staff { display: none; }
  .menu-btn { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid.packs, .grid.prices { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: flex-start; }
  .hero { padding: 36px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-shot img { aspect-ratio: 16 / 8; }
  section { padding: 52px 0; }
  #work { padding-top: 40px; }
}
@media (max-width: 640px) {
  .orb-a, .orb-b, .orb-c { width: 220px; height: 220px; filter: blur(50px); }
  h1 { max-width: none; font-size: clamp(28px, 8.6vw, 36px); }
  .work-card, .work-card.featured, .work-card.local { grid-column: span 6; }
  .work-card.local { display: flex; }
  .work-card.local .work-meta { padding: 18px; }
  .actions .btn { flex: 1; }
  .local-preview strong { font-size: 24px; }
  .filters { width: 100%; }
  .chip { min-height: 40px; }
  .game-art { aspect-ratio: 16 / 9; }
  .grid.packs, .grid.prices { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .staff { padding: 8px 10px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 24px 0 12px; }
  .hero-shot { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  h1 { font-size: clamp(28px, 7vw, 48px); }
}
@media (hover: none) {
  .btn:hover, .work-card:hover, .card.lift:hover, .hero-shot:hover { transform: none; }
  .work-card:hover { box-shadow: none; }
  .work-card:hover .shot img, .hero-shot:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .marquee-track, .swap-word, .work-card, .shot img, .card.lift, .hero-shot, .hero-shot img { animation: none !important; transition: none !important; }
}
