.games-hero {
  position: relative;
  isolation: isolate;
  min-height: min(800px, calc(100svh - 88px));
  display: flex;
  align-items: flex-end;
  background: var(--ink) url("assets/northlight-aurora.jpg") center 58% / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.games-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(5, 8, 7, 0.78), rgba(5, 8, 7, 0.05) 70%), linear-gradient(90deg, rgba(5, 8, 7, 0.58), transparent 70%);
}

.games-hero-content {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 76px;
}

.games-hero h1 {
  margin: 0;
  font-size: 150px;
  font-weight: 800;
  line-height: 0.82;
  text-transform: uppercase;
}

.games-hero-copy {
  max-width: 760px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin: 62px 0 0 100px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
}

.games-hero-copy p {
  max-width: 470px;
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

.games-hero-copy span {
  color: var(--aurora);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-index-bar {
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.game-index-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.game-index-links a {
  min-height: 112px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-content: center;
  gap: 7px 12px;
  padding: 22px 24px 22px 0;
  transition: background-color 180ms ease, color 180ms ease;
}

.game-index-links a + a {
  padding-left: 24px;
  border-left: 1px solid var(--line-dark);
}

.game-index-links a:hover,
.game-index-links a:focus-visible {
  background: var(--aurora);
  color: var(--ink);
}

.game-index-links span {
  grid-row: 1 / 3;
  color: var(--coral);
  font-size: 9px;
  font-weight: 800;
}

.game-index-links strong {
  font-size: 16px;
  font-weight: 600;
}

.game-index-links small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-index-links a:hover span,
.game-index-links a:focus-visible span,
.game-index-links a:hover small,
.game-index-links a:focus-visible small {
  color: var(--ink);
}

.games-intro {
  padding: 120px 0 128px;
}

.games-intro-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) 3fr;
  gap: 70px;
}

.games-intro h2 {
  max-width: 900px;
  margin: 0;
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
}

.games-intro p {
  max-width: 690px;
  margin: 46px 0 0;
  color: #505b55;
  font-size: 18px;
  line-height: 1.7;
}

.concept-standards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.concept-standards div {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 22px 0;
}

.concept-standards div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line-light);
}

.concept-standards span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.concept-standards strong {
  font-size: 16px;
  font-weight: 600;
}

.game-band {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 110px 0;
}

.game-band-dark {
  background: var(--ink);
  color: var(--white);
}

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

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

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

.game-band-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 90px;
  align-items: center;
}

.game-band-reverse .game-copy {
  grid-column: 2;
}

.game-band-reverse .concept-visual {
  grid-column: 1;
  grid-row: 1;
}

.game-overline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid currentColor;
  opacity: 0.62;
  font-size: 9px;
  font-weight: 800;
}

.game-copy h2 {
  margin: 58px 0 30px;
  scroll-margin-top: calc(var(--header-height) + 28px);
  font-size: 76px;
  font-weight: 500;
  line-height: 0.95;
}

.game-copy > p {
  max-width: 550px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.76;
}

.game-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.game-loop > div {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 22px 0;
}

.game-loop > div + div {
  padding-left: 18px;
  border-left: 1px solid currentColor;
}

.game-loop span,
.score-model > span {
  font-size: 9px;
  font-weight: 800;
  opacity: 0.56;
  text-transform: uppercase;
}

.game-loop strong {
  margin-top: 34px;
  font-size: 15px;
  font-weight: 700;
}

.game-loop p {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
  opacity: 0.68;
}

.score-model {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 22px;
}

.score-model p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.game-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 34px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-skills span + span::before {
  content: "/";
  margin-right: 28px;
  opacity: 0.46;
}

.game-status {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aurora);
}

.game-status strong {
  font-weight: 800;
}

.concept-visual {
  min-width: 0;
  border: 1px solid currentColor;
  border-radius: 4px;
  overflow: hidden;
}

.visual-caption {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.62;
}

.game-icon-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.grid-plane,
.vector-plane,
.cadence-plane,
.trace-plane {
  position: relative;
  aspect-ratio: 4 / 3;
}

.grid-plane {
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 14.285% 14.285%;
}

.grid-node,
.grid-core {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid var(--aurora);
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}

