:root {
  --ink: #06111A;
  --ink-2: #0B1B28;
  --glass: #122B3B;
  --cyan: #22E0D0;
  --orange: #FF8A3D;
  --amber: #FFC24B;
  --legacy: #6F8F86;
  --text: #EAF4F7;
  --text-2: #9BB2BF;
  --line: #294452;
  --danger: #FF6B6B;
  --rail-w: 17.5rem;
  --container: 76rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius-lg: 1.35rem;
  --radius-md: 0.8rem;
  --radius-sm: 0.45rem;
  --shadow-panel: 0 24px 80px rgba(0, 0, 0, 0.36);
  --glass-bg: rgba(18, 43, 59, 0.72);
  --cyan-soft: rgba(34, 224, 208, 0.12);
  --orange-soft: rgba(255, 138, 61, 0.12);
  --amber-soft: rgba(255, 194, 75, 0.12);
  --font-sans: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  min-width: 320px;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 82% 12%, rgba(34, 224, 208, 0.1), transparent 24rem),
    radial-gradient(circle at 12% 78%, rgba(255, 138, 61, 0.07), transparent 30rem),
    linear-gradient(180deg, #06111A 0%, #07141F 55%, #06111A 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

button {
  color: inherit;
}

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

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

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

#main-content {
  scroll-margin-top: 5.5rem;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateY(-140%);
  transition: transform var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 27, 40, 0.98), rgba(6, 17, 26, 0.95));
  backdrop-filter: blur(18px);
}

.rail-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.brand-lockup,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark,
.footer-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-copy,
.footer-brand-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.brand-copy strong,
.footer-brand-copy strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-copy small,
.footer-brand-copy small {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 43, 59, 0.65);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

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

.nav-toggle-lines {
  display: grid;
  gap: 3px;
}

.nav-toggle-lines span {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.site-header[data-open] .nav-toggle-lines span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-toggle-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: none;
}

.nav-index-label {
  margin: 0 0 0.65rem;
  padding-left: 0.35rem;
  color: var(--legacy);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 0.35rem;
}

.nav-list a {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  align-items: center;
  padding: 0.72rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--text-2);
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    transform var(--ease);
}

.nav-num {
  grid-row: 1 / span 2;
  color: var(--legacy);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1;
}

.nav-name {
  grid-column: 2;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.nav-desc {
  grid-column: 2;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.nav-list a:hover {
  border-color: var(--line);
  background: rgba(18, 43, 59, 0.65);
  transform: translateX(3px);
}

.nav-list a:hover .nav-name {
  color: var(--cyan);
}

.nav-list a[aria-current="page"] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(34, 224, 208, 0.25), 0 10px 30px rgba(34, 224, 208, 0.16);
}

.nav-list a[aria-current="page"] .nav-num,
.nav-list a[aria-current="page"] .nav-name,
.nav-list a[aria-current="page"] .nav-desc {
  color: var(--ink);
}

.nav-list a[aria-current="page"] .nav-num {
  opacity: 0.62;
}

.nav-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.7rem 0.35rem 0;
}

.nav-utility a {
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 43, 59, 0.55);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.nav-utility a:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.nav-help {
  margin-top: 1rem;
  padding: 0 0.35rem;
}

.nav-help-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.78rem 0.9rem;
  border-radius: 0.7rem;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 12px 30px rgba(255, 138, 61, 0.2);
  transition: transform var(--ease), box-shadow var(--ease);
}

.nav-help-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 138, 61, 0.3);
}

.rail-footer {
  display: none;
}

@media (max-width: 1023px) {
  .site-header[data-open] .site-nav {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: calc(0.75rem + 4.2rem);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 90;
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background:
      linear-gradient(180deg, rgba(18, 43, 59, 0.99), rgba(11, 27, 40, 0.99));
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(18px);
  }
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
  }

  #main-content {
    scroll-margin-top: 1rem;
  }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: var(--rail-w);
    height: 100vh;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background:
      linear-gradient(180deg, rgba(18, 43, 59, 0.94), rgba(6, 17, 26, 0.98));
  }

  .rail-brand {
    align-items: flex-start;
    padding: 1.45rem 1.25rem 1rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.7rem;
    max-height: none;
    overflow-y: auto;
    padding: 0 1rem 1rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav-index-label {
    padding-left: 0.45rem;
  }

  .nav-list a {
    padding: 0.68rem 0.6rem;
  }

  .nav-help {
    margin-top: auto;
  }

  .rail-footer {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.25rem 1.35rem;
    border-top: 1px solid var(--line);
  }

  .rail-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-2);
    font-size: 0.7rem;
  }

  .rail-status i {
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0.25rem var(--cyan-soft);
  }

  .rail-meta {
    color: var(--legacy);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 194, 75, 0.08), transparent 22rem),
    linear-gradient(180deg, var(--ink-2), #081520 70%, var(--ink));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -5rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(34, 224, 208, 0.14);
  transform: rotate(18deg);
  pointer-events: none;
}

