:root {
  --ink: #11171d;
  --ink-soft: #182129;
  --paper: #f2eee6;
  --paper-deep: #e4ded3;
  --white: #fffdf8;
  --muted: #9ca7ad;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(17, 23, 29, 0.18);
  --ember: #e66e32;
  --ember-bright: #ff8a4c;
  --aqua: #58d6cf;
  --shell: min(1240px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.stats strong,
.partner-names {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  font-stretch: condensed;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-150%);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  color: var(--white);
  background: rgba(17, 23, 29, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a,
.footer-grid a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-links a {
  position: relative;
  padding-block: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.mobile-nav-cta {
  display: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ember-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  justify-self: end;
}

.nav-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--white);
  background: var(--ember);
  border: 1px solid var(--ember);
  border-radius: 2px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  color: var(--ink);
  background: var(--aqua);
  border-color: var(--aqua);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22);
  transform: translate(3px, 3px);
}

.button-small {
  min-height: 40px;
  padding-inline: 18px;
  box-shadow: none;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 860px;
  padding-top: 76px;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 35%, rgba(88, 214, 207, 0.09), transparent 27%),
    radial-gradient(circle at 10% 88%, rgba(230, 110, 50, 0.11), transparent 28%),
    var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 645px;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  padding-block: 86px 48px;
}

.eyebrow,
.section-index,
.partner-label {
  margin-bottom: 20px;
  color: var(--ember-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 34px;
  font-size: clamp(64px, 8vw, 122px);
  font-weight: 900;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.72);
}

.hero-lede {
  max-width: 580px;
  margin-bottom: 36px;
  color: #c7d0d4;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.text-link {
  padding-block: 12px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(4px);
}

.hero-reel {
  position: relative;
  min-height: 500px;
}

.reel-card {
  position: absolute;
  width: min(300px, 54%);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--white);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.reel-card-one {
  top: 28px;
  right: 6%;
  z-index: 1;
  transform: rotate(6deg);
}

.reel-card-two {
  top: 150px;
  left: 2%;
  z-index: 2;
  width: min(340px, 60%);
  transform: rotate(-7deg);
}

.reel-card-three {
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(240px, 44%);
  transform: rotate(3deg);
}

.reel-stamp {
  position: absolute;
  top: 6px;
  left: 9%;
  z-index: 4;
  width: 94px;
  height: 94px;
  display: grid;
  place-content: center;
  color: var(--ink);
  background: var(--aqua);
  border-radius: 50%;
  line-height: 1;
  text-align: center;
  transform: rotate(-8deg);
}

.reel-stamp span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.reel-stamp strong {
  font-size: 36px;
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line-dark);
}

.stats div {
  padding: 27px 24px;
  border-left: 1px solid var(--line-dark);
}

.stats div:last-child {
  border-right: 1px solid var(--line-dark);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  margin-bottom: 3px;
  color: var(--white);
  font-size: 35px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.current-focus {
  position: relative;
  padding-block: 112px 120px;
  background: var(--ember);
  overflow: hidden;
}

.current-focus::after {
  position: absolute;
  right: -80px;
  bottom: -270px;
  width: 560px;
  height: 560px;
  content: "";
  border: 80px solid rgba(17, 23, 29, 0.08);
  border-radius: 50%;
}

.focus-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
}

.current-focus .section-index {
  color: #3b2117;
}

.current-focus h2 {
  max-width: 860px;
  margin-bottom: 66px;
  color: var(--ink);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
}

.focus-copy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}

.focus-copy p {
  margin-bottom: 0;
  color: rgba(17, 23, 29, 0.86);
  font-size: 17px;
  line-height: 1.68;
}

.focus-copy p:first-child {
  font-weight: 750;
}

.section {
  padding-block: 124px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 64px;
}

.section-heading h2,
.puzzle-intro h2,
.team-heading h2 {
  margin-bottom: 0;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 900;
}

.section-heading > p {
  max-width: 400px;
  margin-bottom: 8px;
  color: #56636a;
  font-size: 17px;
}

.games-section {
  background: var(--paper);
}

.games-section .section-index,
.process-section .section-index,
.team-section .section-index {
  color: #933a15;
}

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

.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-light);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.game-card:hover {
  z-index: 2;
  box-shadow: 12px 14px 0 var(--ink);
  transform: translate(-4px, -5px);
}

.game-card-featured {
  grid-column: span 1;
}

.video-trigger {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #1a2228;
  border: 0;
  cursor: pointer;
}