.grid-node.n1 { left: 18%; top: 26%; }
.grid-node.n2 { left: 50%; top: 16%; border-color: var(--coral); }
.grid-node.n3 { left: 82%; top: 30%; border-color: var(--lilac); }
.grid-node.n4 { left: 22%; top: 77%; border-color: var(--coral); }
.grid-node.n5 { left: 75%; top: 72%; }
.grid-node.n6 { left: 88%; top: 52%; border-color: var(--lilac); }

.grid-core {
  left: 50%;
  top: 54%;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--coral);
  box-shadow: 0 0 0 13px rgba(255, 109, 94, 0.12);
}

.grid-path {
  position: absolute;
  z-index: 1;
  left: 18%;
  height: 2px;
  background: var(--aurora);
  transform-origin: left;
}

.grid-path.p1 { top: 26%; width: 48%; transform: rotate(34deg); }
.grid-path.p2 { left: 50%; top: 54%; width: 42%; background: var(--lilac); transform: rotate(-28deg); }
.grid-path.p3 { left: 22%; top: 77%; width: 37%; background: var(--coral); transform: rotate(-38deg); }

.vector-plane {
  background-image: linear-gradient(rgba(10, 13, 12, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 13, 12, 0.12) 1px, transparent 1px);
  background-size: 20% 20%;
}

.vector-ring,
.vector-target,
.vector-shot,
.vector-line {
  position: absolute;
}

.vector-ring {
  border: 1px solid rgba(10, 13, 12, 0.42);
  border-radius: 50%;
}

.ring-one { width: 52%; aspect-ratio: 1; left: 22%; top: 14%; }
.ring-two { width: 28%; aspect-ratio: 1; left: 34%; top: 29%; }

.vector-target {
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.target-one { right: 15%; top: 20%; }
.target-two { left: 20%; bottom: 18%; }

.vector-line {
  height: 3px;
  background: var(--ink);
  transform-origin: left;
}

.line-one { left: 13%; bottom: 17%; width: 54%; transform: rotate(-31deg); }
.line-two { left: 59%; top: 39%; width: 30%; transform: rotate(-24deg); }

.vector-shot {
  left: 11%;
  bottom: 14%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 0 10px rgba(185, 255, 102, 0.24);
}

.cadence-plane {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  align-items: end;
  padding: 56px 42px;
}

.cadence-plane span {
  display: block;
  height: 38%;
  background: var(--ink);
  opacity: 0.24;
}

.cadence-plane span:nth-child(2n) { height: 72%; }
.cadence-plane span:nth-child(3n) { height: 100%; background: var(--coral); opacity: 1; }
.cadence-plane span:nth-child(5n) { height: 56%; background: var(--lilac); opacity: 1; }

.cadence-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  height: 2px;
  background: var(--aurora);
  box-shadow: 0 0 14px rgba(185, 255, 102, 0.7);
}

.trace-plane {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 44px;
}

.trace-plane span {
  display: block;
  border: 1px solid rgba(10, 13, 12, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.trace-plane .active-coral { background: var(--coral); border-color: var(--coral); }
.trace-plane .active-lime { background: var(--aurora); border-color: var(--aurora); }
.trace-plane .active-lilac { background: var(--ink); border-color: var(--ink); }

.skill-matrix {
  padding: 126px 0 136px;
}

.skill-matrix .section-heading {
  margin-bottom: 72px;
}

.skill-matrix h2,
.development-heading h2 {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.matrix-table {
  border-top: 1px solid var(--line-dark);
}

.matrix-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line-dark);
}

.matrix-row > * {
  padding: 20px 24px 20px 0;
}

.matrix-row > * + * {
  padding-left: 24px;
  border-left: 1px solid var(--line-dark);
}

.matrix-row strong {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
}

.matrix-row span {
  color: var(--muted);
  font-size: 14px;
}

.matrix-head {
  min-height: 52px;
}

.matrix-head span {
  color: var(--coral);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.development-section {
  padding: 126px 0 136px;
}

.development-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) 3fr;
  gap: 70px;
  margin-bottom: 74px;
}

.development-heading h2 {
  margin: 0;
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
}

.development-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.development-steps li {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 30px 0 0;
}

.development-steps li + li {
  padding-left: 30px;
  border-left: 1px solid var(--line-light);
}

.development-steps li > span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
}

.development-steps h3 {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.12;
}

.development-steps p {
  margin: 0;
  color: #55605a;
  font-size: 15px;
  line-height: 1.65;
}

