:root {
  color-scheme: light;
  --page: #f4f5f7;
  --paper: #ffffff;
  --ink: #111318;
  --ink-soft: #343842;
  --muted: #6b707b;
  --line: rgba(17, 19, 24, 0.11);
  --line-strong: rgba(17, 19, 24, 0.2);
  --blue: #0b68d8;
  --blue-soft: #dfeeff;
  --oxide: #b84f3b;
  --copper: #c89652;
  --green: #35d58b;
  --lab: #020304;
  --lab-panel: rgba(255, 255, 255, 0.055);
  --lab-line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 90px rgba(17, 19, 24, 0.13);
  --shadow-soft: 0 18px 60px rgba(17, 19, 24, 0.08);
  --max: 1180px;
  --wide: 1260px;
  --display: "Aptos Display", "SF Pro Display", "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --body: "Aptos", "Inter", "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --utility: "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--body);
  letter-spacing: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.028) 1px, transparent 1px) center top / 96px 96px,
    linear-gradient(180deg, #fbfbfd 0%, #f4f5f7 520px, #ffffff 1280px, #f5f6f8 100%);
  text-rendering: optimizeLegibility;
}

body::selection {
  color: #ffffff;
  background: var(--blue);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.home-page::before,
.case-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(11, 104, 216, 0.07), transparent 34%),
    linear-gradient(245deg, rgba(184, 79, 59, 0.055), transparent 32%),
    linear-gradient(180deg, transparent 0 68%, rgba(17, 19, 24, 0.045));
}

/* Shared Shell */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 0 max(18px, calc((100vw - var(--wide)) / 2));
  color: rgba(17, 19, 24, 0.86);
  background: rgba(251, 251, 253, 0.72);
  border-bottom: 1px solid rgba(17, 19, 24, 0.075);
  backdrop-filter: saturate(1.18) blur(24px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 251, 253, 0.9);
  box-shadow: 0 12px 40px rgba(17, 19, 24, 0.065);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--blue), -5px -5px 0 rgba(17, 19, 24, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  font-size: 13px;
  color: rgba(17, 19, 24, 0.7);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(17, 19, 24, 0.075);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(17, 19, 24, 0.045);
}

.site-nav a {
  line-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(17, 19, 24, 0.055);
}

.eyebrow,
.card-label {
  margin: 0 0 18px;
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--blue);
  text-transform: uppercase;
}

.card-label {
  margin-bottom: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  font-size: 17px;
  font-weight: 740;
  color: var(--blue);
}

.text-link span {
  font-size: 16px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.text-link.light {
  color: #80c7ff;
}

.section,
.games-section,
.experiment-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.about-copy h2,
.lab-preview-copy h2,
.signal-copy h2,
.section-heading.dark h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 52px;
  line-height: 1.07;
  font-weight: 820;
}

.section-heading p:not(.eyebrow),
.lab-preview-copy p,
.about-text p,
.signal-copy p,
.lab-hero-copy p {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.74;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 740;
}

/* Home */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: 54px;
  align-items: center;
  max-width: var(--wide);
  min-height: 100vh;
  margin: 0 auto;
  padding: 104px 24px 46px;
  text-align: left;
}

.hero::after {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(17, 19, 24, 0.18), transparent);
}

.hero-copy-block {
  max-width: 620px;
  min-width: 0;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--display);
  font-size: 132px;
  line-height: 0.86;
  font-weight: 850;
}

.hero-kicker {
  max-width: 600px;
  margin: 28px 0 0;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 720;
  color: var(--ink-soft);
}

.hero-copy {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
  padding: 8px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 720;
  color: rgba(17, 19, 24, 0.62);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-dock span,
.hero-status span {
  overflow: hidden;
  min-width: 0;
  padding: 10px 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(244, 245, 247, 0.72);
  border-radius: 6px;
}

.hero-dock strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  transform-style: preserve-3d;
  transition: transform 320ms ease;
}

.hero-visual::before {
  position: absolute;
  inset: 7% 5% auto;
  height: 40%;
  content: "";
  background: linear-gradient(90deg, rgba(11, 104, 216, 0), rgba(11, 104, 216, 0.2), rgba(184, 79, 59, 0.12), rgba(11, 104, 216, 0));
  filter: blur(36px);
  transform: translateZ(-1px);
}

