:root {
  --night: #1B0F2B;
  --night-deep: #120A1E;
  --paper: #F7E9C9;
  --red: #FF3B4E;
  --lime: #B6FF3B;
  --amber: #FFB020;
  --blue: #36C8FF;
  --ink: #2A1710;
  --muted: #6B5A4A;
  --scan: #3A2352;
  --line: rgba(247, 233, 201, 0.16);
  --line-strong: rgba(247, 233, 201, 0.34);
  --font-display: "站酷快乐体", "ZCOOL KuaiLe", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 122px;
}

body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 700px at 12% -10%, rgba(255, 59, 78, 0.18), transparent 60%),
    radial-gradient(900px 600px at 92% 8%, rgba(54, 200, 255, 0.14), transparent 62%),
    repeating-linear-gradient(0deg, rgba(58, 35, 82, 0.32) 0 1px, transparent 1px 4px);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
picture,
video {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.45rem);
  line-height: 1.2;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--red);
  color: var(--paper);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.76em;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.visually-hidden {
  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: 999;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(40px, 7vw, 84px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #1B0F2B;
  box-shadow: 0 5px 0 -1px #7C1020, 0 0 24px -6px rgba(255, 59, 78, 0.75);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: #FF5566;
  border-color: #FF5566;
  box-shadow: 0 7px 0 -1px #7C1020, 0 0 30px -4px rgba(255, 59, 78, 0.9);
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 -1px #7C1020;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(54, 200, 255, 0.55);
  color: var(--paper);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(54, 200, 255, 0.12);
  border-color: var(--blue);
  color: #FFFFFF;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(27, 15, 43, 0.45);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--red {
  background: var(--red);
  border-color: rgba(42, 23, 16, 0.35);
  color: #2A1710;
}

.tag--lime {
  background: var(--lime);
  border-color: rgba(42, 23, 16, 0.35);
  color: #2A1710;
}

.tag--amber {
  background: var(--amber);
  border-color: rgba(42, 23, 16, 0.35);
  color: #2A1710;
}

.tag--blue {
  background: var(--blue);
  border-color: rgba(27, 15, 43, 0.35);
  color: #1B0F2B;
}

.status-dot {
  display: inline-block;
  inline-size: 8px;
  block-size: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 0 10px rgba(247, 233, 201, 0.45);
}

.status-dot--lime {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(182, 255, 59, 0.7);
}

.status-dot--amber {
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 176, 32, 0.7);
}

.status-dot--red {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 59, 78, 0.7);
}

.paper-card {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(42, 23, 16, 0.07) 0.7px, transparent 0.8px);
  background-size: 5px 5px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  box-shadow:
    0 16px 0 -9px rgba(0, 0, 0, 0.45),
    0 26px 46px -30px rgba(0, 0, 0, 0.9);
}

.paper-card a {
  color: #8A1B2A;
}

.arcade-frame {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(58, 35, 82, 0.68), rgba(18, 10, 30, 0.92));
}

.arcade-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(247, 233, 201, 0.06) 0 1px, transparent 1px 5px);
  opacity: 0.5;
}

.arcade-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(16px, 2vw, 24px);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.arcade-frame__dot {
  inline-size: 9px;
  block-size: 9px;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 59, 78, 0.6);
}

.arcade-frame__dot:nth-child(2) {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 176, 32, 0.6);
}

.arcade-frame__dot:nth-child(3) {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(182, 255, 59, 0.6);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--frame-ratio, 16 / 10);
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--scan), var(--night-deep));
}

.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(18, 10, 30, 0.18) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

.media-frame--wide {
  --frame-ratio: 21 / 9;
}

.media-frame--tall {
  --frame-ratio: 4 / 5;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(247, 233, 201, 0.7);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--amber);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 233, 201, 0.3);
}

.breadcrumbs a:hover {
  color: var(--paper);
  border-color: var(--blue);
}

.toc-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-rail__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  color: rgba(247, 233, 201, 0.62);
  font-size: 0.85rem;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.toc-rail__link:hover {
  color: var(--paper);
  background: rgba(247, 233, 201, 0.06);
}

.toc-rail__link[data-active="true"],
.toc-rail__link[aria-current="true"] {
  color: var(--lime);
  border-left-color: var(--lime);
  background: rgba(182, 255, 59, 0.08);
}

.toc-rail__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--amber);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(18, 10, 30, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.site-header[data-condensed="true"] {
  background: rgba(18, 10, 30, 0.97);
  box-shadow: 0 18px 38px -28px rgba(0, 0, 0, 0.95);
}

.site-header[data-open="true"] {
  background: rgba(18, 10, 30, 0.99);
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(247, 233, 201, 0.045) 0 1px, transparent 1px 4px);
  opacity: 0.6;
}

.command-bar {
  position: relative;
  z-index: 1;
}

