@font-face {
  font-family: "helvetica-w01-bold";
  src: url("../fonts/helvetica-w01-bold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "helvetica-w01-roman";
  src: url("../fonts/helvetica-w01-roman.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "proxima-n-w01-reg";
  src: url("../fonts/proxima-n-w01-reg.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #030303;
  --surface: #0b0b0c;
  --surface-2: #121316;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 23, 23, 0.48);
  --text: #f5f3f0;
  --muted: #aaa6a4;
  --red: #ff1717;
  --red-soft: #a31218;
  --cyan: #62d8e8;
  --amber: #ffb454;
  --green: #73d18b;
  --font-display: "helvetica-w01-bold", "Arial Black", Impact, sans-serif;
  --font-body: "proxima-n-w01-reg", "Helvetica Neue", Arial, sans-serif;
  --font-roman: "helvetica-w01-roman", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(255, 23, 23, 0.12), transparent 28rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 44%, rgba(0, 0, 0, 0.42)),
    url("../img/hero-background.jpg");
  background-position: 0 0, center, center, center var(--header);
  background-size: 100% 4px, cover, cover, cover;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--text);
  font-size: 1.3rem;
}

body.menu-open {
  overflow: hidden;
}

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

a:hover,
a:focus-visible {
  color: var(--red);
}

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

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(3, 3, 3, 0.91);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(var(--max), calc(100% - 2rem));
  min-height: var(--header);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.78rem);
  min-width: 0;
}

.brand img {
  width: min(190px, 42vw);
  height: auto;
}

.brand-mark {
  display: inline-block;
  min-width: 0;
  color: #f8f4ee;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  line-height: 0.76;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 rgba(255, 23, 23, 0.76), 2px 2px 0 rgba(0, 0, 0, 0.95);
  transform: translateY(0.06em);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.55rem, 1.4vw, 1.35rem);
}

.site-nav a {
  color: #ddd9d4;
  font-family: var(--font-roman);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--red);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, calc(100svh - 96px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.56) 44%, rgba(0, 0, 0, 0.32) 100%);
  filter: saturate(1.2) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 100% 5px,
    linear-gradient(115deg, rgba(98, 216, 232, 0.14), transparent 34%, rgba(255, 23, 23, 0.15));
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(270px, 0.48fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.2rem, 8vw, 6rem) 0;
}

.page-home .hero {
  align-items: start;
}

.page-home .hero-inner {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.68fr);
  row-gap: clamp(1rem, 2vw, 1.55rem);
  padding-top: clamp(1.1rem, 2.6vw, 2.2rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero-heading-lockup {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  justify-self: center;
  width: min(calc(100vw - 2rem), 1560px);
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-family: var(--font-roman);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-home .eyebrow {
  width: 100%;
  margin-bottom: 0.55rem;
  font-size: clamp(1rem, 1.9vw, 1.5rem);
  text-align: center;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.article h2,
.article h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: 0.86;
  text-shadow: -4px -4px 0 rgba(255, 23, 23, 0.65), 3px 3px 0 #000;
}

.hero-title-lockup {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.55rem, 1.5vw, 1rem);
  width: 100%;
  max-width: none;
  white-space: nowrap;
  text-shadow: none;
}

.hero h1.hero-title-lockup {
  margin: -1.05rem 0 0;
}

.hero-title-logo {
  flex: 0 0 auto;
  width: clamp(380px, 46vw, 605px);
  min-width: 0;
  height: auto;
  margin-bottom: 0;
  filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.72));
}

.hero-title-number {
  flex: 0 0 auto;
  color: #f8f4ee;
  font-family: var(--font-display);
  font-size: clamp(4.55rem, 8.4vw, 6.7rem);
  line-height: 0.76;
  text-shadow: 5px 5px 0 rgba(255, 23, 23, 0.72), 9px 9px 0 rgba(0, 0, 0, 0.92);
  transform: translateY(clamp(-1.3rem, -1.55vw, -0.55rem));
}

.hero-lead {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: #efecea;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-roman);
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.button {
  padding: 0.82rem 1rem;
  background: var(--red);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  background: #fff;
  color: #000;
}

.button.secondary {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 2.1rem;
}

.metric {
  min-height: 104px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(9, 9, 10, 0.68);
}

.metric strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.45vw, 2.1rem);
  line-height: 0.95;
}

.metric span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-visual {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.home-product-photo {
  width: clamp(387px, 27vw, 504px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.72));
  transform: translateY(3.2rem);
}

.product-placeholder,
.asset-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 23, 23, 0.18), transparent 36%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 10px),
    rgba(0, 0, 0, 0.46);
  color: #fff;
  text-align: center;
}

