:root {
  color-scheme: light;
  --paper: #f7f7f3;
  --ink: #15192a;
  --mute: #575c6b;
  --line: #dadcd6;
  --blue: #2444d8;
  --lime: #ddfb75;
  --night: #11152a;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #5877ff; outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 9; top: 8px; left: 8px; padding: 10px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.025em; }
.brand-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 6px; background: var(--blue); color: white; font-size: .6rem; }
.top nav { display: flex; gap: 27px; color: var(--mute); font-size: .9rem; font-weight: 620; }
.top a:hover, .text-link:hover { color: var(--blue); }
.hero { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; padding-block: clamp(58px, 8.3vw, 122px); }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-weight: 780; letter-spacing: -.046em; line-height: 1.04; }
h1 { font-size: clamp(2.55rem, 4.7vw, 4.45rem); }
h2 { font-size: clamp(2rem, 3.35vw, 3.25rem); }
h3 { font-size: clamp(1.12rem, 1.65vw, 1.4rem); font-weight: 730; line-height: 1.19; letter-spacing: -.025em; }
.intro { color: var(--mute); font-size: clamp(1.06rem, 1.4vw, 1.19rem); margin-top: 23px; max-width: 495px; }
.intro p + p { margin-top: 12px; }
.button { display: inline-block; margin-top: 27px; padding: 11px 20px; border-radius: 8px; font-weight: 700; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: #1835b7; }
.text-link { font-weight: 650; text-underline-offset: 4px; }
.hero-art {
  aspect-ratio: 1.37;
  border-radius: 14px;
  background: #0b1239 url("media/hero.jpg") center / cover no-repeat;
}
.section { padding-block: clamp(56px, 7vw, 100px); }
.section.wrap { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 32px; }
.section-heading > p:last-child { max-width: 460px; margin-top: 16px; color: var(--mute); }
.centered-title { max-width: 860px; margin-inline: auto; text-align: center; }
.reading-width { max-width: 750px; margin-inline: auto; text-align: left; }
.experience-lead, .experience-takeaway {
  color: var(--mute);
  font-size: clamp(1.13rem, 2.2vw, 1.55rem);
  line-height: 1.48;
}
.experience-lead { margin-block: clamp(24px, 3.3vw, 45px) clamp(26px, 3.75vw, 52px); }
.experience-takeaway { margin-top: clamp(32px, 4vw, 55px); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 38px); }
.case-media { display: block; width: 100%; overflow: hidden; aspect-ratio: 1.93; padding: 0; border: 0; border-radius: 9px; background: #1a2034; cursor: zoom-in; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 33%; transition: filter 180ms; }
.case-media:hover img { filter: brightness(.9); }
.case-copy { margin-top: 17px; }
.case-copy p, .team-points p { margin-top: 7px; color: var(--mute); }
.team-rationale {
  font-size: clamp(1.08rem, 1.75vw, 1.27rem);
  color: var(--mute);
  margin-top: clamp(24px, 3.3vw, 45px);
}
.team-rationale p + p { margin-top: 13px; }
.team-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 55px);
  list-style: none;
  margin: clamp(34px, 5vw, 67px) 0 0;
  padding: 0;
}
.team-points li { min-width: 0; }
.team-points img { width: 112px; height: 112px; border-radius: 16px; margin-bottom: 19px; object-fit: cover; }
.scenario-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, .35fr);
  gap: clamp(14px, 2.3vw, 28px);
  align-items: start;
  margin-top: clamp(28px, 3.7vw, 50px);
}
.integration-video {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 822;
  border: 1px solid #232a46;
  border-radius: 12px;
  background: #14192b;
}
.scenario-controls { display: grid; gap: 8px; }
.scenario-controls button {
  display: grid;
  gap: 4px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.scenario-controls button[aria-pressed="true"] { background: #ebefff; border-color: #d4dcf9; }
.scenario-controls button:hover { background: #eef0f7; }
.scenario-controls strong { font-size: 1rem; }
.scenario-controls span { color: var(--mute); font-size: .875rem; line-height: 1.4; }
.games {
  color: #f8f9ff;
  background: radial-gradient(ellipse at 50% 55%, #24325c 0%, #161d38 48%, #101426 84%);
  overflow: hidden;
}
.games-heading { text-align: center; margin-bottom: clamp(29px, 4vw, 49px); }
.games-heading > p:last-of-type { color: #c3cbdf; max-width: 560px; margin: 16px auto 0; }
.catalog-stage {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 152px) minmax(0, 1fr) minmax(0, 152px);
  align-items: center;
  gap: clamp(16px, 2.3vw, 32px);
  width: min(1430px, calc(100% - 56px));
  margin-inline: auto;
}
.catalog-stage::before, .catalog-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border: 1px solid #91a9f332;
  border-radius: 50%;
  inset: 9% 1%;
  transform: rotate(-12deg);
}
.catalog-stage::after { inset: 3% 4%; transform: rotate(11deg); border-color: #91a9f31e; }
.game-grid {
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(11px, 1.3vw, 18px);
}
.game-card button {
  display: grid;
  position: relative;
  isolation: isolate;
  align-items: end;
  text-align: left;
  width: 100%;
  aspect-ratio: 1.65;
  overflow: hidden;
  padding: clamp(9px, 1.3vw, 16px);
  border: 1px solid #abbafc50;
  border-radius: 11px;
  background: #1c2445;
  color: white;
  box-shadow: 0 12px 26px #070a193b;
  transition: transform 180ms ease, border-color 180ms ease;
}
.game-card button:hover, .game-card button:focus-visible { z-index: 1; border-color: #b7caff; }
.game-card button:hover { transform: translateY(-3px); }
.game-card img, .game-card button::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-card img { object-fit: cover; z-index: -2; transition: filter 180ms; }
.game-card button:hover img { filter: brightness(1.12); }
.game-card button::after { content: ""; z-index: -1; background: linear-gradient(0deg, #090c1bf7, #090c1b90 32%, #090c1b0a 68%); }
.game-card strong {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 740;
  letter-spacing: -.02em;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.game-card:nth-child(-n + 2) { grid-column: span 2; }
.game-card:nth-child(-n + 2) button { aspect-ratio: 1.94; padding: clamp(13px, 1.5vw, 23px); }
.game-card:nth-child(-n + 2) strong { font-size: clamp(1.3rem, 2vw, 1.82rem); }

.poster-shelf { min-width: 0; align-self: stretch; --spawn-x: 160px; }
.poster-shelf-right { --spawn-x: -160px; }
.poster-strip {
  --poster-width: clamp(76px, 7.5vw, 110px);
  --poster-height: calc(var(--poster-width) * 1.42);
  position: relative;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.poster {
  position: absolute;
  width: var(--poster-width);
  height: var(--poster-height);
  top: calc((100% - var(--poster-height)) * var(--slot, 0));
  left: 0;
  transform: rotate(var(--tilt, -9deg));
}
.poster:nth-child(even) { left: auto; right: 0; --tilt: 9deg; --drift-x: -8px; }
.poster:nth-child(2) { --slot: .19; --sequence: 1; }
.poster:nth-child(3) { --slot: .37; --sequence: 2; }
.poster:nth-child(4) { --slot: .55; --sequence: 3; }
.poster:nth-child(5) { --slot: .71; --sequence: 4; }
.poster:nth-child(6) { --slot: .85; --sequence: 5; }
.poster:nth-child(7) { --slot: 1; --sequence: 6; }
.poster-shelf-right .poster:nth-child(1) { --slot: .04; }
.poster-shelf-right .poster:nth-child(5) { --slot: .76; }
.poster-shelf-right .poster:nth-child(6) { --slot: .98; }
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #b6c1ff62;
  border-radius: 8px;
  box-shadow: 0 12px 25px #050815b8;
}
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .catalog-stage.is-visible .poster {
    animation: poster-arrive 780ms calc(var(--sequence, 0) * 80ms) cubic-bezier(.2,.65,.28,1) both;
  }
  .catalog-stage.is-visible .poster img {
    animation: poster-orbit 3.4s calc(.85s + var(--sequence, 0) * 90ms) ease-in-out;
  }
}
@keyframes poster-arrive {
  from { opacity: 0; transform: translate(var(--spawn-x), 45px) scale(.5) rotate(-23deg); }
  to { opacity: 1; transform: rotate(var(--tilt, -9deg)); }
}
@keyframes poster-orbit {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(var(--drift-x, 8px), -9px) rotate(3deg); }
  70% { transform: translate(calc(var(--drift-x, 8px) * -.6), 7px) rotate(-3deg); }
}
.footer { padding-block: 22px; color: var(--mute); font-size: .875rem; }
.pilot-panel { border-radius: 20px; background: var(--lime); padding: clamp(24px, 5vw, 65px); }
.pilot .eyebrow, .pilot .section-heading > p:last-child { color: #35451a; }
.metric-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-list > div { background: #f5ffcf; border: 1px solid #b6ce57; border-radius: 10px; padding: 14px; }
.metric-list strong, .metric-list span { display: block; }
.metric-list span, .pilot-note { color: #35451a; }
.pilot-note { margin-top: 15px; }
.dialog { border: 0; border-radius: 15px; padding: 17px; max-height: calc(100dvh - 28px); max-width: min(860px, calc(100% - 28px)); width: 100%; color: var(--ink); }
.dialog::backdrop { background: #0b102edf; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { font-size: clamp(1.25rem, 5vw, 2rem); letter-spacing: -.04em; }
.close, .gallery-controls button { border: 1px solid #cbd2ef; border-radius: 8px; background: #edf1ff; color: #15214d; font-weight: 700; padding: 8px 13px; }
.close { font-size: 1.4rem; line-height: 1; min-width: 42px; min-height: 42px; }
.gallery img { height: auto; max-height: calc(100dvh - 170px); width: 100%; object-fit: contain; background: #101425; border-radius: 7px; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 12px; }
[hidden] { display: none !important; }
.game-dialog { width: 1040px; max-width: calc(100% - 28px); }
#game-frame {
  display: block;
  width: 100%;
  height: min(56.25vw, calc(100dvh - 112px), 570px);
  min-height: min(320px, calc(100dvh - 112px));
  border: 0;
  border-radius: 8px;
  background: var(--night);
}
@media (max-width: 1100px) {
  .wrap, .catalog-stage { width: calc(100% - 64px); }
  .catalog-stage { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .catalog-stage::before, .catalog-stage::after { display: none; }
  .poster-shelf { overflow-x: auto; scrollbar-width: thin; }
  .poster-strip {
    display: flex;
    height: auto;
    justify-content: safe center;
    min-width: max-content;
    gap: 9px;
    padding: 8px 6px 15px;
  }
  .poster { position: static; width: clamp(53px, 8.5vw, 86px); height: auto; aspect-ratio: 500 / 710; flex: none; }
}
@media (max-width: 760px) {
  .wrap, .catalog-stage { width: calc(100% - 36px); }
  .top { min-height: 59px; gap: 10px; }
  .top nav { gap: 15px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 45px 52px; }
  .hero-art { aspect-ratio: 1.6; background-position: center 30%; }
  .scenario-demo { grid-template-columns: 1fr; }
  .scenario-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card:nth-child(-n + 2) { grid-column: auto; }
  .game-card:nth-child(-n + 2) button { aspect-ratio: 1.65; padding: clamp(9px, 1.3vw, 16px); }
  .game-card:nth-child(-n + 2) strong { font-size: clamp(1rem, 1.4vw, 1.25rem); }
  #game-frame { height: min(65dvh, 540px); }
}
@media (max-width: 560px) {
  .top nav { display: none; }
  .case-grid, .team-points, .metric-list { grid-template-columns: 1fr; }
  .case-grid { gap: 30px; }
  .team-points { gap: 27px; }
  .team-points img { width: 87px; height: 87px; margin-bottom: 11px; }
  .scenario-controls { grid-template-columns: 1fr; }
  .games-heading { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
