:root {
  --teal-950: #052E2C;
  --teal-900: #073A36;
  --teal-850: #0A4742;
  --teal-700: #0E6B62;
  --orange-500: #F26A2E;
  --orange-300: #FF9B63;
  --gold-500: #E8B23A;
  --paper: #F5F8F6;
  --ink: #071B1A;
  --mist: #D8E4DF;
  --muted: #52706B;
  --white-soft: #EAF2EF;
  --max: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-pill: 999px;
  --shadow-1: 0 18px 50px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 10px 28px rgba(0, 0, 0, 0.18);
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-data: "Barlow Condensed", "Oswald", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--teal-950);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(14, 107, 98, 0.36), transparent 42%),
    linear-gradient(115deg, rgba(242, 106, 46, 0.08), transparent 34%),
    repeating-linear-gradient(90deg, rgba(216, 228, 223, 0.035) 0 1px, transparent 1px 96px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

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

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

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

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

#main-content {
  scroll-margin-top: 120px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px var(--gutter) 0;
  background: linear-gradient(180deg, rgba(5, 46, 44, 0.96), rgba(5, 46, 44, 0.62) 72%, transparent);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--max);
  min-height: 72px;
  margin-inline: auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(216, 228, 223, 0.18);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(10, 71, 66, 0.98), rgba(5, 46, 44, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 5px;
  height: 34px;
  border-radius: 2px;
  background: linear-gradient(var(--orange-500), var(--gold-500));
  transform: translateY(-50%) skewX(-14deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-300));
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 -8px 0 rgba(7, 27, 26, 0.12);
  transform: skewX(-6deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.brand-name {
  color: var(--paper);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-tagline {
  color: #A9C4BD;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid rgba(216, 228, 223, 0.26);
  border-radius: var(--radius-pill);
  background: rgba(245, 248, 246, 0.06);
  color: var(--paper);
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

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

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: #D8E7E2;
  font-size: 0.91rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link:hover {
  background: var(--teal-700);
  border-color: rgba(216, 228, 223, 0.18);
  color: var(--paper);
}

.nav-link[aria-current="page"] {
  background: var(--gold-500);
  border-color: rgba(7, 27, 26, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(216, 228, 223, 0.16);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta--primary {
  background: var(--orange-500);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(242, 106, 46, 0.22);
}

.nav-cta--primary:hover {
  background: var(--orange-300);
  transform: translateY(-1px);
}

.nav-cta--ghost {
  background: rgba(245, 248, 246, 0.06);
  border-color: rgba(216, 228, 223, 0.28);
  color: var(--paper);
}

.nav-cta--ghost:hover {
  background: var(--teal-700);
  border-color: rgba(255, 155, 99, 0.55);
}

.header-signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(232, 178, 58, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(5, 46, 44, 0.5);
  color: var(--gold-500);
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(232, 178, 58, 0.14);
}

.signal-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.scroll-progress {
  position: absolute;
  right: clamp(24px, 5vw, 70px);
  bottom: 5px;
  left: clamp(24px, 5vw, 70px);
  height: 2px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(216, 228, 223, 0.16);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-500), var(--gold-500));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  overflow: hidden;
  border-top: 1px solid rgba(216, 228, 223, 0.16);
  background: linear-gradient(180deg, rgba(4, 31, 30, 0.98), #031918);
  color: var(--paper);
}

.footer-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--orange-500) 0 22%, var(--gold-500) 22% 42%, var(--teal-700) 42% 100%);
}

.footer-main {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 72px) var(--gutter) 24px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(216, 228, 223, 0.12);
}

.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px 16px 16px 4px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-300));
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 1.7rem;
  font-weight: 800;
  transform: skewX(-6deg);
}

.footer-brand-line {
  max-width: 36ch;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
}

.footer-note {
  margin-top: 6px;
  color: #91AAA4;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 56px);
  padding: 28px 0;
}

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

.footer-title {
  margin-bottom: 12px;
  color: var(--gold-500);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-flex;
  width: fit-content;
  border-bottom: 1px solid transparent;
  color: #C4D6D0;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-link:hover {
  border-bottom-color: var(--orange-300);
  color: var(--orange-300);
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 228, 223, 0.12);
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  color: #C4D6D0;
  font-size: 0.88rem;
}

.footer-contact-label {
  min-width: 4.5em;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 228, 223, 0.12);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: #91AAA4;
  font-size: 0.78rem;
}

.legal-icp {
  color: var(--gold-500);
  font-family: var(--font-mono);
}