/* App-icon cover: the icon itself, blurred and dimmed, becomes the backdrop. */
.game-cover {
  position: relative;
  width: 100%;
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  background: #1a2228;
  border-bottom: 1px solid var(--line-light);
}

.cover-bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(26px) saturate(1.3) brightness(0.55);
  pointer-events: none;
}

.cover-icon {
  position: relative;
  width: 46%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-trigger:hover .cover-icon {
  transform: scale(1.05) translateY(-2px);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(17, 23, 29, 0.18);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.play-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.video-trigger:hover .play-badge {
  background: var(--aqua);
}

.game-body {
  min-height: 230px;
  padding: 22px 22px 24px;
}

.game-topline {
  min-height: 26px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  color: #657179;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.game-topline strong {
  color: var(--ember);
  font-size: 19px;
  letter-spacing: -0.04em;
}

.game-card h3 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 900;
}

.game-card .game-body > p {
  min-height: 26px;
  margin-bottom: 22px;
  color: #68747a;
  font-size: 14px;
}

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

.store-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.store-link:hover {
  color: var(--ember);
  border-color: var(--ember);
}

.status {
  display: inline-flex;
  padding: 6px 8px;
  color: #5e696f;
  background: #ece8e0;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.status-live {
  color: #0d4841;
  background: rgba(88, 214, 207, 0.35);
}

.status-featured {
  color: #7a2f0f;
  background: rgba(230, 110, 50, 0.16);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.featured-note {
  margin: 54px 0 0;
  padding: 26px 0;
  border-block: 1px solid var(--line-light);
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 750;
  text-align: center;
}

.prototype-cloud {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  margin-top: 96px;
}

.prototype-cloud-heading h3 {
  margin-bottom: 16px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
}

.prototype-cloud-heading p {
  max-width: 380px;
  margin-bottom: 0;
  color: #56636a;
  font-size: 16px;
  line-height: 1.6;
}

.prototype-cloud-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prototype-cloud-grid li {
  min-width: 0;
}

.prototype-cloud-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: 0 8px 20px rgba(17, 23, 29, 0.14);
  filter: saturate(0.85);
  transition: transform 220ms ease, filter 220ms ease;
}

.prototype-cloud-grid li:nth-child(odd) img {
  transform: rotate(-2deg);
}

.prototype-cloud-grid li:nth-child(even) img {
  transform: rotate(2deg);
}

.prototype-cloud-grid li:hover img {
  filter: saturate(1.1);
  transform: rotate(0) scale(1.06);
}

.puzzle-section {
  padding-bottom: 0;
  color: var(--white);
  background: var(--ink);
}

.puzzle-intro {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding-bottom: 90px;
}

.puzzle-intro h2 {
  max-width: 900px;
}

.puzzle-lede {
  margin: 10px 0 50px;
  color: var(--aqua);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.puzzle-copy {
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
}

.puzzle-copy p {
  margin-bottom: 0;
  color: #b9c3c8;
  font-size: 17px;
  line-height: 1.7;
}

.media-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  color: var(--white);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.media-label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.prototype-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--ember) var(--ink);
}

.prototype {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  background: #1a2228;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.prototype::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), transparent 48%);
}

.prototype img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);
}

.prototype > span:last-child {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.prototype:hover img {
  filter: saturate(1.2);
}

.prototype .play-badge,
.archive-card .play-badge {
  top: 14px;
  right: 14px;
  bottom: auto;
  left: auto;
  z-index: 2;
}

.puzzle-archive {
  padding-block: 90px 124px;
}

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

.archive-card {
  position: relative;
  width: 100%;
  display: grid;
  aspect-ratio: 2 / 1;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
}

.archive-card .cover-icon {
  z-index: 1;
  width: 38%;
}

.archive-card > span:last-child {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.archive-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 50%);
}

.process-section {
  background: var(--paper-deep);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line-light);
}

.process-grid article {
  min-height: 360px;
  padding: 32px clamp(24px, 3vw, 44px) 36px;
  border-left: 1px solid var(--line-light);
}

.process-grid article:last-child {
  border-right: 1px solid var(--line-light);
}

.process-grid span {
  display: block;
  margin-bottom: 94px;
  color: #8b3613;
  font-size: 12px;
  font-weight: 900;
}

.process-grid h3 {
  margin-bottom: 22px;
  font-size: 36px;
  font-weight: 900;
}

.process-grid p {
  margin-bottom: 0;
  color: #4d5a61;
  line-height: 1.7;
}