.command-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: 1280px;
  min-height: 64px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  display: block;
  inline-size: 34px;
  block-size: 34px;
  flex: none;
  border: 2px solid rgba(247, 233, 201, 0.22);
  border-radius: 10px;
  background-color: var(--night-deep);
  background-image:
    linear-gradient(var(--lime), var(--lime)),
    linear-gradient(var(--red), var(--red)),
    linear-gradient(var(--amber), var(--amber)),
    linear-gradient(rgba(54, 200, 255, 0.7), rgba(54, 200, 255, 0.7));
  background-repeat: no-repeat;
  background-size: 8px 8px, 16px 16px, 5px 5px, 4px 4px;
  background-position: 18px 4px, 8px 12px, 11px 15px, 11px 8px;
  box-shadow:
    0 0 18px rgba(255, 59, 78, 0.45),
    inset 0 0 0 1px rgba(27, 15, 43, 0.6);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.brand-lockup:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow:
    0 0 26px rgba(255, 59, 78, 0.72),
    inset 0 0 0 1px rgba(27, 15, 43, 0.6);
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-shadow: 0 0 16px rgba(255, 59, 78, 0.4);
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.index-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.index-nav__label {
  display: none;
  color: rgba(247, 233, 201, 0.5);
  white-space: nowrap;
}

.index-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(247, 233, 201, 0.7);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(247, 233, 201, 0.07);
}

.nav-num {
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--amber);
  opacity: 0.82;
}

.nav-dot {
  display: inline-block;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0;
  transition:
    opacity 0.16s var(--ease),
    inline-size 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.nav-link:hover .nav-dot {
  opacity: 0.7;
}

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(182, 255, 59, 0.07);
}

.nav-link[aria-current="page"] .nav-num {
  color: var(--lime);
  opacity: 1;
}

.nav-link[aria-current="page"] .nav-dot {
  inline-size: 14px;
  background: var(--lime);
  opacity: 1;
  box-shadow: 0 0 10px rgba(182, 255, 59, 0.75);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--blue);
  background: rgba(54, 200, 255, 0.1);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle__text {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.command-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1280px;
  min-height: 30px;
  margin-inline: auto;
  padding: 4px var(--gutter) 7px;
  border-top: 1px solid rgba(247, 233, 201, 0.09);
}

.command-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(247, 233, 201, 0.66);
}

.command-count {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(247, 233, 201, 0.4);
  white-space: nowrap;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  height: 3px;
  background: rgba(247, 233, 201, 0.08);
}

.reading-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--read-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red), var(--amber) 48%, var(--lime) 78%, var(--blue));
  box-shadow: 0 0 14px rgba(255, 176, 32, 0.5);
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(44px, 7vw, 76px);
  background: var(--night-deep);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--amber) 42%, var(--lime) 72%, var(--blue));
  opacity: 0.9;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 240px at 8% 0%, rgba(255, 59, 78, 0.18), transparent 70%),
    radial-gradient(520px 220px at 92% 8%, rgba(54, 200, 255, 0.14), transparent 70%),
    repeating-linear-gradient(0deg, rgba(58, 35, 82, 0.22) 0 1px, transparent 1px 4px);
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1.25fr;
  gap: clamp(24px, 4vw, 52px);
  padding-bottom: clamp(32px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--lime);
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  text-shadow: 0 0 28px rgba(255, 59, 78, 0.35);
  transition: color 0.18s var(--ease), text-shadow 0.18s var(--ease);
}

.footer-logo:hover {
  color: var(--lime);
  text-shadow: 0 0 30px rgba(182, 255, 59, 0.45);
}

.footer-line {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amber);
}

.footer-note {
  max-width: 38ch;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(247, 233, 201, 0.52);
}

.footer-col__title,
.footer-contact__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  color: rgba(247, 233, 201, 0.74);
  font-size: 0.88rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-link:hover {
  color: var(--paper);
  border-bottom-color: var(--blue);
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.82rem;
}

.contact-label {
  padding-top: 2px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: rgba(247, 233, 201, 0.45);
}

.contact-value {
  color: rgba(247, 233, 201, 0.86);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
  font-size: 0.74rem;
  color: rgba(247, 233, 201, 0.48);
}

.footer-copy {
  line-height: 1.6;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(247, 233, 201, 0.46);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-legal-links .footer-link {
  font-size: 0.74rem;
  color: rgba(247, 233, 201, 0.58);
}

.footer-legal-links .footer-link:hover {
  color: var(--paper);
}

@media (max-width: 1180px) {
  .nav-num {
    display: none;
  }

  .nav-link {
    padding-inline: 9px;
  }

  .command-count {
    display: none;
  }

  .command-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 96px;
  }

  .command-bar__inner {
    min-height: 60px;
  }

  .index-nav {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: min(72vh, 540px);
    overflow: auto;
    padding: 18px;
    background: var(--night-deep);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: 0 30px 64px -26px rgba(0, 0, 0, 0.96);
  }

  .site-header[data-open="true"] .index-nav {
    display: flex;
  }

  .index-nav__label {
    display: block;
    font-size: 0.68rem;
  }

  .index-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .index-nav__item {
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 11px 10px;
    font-size: 1rem;
  }

  .nav-num {
    display: inline;
    font-size: 10px;
  }

  .nav-dot {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn--ghost {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .command-strip {
    display: none;
  }

  .brand-line {
    display: none;
  }

  .command-bar__inner {
    min-height: 58px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn--primary {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .nav-toggle__text {
    display: none;
  }

  .nav-toggle {
    padding: 9px;
  }

  .footer-top {
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .command-note {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .brand-name {
    font-size: 1.06rem;
  }

  .brand-mark {
    inline-size: 30px;
    block-size: 30px;
    background-size: 7px 7px, 14px 14px, 4px 4px, 4px 4px;
    background-position: 16px 3px, 7px 10px, 9px 13px, 9px 7px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .contact-item {
    grid-template-columns: 48px 1fr;
  }
}

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

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

  .scanlines {
    opacity: 0.35;
  }
}
