:root {
  --p-bg: #0b0a09;
  --p-surface: #17130f;
  --p-ink: #fbf7ee;
  --p-muted: #a49b8c;
  --p-accent: #e0a33c;
  --p-accent-ink: #100e0b;
  --p-action: #e6a52c;
  --p-action-ink: #100e0b;
  --p-inv-bg: #fbf7ee;
  --p-inv-surface: #efe6d5;
  --p-inv-ink: #14110d;
  --p-inv-muted: #6b6459;
  --p-inv-accent: #e0a33c;
  --p-inv-accent-ink: #100e0b;
  --p-inv-action: #b26d00;
  --p-inv-action-ink: #ffffff;
  --font-display: "Space Grotesk", var(--font-space, "Space Grotesk"), system-ui, sans-serif;
  --font-text: "Nunito Sans", "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.022em;
  --display-tracking-xl: -0.03em;
  --ly-scale: 1.02;
}

.panel {
  --ground-bg: var(--surface);
}

.nav__logo .logo-img,
.footer__logo .logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
}

.footer__logo .logo-img {
  width: 38px;
  height: 38px;
}

.nav__logo {
  gap: 10px;
}

.socials img {
  width: 18px;
  height: 18px;
  display: block;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.55;
}

.socials a:hover img {
  opacity: 1;
}

.rows__name small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: var(--t-small);
  color: var(--muted);
}

.rows--links .rows__name a {
  color: inherit;
  text-decoration: none;
}

.rows--links .rows__name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rows--links .rows__value {
  color: var(--muted);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: var(--gutter);
}

.game-card__icon {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: clip;
  background: var(--surface);
}

.game-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.game-card h3 {
  margin-top: var(--s-4);
  min-height: 2lh;
  display: flex;
  align-items: flex-end;
}

.contact-socials {
  margin-top: var(--s-6);
}

.rows--tight > li {
  padding-block: var(--s-3);
}

.rows--links > li:hover .rows__name a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card--row .panel {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

@media (max-width: 639px) {
  .hero__facts.hero__facts--col {
    display: none;
  }

  .hero--split .hero__media {
    max-height: 46svh;
  }
}

@media (max-width: 479px) {
  .nav__logo {
    font-size: 15px;
    gap: 6px;
  }

  .nav__logo .logo-img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions {
    display: none;
  }

  .nav__toggle {
    margin-left: auto;
  }
}

.panel.game-card__icon {
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  position: relative;
  padding: 0;
  border-radius: var(--r-md);
  overflow: clip;
  background: var(--p-surface);
}

.games-grid .game-card .game-card__icon img.frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transform-origin: 50% 50%;
}

.game-card .t-small {
  min-height: 2.6em;
}


