:root {
  --ink: #15110F;
  --navy: #0A1A2F;
  --cream: #F4E8D8;
  --paper: #FFFDF7;
  --orange: #FF5A1F;
  --red: #C7351F;
  --purple: #6A4DFF;
  --lime: #C6FF3D;
  --steel: #1C3F66;
  --sand: #C9B79F;
  --maxw: 1240px;
  --gutter: clamp(16px, 3vw, 40px);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 0 12px 0 rgba(21, 17, 15, 0.14);
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-heading: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-serif: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
}

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

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

body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(21, 17, 15, 0.13) 1px, transparent 1px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--purple);
  color: var(--paper);
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

main {
  display: block;
}

[id] {
  scroll-margin-top: 150px;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--cream);
}

.site-footer :focus-visible {
  outline-color: var(--lime);
  box-shadow: 0 0 0 6px var(--navy);
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-220%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

.utility-bar {
  background: var(--navy);
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.utility-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.utility-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(198, 255, 61, 0.24);
  animation: pulse 1.4s infinite;
}

.utility-item {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.utility-note {
  margin-left: auto;
  color: var(--sand);
  font-family: var(--font-data);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.masthead {
  background: var(--cream);
}

.masthead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter) 12px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  transition: padding 0.2s ease;
}

.masthead-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.masthead-side--left {
  justify-self: start;
  align-items: flex-start;
}

.masthead-side--right {
  justify-self: end;
  justify-content: flex-end;
}

.masthead-kicker {
  max-height: 62px;
  overflow: hidden;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-left: 2px solid var(--sand);
  padding-left: 6px;
  color: var(--steel);
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.status-code {
  padding: 2px 0;
  border-bottom: 2px solid var(--orange);
  color: var(--red);
  font-family: var(--font-data);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  justify-self: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  background: var(--orange);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  transform: rotate(-3deg);
  transition: width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  white-space: nowrap;
  transition: font-size 0.2s ease;
}

.brand-sub {
  display: block;
  color: var(--steel);
  font-family: var(--font-data);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

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

.btn-primary:hover {
  background: var(--lime);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn-sm {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Navigation */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 48px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--navy);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--lime);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.nav-bar {
  position: relative;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.nav-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  transition: min-height 0.2s ease;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  display: flex;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-left: 1px solid var(--sand);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-list li:first-child .nav-link {
  border-left: 0;
}

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

.nav-link[aria-current="page"] {
  background: var(--orange);
  color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--ink);
}

.current-chip {
  display: none;
  align-items: center;
  min-height: 28px;
  padding: 2px 9px;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.site-header.is-compact .current-chip {
  display: inline-flex;
}

.scroll-progress {
  height: 4px;
  overflow: hidden;
  background: var(--sand);
  border-top: 1px solid rgba(21, 17, 15, 0.2);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--purple), var(--lime));
  transition: width 0.1s linear;
}

.site-header.is-compact .utility-bar {
  display: none;
}

.site-header.is-compact .masthead-inner {
  padding-top: 7px;
  padding-bottom: 7px;
}

.site-header.is-compact .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.site-header.is-compact .brand-title {
  font-size: clamp(24px, 3vw, 32px);
}

.site-header.is-compact .brand-sub,
.site-header.is-compact .masthead-kicker,
.site-header.is-compact .status-code {
  display: none;
}

.site-header.is-compact .nav-inner {
  min-height: 42px;
}

.site-header.is-compact .nav-link {
  min-height: 42px;
}

/* Footer */
.site-footer {
  position: relative;
  padding-bottom: 24px;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(244, 232, 216, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--paper);
  border-top: 4px solid var(--ink);
}

.footer-ticker {
  background: var(--ink);
  border-bottom: 2px solid var(--orange);
}

.footer-ticker__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--lime);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ticker-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.ticker-item--accent {
  color: var(--paper);
}

.ticker-item--accent::before {
  background: var(--lime);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--gutter) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 253, 247, 0.22);
}

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

