:root {
  --ink: #172c31;
  --muted: #607176;
  --paper: #f5f4ee;
  --surface: #fffef9;
  --deep: #142f35;
  --teal: #287f78;
  --gold: #e7ad3f;
  --line: #d8ddd8;
  --purple: #32176a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: white;
  color: var(--deep);
  font-weight: 850;
  transform: translateY(-160%);
}

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

.site-header {
  min-height: 720px;
  color: white;
  background:
    radial-gradient(circle at 84% 16%, rgba(231, 173, 63, 0.28), transparent 26rem),
    radial-gradient(circle at 12% 86%, rgba(45, 152, 139, 0.34), transparent 30rem),
    linear-gradient(145deg, #10292f 0%, #183d42 58%, #1f5551 100%);
}

.nav-shell,
.hero-shell,
.section-shell,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-shell {
  padding: 116px 0 128px;
}

.eyebrow,
.section-label,
.project-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.5vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-copy {
  max-width: 720px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.18rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
}

.button-primary {
  background: var(--gold);
  color: #213033;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: white;
}

.section-shell {
  padding-block: 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading h2,
.about-grid h2,
.contact-shell h2,
.policy-shell h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p,
.about-grid > p,
.policy-shell > div > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(25, 54, 58, 0.08);
}

.project-card-mobile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-column: span 2;
  align-items: center;
}

.project-copy {
  padding: 38px;
}

.app-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 30px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(20, 47, 53, 0.14);
}

.project-card h3 {
  margin: 6px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.project-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.project-card .disclaimer {
  font-size: 0.82rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.project-links a {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.phone-preview {
  align-self: end;
  width: 220px;
  margin: 30px auto 0;
  padding: 8px 8px 14px;
  border-radius: 30px 30px 0 0;
  background: #0f2024;
  box-shadow: 0 26px 60px rgba(20, 47, 53, 0.24);
}

.phone-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px 22px 8px 8px;
}

.phone-preview figcaption,
.gameplay-preview figcaption {
  padding: 10px 6px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  text-align: center;
}

.delta-card {
  border-top: 6px solid #5b3596;
}

.fitness-card {
  border-top: 6px solid #2ca896;
}

.fitness-preview {
  background: #173f43;
}

.game-card,
.hub-card {
  grid-column: span 2;
}

.game-key-art,
.hub-key-art {
  display: block;
  width: 100%;
  object-fit: cover;
}

.game-key-art {
  aspect-ratio: 1232 / 706;
}

.hub-key-art {
  aspect-ratio: 1571 / 766;
  border-bottom: 1px solid var(--line);
  height: auto;
  object-position: top;
}

.gameplay-preview {
  max-width: 720px;
  margin: 32px 0 0;
  padding: 8px 8px 14px;
  border-radius: 20px;
  background: #111a29;
}

.gameplay-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.pixel-icon {
  image-rendering: pixelated;
}

.lab-card,
.archive-card {
  min-height: 350px;
}

.policy-band {
  background: var(--deep);
  color: white;
}

.policy-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 72px;
  align-items: start;
}

.policy-shell > div > p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.68);
}

.policy-links {
  display: grid;
  gap: 14px;
}

.policy-links a {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.policy-links strong {
  font-size: 1.1rem;
}

.policy-links span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.about-grid,
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 72px;
  align-items: center;
}

.contact-band {
  border-top: 1px solid var(--line);
  background: #e8ece6;
}

.contact-shell .button {
  justify-self: start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 820px) {
  .site-header {
    min-height: auto;
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
  }

  .hero-shell {
    padding: 84px 0 96px;
  }

  .section-heading,
  .policy-shell,
  .about-grid,
  .contact-shell,
  .project-card-mobile,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-mobile,
  .game-card,
  .hub-card {
    grid-column: auto;
  }

  .phone-preview {
    width: min(64vw, 240px);
  }

  .section-shell {
    padding-block: 72px;
  }

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

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