.footer-copy {
  color: #A8BEB8;
  font-family: var(--font-mono);
}

/* Shared layout */
.content-shell,
.section-shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-shell {
  padding-block: clamp(56px, 8vw, 120px);
}

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

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

.span-6 {
  grid-column: span 6;
}

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

.stack {
  display: grid;
  gap: var(--stack-gap, 1rem);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 0.75rem);
}

.divider {
  width: 100%;
  height: 1px;
  margin-block: 1rem;
  border: 0;
  background: linear-gradient(90deg, var(--orange-500), rgba(216, 228, 223, 0.16), transparent);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 72ch;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-500);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display-title {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 70ch;
  color: #D9E8E3;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.body-copy {
  max-width: 72ch;
  color: #C8D8D3;
  font-size: 0.98rem;
  line-height: 1.8;
}

.section-band {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-l);
}

.section-band--orange {
  background: linear-gradient(120deg, var(--orange-500), var(--orange-300));
  color: var(--ink);
}

.section-band--gold {
  background: linear-gradient(120deg, var(--gold-500), #F4D27A);
  color: var(--ink);
}

.section-band--orange .eyebrow,
.section-band--gold .eyebrow {
  color: var(--ink);
  opacity: 0.8;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  color: #A9C4BD;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-link {
  border-bottom: 1px solid transparent;
  color: #A9C4BD;
}

.breadcrumb-link:hover {
  border-bottom-color: currentColor;
  color: var(--orange-300);
}

.breadcrumb-current {
  color: var(--paper);
}

.breadcrumb-sep {
  color: var(--muted);
}

/* Buttons and tags */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.button--primary {
  background: var(--orange-500);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(242, 106, 46, 0.24);
}

.button--primary:hover {
  background: var(--orange-300);
}

.button--ghost {
  border-color: rgba(216, 228, 223, 0.28);
  background: rgba(245, 248, 246, 0.06);
  color: var(--paper);
}

.button--ghost:hover {
  border-color: rgba(255, 155, 99, 0.6);
  background: var(--teal-700);
}

.button--quiet {
  min-height: auto;
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  color: var(--paper);
}

.button--quiet:hover {
  color: var(--orange-300);
  transform: none;
}

.pill,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
}

.pill {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(216, 228, 223, 0.18);
  background: rgba(14, 107, 98, 0.35);
  color: #D8E7E2;
}

.tag {
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(232, 178, 58, 0.42);
  background: rgba(232, 178, 58, 0.1);
  color: var(--gold-500);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.badge {
  padding: 0.35rem 0.65rem;
  background: var(--orange-500);
  color: var(--ink);
  font-weight: 700;
}

.data-number {
  font-family: var(--font-data);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* Cards */
.card {
  position: relative;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(216, 228, 223, 0.16);
  border-radius: var(--radius-m);
  background: var(--teal-850);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover {
  border-color: rgba(255, 155, 99, 0.6);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.card--panel {
  background: linear-gradient(145deg, rgba(10, 71, 66, 0.92), rgba(5, 46, 44, 0.92));
}

.card--light {
  border-color: var(--mist);
  background: var(--paper);
  color: var(--ink);
}

.card--accent {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-300));
  color: var(--ink);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.card-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.card--light .card-meta {
  color: #47635E;
}

/* List panels */
.list-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 228, 223, 0.16);
  border-radius: var(--radius-m);
  background: rgba(10, 71, 66, 0.35);
}

.list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(216, 228, 223, 0.12);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-index {
  min-width: 2ch;
  color: var(--gold-500);
  font-family: var(--font-data);
  font-size: 1.3rem;
}

.list-copy {
  color: #D8E7E2;
  font-size: 0.94rem;
}

/* Filter system */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(216, 228, 223, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(10, 71, 66, 0.45);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  appearance: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(216, 228, 223, 0.18);
  border-radius: var(--radius-pill);
  background: transparent;
  color: #D8E7E2;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.filter-chip:hover {
  border-color: rgba(255, 155, 99, 0.5);
  background: var(--teal-700);
}

.filter-chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--orange-500);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(242, 106, 46, 0.25);
}

.filter-item {
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

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

/* Skill-tree path */
.path-tree {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 26px;
}

.path-tree::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 1px;
  background: linear-gradient(var(--orange-500), var(--gold-500), transparent);
}

.path-node {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 228, 223, 0.16);
  border-radius: 14px;
  background: rgba(10, 71, 66, 0.36);
}

