:root {
  color-scheme: light;
  --ink: #192820;
  --muted: #59665d;
  --paper: #f8f8f1;
  --green: #e1f1d9;
  --green-deep: #254c38;
  --lime: #d8ed90;
  --orange: #ff885c;
  --peach: #f7d9c8;
  --display: "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

body { margin: 0; min-width: 320px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  transform: translateY(-160%);
  border-radius: 2rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  display: grid;
  min-height: min(900px, 100vh);
  min-height: min(900px, 100svh);
  overflow: hidden;
  place-items: center;
  padding: 5rem 1.25rem;
  isolation: isolate;
  background: var(--green);
  text-align: center;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: -100% 0;
  content: "";
  background: url("assets/animal-trail.png") center top / 9rem auto repeat-y;
  opacity: .13;
  animation: parade 36s linear infinite;
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at center, rgb(225 241 217 / 92%) 0, rgb(225 241 217 / 73%) 35%, transparent 77%);
}
.hero__inner { width: min(100%, 760px); }
.eyebrow {
  margin: 0;
  color: var(--green-deep);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero__eyebrow { margin-bottom: 1.35rem; }
.wordmark, .footer__brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.095em;
}
.wordmark { font-size: clamp(6rem, 25vw, 13.5rem); line-height: .84; }
.wordmark span, .footer__brand span { color: var(--orange); }
.hero__intro {
  max-width: 35rem;
  margin: 2rem auto 1.7rem;
  color: #394a3d;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.65;
}
.text-link {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  color: var(--ink);
  font-size: .93rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.hero__note {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  color: #5d7462;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-pad { padding: clamp(4rem, 9vw, 8rem) max(1.25rem, calc((100vw - 1180px) / 2)); }
.mission { background: var(--paper); }
.section-heading { max-width: 700px; margin: 0 auto 3rem; }
h2, h3, p { overflow-wrap: anywhere; }
h2 {
  margin: .8rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.7vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.03;
}
.section-heading__copy { max-width: 38rem; margin: 1.1rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.vision-grid { display: grid; gap: 1rem; }
.vision-card {
  position: relative;
  display: flex;
  min-height: 25rem;
  overflow: hidden;
  align-items: flex-end;
  padding: 2rem;
  border-radius: 1.35rem;
  background: var(--green-deep);
  isolation: isolate;
}
.vision-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vision-card::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(180deg, rgb(17 34 24 / 3%) 8%, rgb(17 34 24 / 78%) 100%); }
.vision-card:hover img { transform: scale(1.035); }
.vision-card__copy { max-width: 34rem; color: white; }
.vision-card__copy .eyebrow { color: var(--lime); }
.vision-card__attr { text-align: center; margin: 0; color: white; font-size: .8rem; }
.vision-card h3 { margin: .75rem 0 0; font-family: var(--display); font-size: clamp(1.55rem, 3.4vw, 2.55rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.14; }
.vision-card__index { position: absolute; top: 1.5rem; right: 1.5rem; color: white; font-size: .8rem; font-weight: 700; }
.vision-card__trigger { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; appearance: none; background: transparent; cursor: pointer; }
.vision-card__trigger:focus-visible { outline: 3px solid white; outline-offset: -8px; }

.games { background: var(--green); }
.section-heading--row { display: flex; max-width: 100%; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading--row h2 { max-width: 700px; }
.section-heading__aside { max-width: 22rem; margin: 0 0 .25rem; color: var(--muted); line-height: 1.65; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.game-card { display: block; min-width: 0; text-decoration: none; }
.game-card__image-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 1.35; border-radius: 1.1rem; background: var(--lime); }
.game-card--peach .game-card__image-wrap { background: var(--peach); }
.game-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .game-card__image-wrap img, .game-card:focus-visible .game-card__image-wrap img { transform: scale(1.045); }
.game-card__arrow { position: absolute; top: 1rem; right: 1rem; display: grid; width: 2.5rem; height: 2.5rem; border-radius: 50%; place-items: center; background: white; font-size: 1.2rem; }
.game-card__meta { display: flex; justify-content: space-between; margin: 1.1rem 0 .55rem; }
.game-card__meta .eyebrow { font-size: .65rem; }
.game-card__arrow-mobile { display: none; }
.game-card__title { display: block; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.04em; }
.game-card__description { display: block; margin-top: .35rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.team { background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.person-card { display: grid; grid-template-columns: 7.5rem 1fr; grid-template-rows: auto auto auto auto; gap: .15rem 1.25rem; align-content: start; text-decoration: none; }
.person-card__photo { position: relative; grid-row: 1 / 5; overflow: hidden; aspect-ratio: 1; border-radius: 50%; background: var(--green); }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.person-card:hover .person-card__photo img { transform: scale(1.06); }
.person-card__photo > span { position: absolute; right: .45rem; bottom: .45rem; display: grid; width: 2rem; height: 2rem; border: 2px solid var(--paper); border-radius: 50%; }
.person-card__name { align-self: end; font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; }
.person-card__role { color: var(--green-deep); font-size: .82rem; font-weight: 600; }
.person-card__bio { margin-top: .5rem; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.person-card__linkedin { align-self: end; margin-top: 1rem; font-size: .77rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }

.signup { position: relative; display: flex; min-height: 25rem; overflow: hidden; align-items: center; justify-content: space-between; gap: 2rem; background: var(--orange); }
.signup__content { position: relative; z-index: 1; max-width: 40rem; }
.signup .eyebrow { color: #4b291d; }
.signup h2 { max-width: 650px; }
.signup__content > p:not(.eyebrow) { max-width: 32rem; margin: 1rem 0 1.5rem; color: #4b392f; line-height: 1.65; }
.button { display: inline-flex; min-height: 3.5rem; align-items: center; justify-content: center; gap: 1.25rem; padding: .8rem 1.35rem; border: 1px solid var(--ink); border-radius: 3rem; background: var(--ink); color: white; font-size: .9rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--green-deep); }
.signup__mark { position: relative; display: grid; flex: 0 0 17rem; width: 17rem; height: 17rem; border: 1px solid rgb(25 40 32 / 28%); border-radius: 50%; place-items: center; transform: rotate(-18deg); }
.signup__mark span { font-family: var(--display); font-size: 8rem; font-weight: 800; letter-spacing: -.1em; }
.signup__mark i { position: absolute; width: .7rem; height: .7rem; border-radius: 50%; background: var(--ink); }
.signup__mark i:nth-of-type(1) { top: 1rem; left: 50%; }
.signup__mark i:nth-of-type(2) { right: 1rem; bottom: 4rem; }
.signup__mark i:nth-of-type(3) { bottom: 1rem; left: 4rem; }

.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem 2rem; padding: 2.2rem max(1.25rem, calc((100vw - 1180px) / 2)); background: var(--ink); color: white; }
.footer__brand { font-size: 2rem; line-height: 1; text-decoration: none; }
.footer__note { margin: 0; color: #c0c9c1; font-size: .8rem; }
.footer__legal { display: flex; gap: 1.15rem; }
.legal-button { padding: .25rem 0; border: 0; background: transparent; color: white; cursor: pointer; font-size: .78rem; text-decoration: underline; text-underline-offset: .25em; }
.legal-button:hover { color: var(--lime); }
.footer__copyright { grid-column: 1 / -1; margin: .5rem 0 0; color: #9fac9f; font-size: .72rem; }

.legal-dialog { position: fixed; width: min(calc(100% - 2rem), 34rem); max-width: none; max-height: min(80vh, 38rem); padding: 2.25rem; border: 0; border-radius: 1rem; background: var(--paper); color: var(--ink); box-shadow: 0 1rem 4rem rgb(0 0 0 / 25%); }
.legal-dialog::backdrop { background: rgb(17 34 24 / 66%); backdrop-filter: blur(3px); }
.legal-dialog form { position: absolute; top: 1rem; right: 1rem; }
.dialog-close { display: grid; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; place-items: center; background: var(--green); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.legal-dialog h2 { max-width: 26rem; margin: .65rem 2rem 1rem 0; font-size: clamp(2rem, 7vw, 3rem); }
.legal-dialog > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.legal-dialog > a { display: inline-block; margin-top: .4rem; font-size: .9rem; font-weight: 700; text-underline-offset: .25em; }
:focus-visible { outline: 3px solid #2c64b5; outline-offset: 4px; }

@keyframes parade { to { transform: translateY(50%); } }
@media (min-width: 760px) {
  .vision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vision-card { min-height: 34rem; padding: 2.5rem; }
}
@media (max-width: 700px) {
  .hero { min-height: 92svh; padding-inline: 1rem; }
  .hero__note { right: 1rem; bottom: 1rem; font-size: .58rem; }
  .section-heading--row { display: block; }
  .section-heading__aside { margin-top: 1rem; }
  .vision-card { min-height: 23rem; padding: 1.5rem; }
  .game-grid { gap: .75rem; }
  .game-card__image-wrap { aspect-ratio: .94; border-radius: .8rem; }
  .game-card__arrow { display: none; }
  .game-card__arrow-mobile { display: inline; color: var(--green-deep); font-size: 1rem; }
  .game-card__title { font-size: 1.2rem; }
  .game-card__description { font-size: .8rem; }
  .team-grid { gap: 1.5rem; }
  .person-card { display: block; }
  .person-card__photo { width: min(100%, 10rem); margin-bottom: .9rem; }
  .person-card__name, .person-card__role, .person-card__bio, .person-card__linkedin { display: block; }
  .person-card__name { font-size: 1.08rem; }
  .person-card__bio { font-size: .8rem; }
  .signup { min-height: 0; }
  .signup__mark { position: absolute; right: -5.5rem; bottom: -6rem; width: 15rem; height: 15rem; opacity: .18; }
  .signup__content { max-width: 31rem; }
  .footer { grid-template-columns: 1fr auto; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__note { grid-column: 1 / -1; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .footer__copyright { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .section-pad { padding-right: 1rem; padding-left: 1rem; }
  .game-grid { gap: .6rem; }
  .game-card__meta { margin-top: .8rem; }
  .game-card__title { font-size: 1.05rem; }
  .game-card__description { font-size: .74rem; }
  .team-grid { gap: .9rem; }
  .person-card__photo { width: 100%; }
  .person-card__bio { line-height: 1.4; }
  .legal-dialog { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