.hero-visual img,
.lab-preview-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero-visual img {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-status {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  color: rgba(17, 19, 24, 0.64);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 40px rgba(17, 19, 24, 0.09);
}

.hero-status span {
  padding: 7px 8px;
}

.section-soft {
  position: relative;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), #ffffff 62%),
    var(--paper);
}

.section-soft::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.035) 1px, transparent 1px) center / 88px 88px,
    radial-gradient(circle at 12% 24%, rgba(11, 104, 216, 0.07), transparent 30%);
}

.section-soft > .section-heading,
.section-soft > .work-grid {
  position: relative;
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-column: span 6;
  min-height: 500px;
  overflow: hidden;
  color: inherit;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card {
  color: inherit;
}

.work-card:nth-child(1),
.work-card:nth-child(4) {
  grid-column: span 7;
}

.work-card:nth-child(2),
.work-card:nth-child(3) {
  grid-column: span 5;
}

.work-card::before {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--blue);
  border-radius: 3px;
  box-shadow: 15px 0 0 rgba(17, 19, 24, 0.12), 30px 0 0 rgba(184, 79, 59, 0.28);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 104, 216, 0.22);
  box-shadow: 0 24px 76px rgba(17, 19, 24, 0.12);
}

.work-media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-bottom: 1px solid rgba(17, 19, 24, 0.08);
}

.work-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, 0.62) 50%, transparent 60% 100%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 220ms ease, transform 700ms ease;
}

.work-card:hover .work-media::after {
  opacity: 1;
  transform: translateX(55%);
}

.project-shot {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 8%, rgba(16, 43, 47, 0.18), transparent 42%),
    linear-gradient(135deg, #edf3f2, #dbe5e3);
}

.project-shot img {
  width: min(210px, 72%);
  height: 246px;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(16, 43, 47, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 43, 47, 0.2);
}

.codexbar-shot {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 174, 48, 0.18), transparent 42%),
    linear-gradient(135deg, #eef2f6, #dce3ea);
}

.codexbar-shot img {
  width: min(210px, 78%);
  height: auto;
  max-height: 246px;
  object-fit: contain;
  background: #eef2f6;
}

.pet-player-shot {
  background:
    radial-gradient(circle at 32% 42%, rgba(55, 218, 146, 0.24), transparent 44%),
    linear-gradient(135deg, #f4f8fb, #dcebe6);
}

.pet-player-shot img {
  width: min(330px, 86%);
  height: auto;
  max-height: 246px;
  object-fit: contain;
  background: transparent;
  border-color: rgba(26, 42, 52, 0.12);
}

.watch-shot {
  background:
    radial-gradient(circle at 50% 42%, rgba(46, 156, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #eef4f7, #dce7ea);
}

.watch-shot img {
  width: min(220px, 78%);
  height: auto;
  max-height: 246px;
  object-fit: contain;
  border-color: rgba(3, 6, 7, 0.12);
  border-radius: 50%;
  background: #030607;
  box-shadow: 0 18px 48px rgba(3, 6, 7, 0.24);
}

.card-copy {
  padding: 28px;
}

.work-card h3,
.experiment-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.2;
}

.work-card p:not(.card-label),
.experiment-card p:not(.card-label) {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
}

.notes-section {
  position: relative;
}

.notes-list {
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: 108px 1fr 88px;
  align-items: center;
  min-height: 86px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.note-row strong {
  font-size: 21px;
  line-height: 1.3;
}

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

.note-date {
  font-family: var(--utility);
  font-weight: 700;
}

.lab-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(480px, 1.28fr);
  gap: 48px;
  align-items: center;
  overflow: hidden;
  padding: 104px max(24px, calc((100vw - var(--max)) / 2));
  color: #f5f7fb;
  background:
    radial-gradient(circle at 74% 18%, rgba(18, 104, 214, 0.22), transparent 28%),
    linear-gradient(180deg, #030407, #060910);
}

.lab-preview::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(53, 213, 139, 0.08));
}

.lab-preview-copy,
.lab-preview-media {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.lab-preview-copy .eyebrow,
.lab-page .eyebrow {
  color: var(--green);
}

.lab-preview-copy p {
  color: rgba(245, 247, 251, 0.68);
}

.lab-preview-media img {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.about-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-section::before {
  position: absolute;
  top: 118px;
  left: 24px;
  width: 42px;
  height: 3px;
  content: "";
  background: var(--oxide);
  border-radius: 3px;
}

.about-text {
  padding-top: 12px;
}

/* Case Pages */

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: 64px;
  align-items: center;
  max-width: var(--wide);
  min-height: 100vh;
  margin: 0 auto;
  padding: 118px 24px 54px;
}

.case-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: 82px;
  line-height: 0.98;
  font-weight: 850;
}

.case-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.75;
  color: var(--muted);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-top: 30px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 760;
  color: rgba(17, 19, 24, 0.68);
}

