/* Symbiont Games
   Navy #111820, cream #E8E0CF, teal #5FBDB4.
   Light sections: paper #F3EEE3, ink #111820, dark teal #2B8C83.
   --cream-quiet is cream mixed toward navy so secondary text stays readable.
   Dark teal is for rules and underlines on paper. Body text on paper stays ink,
   because #2B8C83 is too light for small type on #F3EEE3.
   Warm and icy washes are atmosphere only; they are not used for small text. */

:root {
  --navy: #111820;
  --cream: #e8e0cf;
  --teal: #5fbdb4;
  --paper: #f3eee3;
  --ink: #111820;
  --teal-dark: #2b8c83;
  --cream-quiet: #c8c2b4;
  --warm: #f0a05a;
  --snow: #d7eef6;
  --font: "Inter", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --wrap: 1180px;
  --header: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(95, 189, 180, 0.16), transparent 55%),
    var(--navy);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

img {
  max-width: 100%;
}

p,
ul,
dl {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 0.6rem;
}

h3 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.band :focus-visible {
  outline-color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

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

.section,
.games,
.stage {
  scroll-margin-top: var(--header);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--header);
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.logo {
  display: block;
  height: 36px;
  width: auto;
}

.nav ul,
.socials,
.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.85rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(95, 189, 180, 0.16);
  color: var(--teal);
}

.hero {
  position: relative;
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}

.hero__motifs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.motif,
.hero__mark,
.about__mark {
  mix-blend-mode: lighten;
}

.motif {
  position: absolute;
  width: min(420px, 80vw);
  height: auto;
}

.motif--back {
  top: -8%;
  right: -12%;
  transform: rotate(12deg);
}

