@font-face {
  font-family: Syne;
  src: url("./assets/syne-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a090f;
  --panel: #100e1c;
  --ink: #f7f6fa;
  --muted: #afaabd;
  --line: #252130;
  --cyan: #13dce9;
  --display: Syne, Arial, sans-serif;
  --mast: 64px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-padding-top: calc(var(--mast) + 18px);
}
*, *::after, *::before { box-sizing: border-box; }
body, h1, h2, h3, p, form { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
.wrap { width: min(86%, 76rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--cyan); color: #051114; transform: translateY(-160%); }
.skip:focus { transform: none; }
.mast { height: var(--mast); position: sticky; top: 0; z-index: 3; background: #0a090ff7; border-bottom: 1px solid #211e2a; }
.nav-row, nav, .action, .legal, .viewer-head, .viewer-controls { display: flex; align-items: center; }
.nav-row { height: 100%; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; width: fit-content; line-height: .88; }
.brand img { width: 2.25rem; height: 2.25rem; image-rendering: pixelated; }
.brand > span { font: 750 1.33rem/.88 var(--display); letter-spacing: -.055em; }
.brand small { display: block; color: #65e2df; font: 650 .59rem/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .26em; margin-top: .34rem; }
nav { gap: clamp(1.3rem, 2.35vw, 2.4rem); }
nav a, .mail, .legal a { color: var(--muted); font-size: .89rem; font-weight: 550; }
nav a:hover, .mail:hover, .legal a:hover { color: var(--cyan); }
.action { width: fit-content; display: inline-flex; justify-content: center; gap: 1rem; min-height: 3.25rem; padding: .76rem 1.85rem; border: 1px solid var(--cyan); font-size: .91rem; font-weight: 700; line-height: 1.2; transition: background .18s, color .18s, border-color .18s; }
.action span { font-size: 1.2em; }
.action.solid, .outline:hover { color: #071012; background: var(--cyan); }
.solid:hover { background: #87f8ff; border-color: #87f8ff; }
.outline { color: var(--cyan); }
.action.small { min-height: 2.45rem; padding: .45rem 1.05rem; }
.hero { isolation: isolate; position: relative; display: grid; place-items: center; min-height: clamp(36rem, calc(100svh - var(--mast)), 78rem); padding: 4rem 1.25rem 6rem; overflow: hidden; text-align: center; background: linear-gradient(0deg, #0a090f87, #0a090f41 35%, #0a090f47 72%, #0a090f72), url("./assets/studio-circuit.webp") center / cover no-repeat, var(--bg); }
.hero-copy { width: min(100%, 62rem); }
.eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.hero-label { display: flex; align-items: center; justify-content: center; gap: .58rem; color: #51dfea; margin-bottom: clamp(1.65rem, 3vh, 2.3rem); }
.hero-label::before, .hero-label::after { content: ""; width: .89rem; height: .89rem; background: var(--cyan); opacity: .7; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%, 50% 0%, 50% 7%, 7% 29%, 7% 71%, 50% 93%, 93% 71%, 93% 29%, 50% 7%); }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: clamp(3.25rem, 4.9vw, 4.8rem); font-weight: 660; line-height: 1.03; letter-spacing: -.041em; }
h1 span { display: block; }
.intro { max-width: 48ch; margin: 1.45rem auto 2.35rem; color: #b1adbf; font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.55; text-wrap: balance; }
.section { padding-block: clamp(4rem, 6vw, 6.4rem); }
.section-title { font-size: clamp(2rem, 3.1vw, 2.55rem); line-height: 1.05; font-weight: 630; letter-spacing: -.048em; }
.section-title::after { content: ""; display: block; margin: .95rem 0 2.6rem; width: 3rem; border-top: 2px solid #2dbac9; }
.capabilities, .projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.capability, .project { position: relative; border: 1px solid var(--line); background-color: var(--panel); }
.capability { isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 12.9rem; padding: clamp(1.35rem, 2.5vw, 2.25rem); }
.cap-copy { max-width: 36ch; }
.cap-copy::after { content: ""; display: block; width: 2.1rem; margin-top: 1.3rem; border-top: 1px solid var(--accent); }
.capability .eyebrow { color: var(--accent); }
.capability h3, .project h3 { margin: .6rem 0 .56rem; font-weight: 640; font-size: 1.38rem; letter-spacing: -.035em; line-height: 1.14; }
.capability p:not(.eyebrow), .project p, .contact p, .footer p { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.capability em { font-style: normal; }
.games { --accent: #48dce9; grid-row: span 2; min-height: 27rem; background-image: linear-gradient(0deg, #100e1c 7%, #110e1ef5 38%, #231135bd 65%, #3c115570), url("./assets/game-hero.webp"); background-size: cover, auto 70%; background-position: center, 52% top; background-repeat: no-repeat; }
.mobile { --accent: #c0a4ff; background: linear-gradient(90deg, #100e1cf5 0%, #100d1cdd 43%, #130e24a6 69%, #20112a72), url("./assets/mobile-workbench.webp") center / cover; }
.productivity { --accent: #66dca7; background: radial-gradient(ellipse at top right, #13211e77, transparent 63%), var(--panel); }
.engineering { --accent: #efa26e; grid-column: span 2; background: linear-gradient(95deg, #100e1cf5 8%, #11101cd1 46%, #11121a4a), url("./assets/engineering-workbench.webp") center 48% / cover; }
.engineering .cap-copy { max-width: 43ch; }
.featured { background: #100e1a; }
.project { display: flex; flex-direction: column; padding: clamp(1.25rem, 2.35vw, 2rem); min-height: 13.9rem; transition: border-color .2s, box-shadow .2s; }
.project:hover, .project:focus-visible { border-color: #26838e; box-shadow: inset 0 1px #19dce9, 0 0 1.35rem #0096a40d; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; justify-content: space-between; margin-bottom: 1.1rem; font-size: .68rem; font-weight: 650; text-transform: uppercase; color: var(--muted); }
.tag { border: 1px solid currentColor; padding: .13rem .43rem; text-transform: none; font-size: .7rem; }
.amber { color: #f1a269; } .teal { color: #56d8cd; } .violet { color: #bc9aee; }
.project h3 { margin-top: 0; }
.view { display: inline-flex; gap: .45rem; align-items: center; width: fit-content; padding-top: 1.05rem; margin-top: auto; color: #67dfe8; font-size: .77rem; font-weight: 650; }
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::after { content: ""; position: absolute; z-index: -1; right: -5rem; top: -8rem; width: 29rem; height: 29rem; opacity: .55; background: repeating-radial-gradient(ellipse at center, transparent 0 29px, #1d2730 30px, transparent 31px 60px); transform: rotate(23deg) skew(-9deg); mask-image: linear-gradient(to left, #000, transparent); }
.contact-inner { min-height: 18rem; padding-block: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.contact h2 { font-size: clamp(2.5rem, 4.2vw, 3.7rem); font-weight: 650; line-height: 1.02; letter-spacing: -.05em; }
.contact p { margin-top: 1rem; max-width: 47ch; font-size: 1.04rem; }
.footer { border-top: 1px solid var(--line); }
.footer-main { padding-block: 2.8rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-main p { max-width: 29ch; margin-top: .65rem; font-size: .84rem; }
.footer nav { gap: 1.4rem; }
.legal { justify-content: space-between; padding-block: 1.35rem; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.legal a { font-size: inherit; }
body:has(.viewer[open]) { overflow: hidden; }
.viewer { width: min(70rem, 94vw); max-height: 94svh; padding: 0; border: 1px solid #39414b; background: var(--panel); color: var(--ink); }
.viewer::backdrop { background: #05050bf0; }
.viewer-head, .viewer-controls { justify-content: space-between; gap: .65rem; padding: .7rem 1rem; }
.viewer h2 { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; }
.viewer button { background: transparent; border: 1px solid #494557; padding: .4rem .7rem; color: var(--ink); }
.viewer button:hover { border-color: var(--cyan); color: var(--cyan); }
.viewer-art { display: block; width: 100%; max-height: 70svh; object-fit: contain; background: #07070a; }
.counter { font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) {
  .wrap { width: 90%; }
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engineering { grid-column: 1 / -1; }
  .projects { gap: .7rem; }
  .footer-main { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  :root { --mast: 58px; }
  .nav-row { gap: .6rem; }
  .brand img { width: 1.95rem; height: 1.95rem; }
  .brand > span { font-size: 1.14rem; }
  nav { gap: .85rem; }
  .mast nav a { font-size: .78rem; }
  .nav-work { display: none; }
  .action.small { padding-inline: .65rem; min-height: 2.15rem; }
  .hero { min-height: clamp(31rem, calc(88svh - var(--mast)), 45rem); padding: 4rem 4.5%; }
  h1 { font-size: clamp(1.72rem, 7.65vw, 2.95rem); letter-spacing: -.04em; }
  .hero-label { margin-bottom: 1.45rem; }
  .intro { max-width: 34ch; margin-block: 1.3rem 1.8rem; }
  .hero { background-image: linear-gradient(90deg, #0a090f81, #0a090f52 60%, #0a090f66), url("./assets/studio-circuit.webp"); background-position: center, 13% center; }
  .section-title::after { margin-bottom: 1.7rem; }
  .capabilities, .projects { grid-template-columns: 1fr; gap: .85rem; }
  .games { grid-row: auto; min-height: 20.5rem; background-size: cover, cover; background-position: center, center 35%; }
  .engineering { grid-column: auto; }
  .capability:not(.games) { min-height: 11.3rem; }
  .project { min-height: 12rem; }
  .contact-inner, .footer-main { align-items: flex-start; flex-direction: column; }
  .footer-main { gap: 1.35rem; padding-block: 2.4rem; }
}
@media (max-width: 340px) {
  .mast nav { gap: .48rem; }
  .brand { gap: .2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