.case-meta span,
.case-points article,
.detail-list article,
.case-flow article,
.case-evidence-grid article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 48px rgba(17, 19, 24, 0.055);
  backdrop-filter: blur(18px);
}

.case-meta span {
  overflow: hidden;
  min-width: 0;
  padding: 11px 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.case-device {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
}

.case-device::before {
  position: absolute;
  width: 68%;
  height: 80%;
  content: "";
  background: rgba(16, 43, 47, 0.18);
  filter: blur(42px);
}

.case-device img {
  position: relative;
  width: min(330px, 100%);
  border: 1px solid rgba(16, 43, 47, 0.16);
  border-radius: 8px;
  box-shadow: 0 34px 110px rgba(16, 43, 47, 0.24);
}

.desktop-device::before {
  width: 76%;
  height: 70%;
  background: rgba(255, 174, 48, 0.2);
}

.desktop-device img {
  width: min(350px, 100%);
  background: #eef2f6;
}

.pet-device::before {
  width: 86%;
  height: 64%;
  background: rgba(55, 218, 146, 0.22);
}

.pet-device img {
  width: min(430px, 100%);
  background: #eef6f2;
  object-fit: contain;
}

.watch-device::before {
  width: 82%;
  height: 82%;
  background: rgba(46, 156, 255, 0.2);
}

.watch-device img {
  width: min(360px, 100%);
  border-radius: 50%;
  background: #030607;
  object-fit: contain;
}

.case-summary {
  padding-top: 84px;
}

.case-points,
.case-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-points article,
.detail-list article,
.case-flow article,
.case-evidence-grid article {
  padding: 26px;
}

.case-points span,
.case-flow span,
.case-evidence-grid span {
  display: block;
  margin-bottom: 18px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue);
  text-transform: uppercase;
}

.case-points span {
  margin-bottom: 28px;
  font-size: 12px;
}

.case-points h3,
.detail-list h3,
.case-flow h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
}

.case-points p,
.detail-list p,
.case-flow p {
  margin: 13px 0 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--muted);
}

.case-process,
.case-details {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.case-process-head {
  position: sticky;
  top: 92px;
}

.case-process-head h2,
.case-details h2 {
  max-width: 560px;
  margin: 0;
  font-family: var(--display);
  font-size: 48px;
  line-height: 1.08;
}

.case-process-head p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.case-flow,
.detail-list {
  display: grid;
  gap: 14px;
}

.case-evidence {
  padding-top: 32px;
}

.case-evidence-grid strong {
  display: block;
  font-size: 18px;
  font-weight: 680;
  line-height: 1.55;
  color: var(--ink-soft);
}

.case-next {
  grid-template-columns: minmax(280px, 0.9fr) minmax(220px, 0.5fr);
}

.case-next .lab-preview-media {
  display: grid;
  place-items: center;
}

.case-next .lab-preview-media img {
  width: min(250px, 100%);
  max-height: 540px;
  object-fit: cover;
  object-position: top;
}

.case-next .desktop-preview-media img {
  width: min(320px, 100%);
  max-height: none;
  object-fit: contain;
}

.case-next .pet-preview-media img {
  width: min(430px, 100%);
  max-height: none;
  object-fit: contain;
}

.watch-preview-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.case-next .watch-preview-row img {
  width: min(146px, 31%);
  max-height: none;
  object-fit: contain;
  border-radius: 50%;
  background: #030607;
}

.error-shell {
  display: grid;
  min-height: calc(100vh - 120px);
  place-items: center;
  padding: 118px 24px 70px;
}

.error-page {
  min-height: 100vh;
}

.error-panel {
  width: min(760px, 100%);
  text-align: center;
}

.error-panel h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 64px;
  line-height: 1.02;
  font-weight: 840;
}

.error-panel p:not(.eyebrow) {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.74;
  color: var(--muted);
}

/* Games */