.footer-signal {
  display: flex;
  gap: 0.3rem;
  width: min(100%, 26rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.footer-signal span {
  height: 0.28rem;
  flex: 1;
  background: var(--line);
}

.footer-signal span:nth-child(1) {
  background: var(--cyan);
}

.footer-signal span:nth-child(2) {
  background: var(--legacy);
}

.footer-signal span:nth-child(3) {
  background: var(--amber);
}

.footer-signal span:nth-child(4) {
  background: var(--orange);
}

.footer-signal span:nth-child(5) {
  background: var(--line);
}

.footer-top {
  display: grid;
  gap: 2rem;
}

.footer-brand-block {
  min-width: 0;
}

.footer-brand-mark {
  background: var(--amber);
}

.footer-tagline {
  max-width: 27rem;
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  color: var(--text-2);
  font-size: 0.78rem;
}

.footer-status span {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0.25rem var(--amber-soft);
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-group-title {
  margin-bottom: 0.8rem;
  color: var(--legacy);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-link-list {
  display: grid;
  gap: 0.55rem;
}

.footer-link-list a {
  display: inline-block;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color var(--ease), transform var(--ease);
}

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

.footer-contact-card {
  position: relative;
  align-self: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(16px);
}

.footer-contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.22rem;
  background: linear-gradient(90deg, var(--orange), var(--amber), transparent);
}

.footer-contact-title {
  margin-bottom: 1rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-contact-list {
  display: grid;
  gap: 0.75rem;
}

.footer-contact-item {
  display: grid;
  gap: 0.12rem;
}

.footer-contact-key {
  color: var(--legacy);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-contact-value {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-contact-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.76rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.76rem;
}

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

.footer-icp span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.footer-legal-links a {
  color: var(--text-2);
  transition: color var(--ease);
}

.footer-legal-links a:hover {
  color: var(--cyan);
}

@media (min-width: 760px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

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

@media (min-width: 1180px) {
  .footer-top {
    grid-template-columns: minmax(15rem, 0.9fr) minmax(20rem, 1.2fr) minmax(17rem, 1fr);
    align-items: start;
  }

  .footer-contact-card {
    grid-column: auto;
  }
}

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

.section {
  padding-block: clamp(2.75rem, 7vw, 6rem);
}

.section--narrow .container {
  max-width: 56rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

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

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

@media (max-width: 760px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

.display-title {
  max-width: 13ch;
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.88;
  text-wrap: balance;
}

.section-title {
  max-width: 18ch;
  font-size: clamp(1.75rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0.25rem var(--cyan-soft);
}

.lede {
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
}

.muted {
  color: var(--text-2);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.rule {
  height: 1px;
  margin-block: clamp(1.25rem, 3vw, 2.5rem);
  border: 0;
  background: var(--line);
}

.breadcrumb {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

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

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

.breadcrumb a {
  color: var(--text-2);
  transition: color var(--ease);
}

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

.glass-panel,
.solid-panel,
.exhibit-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.glass-panel {
  background: var(--glass-bg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(16px);
}

.solid-panel {
  background: var(--ink-2);
}

.exhibit-card {
  overflow: hidden;
  background: var(--ink-2);
}

.exhibit-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 3rem;
  height: 0.2rem;
  background: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 43, 59, 0.65);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.tag::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.tag--cyan {
  border-color: rgba(34, 224, 208, 0.35);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.tag--amber {
  border-color: rgba(255, 194, 75, 0.35);
  background: var(--amber-soft);
  color: var(--amber);
}

.tag--legacy {
  border-color: rgba(111, 143, 134, 0.4);
  background: rgba(111, 143, 134, 0.12);
  color: var(--legacy);
}

.tag--danger {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.1);
  color: var(--danger);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--ease),
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    box-shadow var(--ease);
}

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

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(255, 138, 61, 0.22);
}

.btn--primary:hover {
  box-shadow: 0 12px 34px rgba(255, 138, 61, 0.3);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(34, 224, 208, 0.18);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(18, 43, 59, 0.4);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--quiet {
  min-height: auto;
  padding: 0.2rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--cyan);
}

.btn--quiet:hover {
  color: var(--amber);
}

.price {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.rating {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.data-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.data-key {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.data-value {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .data-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.timeline {
  display: grid;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 0;
  left: 0.65rem;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 0.25rem var(--cyan-soft);
}

.timeline-body {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-2);
}

.timeline-meta {
  color: var(--legacy);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tabs {
  display: grid;
  gap: 1rem;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 43, 59, 0.45);
}

.tab {
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

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

.tab[aria-selected="true"] {
  background: var(--cyan);
  color: var(--ink);
}

.tab-panel {
  padding: 1rem 0;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(34, 224, 208, 0.08), transparent 42%),
    linear-gradient(180deg, var(--glass), var(--ink-2));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(41, 68, 82, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 68, 82, 0.28) 1px, transparent 1px);
  background-size: 2rem 2rem;
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

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

.media-frame--square {
  aspect-ratio: 1;
}

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

.media-frame--cut {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5rem), calc(100% - 2.5rem) 100%, 0 100%);
}

.media-frame__label {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(34, 224, 208, 0.35);
  border-radius: 999px;
  background: rgba(6, 17, 26, 0.86);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.media-frame__caption {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-left: 2px solid var(--cyan);
  background: rgba(6, 17, 26, 0.86);
  color: var(--text-2);
  font-size: 0.74rem;
  line-height: 1.5;
}

.media-frame--cut .media-frame__caption {
  bottom: 2rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}

@media (min-width: 1024px) {
  .scroll-progress {
    left: var(--rail-w);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 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;
  }

  .nav-list a:hover,
  .footer-link-list a:hover,
  .btn:hover,
  .nav-help-link:hover {
    transform: none;
  }
}