.footer-brand .brand-mark {
  width: 48px;
  height: 48px;
  font-size: 14px;
  transform: rotate(2deg);
  box-shadow: 4px 4px 0 var(--orange);
}

.footer-brand-title {
  margin: 14px 0 8px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.footer-brand-text {
  max-width: 34ch;
  margin: 0;
  color: var(--sand);
  font-size: 14px;
  line-height: 1.7;
}

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

.footer-heading {
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--orange);
  color: var(--lime);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

.footer-list a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-list a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-contact {
  color: var(--sand);
  font-family: var(--font-data);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.footer-contact a {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0 0;
}

.footer-note {
  max-width: 68ch;
  margin: 0;
  color: var(--sand);
  font-size: 12px;
  line-height: 1.65;
}

.footer-legal {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 11px;
  white-space: nowrap;
}

.icp {
  color: var(--orange);
  font-family: var(--font-data);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--orange);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.to-top:hover {
  background: var(--orange);
}

.to-top.is-visible {
  display: inline-flex;
}

/* Shared layout */
.section {
  padding-block: clamp(28px, 5vw, 56px);
}

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

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

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

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

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

.span-12 {
  grid-column: 1 / -1;
}

.stack-panel {
  display: grid;
  gap: 10px;
}

.panel {
  position: relative;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.panel__label {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--red);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.panel__body {
  padding: clamp(16px, 2.5vw, 28px);
}

.data-band {
  padding: clamp(18px, 3vw, 28px) 0;
  background: var(--navy);
  color: var(--paper);
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--ink);
}

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

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255, 253, 247, 0.18);
  border: 1px solid rgba(255, 253, 247, 0.18);
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 96px;
  padding: 14px;
  background: var(--navy);
}

.stat__value {
  color: var(--lime);
  font-family: var(--font-data);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  color: var(--sand);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.4;
}

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

.serif-note {
  font-family: var(--font-serif);
  color: var(--steel);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--red);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 72ch;
  margin: 0 0 20px;
  color: var(--steel);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.75;
}

.rule {
  border: 0;
  border-top: 2px solid var(--sand);
  margin: 24px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tag--orange {
  background: var(--orange);
}

.tag--purple {
  background: var(--purple);
  color: var(--paper);
}

.tag--lime {
  background: var(--lime);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  color: var(--steel);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.5;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--sand);
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
}

.breadcrumb a:hover {
  border-bottom-color: var(--orange);
}

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.8;
}

.prose h2,
.prose h3 {
  margin: 1.4em 0 0.5em;
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.prose h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.prose h3 {
  font-size: clamp(20px, 2vw, 26px);
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.35em;
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.prose li {
  padding-left: 0.15em;
}

.prose a {
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.prose blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--paper);
  border-left: 6px solid var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-serif);
}

.prose code {
  padding: 1px 4px;
  border: 1px solid var(--sand);
  background: var(--paper);
  font-family: var(--font-data);
  font-size: 0.9em;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--navy);
  box-shadow: var(--shadow-hard);
}

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

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

.image-frame--square {
  aspect-ratio: 1 / 1;
}

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

