:root {
  color-scheme: dark;
  --page: #141414;
  --surface: #1c1c1c;
  --surface-soft: #242424;
  --ink: #fafaf8;
  --muted: #adadab;
  --line: #323232;
  --accent: #ff5925;
  --button: #eeeee9;
  --button-hover: #ffffff;
  --button-ink: #191919;
  --header-bg: rgb(20 20 20 / 94%);
  --selection-ink: #141414;
  --heading-font: "Lora", Georgia, "Times New Roman", serif;
  --body-font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --page-width: 1120px;
  --page-gutter: clamp(22px, 5vw, 72px);
  --radius-card: 12px;
  --radius-image: 8px;
  --focus: #ff5925;
  caret-color: var(--accent);
  scrollbar-color: var(--muted) var(--page);
  font-family: var(--body-font);
  background: var(--page);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

html[data-theme="light"] {
  color-scheme: light;
  --page: #f7f7f5;
  --surface: #eeeee9;
  --surface-soft: #e5e5df;
  --ink: #20201f;
  --muted: #62625e;
  --line: #d9d9d1;
  --accent: #c9431c;
  --focus: #c9431c;
  --button: #242423;
  --button-hover: #41413e;
  --button-ink: #fafaf8;
  --header-bg: rgb(247 247 245 / 94%);
  --selection-ink: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms ease, color 200ms ease;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--selection-ink); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--button);
  color: var(--button-ink);
}

.skip-link:focus { transform: translateY(0); }

.section-wrap,
.header-inner {
  width: min(100% - 2 * var(--page-gutter), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  min-height: 68px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.wordmark-mark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.wordmark-mark::after {
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--page);
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.wordmark-dot { color: var(--accent); }

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
}

.site-nav a,
.footer-meta a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  transition: color 160ms ease;
}