.motif--front {
  bottom: -18%;
  left: -14%;
  width: min(280px, 60vw);
  transform: rotate(-18deg);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero__mark {
  width: min(180px, 46vw);
  height: auto;
  justify-self: start;
  transform: rotate(-8deg);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9ch;
  margin-bottom: 0.85rem;
  font-size: clamp(3.1rem, 11vw, 6.4rem);
}

.hero__vision,
.about__vision {
  max-width: 18em;
  margin: 0;
  color: var(--teal);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__lead {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: 1.125rem;
}

.rings {
  position: relative;
  width: 78px;
  height: 46px;
  margin: 1.25rem 0 0;
}

.rings::before,
.rings::after,
.rings span {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  content: "";
}

.rings::before {
  left: 0;
  border: 3px solid var(--cream);
}

.rings::after {
  left: 26px;
  border: 3px solid var(--teal);
}

.rings span {
  left: 31px;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--cream);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.button:hover {
  background: var(--teal);
  color: var(--ink);
  transform: translateY(-4px) scale(1.03);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button--fill {
  background: var(--teal);
  color: var(--ink);
}

.button--fill:hover {
  background: var(--cream);
  color: var(--ink);
}

.button--ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(232, 224, 207, 0.55);
}

.button--ghost:hover {
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
}

.button--wait,
.button:disabled {
  background: transparent;
  color: var(--cream-quiet);
  box-shadow: inset 0 0 0 2px rgba(232, 224, 207, 0.28);
  cursor: not-allowed;
  transform: none;
}

.button:disabled:hover,
.button:disabled:active {
  background: transparent;
  color: var(--cream-quiet);
  box-shadow: inset 0 0 0 2px rgba(232, 224, 207, 0.28);
  transform: none;
}

.games__intro {
  padding: 1rem 0 0.5rem;
}

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

.stage {
  position: relative;
  padding: 2.2rem 0 3rem;
  overflow: hidden;
}

.stage--fight {
  background:
    radial-gradient(780px 420px at 12% 40%, rgba(240, 160, 90, 0.32), transparent 62%),
    radial-gradient(520px 320px at 90% 80%, rgba(95, 189, 180, 0.12), transparent 60%),
    var(--navy);
}

.stage--snow {
  background:
    radial-gradient(820px 460px at 82% 20%, rgba(215, 238, 246, 0.22), transparent 60%),
    radial-gradient(540px 360px at 8% 90%, rgba(95, 189, 180, 0.18), transparent 62%),
    #101c28;
}

.stage__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
}

.stage__media {
  min-width: 0;
}

.stage__frame {
  position: relative;
  transform: rotate(-1.7deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage--snow .stage__frame {
  transform: rotate(1.6deg);
}

.stage__media:hover .stage__frame,
.stage__media:focus-within .stage__frame {
  transform: rotate(2.2deg) scale(1.015);
}

.stage--snow .stage__media:hover .stage__frame,
.stage--snow .stage__media:focus-within .stage__frame {
  transform: rotate(-2deg) scale(1.015);
}

.shots__open,
.thumbs button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.shots__open {
  width: 100%;
}

.shots__open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 28px 64px 32px 72px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.stage--snow .shots__open img {
  border-radius: 64px 28px 72px 32px;
}

.thumbs {
  position: absolute;
  left: 6%;
  bottom: -18px;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage--snow .thumbs {
  left: auto;
  right: 7%;
}

.thumbs button {
  width: 132px;
  overflow: hidden;
  border-radius: 18px;
  transform: rotate(-7deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stage--snow .thumbs button {
  transform: rotate(6deg);
}

.thumbs button:hover,
.thumbs button:focus-visible {
  transform: rotate(3deg) scale(1.06);
}

.thumbs img {
  display: block;
  width: 132px;
  height: 86px;
  object-fit: cover;
}

.stage__copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.stage__copy > p {
  margin-top: 0.9rem;
}

.meta {
  color: var(--cream-quiet);
  font-size: 0.98rem;
}

.pillars {
  gap: 0.45rem;
  margin-top: 1rem;
}

.pillars li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(215, 238, 246, 0.14);
}

.card__foot {
  margin-top: 1.15rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--warm);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.35;
}

.stage--snow .badge {
  background: var(--snow);
}

.about {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.about__mark {
  position: absolute;
  top: 8%;
  right: -8%;
  width: min(380px, 70vw);
  height: auto;
  transform: rotate(16deg);
  pointer-events: none;
}

.about__copy {
  position: relative;
  max-width: 40rem;
}

.about h2 {
  max-width: 12ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

.about__vision {
  margin: 0 0 1.25rem;
}

.about__close {
  color: var(--teal);
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wave {
  display: block;
  margin-top: -1px;
  line-height: 0;
  background: var(--navy);
}

.wave svg {
  display: block;
  width: 100%;
  height: 72px;
}

.band {
  background: var(--paper);
  color: var(--ink);
}

.band .section {
  padding-top: 1.5rem;
}

.band h2 {
  max-width: 10ch;
}

.email {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration-color: var(--teal-dark);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.14em;
}

.site-footer {
  padding: 1rem 0 2.2rem;
}

.footer__grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.socials {
  gap: 0.4rem 1rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--teal-dark);
}

.legal {
  margin-top: 1rem;
}

.snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.snow span {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  animation: snow-fall linear infinite;
}

.snow span:nth-child(1) { left: 6%; animation-duration: 11s; animation-delay: -2s; }
.snow span:nth-child(2) { left: 14%; width: 5px; height: 5px; animation-duration: 8s; animation-delay: -6s; }
.snow span:nth-child(3) { left: 23%; animation-duration: 13s; animation-delay: -1s; }
.snow span:nth-child(4) { left: 31%; width: 4px; height: 4px; animation-duration: 9s; animation-delay: -8s; }
.snow span:nth-child(5) { left: 42%; animation-duration: 12s; animation-delay: -4s; }
.snow span:nth-child(6) { left: 51%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: -7s; }
.snow span:nth-child(7) { left: 60%; animation-duration: 14s; animation-delay: -3s; }
.snow span:nth-child(8) { left: 68%; width: 4px; height: 4px; animation-duration: 8.5s; animation-delay: -5s; }
.snow span:nth-child(9) { left: 76%; animation-duration: 11.5s; animation-delay: -9s; }
.snow span:nth-child(10) { left: 84%; width: 5px; height: 5px; animation-duration: 9.5s; animation-delay: -2.5s; }
.snow span:nth-child(11) { left: 91%; animation-duration: 13s; animation-delay: -6.5s; }
.snow span:nth-child(12) { left: 97%; width: 4px; height: 4px; animation-duration: 10.5s; animation-delay: -1.5s; }

@keyframes snow-fall {
  from { transform: translateY(-10px); }
  to { transform: translateY(110vh); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__copy,
.games__intro,
.stage__copy,
.about__copy,
.band .wrap {
  animation: rise-in 0.7s ease both;
}

.stage--snow .stage__copy {
  animation-delay: 0.08s;
}

.is-locked {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 12, 16, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__dialog {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "close close close"
    "prev image next"
    "caption caption caption";
  gap: 0.75rem 0.5rem;
  align-items: center;
  width: min(1040px, 100%);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
}

.lightbox__close {
  grid-area: close;
  justify-self: end;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
}

.lightbox__prev,
.lightbox__next {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__prev { grid-area: prev; }
.lightbox__next { grid-area: next; }

.lightbox img {
  grid-area: image;
  display: block;
  width: 100%;
  max-height: 72vh;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #0c1218;
}

.lightbox img.is-pixelated {
  image-rendering: pixelated;
}

#lightbox-caption {
  grid-area: caption;
  margin: 0;
  color: var(--cream);
}

::selection {
  background: var(--teal);
  color: var(--ink);
}

@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 3rem));
  }

  .logo {
    height: 44px;
  }

  .footer__grid {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 3.5rem 0 5rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(200px, 280px);
    gap: 2rem;
  }

  .hero__mark {
    width: 100%;
    justify-self: end;
  }

  .stage__layout {
    grid-template-columns: 1.35fr 0.8fr;
    gap: 2.2rem;
    align-items: center;
  }

  .stage--snow .stage__layout {
    grid-template-columns: 0.8fr 1.35fr;
  }

  .stage--snow .stage__media {
    order: 2;
  }

  .stage__copy {
    margin-top: 1.5rem;
  }
}

@media (max-width: 719px) {
  .hero__motifs {
    display: none;
  }

  .shots__open img {
    border-radius: 0 0 36px 36px;
  }

  .stage {
    padding-inline: 0;
  }

  .stage .wrap {
    width: min(var(--wrap), 100%);
  }

  .stage__copy {
    padding-inline: 1.15rem;
  }

  .lightbox__dialog {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "close close"
      "image image"
      "prev next"
      "caption caption";
  }
}

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

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

  .snow {
    display: none;
  }

  .stage__frame,
  .stage__media:hover .stage__frame,
  .stage__media:focus-within .stage__frame,
  .stage--snow .stage__frame,
  .stage--snow .stage__media:hover .stage__frame,
  .thumbs button,
  .thumbs button:hover,
  .hero__mark,
  .motif,
  .about__mark,
  .button:hover,
  .button:active {
    transform: none;
  }
}