.path-node::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -24px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--orange-500);
  border-radius: 50%;
  background: var(--teal-950);
  box-shadow: 0 0 0 4px rgba(242, 106, 46, 0.12);
}

.path-marker {
  color: var(--gold-500);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.path-copy {
  color: #D8E7E2;
  font-size: 0.92rem;
}

/* Stacked index */
.stacked-index {
  display: grid;
  gap: 10px;
}

.index-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(216, 228, 223, 0.16);
  border-radius: 14px;
  background: rgba(5, 46, 44, 0.6);
}

.index-number {
  color: var(--gold-500);
  font-family: var(--font-data);
  font-size: 1.6rem;
  line-height: 1;
}

.index-body {
  min-width: 0;
}

.index-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(232, 178, 58, 0.12);
}

/* Media containers */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(216, 228, 223, 0.16);
  border-radius: var(--radius-l);
  background: var(--teal-850);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.03);
}

.media-frame--tactical {
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(216, 228, 223, 0.16) 49.7% 50.3%, transparent 50.3%),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(216, 228, 223, 0.08) 48px 49px),
    linear-gradient(135deg, rgba(14, 107, 98, 0.8), rgba(5, 46, 44, 0.9));
}

.media-frame--tactical::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(216, 228, 223, 0.24);
  border-radius: 2px;
  background: radial-gradient(circle at 50% 50%, rgba(242, 106, 46, 0.18), transparent 9%);
}

.media-frame--crest {
  background:
    radial-gradient(circle at 35% 30%, rgba(242, 106, 46, 0.8), transparent 22%),
    radial-gradient(circle at 70% 70%, rgba(232, 178, 58, 0.42), transparent 24%),
    linear-gradient(135deg, var(--teal-700), var(--teal-950));
}

.media-frame--crest::before {
  content: "Q";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(245, 248, 246, 0.18);
  font-family: var(--font-data);
  font-size: clamp(6rem, 16vw, 13rem);
  font-weight: 800;
  line-height: 1;
}

.media-frame--data {
  background:
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(216, 228, 223, 0.09) 24px 25px),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(255, 155, 99, 0.08) 32px 33px),
    linear-gradient(145deg, rgba(10, 71, 66, 0.9), rgba(5, 46, 44, 0.96));
}

.media-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid rgba(216, 228, 223, 0.18);
  border-radius: 12px;
  background: rgba(5, 46, 44, 0.78);
  color: #D8E7E2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  backdrop-filter: blur(6px);
}

/* Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(216, 228, 223, 0.16);
  border-radius: var(--radius-m);
  background: rgba(216, 228, 223, 0.16);
}

.stat-cell {
  padding: 18px;
  background: rgba(10, 71, 66, 0.6);
}

.stat-value {
  color: var(--orange-300);
  font-family: var(--font-data);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  color: #A9C4BD;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

/* Tactical decoration */
.tactical-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(90deg, rgba(216, 228, 223, 0.08) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(216, 228, 223, 0.06) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* Responsive */
@media (max-width: 1280px) {
  .header-signal {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-header {
    padding-top: 10px;
  }

  .header-inner {
    min-height: 64px;
    padding: 8px 10px 8px 14px;
    border-radius: 24px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 1.2rem;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100vh - 110px);
    margin: 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid rgba(216, 228, 223, 0.18);
    border-radius: 22px;
    background: linear-gradient(160deg, var(--teal-850), var(--teal-950));
    box-shadow: var(--shadow-1);
  }

  .site-header[data-open] .site-nav {
    display: flex;
  }

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

  .nav-link {
    min-height: 48px;
    justify-content: space-between;
    padding: 0 14px;
    border-radius: 14px;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(216, 228, 223, 0.16);
    border-left: 0;
  }

  .nav-cta {
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .grid-12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .span-4,
  .span-6,
  .span-8 {
    grid-column: 1 / -1;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand {
    align-items: flex-start;
  }

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

@media (max-width: 700px) {
  .filter-bar {
    align-items: flex-start;
    border-radius: 20px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-chip {
    flex: 1 1 auto;
  }
}

@media (max-width: 600px) {
  .nav-actions {
    grid-template-columns: 1fr;
  }

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

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

  .footer-brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 1.45rem;
  }

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

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

  .index-meta {
    grid-column: 2;
  }
}

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

  .button:hover,
  .card:hover,
  .nav-cta--primary:hover,
  .media-frame:hover img {
    transform: none !important;
  }

  .scroll-progress-bar {
    transition: none;
  }
}
