:root {
  color: #fff;
  background: #000;
  font-family: "Helvetica Neue", "HelveticaNeue-Light", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  --bg: #000;
  --fg: #fff;
  --muted: #9a9a9a;
  --hairline: #242424;
  --panel: #090909;
  --panel-strong: #111;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 3px solid var(--fg);
  box-shadow: inset 6px 0 0 var(--fg);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
footer a:hover {
  color: var(--fg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) 0 clamp(36px, 6vw, 76px);
}

.hero-three {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 0;
  width: 100vw;
  min-height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

.hero-three canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

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

.eyebrow,
.label {
  display: block;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Helvetica Neue", "HelveticaNeue-Light", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.9;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(74px, 18vw, 184px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(52px, 9vw, 112px);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.02;
}

p {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 700px;
  color: var(--fg);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.05;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.button.primary,
.button:hover {
  background: var(--fg);
  color: var(--bg);
}

.button.primary:hover {
  background: transparent;
  color: var(--fg);
}

.hero-media {
  margin: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}

.hero-device {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(280px, 38vw, 470px);
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  background: var(--panel);
}

.hero-sprite {
  position: absolute;
  top: clamp(22px, 4vw, 42px);
  right: clamp(22px, 4vw, 42px);
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  background: #000;
  isolation: isolate;
  overflow: hidden;
}

.sprite {
  display: block;
  width: 72px;
  height: 72px;
  background-image: var(--sprite-image);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: var(--sprite-sheet-width) 72px;
  image-rendering: pixelated;
  animation-name: sprite-play;
  animation-duration: var(--sprite-duration);
  animation-iteration-count: infinite;
}

.sprite-dither {
  --sprite-image: url("static/sprites/dither-8x.png");
  --sprite-sheet-width: 1440px;
  --sprite-end: -1440px;
  --sprite-duration: 2000ms;
  animation-timing-function: steps(20);
}

.sprite-ditherflash {
  --sprite-image: url("static/sprites/ditherflash-8x.png");
  --sprite-sheet-width: 576px;
  --sprite-end: -576px;
  --sprite-duration: 800ms;
  animation-timing-function: steps(8);
}

.sprite-download {
  --sprite-image: url("static/sprites/download-8x.png");
  --sprite-sheet-width: 576px;
  --sprite-end: -576px;
  --sprite-duration: 800ms;
  animation-timing-function: steps(8);
}

.sprite-load {
  --sprite-image: url("static/sprites/load-8x.png");
  --sprite-sheet-width: 720px;
  --sprite-end: -720px;
  --sprite-duration: 1000ms;
  animation-timing-function: steps(10);
}

.sprite-movingpix {
  --sprite-image: url("static/sprites/movingpix-8x.png");
  --sprite-sheet-width: 1152px;
  --sprite-end: -1152px;
  --sprite-duration: 1600ms;
  animation-timing-function: steps(16);
}

.sprite-upload {
  --sprite-image: url("static/sprites/upload-8x.png");
  --sprite-sheet-width: 576px;
  --sprite-end: -576px;
  --sprite-duration: 800ms;
  animation-timing-function: steps(8);
}

@keyframes sprite-play {
  to {
    background-position: var(--sprite-end) 0;
  }
}

.device-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 400;
}

.device-title {
  position: relative;
  z-index: 1;
  font-size: clamp(92px, 15vw, 210px);
  font-weight: 300;
  line-height: 0.78;
}

.device-grid {
  position: absolute;
  inset: 22px;
  opacity: 0.26;
  background-image:
    linear-gradient(var(--fg) 2px, transparent 2px),
    linear-gradient(90deg, var(--fg) 2px, transparent 2px);
  background-size: 32px 32px;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status-strip,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.status-strip > div {
  min-height: 112px;
  padding: 22px 20px;
  border-right: 1px solid var(--hairline);
}

.status-strip > div:last-child {
  border-right: 0;
}

strong {
  font-weight: 400;
}

.section {
  padding: clamp(72px, 12vw, 156px) 0;
  border-bottom: 1px solid var(--hairline);
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(30px, 6vw, 72px);
}

.section-heading p,
.text-block p {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 24px);
}

.doc-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.doc-card,
.catalog-grid article,
.post-list article {
  min-height: 238px;
  padding: 24px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.doc-card:hover,
.catalog-grid article:hover,
.post-list article:hover {
  background: var(--panel);
}

.doc-card p,
.catalog-grid p,
.post-list p {
  margin-bottom: 0;
}

.doc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}

.icon-frame {
  display: block;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  background: #000;
  overflow: hidden;
}

.icon-frame img {
  width: 72px;
  height: 72px;
  max-width: none;
  image-rendering: pixelated;
}

.doc-card .number {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 7vw, 88px);
}

.post-list {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.post-list article {
  min-height: auto;
  border: 0;
}

.release-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--hairline);
}

.release-panel > div {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid var(--hairline);
}

.release-panel > div:nth-child(3) {
  border-right: 0;
}

.release-art {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 132px;
  border-top: 1px solid var(--hairline);
}

.sprite-frame {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  background: #000;
  isolation: isolate;
  overflow: hidden;
}

.catalog-grid article {
  min-height: 300px;
}

.catalog-grid .sprite-frame {
  margin-bottom: 46px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .status-strip,
  .doc-grid,
  .catalog-grid,
  .release-panel {
    grid-template-columns: 1fr;
  }

  .status-strip > div,
  .release-panel > div {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .status-strip > div:last-child,
  .release-panel > div:nth-child(3) {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  :root {
    font-size: 16px;
  }

  .site-header,
  .status-strip,
  .section,
  .site-footer,
  .hero {
    width: min(100% - 28px, var(--max));
  }

  .doc-card,
  .catalog-grid article,
  .post-list article,
  .release-panel > div {
    padding: 18px;
  }
}
