@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2197, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F6F3ED;
  --bg-footer: #ECE8DF;
  --text: #1D1E1B;
  --muted: #6B6D68;
  --muted-on-footer: #5E605B;
  --border: #D8D5CE;
  --button: #181916;
  --on-dark: #FBFAF6;

  --font: "Inter Variable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 64px;
  --gutter: 1.25rem;
  --content-width: 1180px;
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --section-space: clamp(4rem, 3rem + 5vw, 8rem);

  color-scheme: light;
}

@media (min-width: 720px) {
  :root {
    --header-height: 76px;
    --gutter: 2.5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

picture {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--button);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}

.button--primary {
  background: var(--button);
  color: var(--on-dark);
}

.button--primary:hover {
  background: #33352f;
}

.button--secondary {
  border-color: rgba(251, 250, 246, 0.9);
  color: var(--on-dark);
  background: rgba(24, 25, 22, 0.12);
}

.button--secondary:hover {
  background: rgba(251, 250, 246, 0.16);
  border-color: var(--on-dark);
}

.button--outline {
  border-color: var(--text);
  color: var(--text);
}

.button--outline:hover {
  background: var(--text);
  color: var(--on-dark);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: calc(var(--content-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header__logo {
  display: block;
  flex: none;
  padding-block: 4px;
}

.site-header__logo img {
  width: 68px;
}

@media (min-width: 720px) {
  .site-header__logo img {
    width: 80px;
  }
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  text-underline-offset: 0.4em;
  transition: color 200ms var(--ease);
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-nav li:last-child a {
  padding-right: 0;
}

.nav-toggle {
  display: none;
}

@media (max-width: 719px) {
  .site-nav li:last-child a {
    padding-right: 0.875rem;
  }

  .js .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 200ms var(--ease), background-color 200ms var(--ease);
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__bars::before {
    top: -7px;
  }

  .nav-toggle__bars::after {
    top: 7px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }

  .js .site-nav a {
    min-height: 52px;
    padding-inline: 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
  }

  .js .site-nav li:last-child a {
    border-bottom: 0;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: #3f8ad3;
  color: var(--on-dark);
}

.hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title img {
  width: 180px;
}

.hero__copy {
  max-width: 26rem;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgba(10, 24, 40, 0.35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero :focus-visible {
  outline-color: var(--on-dark);
  box-shadow: 0 0 0 6px rgba(24, 25, 22, 0.55);
}

/* Wide: panoramic key art, copy in the right-hand sky. */
@media (min-width: 1024px) {
  .hero {
    height: clamp(440px, 32.3vw, 72vh);
  }

  .hero__art img {
    object-position: 28% 80%;
  }

  .hero::after {
    background: radial-gradient(ellipse 48% 85% at 80% 55%, rgba(12, 30, 52, 0.42) 0%, rgba(12, 30, 52, 0.2) 50%, rgba(12, 30, 52, 0) 100%);
  }

  .hero__content {
    justify-content: center;
    height: 100%;
    margin-left: 58%;
    padding-right: var(--gutter);
  }

  .hero__title img {
    width: clamp(220px, 15vw, 300px);
  }
}

/* Medium landscape: 16:9 key art, copy right of the cats. */
@media (max-width: 1023px) and (orientation: landscape) {
  .hero {
    aspect-ratio: 16 / 9;
  }

  .hero__art img {
    object-position: 50% 100%;
  }

  .hero::after {
    background: radial-gradient(ellipse 45% 80% at 82% 45%, rgba(12, 30, 52, 0.45) 0%, rgba(12, 30, 52, 0.2) 55%, rgba(12, 30, 52, 0) 100%);
  }

  .hero__content {
    justify-content: center;
    height: 100%;
    margin-left: 62%;
    padding-right: var(--gutter);
  }

  .hero__title img {
    width: clamp(150px, 20vw, 210px);
  }

  .hero__copy {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1rem;
  }
}

/* Portrait: vertical key art, copy in the sky above the cats. */
@media (max-width: 1023px) and (orientation: portrait) {
  .hero {
    aspect-ratio: 9 / 16;
  }

  .hero__art img {
    object-position: 50% 100%;
  }

  .hero::after {
    background: linear-gradient(to bottom, rgba(12, 34, 62, 0.34) 0%, rgba(12, 34, 62, 0.18) 38%, rgba(12, 34, 62, 0) 56%);
  }

  .hero__content {
    align-items: center;
    padding: clamp(1.25rem, 6vw, 3rem) var(--gutter) 0;
    text-align: center;
  }

  .hero__title img {
    width: clamp(150px, 42vw, 240px);
  }

  .hero__copy {
    margin-top: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 24rem;
    gap: 0.625rem;
    margin-top: 1.25rem;
  }
}

/* Phones: the art keeps its full width and sits at the bottom; when the copy needs more room the
   hero grows upward into a sky-coloured band instead of cropping the cats. */
@media (max-width: 599px) and (orientation: portrait) {
  .hero {
    aspect-ratio: auto;
    background: #1b89d6;
  }

  .hero__art img {
    top: auto;
    height: auto;
    aspect-ratio: 9 / 16;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 6%);
  }

  .hero__content {
    min-height: 177.78vw;
    padding-bottom: 90vw;
  }
}

/* Tablet portrait: cap the height to the screen and let the sky crop from the top. */
@media (min-width: 600px) and (max-width: 1023px) and (orientation: portrait) {
  .hero {
    aspect-ratio: auto;
    height: min(177.78vw, calc(100svh - var(--header-height)));
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

/* Sections */

.section {
  padding-block: var(--section-space) 0;
}

.section:last-child {
  padding-bottom: var(--section-space);
}

.game .container > * {
  max-width: 760px;
}

.game__title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.game p + p {
  margin-top: 1rem;
}

/* Trailer */

.trailer__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--button);
}

.trailer__poster,
.trailer__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer__poster {
  display: block;
  color: var(--on-dark);
  border-radius: inherit;
}

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

.trailer__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 22, 30, 0.45) 0%, rgba(12, 22, 30, 0) 30%);
}

.trailer__poster:focus-visible {
  outline-offset: 4px;
}

.trailer__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(56px, 8vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--on-dark);
  box-shadow: 0 2px 16px rgba(10, 20, 30, 0.2);
  transform: translate(-50%, -50%);
  transition: transform 200ms var(--ease);
}

.trailer__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 34%;
  height: 38%;
  background: var(--text);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-50%, -50%);
}

.trailer__poster:hover .trailer__play {
  transform: translate(-50%, -50%) scale(1.06);
}

.trailer__label {
  position: absolute;
  left: clamp(1rem, 2.5vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 479px) {
  .trailer__label {
    display: none;
  }
}

/* Screenshots */

.screenshots__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .screenshots__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .screenshots__item--primary {
    grid-column: 1 / -1;
  }
}

.screenshots__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: #dcd8cf;
}

