/* ========== RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 15% -5%, rgba(0, 200, 255, 0.06), transparent 65%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(0, 229, 155, 0.05), transparent 60%),
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed, fixed, scroll, scroll;
  min-height: 100vh;
}

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

button, input, select, textarea {
  font: inherit;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--color-green);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

p {
  margin: 0;
}

strong {
  font-weight: 600;
}

small {
  font-size: 0.85em;
}

::selection {
  background: rgba(0, 229, 155, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

summary:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* ========== VARIABLES ========== */
:root {
  --color-bg: #0B0E12;
  --color-panel: #151B22;
  --color-panel-2: #1A212A;
  --color-line: #2A323A;
  --color-grid: rgba(42, 50, 58, 0.14);
  --color-green: #00E59B;
  --color-cyan: #00C8FF;
  --color-silver: #C9D2DA;
  --color-orange: #FF6A3D;
  --color-text: #F2F6F8;
  --color-muted: #98A6AF;
  --font-display: Impact, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: Inter, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Noto Sans SC', monospace;
  --header-h: 68px;
  --container-w: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --cut-small: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  --cut-medium: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

/* ========== TOOLS ========== */
.mono-text {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ========== SKIP LINK & PROGRESS ========== */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 6000;
  padding: 10px 18px;
  background: var(--color-green);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  clip-path: var(--cut-small);
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus-visible {
  top: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 5000;
  pointer-events: none;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-green), var(--color-cyan));
  box-shadow: 0 0 8px rgba(0, 229, 155, 0.45);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(180deg, rgba(11, 14, 18, 0.96), rgba(15, 20, 26, 0.92));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--color-green) 0%,
    var(--color-cyan) 32%,
    rgba(0, 200, 255, 0.15) 72%,
    transparent 100%);
  pointer-events: none;
}

.header-frame {
  position: relative;
  max-width: calc(var(--container-w) + 48px);
  margin: 0 auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.header-brand {
  justify-self: start;
  min-width: 0;
}

.brand-anchor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-green), #00b56f);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  clip-path: var(--cut-small);
  transition: filter 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.brand-anchor:hover .brand-mark {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: nowrap;
}

.brand-en {
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ========== NAV ========== */
.site-nav {
  justify-self: center;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--color-silver);
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.25s var(--ease-out);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-green), var(--color-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 0 8px rgba(0, 229, 155, 0.4);
}

.site-nav a + a::before {
  content: '/';
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(0, 229, 155, 0.35);
}

.site-nav a:hover {
  color: var(--color-text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

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

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ========== HEADER ACTIONS ========== */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 229, 155, 0.25);
  background: rgba(0, 229, 155, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--color-green);
  white-space: nowrap;
}

.signal-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: signal-pulse 1.8s ease-in-out infinite;
}

@keyframes signal-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.bookmark-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid rgba(255, 106, 61, 0.45);
  color: var(--color-silver);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  clip-path: var(--cut-small);
  transition: background 0.25s var(--ease-out), border-color 0.25s, color 0.25s;
}

.bookmark-btn:hover {
  background: rgba(255, 106, 61, 0.08);
  border-color: var(--color-orange);
  color: var(--color-text);
}

.bookmark-btn:active {
  transform: translateY(1px);
}

.bookmark-btn[aria-pressed="true"] {
  background: rgba(255, 106, 61, 0.12);
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.star-icon {
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  color: inherit;
  transition: text-shadow 0.2s;
}

.bookmark-btn[aria-pressed="true"] .star-icon {
  text-shadow: 0 0 10px rgba(255, 106, 61, 0.7);
}

.version-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: rgba(0, 200, 255, 0.07);
  border: 1px solid rgba(0, 200, 255, 0.35);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ========== NAV TOGGLE ========== */
.nav-toggle {
  display: none;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-line);
  padding: 0 10px;
  transition: border-color 0.25s;
}

