:root {
  --ink-0: #07090C;
  --ink-1: #0E1318;
  --panel: #151B22;
  --text: #E8F6FA;
  --muted: #8FA3AD;
  --cyan: #00E5FF;
  --amber: #FFB13D;
  --violet: #A76BFF;
  --edge: #1F6F7A;
  --coral: #FF6B57;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 88px;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% -8%, rgba(0, 229, 255, 0.12), transparent 34%),
    radial-gradient(circle at 0 42%, rgba(167, 107, 255, 0.08), transparent 30%),
    var(--ink-0);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: 0;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #021014;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

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

.section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 72px);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.section-note {
  color: var(--muted);
  font-size: 15px;
  max-width: 48ch;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text);
}

.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 62ch;
}

.section-index {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 229, 255, 0.6);
  letter-spacing: -0.04em;
}

.data-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
  border: 1px solid rgba(31, 111, 122, 0.55);
  color: var(--text);
  background: rgba(21, 27, 34, 0.7);
}

.tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
}

.grid-editorial {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.col-main {
  grid-column: span 8;
}

.col-aside {
  grid-column: span 4;
}

.col-wide {
  grid-column: 1 / -1;
}

.col-narrow {
  grid-column: span 3;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(31, 111, 122, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}

.panel-soft {
  background: var(--ink-1);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--cyan);
  color: #021014;
  border: 1px solid var(--cyan);
}

.btn-primary:hover {
  color: #021014;
  background: #6df1ff;
  border-color: #6df1ff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(31, 111, 122, 0.7);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--violet);
  background: rgba(167, 107, 255, 0.14);
}

.btn-amber {
  background: rgba(255, 177, 61, 0.12);
  color: var(--amber);
  border: 1px solid rgba(255, 177, 61, 0.5);
}

.btn-amber:hover {
  color: var(--amber);
  background: rgba(255, 177, 61, 0.2);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

.breadcrumbs .sep {
  color: var(--edge);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink-1), var(--panel));
  border: 1px solid rgba(31, 111, 122, 0.35);
  aspect-ratio: 16 / 9;
}

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

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

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(0, 229, 255, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(31, 111, 122, 0.6);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--violet);
}

.filter-chip[aria-pressed="true"] {
  background: var(--violet);
  color: #ffffff;
  border-color: var(--violet);
}

.filter-chip:focus-visible {
  outline-color: var(--violet);
}

.filter-empty {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.filter-empty[hidden],
[data-filter-item][hidden] {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s ease-out, transform 0.26s ease-out;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.98), rgba(7, 9, 12, 0.74));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 111, 122, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-shell {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 18px 0;
  transition: padding 0.26s ease, max-width 0.26s ease, background 0.26s ease, border-radius 0.26s ease, margin 0.26s ease;
}

.site-header.is-condensed {
  background: rgba(7, 9, 12, 0.82);
  border-color: transparent;
}

.site-header.is-condensed .header-shell {
  max-width: min(100% - (var(--gutter) * 2), 1040px);
  padding: 10px 18px;
  background: rgba(21, 27, 34, 0.88);
  border: 1px solid rgba(31, 111, 122, 0.55);
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: max-content;
}

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

.brand-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.55);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.header-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.header-track {
  flex: 1;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(90deg, transparent, rgba(31, 111, 122, 0.75), transparent);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

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

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

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 177, 61, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(255, 177, 61, 0.06);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  animation: pulse 2.4s infinite;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text);
  border: 1px solid rgba(31, 111, 122, 0.65);
  border-radius: var(--radius-pill);
  background: rgba(21, 27, 34, 0.72);
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease-out;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(80px, 12vw, 160px);
  padding: clamp(64px, 9vw, 120px) 0 32px;
  background: var(--ink-1);
  border-top: 1px solid rgba(31, 111, 122, 0.4);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0, rgba(0, 229, 255, 0.08), transparent 32%),
    linear-gradient(135deg, transparent 45%, rgba(167, 107, 255, 0.05) 45%, transparent 46%);
}

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

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid rgba(31, 111, 122, 0.35);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--text);
}

.footer-brand-mark {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
  letter-spacing: 0.04em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.16em;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--text);
  padding-left: 4px;
}

.footer-contact {
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(24px, 4vw, 40px);
  background: rgba(21, 27, 34, 0.72);
  border: 1px solid rgba(31, 111, 122, 0.35);
  border-radius: var(--radius-lg);
}

.footer-contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer-contact-item--wide {
  grid-column: 1 / -1;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-contact-value {
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.footer-hours,
.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  max-width: 72ch;
}

.footer-note {
  color: var(--edge);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid rgba(31, 111, 122, 0.35);
  color: var(--muted);
  font-size: 13px;
}

.footer-legal {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.footer-closing {
  color: var(--amber);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

@media (max-width: 980px) {
  .header-tagline,
  .header-track {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 60;
    display: block;
    padding: 20px;
    background: var(--panel);
    border: 1px solid rgba(31, 111, 122, 0.55);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: block;
    padding: 12px 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(31, 111, 122, 0.25);
    border-radius: 12px;
  }

  .nav-link[aria-current="page"] {
    background: rgba(0, 229, 255, 0.08);
    border-bottom-color: transparent;
  }

  .site-header[data-open="true"] {
    background: rgba(7, 9, 12, 0.98);
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .col-main,
  .col-aside,
  .col-narrow {
    grid-column: 1 / -1;
  }

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

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

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

  .footer-contact-item--wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 76px;
  }

  .brand-domain {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .header-shell {
    padding: 14px 0;
  }

  .site-header.is-condensed .header-shell {
    padding: 8px 12px;
  }

  .header-status {
    padding: 7px 10px;
    font-size: 11px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
