:root {
  --ink: #07111F;
  --night: #0D1B2E;
  --rock: #26384A;
  --mist: #8FA3B8;
  --paper: #F3F7F4;
  --mint: #32F5C8;
  --orange: #FF7A2F;
  --violet: #8B2CFF;
  --magenta: #D33CFF;
  --alert: #FF4D6D;
  --moss: #2E6B57;
  --clay: #C46A4A;
  --line: rgba(143, 163, 184, 0.2);
  --line-strong: rgba(143, 163, 184, 0.34);
  --glass: rgba(13, 27, 46, 0.68);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --header-h: 84px;
  --shell: 1320px;
  --gutter: clamp(18px, 3.2vw, 48px);
  --font-display: "HarmonyOS Sans SC Condensed", "Alibaba PuHuiTi", "Noto Sans SC Condensed", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 84% 8%, rgba(139, 44, 255, 0.2), transparent 26rem),
    radial-gradient(circle at 76% 46%, rgba(211, 60, 255, 0.1), transparent 22rem),
    radial-gradient(circle at 12% 92%, rgba(50, 245, 200, 0.06), transparent 24rem),
    radial-gradient(rgba(243, 247, 244, 0.045) 0.6px, transparent 0.8px);
  background-size: auto, auto, auto, 7px 7px;
  background-attachment: fixed;
  overflow-x: hidden;
}

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

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

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

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

address {
  font-style: normal;
}

h1,
h2,
h3,
h4 {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

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

.page-main {
  min-height: 60vh;
  position: relative;
}

.shell {
  width: min(100% - (2 * var(--gutter)), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(56px, 9vw, 128px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.section-head > * {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--mint));
}

.display-title {
  max-width: 12ch;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.lede {
  max-width: 68ch;
  color: var(--mist);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.9;
}

.annotation {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.data-number,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.data-number {
  color: var(--mint);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--orange), #ff9b5e);
  color: #1a100a;
  box-shadow: 0 12px 30px rgba(255, 122, 47, 0.2);
}

.button-primary:focus-visible {
  outline-color: var(--paper);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(243, 247, 244, 0.02);
  color: var(--paper);
}

.button-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.58) 58%, rgba(7, 17, 31, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, backdrop-filter 0.24s ease;
}

.site-header[data-scrolled] {
  background: rgba(13, 27, 46, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header[data-open] {
  background: rgba(13, 27, 46, 0.98);
  border-bottom-color: var(--line);
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  width: min(100% - (2 * var(--gutter)), var(--shell));
  min-height: var(--header-h);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--paper);
}

.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--mint), var(--orange) 34%, var(--violet) 60%, var(--ink) 82%);
  box-shadow: 0 0 0 1px rgba(50, 245, 200, 0.22), 0 0 24px rgba(50, 245, 200, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(243, 247, 244, 0.15);
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  transform: translateX(-50%) rotate(28deg);
  transform-origin: 50% 14px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-name {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-sub {
  margin-top: 0.36rem;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.33em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(13, 27, 46, 0.55);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.nav-toggle-label {
  line-height: 1;
}

.nav-toggle-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-toggle-icon span:first-child {
  top: 2px;
}

.nav-toggle-icon span:last-child {
  bottom: 2px;
}

.site-header[data-open] .nav-toggle {
  border-color: var(--mint);
  color: var(--mint);
}

.site-header[data-open] .nav-toggle-icon span:first-child {
  top: 5px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle-icon span:last-child {
  bottom: 5px;
  transform: rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 26px);
  min-width: 0;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 22px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.2rem;
  color: var(--mist);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  bottom: 0;
  left: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  color: var(--paper);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
}

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

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(7, 17, 31, 0.42);
  color: var(--mist);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(50, 245, 200, 0.08), 0 0 14px rgba(50, 245, 200, 0.55);
  animation: status-pulse 2.8s ease-in-out infinite;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

.nav-cta {
  min-height: 40px;
  padding: 0.58rem 0.88rem;
  font-size: 0.78rem;
  box-shadow: 0 8px 24px rgba(255, 122, 47, 0.16);
}

.header-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--orange), var(--magenta));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
  will-change: transform;
}

.data-rail {
  display: none;
}

.rail-label,
.rail-key,
.rail-value {
  font-family: var(--font-mono);
}

.rail-label {
  color: var(--mist);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.rail-item {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.rail-key {
  color: var(--mist);
  font-size: 0.55rem;
}

.rail-value {
  color: var(--paper);
  font-size: 0.62rem;
  font-weight: 600;
}

.rail-value-mint {
  color: var(--mint);
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 0%, rgba(139, 44, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--night), var(--ink));
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--mint), transparent);
  opacity: 0.7;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 44, 255, 0.16), transparent 65%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: min(100% - (2 * var(--gutter)), var(--shell));
  margin-inline: auto;
  padding: clamp(48px, 7vw, 92px) 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1.1fr;
  gap: clamp(24px, 4vw, 64px);
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-brand .brand {
  margin-bottom: 2px;
}

.footer-summary {
  max-width: 34ch;
  color: var(--mist);
  font-size: 0.9rem;
  line-height: 1.85;
}

