:root {
  --bg-deep: #0D0B1A;
  --bg-glass: rgba(26, 21, 40, 0.72);
  --bg-card: rgba(26, 21, 40, 0.86);
  --neon-purple: #B026FF;
  --neon-cyan: #00E5FF;
  --neon-pink: #FF2E8A;
  --paper: #E8D5B7;
  --ink: #0A0912;
  --text-main: #F5EFF7;
  --text-dim: #A99BB5;
  --line: rgba(176, 38, 255, 0.22);
  --gradient-brand: linear-gradient(110deg, #B026FF 0%, #FF2E8A 45%, #00E5FF 100%);
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, monospace;
  --font-accent: "Rajdhani", "Noto Sans SC", "PingFang SC", sans-serif;
  --container: 1440px;
  --header-h: 72px;
  --radius: 18px;
  --transition: 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 12%, rgba(176, 38, 255, 0.20), transparent 30%),
    radial-gradient(circle at 14% 82%, rgba(0, 229, 255, 0.14), transparent 32%),
    linear-gradient(120deg, rgba(255, 46, 138, 0.05) 0%, transparent 42%);
}

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

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

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

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

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

::selection {
  background: var(--neon-pink);
  color: #ffffff;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
}

#main-content {
  position: relative;
  z-index: 1;
  display: block;
  min-height: calc(100vh - 260px);
  scroll-margin-top: var(--header-h);
}

.skip-link {
  position: absolute;
  left: -100%;
  top: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.3);
  transition: left 0.2s ease;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 200;
  background: rgba(13, 11, 26, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.9;
}

.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
  box-shadow: 0 0 22px rgba(176, 38, 255, 0.42);
  transform: skewX(-8deg);
  overflow: hidden;
  flex-shrink: 0;
}

.brand__mark::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 70%;
  height: 140%;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(22deg);
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--text-main) 10%, var(--neon-cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand__tagline {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(176, 38, 255, 0.4);
  border-radius: 12px;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.22);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.nav-toggle__icon {
  display: grid;
  gap: 5px;
  width: 16px;
}

.nav-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

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

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

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

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav__link:hover {
  color: var(--text-main);
  background: rgba(176, 38, 255, 0.12);
  box-shadow: 0 0 14px rgba(176, 38, 255, 0.22);
}

.site-nav__link[aria-current="page"] {
  color: #ffffff;
  background: rgba(176, 38, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(176, 38, 255, 0.55), 0 0 16px rgba(176, 38, 255, 0.12);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  z-index: 3;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
  pointer-events: none;
}

.section {
  position: relative;
  padding: 76px 0;
}

.section--tinted {
  background: linear-gradient(180deg, rgba(176, 38, 255, 0.06) 0%, rgba(0, 0, 0, 0) 46%);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.section__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section__subtitle {
  max-width: 560px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
  transition: transform 0.3s var(--transition), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  opacity: 0.6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 38, 255, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 24px rgba(176, 38, 255, 0.12);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__eyebrow {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.card__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
}

.card__text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-dim);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.08);
  color: var(--neon-cyan);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.tag--pink {
  border-color: rgba(255, 46, 138, 0.4);
  background: rgba(255, 46, 138, 0.08);
  color: #ff8cc2;
}

.tag--purple {
  border-color: rgba(176, 38, 255, 0.4);
  background: rgba(176, 38, 255, 0.08);
  color: #d48aff;
}

.tag--paper {
  border-color: rgba(232, 213, 183, 0.4);
  background: rgba(232, 213, 183, 0.08);
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 46, 138, 0.36);
  filter: saturate(1.12);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.22);
}

.btn--paper {
  background: var(--paper);
  color: var(--ink);
}

.btn--paper:hover {
  box-shadow: 0 10px 24px rgba(232, 213, 183, 0.24);
}

.btn--small {
  padding: 8px 15px;
  font-size: 12px;
}