.partners-section {
  padding-block: 54px;
  color: var(--white);
  background: var(--ember);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.partners-grid > div + div {
  padding-left: 60px;
  border-left: 1px solid rgba(17, 23, 29, 0.24);
}

.partner-label {
  margin-bottom: 14px;
  color: #3b2117;
}

.partner-names {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.partner-names span {
  color: rgba(17, 23, 29, 0.32);
}

.team-section {
  background: var(--paper);
}

.team-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 72px;
}

.team-heading p {
  max-width: 440px;
  margin-bottom: 8px;
  color: #566168;
  font-size: 17px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--line-light);
}

.team-grid > a {
  position: relative;
  display: grid;
  min-height: 260px;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 8px 24px;
  padding: 40px;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.team-grid > a:first-child {
  border-right: 1px solid var(--line-light);
}

.team-grid > a:hover {
  color: var(--white);
  background: var(--ink);
}

.team-photo {
  grid-row: span 2;
  width: 92px;
  height: 104px;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 5px 5px 0 var(--ember);
}

.team-grid strong,
.team-grid small {
  display: block;
}

.team-grid strong {
  font-size: 25px;
}

.team-grid small {
  color: #566168;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-grid p {
  grid-column: 2;
  margin: 14px 0 0;
  color: #566168;
  line-height: 1.5;
}

.team-grid > a:hover p,
.team-grid > a:hover small {
  color: #b7c1c6;
}

.extended-team {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: 56px;
}

.extended-team-heading h3 {
  margin-bottom: 14px;
  font-size: 34px;
  font-weight: 900;
}

.extended-team-heading p {
  max-width: 400px;
  margin-bottom: 0;
  color: #566168;
  line-height: 1.6;
}

.extended-team-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.extended-team-roles li {
  display: grid;
  gap: 6px;
  padding: 22px 24px 24px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.extended-team-roles strong {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.extended-team-roles span {
  color: #566168;
  font-size: 14px;
  line-height: 1.5;
}

.team-grid svg {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
}

.contact-section {
  padding-block: 130px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 70%, rgba(88, 214, 207, 0.1), transparent 27%),
    var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
}

.contact-grid h2 {
  margin-bottom: 34px;
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 900;
}

.contact-grid h2 em {
  color: var(--ember-bright);
  font-style: normal;
}

.contact-grid > div > p {
  max-width: 650px;
  margin-bottom: 58px;
  color: #b8c2c7;
  font-size: 19px;
}

.contact-links {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--line-dark);
}

.email-link {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
  border-left: 1px solid var(--line-dark);
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.email-link:last-child {
  border-right: 1px solid var(--line-dark);
}

.email-link span {
  margin-bottom: 5px;
  color: #8d9aa1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-link strong {
  font-size: 22px;
}

.email-link:hover {
  color: var(--ink);
  background: var(--aqua);
}

.email-link:hover span {
  color: rgba(17, 23, 29, 0.68);
}

footer {
  padding-block: 35px;
  color: var(--white);
  background: #0b1014;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto auto;
  align-items: center;
  gap: 36px;
}

.footer-brand img {
  height: 32px;
}

.footer-grid p {
  margin-bottom: 0;
  color: #7f8b91;
  font-size: 12px;
}

.footer-grid > div {
  display: flex;
  gap: 20px;
}

.footer-grid > div a:hover {
  color: var(--ember-bright);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(5, 9, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.video-modal[hidden] {
  display: none;
}

.video-modal-panel {
  width: min(1080px, 96vw, calc((94vh - 70px) * 1.7778));
  max-height: 94vh;
  color: var(--white);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.modal-header h2 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.modal-close {
  width: 45px;
  height: 45px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--aqua);
  border-color: var(--aqua);
}

.modal-close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

.video-modal[data-aspect="9:16"] .video-modal-panel {
  width: min(460px, 92vw, calc((94vh - 70px) * 0.5625));
}

.video-modal[data-aspect="9:16"] .video-frame-wrap {
  aspect-ratio: 9 / 16;
}

.focus-guard {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.legal-header {
  color: var(--white);
  background: var(--ink);
}

.legal-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
}

.legal-nav > a:last-child {
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.legal-nav > a:last-child:hover {
  color: var(--ember-bright);
}

.legal-title {
  padding-block: 92px 84px;
}

.legal-title h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 9vw, 108px);
  font-weight: 900;
}

.legal-title > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-content {
  max-width: 820px;
  padding-block: 90px 110px;
  font-size: 17px;
  line-height: 1.78;
}

.legal-content h2 {
  margin: 64px 0 18px;
  font-size: 34px;
  font-weight: 900;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--ember);
  font-weight: 750;
}

.legal-footer {
  padding-block: 28px;
  color: var(--muted);
  background: #0b1014;
}

.legal-footer p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 1050px) {
  :root {
    --shell: min(100% - 40px, 920px);
  }

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

  .nav-links {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    color: var(--white);
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-links .mobile-nav-cta {
    display: block;
    margin-top: 14px;
    padding: 14px;
    color: var(--white);
    background: var(--ember);
    border-bottom: 0;
    text-align: center;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    grid-template-rows: repeat(2, 1px);
    align-content: center;
    gap: 7px;
    padding: 0 10px;
    color: var(--white);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:not(.sr-only):first-of-type {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:not(.sr-only):last-of-type {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
    padding-block: 92px 65px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero h1 {
    font-size: clamp(72px, 13vw, 116px);
  }

  .hero-reel {
    min-height: 450px;
  }

  .reel-card {
    width: min(330px, 48%);
  }

  .reel-card-two {
    width: min(360px, 52%);
  }

  .reel-card-three {
    width: min(260px, 38%);
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prototype-cloud {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 72px;
  }

  .focus-grid,
  .puzzle-intro,
  .contact-grid {
    grid-template-columns: 120px 1fr;
  }

  .focus-copy {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .focus-copy p {
    max-width: 700px;
  }

  .prototype-strip {
    grid-template-columns: repeat(5, minmax(230px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 32px);
  }

  html {
    scroll-padding-top: 66px;
  }

  .site-header {
    height: 66px;
  }

  .brand {
    font-size: 21px;
  }

  .brand img {
    height: 35px;
  }

  .nav-links {
    top: 66px;
  }

  .hero {
    padding-top: 66px;
  }

  .hero-grid {
    gap: 32px;
    padding-block: 70px 36px;
  }

  .hero h1 {
    margin-bottom: 27px;
    font-size: clamp(54px, 18vw, 82px);
  }

  .hero h1 span {
    -webkit-text-stroke-width: 1px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero-reel {
    min-height: 310px;
  }

  .reel-card {
    width: 46%;
    border-width: 5px;
    border-radius: 16px;
  }

  .reel-card-one {
    top: 10px;
    right: 0;
  }

  .reel-card-two {
    top: 90px;
    left: 0;
    width: 52%;
  }

  .reel-card-three {
    bottom: 0;
    width: 38%;
  }

  .reel-stamp {
    left: 1%;
    width: 70px;
    height: 70px;
  }

  .reel-stamp strong {
    font-size: 28px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats div {
    padding: 20px 16px;
  }

  .stats div:nth-child(3),
  .stats div:nth-child(4) {
    border-top: 1px solid var(--line-dark);
  }

  .stats strong {
    font-size: 29px;
  }

  .current-focus,
  .section,
  .contact-section {
    padding-block: 82px;
  }

  .focus-grid,
  .puzzle-intro,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .current-focus h2 {
    margin-bottom: 42px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 42px;
  }

  .section-heading h2,
  .puzzle-intro h2,
  .team-heading h2 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .game-card:hover {
    box-shadow: none;
    transform: none;
  }

  .game-body {
    min-height: 215px;
  }

  .featured-note {
    font-size: 18px;
    text-align: left;
  }

  .prototype-cloud-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .cover-icon {
    width: 40%;
  }

  .puzzle-intro {
    padding-bottom: 66px;
  }

  .puzzle-lede {
    margin-bottom: 36px;
  }

  .puzzle-copy {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prototype-strip {
    grid-template-columns: repeat(5, 76vw);
  }

  .media-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .puzzle-archive {
    padding-block: 70px 84px;
  }

  .puzzle-archive-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    min-height: auto;
    padding: 30px 20px 36px;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
  }

  .process-grid article:last-child {
    border-bottom: 0;
  }

  .process-grid span {
    margin-bottom: 50px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .partners-grid > div + div {
    padding: 30px 0 0;
    border-top: 1px solid rgba(17, 23, 29, 0.24);
    border-left: 0;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-grid > a {
    min-height: 230px;
    padding: 30px 24px;
  }

  .team-grid > a:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .team-photo {
    width: 76px;
    height: 86px;
  }

  .extended-team {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }

  .extended-team-roles {
    grid-template-columns: 1fr;
  }

  .contact-grid h2 {
    font-size: clamp(56px, 19vw, 86px);
  }

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

  .email-link {
    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
  }

  .email-link:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-modal {
    padding: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