.footer-service {
  max-width: 34ch;
  color: var(--rock);
  color: #7f93a8;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer-nav,
.footer-nav-legal {
  align-self: start;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-heading::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--orange);
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.footer-link {
  display: inline-block;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.5;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-contact {
  align-self: start;
}

.footer-address {
  display: grid;
  gap: 0.6rem;
}

.footer-line {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.65;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(34px, 5vw, 68px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
}

.footer-copy,
.footer-icp,
.footer-note {
  margin: 0;
}

.footer-icp {
  color: var(--paper);
}

.footer-note {
  color: #7f93a8;
}

.breadcrumbs {
  padding-block: 18px 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: var(--rock);
}

.breadcrumb-link {
  color: var(--mist);
  transition: color 0.18s ease;
}

.breadcrumb-link:hover {
  color: var(--mint);
}

.prose {
  max-width: 72ch;
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.95;
}

.prose h2 {
  margin: 2.2rem 0 0.8rem;
  color: var(--paper);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.prose h3 {
  margin: 1.8rem 0 0.6rem;
  color: var(--paper);
  font-size: 1.25rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

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

.prose a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prose :last-child {
  margin-bottom: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
}

.bento-card {
  position: relative;
  grid-column: span 4;
  min-width: 0;
  min-height: 180px;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(13, 27, 46, 0.94), rgba(7, 17, 31, 0.78));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(50, 245, 200, 0.36), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bento-card:focus-within {
  border-color: rgba(50, 245, 200, 0.34);
}

.bento-card-wide {
  grid-column: span 8;
}

.bento-card-tall {
  grid-row: span 2;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 122, 47, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(255, 122, 47, 0.08);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(50, 245, 200, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(50, 245, 200, 0.1);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13, 27, 46, 0.5);
}

.stat-cell {
  flex: 1 1 140px;
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
  border-right: 1px solid var(--line);
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-cell strong {
  display: block;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--night), var(--ink));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 17, 31, 0.55));
}

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

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

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
  transition: transform 0.5s ease;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block: 1.2rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(13, 27, 46, 0.52);
  color: var(--mist);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--paper);
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(50, 245, 200, 0.18);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13, 27, 46, 0.5);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  text-align: left;
  vertical-align: top;
}

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

.data-table tbody tr:hover {
  background: rgba(50, 245, 200, 0.04);
}

.notice {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 122, 47, 0.08);
  color: var(--paper);
}

.form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.field-label {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.field-control {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.7);
  color: var(--paper);
  font: inherit;
  line-height: 1.5;
}

.field-control:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.field-control[aria-invalid="true"] {
  border-color: var(--alert);
}

.field-error {
  color: var(--alert);
  font-size: 0.75rem;
  line-height: 1.4;
}

.form-status {
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-status[data-state="success"] {
  border-color: rgba(50, 245, 200, 0.4);
  background: rgba(50, 245, 200, 0.08);
  color: var(--mint);
}

.form-status[data-state="error"] {
  border-color: rgba(255, 77, 109, 0.4);
  background: rgba(255, 77, 109, 0.08);
  color: var(--alert);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.is-visible {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .brand:hover .brand-mark {
    transform: rotate(12deg);
    box-shadow: 0 0 0 1px rgba(50, 245, 200, 0.32), 0 0 30px rgba(50, 245, 200, 0.2);
  }

  .nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 122, 47, 0.28);
  }

  .bento-card:hover {
    border-color: rgba(50, 245, 200, 0.34);
    background: linear-gradient(145deg, rgba(15, 32, 54, 0.98), rgba(7, 17, 31, 0.82));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.26);
    transform: translateY(-4px);
  }

  .bento-card:hover::before {
    opacity: 1;
  }

  .media-frame:hover .media-image {
    transform: scale(1.035);
  }

  .footer-link:hover {
    color: var(--mint);
    transform: translateX(3px);
  }
}

@media (min-width: 1500px) {
  .data-rail {
    position: fixed;
    top: 50%;
    right: 14px;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 54px;
    padding: 14px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(13, 27, 46, 0.72);
    box-shadow: var(--shadow);
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

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

  .nav-list {
    gap: 0.7rem;
  }

  .primary-nav {
    gap: 12px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 72px;
  }

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

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
    overflow: auto;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: rgba(13, 27, 46, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header[data-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: rgba(255, 122, 47, 0.5);
    color: var(--mint);
  }

  .primary-nav .nav-status {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    min-height: 48px;
  }

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

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

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

@media (max-width: 720px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .display-title {
    max-width: 100%;
  }

  .annotation {
    writing-mode: horizontal-tb;
  }

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

  .bento-card,
  .bento-card-wide {
    grid-column: span 12;
  }

  .bento-card-tall {
    grid-row: auto;
  }

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

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

@media (max-width: 520px) {
  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
  }

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

  .brand-sub {
    font-size: 0.5rem;
    letter-spacing: 0.26em;
  }

  .nav-toggle {
    padding: 9px 10px;
  }

  .stat-cell {
    flex-basis: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-cell:last-child {
    border-bottom: 0;
  }
}

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

  .status-dot {
    animation: none;
  }

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

  .bento-card:hover,
  .media-frame:hover .media-image,
  .button-primary:hover,
  .brand:hover .brand-mark {
    transform: none;
  }
}