.games-page {
  color: #e8edf0;
  background:
    linear-gradient(90deg, rgba(232, 237, 240, 0.04) 1px, transparent 1px) center / 86px 86px,
    linear-gradient(0deg, rgba(53, 213, 139, 0.055), transparent 30%),
    linear-gradient(180deg, #030504 0%, #081011 52%, #030504 100%);
}

.games-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(184, 79, 59, 0.18), transparent 26%),
    linear-gradient(245deg, rgba(198, 150, 82, 0.12), transparent 34%),
    repeating-linear-gradient(135deg, rgba(232, 237, 240, 0.025) 0 1px, transparent 1px 18px);
}

.games-page::selection {
  color: #050706;
  background: #c69a4a;
}

.games-header,
.lab-header {
  color: rgba(232, 237, 240, 0.92);
  background: rgba(3, 5, 4, 0.72);
  border-bottom-color: rgba(232, 237, 240, 0.1);
  backdrop-filter: saturate(1.2) blur(24px);
}

.games-header.is-scrolled {
  background: rgba(5, 7, 6, 0.94);
}

.games-header .brand-mark {
  box-shadow: 5px 5px 0 #b6483d;
}

.games-header .site-nav,
.lab-header .site-nav {
  color: rgba(232, 237, 240, 0.62);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.games-header .site-nav a:hover,
.games-header .site-nav a[aria-current="page"],
.lab-header .site-nav a:hover,
.lab-header .site-nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.games-page .eyebrow {
  color: #c69a4a;
}

.games-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(380px, 0.78fr) minmax(520px, 1.22fr);
  gap: 52px;
  align-items: center;
  max-width: var(--wide);
  min-height: 100vh;
  margin: 0 auto;
  padding: 112px 24px 54px;
}

.games-hero-copy {
  min-width: 0;
}

.games-hero h1,
.game-section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  font-weight: 840;
}

.games-hero p:not(.eyebrow),
.game-section-head p,
.game-card p,
.dota-lens-grid p,
.game-log-list p {
  margin: 18px 0 0;
  color: rgba(232, 237, 240, 0.66);
  font-size: 18px;
  line-height: 1.72;
}

.game-status-strip,
.game-hero-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 30px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 760;
  color: rgba(232, 237, 240, 0.78);
}

.game-hero-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
}

.game-status-strip span,
.game-hero-tags span {
  overflow: hidden;
  min-width: 0;
  padding: 10px 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(232, 237, 240, 0.075);
  border: 1px solid rgba(232, 237, 240, 0.12);
  border-radius: 7px;
}

.games-hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
}

.games-hero-visual::before {
  position: absolute;
  inset: 7% 6% -4%;
  content: "";
  background: linear-gradient(135deg, rgba(184, 79, 59, 0.28), rgba(53, 213, 139, 0.14));
  filter: blur(46px);
}

.games-hero-visual img {
  position: relative;
  width: 100%;
  border: 1px solid rgba(232, 237, 240, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
}

.games-section {
  padding-top: 86px;
  padding-bottom: 86px;
}

.game-section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.game-section-head h2 {
  font-size: 48px;
  line-height: 1.06;
}

.signature-game {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(420px, 1.32fr);
  gap: 44px;
  align-items: start;
}

.signature-game .game-section-head {
  position: sticky;
  top: 92px;
}

.dota-lens-grid,
.game-card-grid,
.achievement-grid,
.game-log-list {
  display: grid;
  gap: 14px;
}

.dota-lens-grid {
  grid-template-columns: 1fr;
}

.dota-lens-grid article,
.game-card,
.achievement-grid article,
.game-log-list article {
  border: 1px solid rgba(232, 237, 240, 0.13);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.dota-lens-grid article {
  display: grid;
  grid-template-columns: 112px 0.7fr 1fr;
  gap: 22px;
  align-items: center;
  min-height: 168px;
  padding: 26px;
}

.dota-lens-grid span,
.game-state,
.game-log-list span,
.achievement-grid span {
  display: inline-flex;
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 800;
  color: #c69a4a;
  text-transform: uppercase;
}

.dota-lens-grid h3,
.game-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.18;
}

.shelf-section,
.games-log-section {
  padding-top: 48px;
}

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

.game-card {
  grid-column: span 4;
  min-height: 270px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 154, 74, 0.5);
  background: rgba(10, 21, 25, 0.92);
}