.hero-in-left > * {
  animation: hero-in-left 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-in-left > :nth-child(2) { animation-delay: 70ms; }
.hero-in-left > :nth-child(3) { animation-delay: 140ms; }
.hero-in-left > :nth-child(4) { animation-delay: 210ms; }
.hero-in-left > :nth-child(5) { animation-delay: 280ms; }

.hero-in-right {
  animation: hero-in-right 820ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

@keyframes hero-in-left {
  from {
    opacity: 0;
    transform: translateX(-34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-in-right {
  from {
    opacity: 0;
    transform: translateX(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--r-i, 0) * 80ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.hero__media img {
  animation: hero-settle 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-settle {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

@media (scripting: none) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-in-left > *,
  .hero-in-right {
    animation: none;
  }

  [data-reveal],
  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__media img {
    animation: none;
  }
}

/* the close word fills the wrap at every width: 4.16 is this name's width in em at the brand tracking */
.closing__cta { container-type: inline-size; }
.close__word { font-size: min(calc(1280px / 4.7), 21.2cqi); letter-spacing: -0.03em; text-transform: uppercase; font-weight: 800; line-height: .84; }
.close__word-letter { display: inline-block; color: var(--ink); }
.close__word-letter:first-child { color: var(--accent); }
.close__word-gap { display: inline-block; width: 0.22em; }
[data-word] { opacity: 1; transform: none; }
[data-word] .close__word-letter { opacity: 0; transform: translateX(0.34em); }
[data-word].is-revealed .close__word-letter { animation: close-letter 760ms cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes close-letter { from { opacity: 0; transform: translateX(0.34em); } to { opacity: 1; transform: none; } }

@media (max-width: 639px) {
  main > :is(section, .section):not(.hero, .section--hero),
  footer.closing { height: auto; min-height: calc(var(--hm, var(--h, 1)) * 100lvh); }
  main > :is(section, .section):not(.hero, .section--hero),
  footer.closing { display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container),
  footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
footer.closing { background: var(--p-bg); }

/* the close word is set from the container, so the footer takes its content height instead of a fixed screen */
footer.closing { height: auto; min-height: 100svh; }
footer.closing > .wrap { height: auto; }

/* the close word rises once, after its head row */
[data-word] { opacity: 0; transform: translateY(24px); transition: opacity 640ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1); }
[data-word].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-word] { opacity: 1; transform: none; transition: none; }
  [data-word] .close__word-letter { opacity: 1; transform: none; animation: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.nav__logo .logo-img { transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.nav__logo:hover .logo-img, .nav__logo:focus-visible .logo-img { transform: rotate(-8deg) scale(1.06); }

/* the phone sheet lists its words in, one after the other */
@media (max-width: 639px) {
  .nav.is-open .nav__links > .nav__item { animation: sheet-word 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .nav.is-open .nav__links > .nav__item:nth-child(2) { animation-delay: 60ms; }
  .nav.is-open .nav__links > .nav__item:nth-child(3) { animation-delay: 120ms; }
  .nav.is-open .nav__links > .nav__item:nth-child(4) { animation-delay: 180ms; }
  .nav.is-open .nav__actions { animation: sheet-word 420ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both; }
}
@keyframes sheet-word { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nav.is-open .nav__links > .nav__item, .nav.is-open .nav__actions { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-word].is-revealed .close__word-letter { animation: none; opacity: 1; transform: none; }
}

/* the lockup: the badge and a stacked wordmark in Rocket Studio's shape */
.nav__logo { gap: 0.5rem; }
.nav__logo .logo-img { width: 40px; height: 40px; box-shadow: 0 0 0 1px rgba(224, 163, 60, 0.35); }
.wordmark { display: grid; gap: 1px; justify-items: start; }
.wordmark__name { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: -0.035em; line-height: 0.9; color: var(--ink); }
.wordmark__num { color: var(--accent); }
.wordmark__tag { display: block; font-family: var(--font-text); font-weight: 800; text-transform: uppercase; font-size: 9px; letter-spacing: 0.14em; line-height: 1; color: var(--muted); }
.footer__logo { gap: 0.7rem; }
.footer__logo .logo-img { width: 48px; height: 48px; box-shadow: 0 0 0 1px rgba(224, 163, 60, 0.35); }
.wordmark--footer .wordmark__name { font-size: 30px; }
.wordmark--footer .wordmark__tag { font-size: 10px; }
@media (max-width: 639px) {
  .nav__logo { gap: 0.4rem; }
  .nav__logo .logo-img { width: 29px; height: 29px; }
  .wordmark__name { font-size: 16px; }
  .wordmark__tag { font-size: 7px; letter-spacing: 0.12em; }
}

footer.closing > .wrap { display: flex; flex-direction: column; }
footer.closing .closing__links { margin-top: auto; padding-top: clamp(2rem, 5vh, 3.5rem); }

main > section:not(.hero):not(.hero--split) { height: auto; min-height: 100svh; align-content: stretch; }
main > section:not(.hero):not(.hero--split) > .wrap:not(.grid) { height: auto; }

@media (min-width: 640px) {
  main > section:not(.hero):not(.hero--split) > .wrap:not(.grid) { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
}

@media (prefers-reduced-motion: no-preference) {
  main { animation: page-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media { animation: hero-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .hero__media .ly-float { animation: float-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes hero-drift { from { translate: 0 14px; } to { translate: 0 -22px; } }
@keyframes float-drift { from { translate: 0 -4px; } to { translate: 0 -34px; } }