.nav-toggle:hover {
  border-color: var(--color-green);
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-silver);
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}

.nav-toggle:hover .toggle-bar {
  background: var(--color-green);
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 95% 0%, rgba(0, 200, 255, 0.04), transparent 60%),
    var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan) 30%, var(--color-green) 70%, transparent);
  pointer-events: none;
}

.footer-frame {
  max-width: calc(var(--container-w) + 48px);
  margin: 0 auto;
  padding: 56px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-col--brand {
  padding-right: 16px;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-green), #00b56f);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  clip-path: var(--cut-small);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 340px;
  margin-bottom: 14px;
}

.footer-version {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-cyan);
}

.footer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
}

.footer-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-line), transparent);
}

.footer-head-idx {
  color: var(--color-green);
  font-size: 11px;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-silver);
  transition: color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}

.footer-links a::before {
  content: '›';
  color: var(--color-green);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
}

.footer-links a:hover {
  color: var(--color-green);
  padding-left: 4px;
}

.footer-icp {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-muted);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--color-silver);
  line-height: 1.6;
}

.footer-contact .mono-text {
  font-size: 13px;
  color: var(--color-cyan);
}

.footer-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

/* ========== SECTION UTILITIES ========== */
.section-block {
  padding: 72px 0;
}

.section-block--tight {
  padding: 40px 0;
}

.section-block--loose {
  padding: 96px 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-green);
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--color-green), transparent);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--color-cyan), transparent);
  opacity: 0.4;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 10px 0 0;
}

.section-heading--lg {
  font-size: 48px;
}

.v-annotation {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.4;
  max-height: 100%;
}

/* ========== BENTO GRID ========== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-cell {
  position: relative;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  padding: 24px;
  min-height: 0;
  clip-path: var(--cut-medium);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.bento-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(0, 229, 155, 0.08) 50%, transparent 70%);
  transform: translateX(-101%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}

.bento-cell:hover {
  background: var(--color-panel-2);
  border-color: rgba(0, 229, 155, 0.3);
}

.bento-cell:hover::after {
  transform: translateX(0);
}

.b-span-3 { grid-column: span 3; }
.b-span-4 { grid-column: span 4; }
.b-span-5 { grid-column: span 5; }
.b-span-6 { grid-column: span 6; }
.b-span-7 { grid-column: span 7; }
.b-span-8 { grid-column: span 8; }
.b-span-12 { grid-column: span 12; }

.panel {
  position: relative;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  padding: 24px;
  clip-path: var(--cut-medium);
}

.corner-frame {
  position: relative;
}

.corner-frame::before,
.corner-frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.corner-frame::before {
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--color-green);
  border-left: 2px solid var(--color-green);
}

.corner-frame::after {
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-bottom: 2px solid var(--color-cyan);
  border-right: 2px solid var(--color-cyan);
}

/* ========== BUTTONS ========== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--color-panel);
  color: var(--color-text);
  border: 1px solid var(--color-line);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  clip-path: var(--cut-small);
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s, transform 0.2s var(--ease-out);
}

.btn:hover {
  border-color: var(--color-green);
  background: rgba(0, 229, 155, 0.06);
  color: var(--color-text);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-green);
  color: var(--color-bg);
  border-color: var(--color-green);
  font-weight: 600;
}

.btn-primary:hover {
  background: #00f4a8;
  color: var(--color-bg);
  border-color: #00f4a8;
}

.btn-ghost {
  background: transparent;
  color: var(--color-cyan);
  border-color: rgba(0, 200, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(0, 200, 255, 0.07);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--color-green);
  font-family: var(--font-mono);
  font-size: 11px;
}

.breadcrumb a {
  color: var(--color-silver);
}

.breadcrumb a:hover {
  color: var(--color-cyan);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
}

/* ========== IMAGE FRAMES ========== */
.img-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(0, 200, 255, 0.04) 20%, transparent 40%, rgba(0, 229, 155, 0.05) 80%),
    var(--color-panel);
  border: 1px solid var(--color-line);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  clip-path: var(--cut-medium);
}

