:root {
  --coral: #ff6b81;
  --teal: #1fc2b5;
  --yellow: #ffd166;
  --grape: #8b5cf6;
  --ink: #2b2d42;
  --cream: #fff8ee;
  --lavender: #f1e9ff;
  --white: #ffffff;
  --ink-soft: #4a4d68;
  --line: rgba(43, 45, 66, 0.12);
  --shadow: 0 18px 40px rgba(43, 45, 66, 0.12);
  --radius: 1.5rem;
  --header-h: 4.5rem;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.6rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 209, 102, 0.35), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(255, 107, 129, 0.18), transparent 26%),
    var(--cream);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
.brand-name,
.brand-labs,
.eyebrow {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

code {
  font-size: 0.92em;
  background: rgba(255, 209, 102, 0.45);
  padding: 0.1em 0.4em;
  border-radius: 0.4em;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.section {
  position: relative;
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section-intro {
  font-size: 1.08rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 3px solid transparent;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--coral);
  color: var(--ink);
  border-color: #e4526a;
  box-shadow: 0 8px 0 #e4526a;
}

.btn-primary:hover {
  transform: translateY(2px);
  box-shadow: 0 6px 0 #e4526a;
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 8px 0 var(--ink);
}

.btn-ghost:hover {
  transform: translateY(2px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 248, 238, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-labs {
  color: #12867d;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.site-nav a {
  text-decoration: none;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: var(--lavender);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  background: var(--white);
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

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

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-header.is-open .nav-toggle-bars {
  background: transparent;
}

.site-header.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4.5rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.lede {
  font-size: 1.15rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-feature {
  margin: 0;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 4px solid var(--ink);
  background: #d9c8b4;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin-top: 0.85rem;
  font-weight: 700;
}

.now-looping {
  background: var(--teal);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.caption-rest {
  color: var(--ink-soft);
  font-weight: 600;
}

.blob,
.tile {
  position: absolute;
  pointer-events: none;
}

.blob-a {
  width: 18rem;
  height: 18rem;
  background: rgba(31, 194, 181, 0.22);
  border-radius: 50%;
  left: -4rem;
  top: 4rem;
}

.blob-b {
  width: 14rem;
  height: 14rem;
  background: rgba(139, 92, 246, 0.16);
  border-radius: 50%;
  right: -3rem;
  bottom: 2rem;
}

.tile-a,
.tile-b {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
}

.tile-a {
  background: var(--coral);
  right: 18%;
  top: 1.5rem;
  transform: rotate(18deg);
}

.tile-b {
  background: var(--teal);
  left: 42%;
  bottom: 1rem;
  transform: rotate(-12deg);
}

.game-grid,
.value-grid,
.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.game-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: calc(var(--radius) + 0.4rem);
  overflow: hidden;
  box-shadow: 0 10px 0 rgba(43, 45, 66, 0.12);
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(50% - 1.25rem);
  max-width: 26rem;
}

.game-card .media-frame {
  border: 0;
  border-bottom: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
}

.game-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.game-body p {
  margin-bottom: 0.85rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 2px solid transparent;
}

.badge-unity {
  background: #c8f6f1;
  color: #0b5f59;
  border-color: #0f8a81;
}

.badge-unreal {
  background: #ece4ff;
  color: #4c1d95;
  border-color: var(--grape);
}

.badge-mobile {
  background: #ffe1e6;
  color: #8a2033;
  border-color: #e4526a;
}

.badge-pc {
  background: #fff0c2;
  color: #6b4d00;
  border-color: #e0a800;
}

.about {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 209, 102, 0.35), transparent 24%),
    var(--lavender);
}

.about-layout {
  display: grid;
  gap: 1.5rem;
}

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

.value-card,
.role-card,
.contact-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.value-icon {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  margin-bottom: 0.8rem;
}

.value-icon-coral {
  background: var(--coral);
  transform: rotate(-8deg);
}

.value-icon-teal {
  background: var(--teal);
}

.value-icon-grape {
  background: var(--grape);
  transform: rotate(14deg);
}

.still-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 0.8rem;
}

.still-mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 3px solid var(--ink);
  background: var(--cream);
}

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

.still-mosaic figure:first-child {
  grid-row: 1 / 3;
}

.role-list {
  display: grid;
  gap: 0.9rem;
}

.role-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.role-card p {
  margin-bottom: 0;
}

.role-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 10rem;
}

.role-where {
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.contact {
  background:
    radial-gradient(circle at 10% 80%, rgba(255, 107, 129, 0.16), transparent 28%),
    var(--lavender);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact .section-head {
  margin-bottom: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 800;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-note {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}

.form-thanks {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2rem 0;
}

.site-footer p {
  color: #d7d9e8;
  margin: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-footer .brand-name {
  color: var(--cream);
}

.brand-footer .brand-labs {
  color: var(--teal);
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .value-grid,
  .still-mosaic,
  .role-card {
    grid-template-columns: 1fr;
  }

  .still-mosaic figure:first-child {
    grid-row: auto;
  }

  .role-meta {
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 2px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    background: #fff8ee;
    border-bottom: 2px solid var(--line);
  }

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

  .game-grid {
    display: flex;
  }

  .game-card {
    flex: 1 1 100%;
    max-width: none;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (min-width: 1100px) {
  .game-card {
    flex: 1 1 calc(33.333% - 1.25rem);
    max-width: calc(33.333% - 0.9rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn-primary,
  .btn-ghost {
    box-shadow: none;
  }
}