.games-contact {
  background: var(--ink);
  color: var(--white);
}

.games-contact-layout {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 90px;
  padding-bottom: 90px;
}

.games-contact h2 {
  max-width: 900px;
  margin: 0 0 60px;
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 980px) {
  .games-hero h1 { font-size: 110px; }
  .games-intro-layout { grid-template-columns: 150px 1fr; gap: 30px; }
  .games-intro h2 { font-size: 58px; }
  .game-band-layout { grid-template-columns: minmax(0, 0.9fr) minmax(350px, 1.1fr); gap: 46px; }
  .game-copy h2 { font-size: 58px; }
  .development-heading { grid-template-columns: 150px 1fr; gap: 30px; }
  .development-heading h2 { font-size: 58px; }
  .development-steps { grid-template-columns: repeat(2, 1fr); }
  .development-steps li:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line-light); border-left: 0; }
  .development-steps li:nth-child(4) { border-top: 1px solid var(--line-light); }
}

@media (max-width: 700px) {
  .games-hero {
    min-height: calc(100svh - 70px);
    background-position: 62% center;
  }

  .games-hero-content { padding-bottom: 64px; }
  .games-hero h1 { font-size: 68px; }

  .games-hero-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin: 44px 0 0;
  }

  .games-hero-copy p { font-size: 19px; }

  .game-index-links {
    grid-template-columns: 1fr 1fr;
  }

  .game-index-links a {
    min-height: 100px;
    padding: 18px 16px 18px 0;
  }

  .game-index-links a + a {
    padding-left: 16px;
  }

  .game-index-links a:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .game-index-links a:nth-child(4) {
    border-top: 1px solid var(--line-dark);
  }

  .games-intro { padding: 86px 0 92px; }
  .games-intro-layout { grid-template-columns: 1fr; gap: 36px; }
  .games-intro h2 { font-size: 44px; }
  .games-intro p { margin-top: 32px; font-size: 16px; }

  .concept-standards {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .concept-standards div {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px 0;
  }

  .concept-standards div + div {
    padding-left: 0;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .game-band {
    min-height: 0;
    padding: 82px 0;
  }

  .game-band-layout,
  .game-band-reverse {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .game-band-reverse .game-copy,
  .game-band-reverse .concept-visual {
    grid-column: 1;
    grid-row: auto;
  }

  .game-copy h2 { margin-top: 44px; font-size: 48px; }
  .game-copy > p { font-size: 16px; }

  .game-loop {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .game-loop > div {
    min-height: 0;
    display: grid;
    grid-template-columns: 28px 72px 1fr;
    align-items: start;
    gap: 8px;
    padding: 18px 0;
  }

  .game-loop > div + div {
    padding-left: 0;
    border-top: 1px solid currentColor;
    border-left: 0;
  }

  .game-loop strong,
  .game-loop p {
    margin-top: 0;
  }

  .score-model {
    grid-template-columns: 82px 1fr;
  }
  .game-skills { gap: 12px 18px; }
  .game-skills span + span::before { margin-right: 18px; }
  .game-status { margin-top: 46px; }
  .game-status strong { font-size: 9px; }

  .cadence-plane { gap: 6px; padding: 34px 20px; }
  .trace-plane { gap: 8px; padding: 26px; }

  .skill-matrix,
  .development-section {
    padding: 86px 0 94px;
  }

  .skill-matrix .section-heading {
    margin-bottom: 52px;
  }

  .matrix-head {
    display: none;
  }

  .matrix-row:not(.matrix-head) {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .matrix-row > *,
  .matrix-row > * + * {
    padding: 0;
    border-left: 0;
  }

  .matrix-row strong {
    margin-bottom: 8px;
    font-size: 22px;
  }

  .matrix-row span {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
  }

  .matrix-row span::before {
    content: attr(data-label);
    color: var(--coral);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .development-heading {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-bottom: 52px;
  }

  .development-heading h2 {
    font-size: 46px;
  }

  .development-steps {
    grid-template-columns: 1fr;
  }

  .development-steps li,
  .development-steps li + li,
  .development-steps li:nth-child(3),
  .development-steps li:nth-child(4) {
    min-height: 0;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 18px;
    padding: 24px 0 36px;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .development-steps li:first-child {
    border-top: 0;
  }

  .games-contact-layout { min-height: 550px; }
  .games-contact h2 { font-size: 48px; }
}