/* Studio */

.section--ruled > .container::before {
  content: "";
  display: block;
  margin-bottom: var(--section-space);
  border-top: 1px solid var(--border);
}

.studio__layout {
  display: grid;
  gap: 1.75rem;
}

.studio__headline {
  font-size: clamp(1.625rem, 1.05rem + 2.3vw, 2.625rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.studio__body {
  max-width: 34rem;
}

.studio__body p + p {
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .studio__layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }

  .studio__body {
    padding-top: 0.5rem;
    font-size: 1rem;
  }
}

.studio__facts {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.studio__facts > div {
  display: grid;
  grid-template-columns: minmax(7rem, 40%) 1fr;
  align-items: baseline;
  padding-block: 0.75rem;
}

.studio__facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.studio__facts dd {
  font-size: 1.125rem;
  font-weight: 500;
}

@media (min-width: 600px) {
  .studio__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 56rem;
  }

  .studio__facts > div {
    grid-template-columns: none;
    gap: 0.5rem;
    padding: 0;
  }
}

/* Contact */

.contact__layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .contact__layout {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.contact__email {
  display: inline-block;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 200ms var(--ease);
}

.contact__email:hover {
  text-decoration-color: currentColor;
}

/* Footer */

.site-footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--bg-footer);
  font-size: 0.8125rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.site-footer__brand img {
  width: 64px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.875rem;
  margin-left: -0.375rem;
}

.site-footer__social li + li::before {
  content: "·";
  content: "·" / "";
  color: var(--muted-on-footer);
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 0.375rem;
  text-decoration: none;
}

.site-footer__social a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer__copyright {
  color: var(--muted-on-footer);
}

/* Reveal: applied by script only to content that starts below the fold. */

@media (prefers-reduced-motion: no-preference) {
  .reveal-pending {
    opacity: 0;
    transform: translateY(16px);
  }

  .reveal-pending.is-revealed {
    opacity: 1;
    transform: none;
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 404 */

.not-found {
  display: grid;
  place-content: center;
  gap: 1.5rem;
  min-height: calc(100vh - var(--header-height));
  padding: var(--gutter);
  text-align: center;
}

.not-found h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
