@font-face {
  font-family: "Display";
  src: url("fonts/RussoOne.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Body";
  src: url("fonts/Rubik.ttf") format("truetype");
  font-display: swap;
}

:root {
  --page: #f5f7f8;
  --surface: #ffffff;
  --ink: #111318;
  --muted: #5e6873;
  --line: #dbe1e6;
  --line-strong: #bfc8d0;
  --blue: #0067b8;
  --blue-dark: #074f87;
  --teal: #009eaa;
  --green: #4b8f46;
  --gold: #e5a800;
  --danger: #cf3f44;
  --hero: #0e1117;
  --shadow: 0 20px 60px rgba(17, 19, 24, 0.12);
  --body-font: "Body", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Display", "Body", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 225, 230, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(17, 19, 24, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 32px;
  object-fit: contain;
}

.brand-wordmark {
  font-family: var(--display-font);
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.footer-links a {
  border-radius: 8px;
  color: #2f3944;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 12px;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  background: #e9f1f5;
  color: var(--blue-dark);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(0, 103, 184, 0.28);
  outline-offset: 2px;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 103, 184, 0.22);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  background: #eef4f7;
  border-color: #99a8b4;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  place-items: center;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.site-header.nav-open .nav-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero);
  color: #fff;
  padding: 118px 0 72px;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 18, 0.96) 0%, rgba(11, 13, 18, 0.82) 38%, rgba(11, 13, 18, 0.34) 74%, rgba(11, 13, 18, 0.18) 100%),
    linear-gradient(180deg, rgba(11, 13, 18, 0.14) 0%, rgba(11, 13, 18, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1160px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #76d7e1;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  font-weight: 400;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  margin: 48px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  overflow: hidden;
}

.hero-facts div {
  min-width: 0;
  padding: 18px;
  background: rgba(11, 13, 18, 0.72);
}

.hero-facts dt {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.section {
  padding: clamp(68px, 9vw, 112px) 0;
}

.section-muted {
  background: #eaf0f3;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2,
.studio-split h2,
.contact h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 400;
}

.section-head p:not(.eyebrow),
.studio-split p,
.contact p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-card-featured {
  grid-template-columns: minmax(360px, 1.14fr) minmax(0, 0.86fr);
}

.game-label {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-copy h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 400;
}

.game-copy p:not(.game-label) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: #29323a;
  font-weight: 700;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--green);
  transform: translateY(-50%);
}

.game-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.game-media {
  min-width: 0;
}

.wide-shot,
.phone-shot {
  margin: 0;
  border: 1px solid #111318;
  border-radius: 8px;
  background: #10151f;
  overflow: hidden;
}

.wide-shot {
  aspect-ratio: 16 / 9;
}

.wide-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crop-farm img {
  object-position: center 42%;
}

.wide-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.wide-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.game-card:nth-of-type(3) .wide-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phone-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
}

.phone-gallery::-webkit-scrollbar {
  height: 8px;
}

.phone-gallery::-webkit-scrollbar-thumb {
  background: #b9c4cc;
  border-radius: 999px;
}

.phone-shot {
  aspect-ratio: 9 / 16;
  scroll-snap-align: start;
}

.phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principle {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.principle-index {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gold);
  font-family: var(--display-font);
  font-size: 22px;
}

.principle h3,
.partner h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.principle p,
.partner p {
  margin: 12px 0 0;
  color: var(--muted);
}

.studio-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin-top: clamp(42px, 7vw, 76px);
}

.studio-split figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.studio-split img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.partner {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.partner img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #111318;
}

.partner .button {
  margin-top: 20px;
}

.contact {
  padding: clamp(64px, 9vw, 104px) 0;
  background: #10141a;
  color: #fff;
}

.contact .eyebrow {
  color: #76d7e1;
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.contact .button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.contact .button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 0;
}

.footer-brand .brand-logo {
  width: 38px;
  height: 28px;
}

.footer-inner p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 16px 20px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    height: calc(100svh - 72px);
    max-height: calc(100svh - 72px);
    padding: 8px 20px 20px;
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(17, 19, 24, 0.12);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 15px 12px;
  }

  .header-action {
    justify-self: end;
  }

  .nav-toggle {
    display: grid;
  }

  .game-card,
  .game-card-featured,
  .studio-split {
    grid-template-columns: 1fr;
  }

  .game-card:nth-of-type(2) .game-copy {
    order: 2;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 68px;
    padding: 10px 14px;
  }

  .nav-toggle {
    justify-self: end;
  }

  .brand-logo {
    width: 38px;
    height: 28px;
  }

  .brand-wordmark {
    font-size: 14px;
  }

  .header-action {
    display: none;
  }

  .site-nav {
    top: 68px;
    height: calc(100svh - 68px);
    max-height: calc(100svh - 68px);
  }

  .hero {
    min-height: 86svh;
    padding: 104px 0 48px;
  }

  .hero h1 {
    font-size: clamp(40px, 13.6vw, 56px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions,
  .game-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .game-card {
    padding: 18px;
  }

  .wide-strip,
  .game-card:nth-of-type(3) .wide-strip {
    grid-template-columns: 1fr;
  }

  .phone-gallery {
    grid-auto-columns: 72%;
  }

  .partner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