.image-frame__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.section-index {
  position: sticky;
  top: 150px;
  align-self: start;
  padding: 12px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.section-index__title {
  margin: 0 0 8px;
  color: var(--red);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-index__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 6px;
  border-top: 1px solid var(--sand);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.section-index__link:first-of-type {
  border-top: 0;
}

.section-index__link:hover {
  background: var(--cream);
}

.section-index__link.is-active {
  background: var(--navy);
  color: var(--paper);
  box-shadow: inset 4px 0 0 var(--orange);
}

.tabs {
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
}

.tab-button {
  appearance: none;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  border-right: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button:hover {
  background: var(--navy);
  color: var(--paper);
}

.tab-button[aria-selected="true"] {
  background: var(--orange);
  color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--ink);
}

.tab-panel {
  padding: clamp(16px, 2.5vw, 24px);
}

.tab-panel[hidden] {
  display: none;
}

.accordion {
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.accordion__item + .accordion__item {
  border-top: 2px solid var(--ink);
}

.accordion__trigger {
  width: 100%;
  min-height: 44px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.accordion__trigger:hover {
  background: var(--cream);
}

.accordion__trigger[aria-expanded="true"] {
  background: var(--navy);
  color: var(--paper);
}

.accordion__icon {
  flex: 0 0 auto;
  font-family: var(--font-data);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  padding: 16px;
  border-top: 2px solid var(--ink);
  background: var(--cream);
}

.accordion__panel[hidden] {
  display: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.filter-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.filter-chip:hover {
  background: var(--cream);
}

.filter-chip.is-active,
.filter-chip[aria-pressed="true"] {
  background: var(--purple);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--orange);
}

.score-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--font-data);
}

.score-strip__team {
  font-weight: 700;
  line-height: 1.2;
}

.score-strip__score {
  color: var(--lime);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1;
}

.score-strip__meta {
  color: var(--sand);
  font-size: 11px;
  line-height: 1.4;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 2px solid var(--ink);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge--live {
  background: var(--lime);
}

.status-badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

.hard-shadow {
  box-shadow: var(--shadow-hard);
}

.rotate-note {
  border-left: 2px solid var(--sand);
  padding-left: 8px;
  color: var(--steel);
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.file-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  background: var(--steel);
  color: var(--paper);
  box-shadow: 3px -3px 0 var(--ink);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

@media (max-width: 1100px) {
  .header-actions .btn-ghost {
    display: none;
  }

  .masthead-inner {
    grid-template-columns: minmax(120px, 1fr) auto minmax(160px, 1fr);
  }
}

@media (max-width: 920px) {
  .utility-note {
    display: none;
  }

  .utility-inner {
    justify-content: center;
    gap: 14px;
  }

  .utility-item {
    font-size: 10px;
  }

  .masthead-inner {
    grid-template-columns: 1fr auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .masthead-side--left {
    display: none;
  }

  .masthead-side--right {
    justify-self: end;
    gap: 10px;
  }

  .header-actions {
    display: none;
  }

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

  .brand-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .brand-sub {
    font-size: 9px;
  }

  .nav-inner {
    position: static;
    justify-content: flex-end;
    min-height: 10px;
    padding: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 8px var(--gutter) 14px;
    background: var(--cream);
    border-top: 2px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    box-shadow: var(--shadow-soft);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

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

  .nav-list li {
    display: block;
  }

  .nav-link {
    justify-content: space-between;
    min-height: 44px;
    padding: 12px;
    border-left: 0;
    border-top: 1px solid var(--sand);
    font-size: 16px;
    white-space: normal;
  }

  .nav-list li:first-child .nav-link {
    border-top: 0;
  }

  .nav-link[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--ink);
  }

  .current-chip {
    display: none !important;
  }

  .site-header.is-compact .nav-inner {
    min-height: 10px;
  }

  .site-header.is-compact .nav-link {
    min-height: 44px;
  }

  .section-index {
    position: static;
  }

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

  .rotate-note {
    writing-mode: horizontal-tb;
    transform: none;
    border-left: 0;
    border-top: 2px solid var(--sand);
    padding-top: 6px;
  }
}

@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .brand-sub {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .brand-title {
    font-size: clamp(24px, 8vw, 32px);
  }

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

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

  .footer-legal {
    white-space: normal;
  }

  .footer-ticker__inner {
    gap: 18px;
    font-size: 10px;
  }

  .to-top {
    right: 12px;
    bottom: 12px;
  }

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

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

@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;
    scroll-behavior: auto !important;
  }

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

  .status-badge--live::before,
  .status-dot {
    animation: none;
  }

  .panel:hover {
    transform: none;
    box-shadow: var(--shadow-hard);
  }
}