.site-nav a:hover,
.footer-meta a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover { background: var(--surface-soft); color: var(--ink); }
.theme-toggle { font-size: 12px; }
.theme-toggle-icon { width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.button-primary,
.button-contact { background: var(--button); color: var(--button-ink); }
.button-primary:hover,
.button-contact:hover { background: var(--button-hover); }
.button-small { min-height: 32px; padding-inline: 14px; font-size: 12px; }

.hero {
  display: grid;
  justify-items: center;
  gap: 0;
  padding-block: 104px 96px;
  text-align: center;
}

.hero-copy { width: 100%; max-width: 760px; }
.eyebrow { margin: 0 0 19px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0.015em; }
.eyebrow-mark { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
h1, h2, h3, h4, p, figure { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 760px;
  margin: 0 auto 22px;
  font-size: 48px;
  line-height: 1.1;
  text-wrap: balance;
}

.hero-intro { max-width: 510px; margin: 0 auto 25px; color: var(--muted); font-size: 14px; line-height: 1.65; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 23px; }
.text-link { display: inline-flex; min-height: 38px; align-items: center; gap: 9px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 400; transition: color 160ms ease; }
.arrow-icon { width: 12px; height: 12px; flex: 0 0 auto; overflow: visible; }
.arrow-icon path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.text-link .arrow-icon { color: var(--accent); }
.text-link:hover { color: var(--ink); }

.hero-visual {
  width: 100%;
  max-width: 1060px;
  margin: 61px 0 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.hero-visual img { aspect-ratio: 1.6 / 1; object-fit: cover; object-position: center 56%; border-radius: 6px; }
.hero-note { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 8px 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.hero-note-mark { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-side-note { margin-top: 24px; color: var(--muted); font-size: 12px; }
.hero-side-note span { padding-inline: 8px; color: var(--accent); }

.build-section,
.work-section { padding-block: 115px 125px; }
.section-heading { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-heading h2,
.process-intro h2,
.about-copy h2,
.contact-copy h2 { margin-bottom: 0; font-size: 40px; line-height: 1.1; text-wrap: balance; }

.build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.build-story { display: flex; min-width: 0; flex-direction: column; gap: 26px; }
.build-image { position: relative; overflow: hidden; padding: 6px; border: 1px solid var(--line); background: var(--surface); }
.image-frame { border-radius: var(--radius-image); }
.build-image img { aspect-ratio: 1.55 / 1; object-fit: cover; border-radius: 4px; }
.build-story-play .build-image { order: -1; }
.image-index { position: absolute; top: 18px; left: 18px; display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgb(255 255 255 / 28%); border-radius: 50%; background: rgb(20 20 20 / 74%); color: #fff; font-size: 12px; }
.build-copy { max-width: 450px; margin-inline: auto; text-align: center; }
.build-kicker { color: var(--muted); font-size: 12px; font-weight: 400; }
.build-copy h3 { margin: 12px 0 13px; font-size: 27px; line-height: 1.2; text-wrap: balance; }
.build-copy p { max-width: 390px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.7; }

.work-heading { margin-bottom: 65px; }
.work-heading > p { max-width: 430px; margin: 21px auto 0; color: var(--muted); font-size: 13px; }
.project-group + .project-group { margin-top: 72px; }
.project-group-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.project-group-heading h3 { margin: 0; font-family: var(--body-font); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.project-group-heading span { color: var(--muted); font-size: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.project-grid-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px 30px; }
.project-card { min-width: 0; }
.project-image { position: relative; display: block; overflow: hidden; margin-bottom: 19px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-image); background: var(--surface); text-decoration: none; transition: border-color 160ms ease; }
.project-image img { aspect-ratio: 1.6 / 1; object-fit: cover; border-radius: 4px; }
.project-image:hover { border-color: var(--muted); }
.project-arrow { position: absolute; right: 16px; bottom: 16px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #eeeee9; color: #191919; opacity: 0; transition: opacity 160ms ease; }
.project-image:hover .project-arrow,
.project-image:focus-visible .project-arrow { opacity: 1; }
.project-info h4 { margin: 0 0 9px; font-family: var(--heading-font); font-size: 24px; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.project-info p { max-width: 430px; margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.project-link { display: inline-flex; min-height: 28px; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 500; text-decoration: none; }
.project-link .arrow-icon { color: var(--accent); }
.project-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.process-section { background: var(--page); }
.process-inner { padding-block: 112px 122px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-intro { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.process-steps { display: grid; max-width: 960px; margin-inline: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px; }
.process-step { padding-top: 20px; border-top: 1px solid var(--line); }
.process-mark { display: block; width: 6px; height: 6px; margin: 8px 0 26px; border-radius: 50%; background: var(--accent); }
.process-step h3 { max-width: 230px; margin: 0 0 12px; font-family: var(--body-font); font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
.process-step p { max-width: 250px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.about-section { display: flex; flex-direction: column; align-items: center; gap: 54px; padding-block: 126px 130px; }
.about-visual { position: relative; width: 100%; max-width: 900px; padding: 6px; border: 1px solid var(--line); background: var(--surface); }
.about-visual img { aspect-ratio: 2.1 / 1; object-fit: cover; border-radius: 4px; }
.about-stamp { position: absolute; right: 21px; bottom: 20px; padding: 8px 13px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 6px; background: rgb(20 20 20 / 80%); color: #fafaf8; font-size: 12px; line-height: 1.4; text-align: center; }
.about-copy { order: -1; max-width: 680px; text-align: center; }
.about-copy h2 { margin-bottom: 25px; }
.about-copy p:not(.eyebrow) { max-width: 510px; margin: 0 auto 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.about-copy p:last-child { margin-bottom: 0; }

.contact-section { padding-bottom: 100px; }
.contact-panel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 29px; overflow: hidden; padding: 78px 32px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); text-align: center; }
.contact-copy { position: relative; z-index: 1; max-width: 680px; }
.contact-copy h2 { margin-bottom: 22px; }
.contact-copy p:not(.eyebrow) { max-width: 470px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact-action { position: relative; z-index: 1; display: grid; justify-items: center; gap: 17px; }
.contact-email { color: var(--muted); font-size: 12px; text-decoration-color: var(--line); text-underline-offset: 4px; }
.contact-email:hover { color: var(--ink); }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 25px 32px; border-top: 1px solid var(--line); }
.footer-wordmark { font-size: 15px; }
.footer-wordmark .wordmark-mark { width: 16px; height: 16px; border-width: 4px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: end; gap: 14px; color: var(--muted); font-size: 12px; }
.footer-meta a { font-size: 12px; }

@media (max-width: 1050px) {
  .header-inner { gap: 20px; }
  .site-nav { gap: 17px; }
  .header-actions { gap: 8px; }
  .theme-toggle-label { display: none; }
  .site-footer { grid-template-columns: auto 1fr; gap: 22px; }
  .footer-links { justify-content: end; }
  .footer-meta { grid-column: 1 / -1; justify-content: space-between; }
}

@media (max-width: 760px) {
  :root { --page-gutter: 22px; scroll-padding-top: 84px; }
  .header-inner { min-height: 64px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .site-nav { grid-column: 1 / -1; justify-content: start; flex-wrap: wrap; gap: 7px 22px; padding: 3px 0 18px; }
  .site-nav a { min-height: 36px; padding-block: 8px; }
  .js-enabled .site-nav { display: none; }
  .js-enabled .site-header.is-open .site-nav { display: flex; }
  .js-enabled .menu-toggle { display: inline-flex; grid-column: 3; grid-row: 1; padding-inline: 6px; }
  .menu-toggle-label { font-size: 12px; font-weight: 400; }
  .menu-toggle-lines { position: relative; width: 15px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .menu-toggle-lines::after { position: absolute; top: 4px; left: 0; width: 100%; border-top: 1px solid currentColor; content: ""; }
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .header-actions .button { display: none; }
  .theme-toggle { min-width: 36px; }
  .hero { padding-block: 76px 78px; }
  .hero-copy { max-width: 580px; }
  h1 { max-width: 580px; margin-bottom: 21px; font-size: clamp(34px, 6.3vw, 44px); line-height: 1.12; }
  .hero-intro { max-width: 440px; font-size: 13px; }
  .hero-actions { gap: 12px 20px; }
  .hero-visual { margin-top: 42px; padding: 5px; border-radius: 9px; }
  .hero-visual img { aspect-ratio: 1 / 1; border-radius: 4px; }
  .hero-note { padding-top: 9px; font-size: 12px; }
  .hero-side-note { margin-top: 20px; font-size: 12px; }
  .hero-side-note span { padding-inline: 4px; }
  .build-section, .work-section { padding-block: 80px 86px; }
  .section-heading { max-width: 540px; margin-bottom: 42px; }
  .section-heading h2, .process-intro h2, .about-copy h2, .contact-copy h2 { font-size: clamp(30px, 5.5vw, 38px); line-height: 1.15; }
  .eyebrow { margin-bottom: 16px; }
  .build-grid { grid-template-columns: 1fr; gap: 55px; }
  .build-story { gap: 24px; }
  .build-copy h3 { font-size: 26px; }
  .build-copy p { font-size: 13px; }
  .work-heading { margin-bottom: 48px; }
  .work-heading > p { margin-top: 20px; }
  .project-group + .project-group { margin-top: 58px; }
  .project-group-heading { gap: 12px; margin-bottom: 23px; }
  .project-group-heading h3 { font-size: 12px; }
  .project-group-heading span { font-size: 12px; white-space: nowrap; }
  .project-grid, .project-grid-games { grid-template-columns: 1fr; gap: 38px; }
  .project-image { margin-bottom: 17px; }
  .project-info h4 { font-size: 25px; }
  .project-info p { max-width: none; font-size: 13px; }
  .project-link { min-height: 30px; font-size: 12px; }
  .project-arrow { opacity: 1; width: 26px; height: 26px; }
  .process-inner { padding-block: 80px 86px; }
  .process-intro { margin-bottom: 43px; }
  .process-steps { grid-template-columns: 1fr; gap: 27px; }
  .process-step { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding-top: 21px; }
  .process-mark { grid-row: span 2; margin: 8px 0 0; }
  .process-step h3 { max-width: none; margin-bottom: 8px; }
  .process-step p { max-width: none; grid-column: 2; font-size: 13px; }
  .about-section { gap: 40px; padding-block: 84px 86px; }
  .about-copy { max-width: 540px; }
  .about-copy p:not(.eyebrow) { font-size: 13px; }
  .about-visual img { aspect-ratio: 1.55 / 1; }
  .about-stamp { right: 17px; bottom: 17px; font-size: 12px; }
  .contact-section { padding-bottom: 72px; }
  .contact-panel { gap: 27px; padding: 53px 23px; border-radius: 10px; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; padding-block: 28px; }
  .footer-links { justify-content: start; gap: 19px; }
  .footer-meta { grid-column: auto; justify-content: space-between; gap: 10px; }
}

@media (max-width: 380px) {
  :root { --page-gutter: 18px; }
  .wordmark { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 9px; }
  .hero-side-note { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