.glass-panel {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.paper-note {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.exhibit {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.exhibit__code {
  min-width: 84px;
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 700;
  color: var(--neon-pink);
}

.exhibit__body {
  flex: 1;
}

.exhibit__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
}

.exhibit__desc {
  margin-top: 6px;
  max-width: 60ch;
  font-size: 14px;
  color: var(--text-dim);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.spec-item {
  background: rgba(10, 8, 18, 0.44);
  border-left: 2px solid var(--neon-purple);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
}

.spec-item dt {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.spec-item dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-main);
  word-break: break-word;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  margin-bottom: 32px;
  font-size: 12px;
  color: var(--text-dim);
}

.breadcrumbs a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.breadcrumbs__divider {
  opacity: 0.4;
}

.prose {
  max-width: 72ch;
  font-size: 16px;
  color: var(--text-dim);
}

.prose h2 {
  margin: 44px 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
}

.prose h3 {
  margin: 32px 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
}

.prose p {
  margin-bottom: 18px;
}

.prose a {
  color: var(--neon-cyan);
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.45);
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: square;
  color: var(--text-dim);
}

.page-heading {
  max-width: 960px;
  padding: 56px 0 28px;
}

.page-heading__kicker {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.page-heading__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.page-heading__lede {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 16px;
  color: var(--text-dim);
}

.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, #1E1930, #120F20);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(176, 38, 255, 0.16) 0%, transparent 42%, rgba(0, 229, 255, 0.1) 100%);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.image-frame:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.image-frame--portrait {
  aspect-ratio: 3 / 4;
}

.image-frame--pano {
  aspect-ratio: 16 / 10;
}

.image-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(13, 11, 26, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  color: var(--text-main);
}

[data-reveal] {
  transition: opacity 0.6s ease, transform 0.6s var(--transition);
  will-change: opacity, transform;
}

html.js [data-reveal]:not(.is-inview) {
  opacity: 0;
  transform: translateY(18px);
}

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

.site-footer {
  position: relative;
  z-index: 1;
  padding: 64px 0 32px;
  margin-top: 60px;
  background: #08070F;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-purple) 0%, var(--neon-pink) 48%, var(--neon-cyan) 100%);
  opacity: 0.65;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__brand .brand__mark {
  width: 52px;
  height: 52px;
}

.site-footer__brand .brand__name {
  font-size: 28px;
}

.site-footer__desc {
  max-width: 42ch;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.site-footer__trust {
  max-width: 48ch;
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--neon-purple);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-nav__heading {
  margin-bottom: 8px;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.footer-nav__link {
  display: inline-block;
  width: fit-content;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav__link:hover {
  color: var(--neon-pink);
  padding-left: 4px;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-contact__item {
  display: block;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-bottom__copy,
.footer-bottom__icp {
  margin: 0;
}

@media (max-width: 1080px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 190;
    display: block;
    margin-left: 0;
    padding: 14px 20px 22px;
    background: rgba(13, 11, 26, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.44);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    border-radius: 0 0 22px 22px;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav__link {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
  }

  .site-nav__link[aria-current="page"]::after {
    left: 18px;
    right: auto;
    width: 22px;
    bottom: 8px;
  }
}

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

  .site-header__inner {
    padding: 0 20px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section__title {
    font-size: 30px;
  }
}

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

  .brand__tagline {
    display: none;
  }

  .nav-toggle__text {
    display: none;
  }

  .site-footer {
    padding-top: 48px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

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

  .page-heading__title {
    font-size: 36px;
  }

  .page-heading {
    padding-top: 36px;
  }

  .exhibit {
    flex-direction: column;
    gap: 8px;
  }

  .exhibit__code {
    min-width: 0;
  }

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

  .card {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .site-nav {
    transition: none;
  }

  [data-reveal],
  html.js [data-reveal]:not(.is-inview),
  html.js [data-reveal].is-inview {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