.product-placeholder::before,
.asset-placeholder::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 23, 23, 0.38);
  pointer-events: none;
}

.placeholder-content {
  position: relative;
  z-index: 1;
  max-width: 280px;
}

.placeholder-content strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.05;
}

.placeholder-content span {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-note {
  color: var(--muted);
  font-size: 0.97rem;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section.tight {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.section.compact-section {
  padding: clamp(1.5rem, 3.6vw, 2.6rem) 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.5fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.section-heading h2.compact-heading {
  font-size: clamp(1rem, 2.5vw, 2rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.intro-copy {
  max-width: 900px;
  margin: 0;
  color: #efecea;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 23, 23, 0.08), transparent 35%),
    rgba(255, 255, 255, 0.02);
}

.feature-grid,
.spec-grid,
.placeholder-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature,
.spec-panel,
.faq-item,
.legacy-panel {
  min-height: 156px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.feature .index,
.spec-panel .index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}

.feature h3,
.spec-panel h3,
.faq-item h3,
.legacy-panel h3 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-family: var(--font-roman);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature p,
.spec-panel p,
.faq-item p,
.legacy-panel p {
  margin: 0;
  color: var(--muted);
}

.article .feature-grid,
.section .feature-grid {
  margin-top: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.faq-list div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-list div:first-child {
  padding-top: 0;
}

.faq-list dt {
  margin: 0;
  color: #fff;
  font-family: var(--font-roman);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.faq-list dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.faq-section-title {
  margin-top: 2.4rem;
}

.faq-alt-link {
  margin-top: 1.4rem;
}

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

.staff-card {
  min-height: 172px;
}

.staff-card h3 {
  color: var(--red);
  font-size: 1.45rem;
  letter-spacing: 0;
  text-transform: none;
}

.staff-card .text-link {
  margin-top: 0.85rem;
  font-size: 0.78rem;
}

.staff-thanks {
  margin-top: 2.2rem;
}

.staff-thanks h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.thanks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thanks-list li,
.thanks-list a {
  color: #efecea;
}

.thanks-list li {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.62);
}

.retroonyx-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 23, 23, 0.08), transparent 45%),
    rgba(7, 7, 8, 0.72);
}

.retroonyx-logo-link {
  display: grid;
  place-items: center;
  min-height: 138px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.42);
}

.retroonyx-logo-link img {
  width: min(100%, 445px);
  height: auto;
  filter: brightness(1.55) contrast(1.08);
}

.retroonyx-panel h2,
.legal-note h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1;
}

.retroonyx-panel p {
  max-width: 680px;
  color: #efecea;
}

.retroonyx-panel .button {
  margin-top: 0.6rem;
}

.legal-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-note p {
  max-width: 960px;
}

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

.firmware-steps .feature {
  min-height: 148px;
}

.update-targets {
  margin-bottom: 1.8rem;
}

.update-note {
  margin: 1.2rem 0 1.8rem;
}

.folder-grid {
  gap: 0.75rem;
}

.folder-grid .spec-panel {
  min-height: 96px;
  padding: 0.58rem 0.78rem 0.68rem;
}

.folder-grid .spec-panel h3 {
  margin-bottom: 0.28rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.62rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.folder-grid .spec-panel p {
  line-height: 1.32;
}

.article .folder-copy-note {
  margin-top: 1.35rem;
}

.detail-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.detail-list li::marker {
  color: var(--red);
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.78);
}

.compare-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.compare-table th {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.page-specs .compare-table th {
  font-size: 1.18rem;
}

.compare-table td:first-child {
  width: 26%;
  color: var(--cyan);
  font-family: var(--font-roman);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table td:nth-child(3) {
  color: #fff;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.speed-table-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0.75rem auto 0;
}

.article .speed-table-title {
  width: min(100%, 760px);
  margin: 3.15rem auto 0.75rem;
}

.speed-table {
  min-width: 0;
  table-layout: fixed;
}

.speed-table th,
.speed-table td {
  padding: 0.58rem 0.78rem;
  font-size: 1.08rem;
  text-align: center;
}

.speed-table th {
  font-size: 1.16rem;
}

.speed-table th:first-child,
.speed-table td:first-child {
  width: 42%;
  text-align: left;
}

.speed-table td:not(:first-child) {
  color: #fff;
  font-family: var(--font-roman);
}

.command-table {
  table-layout: fixed;
}

.command-table th:first-child,
.command-table td:first-child {
  width: 13%;
}

.command-table th:nth-child(2),
.command-table td:nth-child(2) {
  width: 27%;
  white-space: nowrap;
}

.command-table th:nth-child(3),
.command-table td:nth-child(3) {
  width: 60%;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.64));
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 5px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.45rem, 4vw, 3rem) 0;
}

.page-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.85rem);
  line-height: 0.88;
  text-shadow: -3px -3px 0 rgba(255, 23, 23, 0.58), 2px 2px 0 #000;
}