.img-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 40%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(201, 210, 218, 0.14) 40%, rgba(0, 229, 155, 0.22) 50%, transparent 70%);
  transform: skewX(-18deg) translateX(-40%);
  transition: transform 0.7s var(--ease-out);
  z-index: 1;
  pointer-events: none;
}

.img-frame:hover::before {
  transform: skewX(-18deg) translateX(320%);
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
}

.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--portrait { aspect-ratio: 3 / 4; }

/* ========== STATUS INDICATORS ========== */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-muted);
}

.status-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-indicator--live {
  color: var(--color-green);
}

.status-indicator--live::before {
  box-shadow: 0 0 6px currentColor;
  animation: signal-pulse 2s ease-in-out infinite;
}

.status-indicator--warn {
  color: var(--color-orange);
}

/* ========== DATA TABLE ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--color-line);
  color: var(--color-muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
  line-height: 1.5;
}

.data-table tr:hover td {
  background: rgba(0, 229, 155, 0.03);
}

/* ========== ACCORDION ========== */
details.accordion {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  margin-bottom: 8px;
  position: relative;
  transition: border-color 0.25s var(--ease-out);
}

details.accordion[open] {
  border-color: rgba(0, 229, 155, 0.3);
}

details.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.accordion summary::-webkit-details-marker {
  display: none;
}

details.accordion summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--color-green);
  transition: transform 0.25s var(--ease-out);
}

details.accordion[open] summary::after {
  transform: rotate(45deg);
}

details.accordion .accordion-body {
  padding: 0 18px 16px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== REVEAL ========== */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js-reveal [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  :root {
    --header-h: 62px;
  }

  .header-frame {
    grid-template-columns: 1fr auto;
    display: flex;
    justify-content: space-between;
  }

  .js-nav .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 14, 18, 0.98);
    border-bottom: 2px solid var(--color-green);
    padding: 12px 24px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
  }

  .js-nav .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(42, 50, 58, 0.9);
    font-size: 15px;
    white-space: normal;
  }

  .site-nav a::before {
    content: '/';
    font-family: var(--font-mono);
    color: var(--color-green);
    font-size: 13px;
  }

  .site-nav a + a::before {
    content: '/';
  }

  .site-nav a::after {
    display: none;
  }

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

  .nav-toggle {
    display: flex;
  }

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

  .bento-grid {
    gap: 12px;
  }

  .bento-cell {
    padding: 20px;
  }

  @media (min-width: 769px) and (max-width: 1024px) {
    .b-span-3,
    .b-span-4 {
      grid-column: span 6;
    }

    .b-span-5,
    .b-span-6,
    .b-span-7,
    .b-span-8 {
      grid-column: span 8;
    }
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }

  .header-frame {
    gap: 10px;
    padding: 0 16px;
  }

  .signal-badge {
    display: none;
  }

  .bookmark-label {
    display: none;
  }

  .bookmark-btn {
    padding: 7px 9px;
  }

  .version-tag {
    font-size: 11px;
    padding: 3px 6px;
  }

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

  .footer-col--brand {
    padding-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 32px;
    padding-top: 16px;
  }

  .section-block {
    padding: 48px 0;
  }

  .section-block--loose {
    padding: 64px 0;
  }

  .section-heading {
    font-size: 28px;
  }

  .section-heading--lg {
    font-size: 36px;
  }

  .bento-grid {
    gap: 10px;
  }

  .bento-cell {
    padding: 16px;
  }

  .b-span-3,
  .b-span-4,
  .b-span-5,
  .b-span-6,
  .b-span-7,
  .b-span-8,
  .b-span-12 {
    grid-column: span 12;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

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

  .signal-dot,
  .status-indicator--live::before {
    animation: none !important;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