.game-card.is-anchor {
  grid-column: span 8;
  background:
    linear-gradient(135deg, rgba(184, 79, 59, 0.2), transparent 38%),
    linear-gradient(315deg, rgba(53, 213, 139, 0.12), transparent 44%),
    rgba(7, 16, 20, 0.82);
}

.game-state {
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.state-playing {
  color: #2a6f8f;
}

.state-completed {
  color: #6fbf73;
}

.state-favorite {
  color: #b6483d;
}

.state-paused {
  color: #8c999d;
}

.state-perfect {
  color: #c69a4a;
}

.state-note {
  color: #e8edf0;
}

.game-log-list article {
  display: grid;
  grid-template-columns: 110px minmax(180px, 0.34fr) 1fr;
  align-items: center;
  gap: 22px;
  min-height: 86px;
  padding: 18px 20px;
}

.game-log-list strong,
.achievement-grid strong {
  font-size: 19px;
  line-height: 1.35;
}

.game-log-list p {
  margin: 0;
  font-size: 15px;
}

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

.achievement-grid article {
  min-height: 150px;
  padding: 20px;
}

.achievement-section {
  padding-bottom: 104px;
}

.achievement-grid strong {
  display: block;
  margin-top: 30px;
}

.games-footer {
  color: rgba(232, 237, 240, 0.58);
  border-top-color: rgba(232, 237, 240, 0.1);
}

.games-footer a {
  color: #ffffff;
}

/* Lab */

.lab-page {
  color: #f5f7fb;
  background:
    linear-gradient(90deg, rgba(128, 199, 255, 0.04) 1px, transparent 1px) center / 88px 88px,
    linear-gradient(180deg, #020304, #05070d 46%, #020304);
}

.lab-page::selection {
  color: #030407;
  background: var(--green);
}

.lab-header {
  color: rgba(245, 247, 251, 0.9);
  background: rgba(3, 4, 7, 0.68);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.lab-header.is-scrolled {
  background: rgba(3, 4, 7, 0.92);
}

.lab-header .brand-mark {
  box-shadow: 5px 5px 0 var(--green);
}

.lab-header .site-nav {
  color: rgba(245, 247, 251, 0.62);
}

.lab-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  overflow: hidden;
  padding: 120px max(24px, calc((100vw - var(--max)) / 2)) 44px;
  isolation: isolate;
}

.lab-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 3, 4, 0.96) 0%, rgba(2, 3, 4, 0.76) 46%, rgba(2, 3, 4, 0.24) 100%),
    linear-gradient(0deg, #020304 0%, rgba(2, 3, 4, 0) 44%),
    repeating-linear-gradient(90deg, rgba(128, 199, 255, 0.055) 0 1px, transparent 1px 96px);
}

.lab-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.66;
}

.lab-hero-copy {
  max-width: 780px;
  min-width: 0;
  padding-bottom: 70px;
}

.lab-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 76px;
  line-height: 1.02;
  font-weight: 840;
}

.lab-hero-copy p:not(.eyebrow) {
  color: rgba(245, 247, 251, 0.72);
}

.lab-command-bar {
  position: absolute;
  left: max(24px, calc((100vw - var(--max)) / 2));
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 760;
  color: rgba(245, 247, 251, 0.76);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.lab-command-bar span {
  overflow: hidden;
  min-width: 0;
  padding: 8px 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(3, 4, 7, 0.42);
  border-radius: 6px;
}

.signal-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: 42px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 24px;
}

.signal-copy p {
  color: rgba(245, 247, 251, 0.66);
}

.signal-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(128, 199, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(128, 199, 255, 0.08), rgba(57, 217, 138, 0.03)),
    #060a10;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
}

.stage-head {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.stage-head span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(128, 199, 255, 0.58);
}

.stage-head span:nth-child(2) {
  background: rgba(57, 217, 138, 0.72);
}

.stage-head span:nth-child(3) {
  background: rgba(214, 155, 33, 0.72);
}

.signal-stage canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.experiment-section {
  padding-top: 80px;
  padding-bottom: 112px;
}

.section-heading.dark p:not(.eyebrow) {
  color: rgba(245, 247, 251, 0.66);
}

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

.experiment-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 26px;
  background: var(--lab-panel);
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.experiment-card::before {
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 28px;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(57, 217, 138, 0.7);
}

.experiment-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--green), rgba(128, 199, 255, 0.4), transparent);
  opacity: 0.72;
}

.experiment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(128, 199, 255, 0.26);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}