.page-compare .page-hero h1 {
  max-width: none;
  font-size: clamp(1.52rem, 4.2vw, 3.35rem);
  white-space: nowrap;
}

.page-hero p {
  max-width: 780px;
  margin: 1rem 0 0;
  color: #ded9d4;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.text-link {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--cyan);
}

.article {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.article.wide {
  width: min(var(--max), calc(100% - 2rem));
}

.article h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.article h3 {
  margin: 2rem 0 0.55rem;
  color: #fff;
  font-size: 1.35rem;
}

.article p,
.article li {
  color: var(--muted);
}

.article p {
  margin: 0 0 1rem;
}

.article ul,
.article ol {
  margin: 0 0 1.4rem;
  padding-left: 1.25rem;
}

.article li {
  margin-bottom: 0.45rem;
}

.callout {
  padding: 1rem;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.diagram-frame {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.specs-diagram {
  margin-top: 2rem;
}

.diagram-frame img {
  width: 100%;
  height: auto;
  background: #fff;
}

.diagram-frame.specs-diagram img {
  width: 75%;
  margin: 0 auto;
  background: transparent;
}

.diagram-frame.specs-diagram .board-photo-image {
  width: min(100%, 460px);
  margin: 0 auto 1.4rem;
  background: transparent !important;
}

.sound-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: stretch;
}

.flow-node {
  position: relative;
  min-height: 130px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.62rem;
  width: 0.52rem;
  height: 2px;
  background: var(--red);
}

.flow-node strong {
  display: block;
  color: #fff;
  font-family: var(--font-roman);
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-node span {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1rem;
}

.command-diagram {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: #080809;
}

.command-part {
  min-height: 92px;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.command-part:last-child {
  border-right: 0;
}

.command-part strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.command-part span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.code-sample {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #080809;
  color: #e8e2dc;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1rem;
}

.media-panel {
  margin: 1.4rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.76);
}

.media-panel img {
  width: 100%;
  height: auto;
  background: #020202;
}

.menu-media {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-media img {
  width: min(100%, 752px);
  background: transparent;
}

.menu-media .menu-screen-image {
  width: min(100%, 960px);
}

.menu-media .controller-image {
  width: min(100%, 752px);
}

.media-panel figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.compact-media {
  display: grid;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.compact-media img {
  width: min(100%, 420px);
  background: transparent;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 0;
}

.asset-placeholder {
  min-height: 250px;
}

.legacy-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.legacy-media figure {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.legacy-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.legacy-media figcaption {
  padding: 0.8rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #020202;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0;
  color: #7d7976;
  font-size: 0.98rem;
}

.footer-inner a {
  color: #bbb6b1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    z-index: 40;
    display: grid;
    gap: 0;
    max-height: calc(100vh - var(--header));
    padding: 1rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 3, 3, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.7rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }

  .hero-inner,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    align-self: auto;
  }

  .home-product-photo {
    width: min(100%, 473px);
    transform: translateY(1.2rem);
  }

  .feature-grid,
  .spec-grid,
  .placeholder-grid,
  .faq-grid,
  .spec-list,
  .retroonyx-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sound-flow {
    grid-template-columns: 1fr;
  }

  .flow-node:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -0.44rem;
    left: 1.1rem;
    width: 2px;
    height: 0.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header: 68px;
  }

  .nav-shell {
    width: min(100% - 1rem, var(--max));
  }

  .brand img {
    width: min(150px, 44vw);
  }

  .brand-mark {
    min-width: 0;
    font-size: clamp(1.25rem, 5.8vw, 1.75rem);
  }

  .hero {
    min-height: calc(100svh - 104px);
  }

  .hero-title-lockup {
    gap: 0.45rem;
  }

  .hero h1.hero-title-lockup {
    margin-top: 0;
  }

  .hero-title-logo {
    width: clamp(210px, 66vw, 270px);
    margin-bottom: 0;
  }

  .hero-title-number {
    font-size: clamp(2.8rem, 12vw, 3.5rem);
    transform: translateY(-0.48rem);
  }

  .hero-inner,
  .page-hero-inner,
  .section,
  .article,
  .article.wide,
  .footer-inner {
    width: min(100% - 1rem, var(--max));
  }

  .metrics,
  .feature-grid,
  .spec-grid,
  .placeholder-grid,
  .faq-grid,
  .spec-list,
  .retroonyx-panel,
  .legacy-media,
  .command-diagram {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 88px;
  }

  .product-placeholder {
    min-height: 260px;
  }

  .command-part {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .command-part:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    display: block;
  }
}