.experiment-card p:not(.card-label) {
  color: rgba(245, 247, 251, 0.62);
}

.lab-footer {
  color: rgba(245, 247, 251, 0.58);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.lab-footer a {
  color: #ffffff;
}

/* Motion */

.is-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.is-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 1100px) {
  .hero,
  .games-hero,
  .case-hero,
  .signature-game {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-copy-block,
  .hero h1,
  .hero-kicker,
  .hero-copy {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .signature-game .game-section-head,
  .case-process-head {
    position: static;
  }

  .dota-lens-grid article {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .work-grid,
  .game-card-grid,
  .achievement-grid,
  .case-points,
  .case-process,
  .case-evidence-grid,
  .experiment-grid,
  .about-section,
  .lab-preview,
  .signal-section,
  .case-details {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card:nth-child(1),
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4),
  .game-card,
  .game-card.is-anchor {
    grid-column: auto;
  }

  .work-card {
    min-height: auto;
  }

  .lab-preview {
    gap: 32px;
  }

  .game-log-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    min-height: 92px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    gap: 7px;
    font-size: 15px;
  }

  .brand-mark {
    width: 11px;
    height: 11px;
    box-shadow: 4px 4px 0 var(--blue), -4px -4px 0 rgba(17, 19, 24, 0.08);
  }

  .site-nav {
    order: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    flex: 0 0 100%;
    gap: 1px;
    padding: 2px;
    font-size: 12px;
  }

  .site-nav a {
    min-width: 0;
    line-height: 30px;
    padding: 0 5px;
    text-align: center;
  }

  .hero,
  .games-hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-top: 126px;
    padding-bottom: 46px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    gap: 34px;
  }

  .hero-copy-block,
  .games-hero-copy,
  .case-hero-copy,
  .lab-hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    font-size: 78px;
  }

  .hero-kicker {
    font-size: 24px;
  }

  .hero-copy,
  .hero-kicker,
  .games-hero p:not(.eyebrow),
  .case-hero-copy p:not(.eyebrow) {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .hero-dock {
    grid-template-columns: 1fr;
    text-align: left;
    font-size: 10px;
  }

  .hero-dock span {
    padding: 8px;
  }

  .hero-dock strong {
    font-size: 13px;
  }

  .hero-status {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .section,
  .games-section,
  .experiment-section {
    padding: 74px 18px;
  }

  .section-heading h2,
  .about-copy h2,
  .lab-preview-copy h2,
  .signal-copy h2,
  .section-heading.dark h2 {
    font-size: 36px;
  }

  .section-heading p:not(.eyebrow),
  .lab-preview-copy p,
  .about-text p,
  .signal-copy p,
  .lab-hero-copy p {
    font-size: 16px;
  }

  .section-soft > .section-heading,
  .section-soft > .work-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .work-media,
  .project-shot {
    min-height: 246px;
  }

  .project-shot img {
    height: 210px;
  }

  .note-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 18px 0;
  }

  .note-row strong {
    font-size: 19px;
  }

  .lab-preview {
    padding: 78px 18px;
  }

  .about-section::before {
    display: none;
  }

  .case-hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    gap: 34px;
    padding: 126px 24px 54px;
  }

  .case-hero-copy h1 {
    font-size: 42px;
    overflow-wrap: break-word;
  }

  .case-hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }

  .case-device {
    width: 100%;
    min-width: 0;
  }

  .case-details h2,
  .case-process-head h2 {
    font-size: 32px;
  }

  .case-next .watch-preview-row img {
    width: min(116px, 31%);
  }

  .error-panel h1 {
    font-size: 42px;
  }

  .site-footer {
    flex-direction: column;
  }

  .games-hero {
    gap: 32px;
  }

  .games-hero h1 {
    font-size: 36px;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .games-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .game-status-strip {
    grid-template-columns: 1fr;
  }

  .games-hero-visual {
    width: 100%;
    overflow: hidden;
  }

  .game-section-head h2 {
    font-size: 36px;
  }

  .dota-lens-grid article {
    min-height: auto;
  }

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

  .lab-hero {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-height: 100vh;
    padding: 126px 18px 116px;
  }

  .lab-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .lab-command-bar {
    left: 18px;
    right: 18px;
    grid-template-columns: 1fr;
  }

  .signal-stage {
    aspect-ratio: 4 / 3;
  }
}

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

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

  [data-reveal],
  .is-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
