/* /assets/site.css */
:root {
  color-scheme: dark;
  --abyss: #05080E;
  --night: #0B1420;
  --red: #C21807;
  --rust: #7A100A;
  --coral: #FF6B4A;
  --signal: #FF3B2E;
  --cyan: #8AA4AE;
  --mist: #DCE6E8;
  --paper: #F4EFE8;
  --display: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --hard-line: rgba(138, 164, 174, 0.28);
  --soft-line: rgba(138, 164, 174, 0.16);
  --red-glass: rgba(194, 24, 7, 0.22);
  --shadow-hard: 8px 8px 0 rgba(122, 16, 10, 0.48);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 170px;
  background: var(--abyss);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--abyss);
  background-image:
    radial-gradient(circle at 88% 4%, rgba(194, 24, 7, 0.26), transparent 34rem),
    radial-gradient(circle at 8% 38%, rgba(138, 164, 174, 0.08), transparent 28rem),
    linear-gradient(180deg, #05080E 0%, #07111B 48%, #05080E 100%);
  color: var(--mist);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.55em;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--coral);
  text-underline-offset: 0.2em;
}

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

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

::selection {
  background: var(--coral);
  color: var(--abyss);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border: 2px solid var(--coral);
  background: var(--paper);
  color: var(--abyss);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--rust);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

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

.header-shell,
.footer-shell {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  border-bottom: 2px solid var(--rust);
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.99), rgba(11, 20, 32, 0.97));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.read-progress {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  z-index: 5;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.read-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--coral) 62%, var(--signal));
  box-shadow: 0 0 16px rgba(255, 59, 46, 0.8);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 90ms linear;
}

.header-utility {
  border-bottom: 1px solid var(--soft-line);
  background:
    linear-gradient(90deg, rgba(194, 24, 7, 0.13), transparent 38%, rgba(255, 107, 74, 0.06)),
    linear-gradient(180deg, rgba(11, 20, 32, 0.65), rgba(5, 8, 14, 0.2));
}

.header-utility-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding-block: 12px;
}

.brand-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "link line"
    "link descriptor";
  align-items: center;
  column-gap: 16px;
  row-gap: 1px;
  min-width: 0;
}

.brand-link {
  grid-area: link;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--mist);
  text-decoration: none;
}

.brand-link:hover {
  color: var(--paper);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--coral);
  background: linear-gradient(135deg, var(--red), var(--rust));
  box-shadow: 4px 4px 0 rgba(255, 107, 74, 0.26);
  transform: skewX(-7deg);
}

.brand-mark-core {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--paper);
  background: var(--abyss);
  transform: rotate(45deg);
}

.brand-name {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.brand-line {
  grid-area: line;
  margin: 0;
  overflow: hidden;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-descriptor {
  grid-area: descriptor;
  margin: 0;
  overflow: hidden;
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--hard-line);
  background: rgba(11, 20, 32, 0.78);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-pill--version {
  border-color: var(--red);
  background: linear-gradient(90deg, var(--red), var(--rust));
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 74, 0.2);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.18);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 2px solid var(--coral);
  background: var(--coral);
  color: var(--abyss);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 rgba(122, 16, 10, 0.8);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.header-cta:hover {
  background: var(--paper);
  color: var(--abyss);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(122, 16, 10, 0.8);
}

.nav-toggle {
  display: none;
  grid-template-columns: 20px auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  padding: 10px 12px;
  border: 2px solid var(--coral);
  background: var(--night);
  color: var(--mist);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px auto;
  background: var(--coral);
  transition: transform 180ms var(--ease-out);
}

.nav-toggle-line:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.nav-toggle-line:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.nav-toggle-label {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
}

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

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

.header-nav-band {
  border-top: 1px solid rgba(138, 164, 174, 0.12);
  background: linear-gradient(90deg, rgba(194, 24, 7, 0.26), rgba(11, 20, 32, 0.5) 45%, rgba(255, 107, 74, 0.08));
}

.header-nav-inner {
  padding: 0;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  border-left: 1px solid var(--soft-line);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 15px;
  border-right: 1px solid var(--soft-line);
  background: linear-gradient(180deg, transparent, rgba(11, 20, 32, 0.22));
  color: var(--mist);
  text-decoration: none;
  transition:
    background 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

.nav-link::after {
  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--signal));
  content: "";
  transition: right 220ms var(--ease-out);
}

.nav-link:hover {
  background: rgba(194, 24, 7, 0.17);
  color: var(--paper);
}

.nav-link:hover::after {
  right: 0;
}

.nav-link[aria-current="page"] {
  background: linear-gradient(180deg, rgba(194, 24, 7, 0.58), rgba(122, 16, 10, 0.32));
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--coral);
}

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

.nav-index {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.nav-label {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  overflow: hidden;
  border-top: 2px solid var(--rust);
  background:
    radial-gradient(circle at 12% 0%, rgba(194, 24, 7, 0.18), transparent 32rem),
    linear-gradient(180deg, var(--night), var(--abyss) 62%);
}

.footer-signal {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 28%, var(--coral) 28% 35%, transparent 35% 85%, var(--signal) 85% 100%);
}

.footer-shell {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
}

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

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer-brand-link:hover {
  color: var(--coral);
}

.footer-mark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 2px solid var(--coral);
  background: var(--red);
  box-shadow: 3px 3px 0 var(--rust);
  transform: skewX(-8deg);
}

.footer-mark::after {
  position: absolute;
  inset: 7px;
  border: 2px solid var(--paper);
  content: "";
}

.footer-statement {
  max-width: 34em;
  margin: 18px 0 16px;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.8;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badge {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid rgba(255, 107, 74, 0.42);
  background: rgba(194, 24, 7, 0.14);
  color: var(--coral);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

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

.footer-heading {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--coral);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

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

.footer-link {
  display: inline-block;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition:
    color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.footer-link:hover {
  color: var(--coral);
  transform: translateX(4px);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: var(--cyan);
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.footer-contact p {
  margin: 0;
}

.footer-contact-label {
  display: inline-block;
  min-width: 3.8em;
  margin-right: 8px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.footer-note {
  margin-top: 4px !important;
  padding-left: 12px;
  border-left: 2px solid var(--rust);
  color: rgba(220, 230, 232, 0.72);
  font-size: 12px;
  line-height: 1.8;
}

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

.footer-data {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--soft-line);
}

.footer-data-row {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}

.footer-data-row dt {
  margin: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
}

.footer-data-row dd {
  margin: 0;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.footer-copyright,
.footer-icp,
.footer-address {
  margin: 0;
}

.footer-icp {
  color: var(--coral);
}

.footer-address {
  color: rgba(220, 230, 232, 0.72);
}

.content-shell {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(32px, 6vw, 72px);
}

.content-narrow {
  max-width: 76ch;
}

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

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

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

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

.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.section-title {
  margin: 0 0 18px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-lede {
  max-width: 64ch;
  margin: 0 0 24px;
  color: var(--mist);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 2px solid var(--coral);
  background: transparent;
  color: var(--mist);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(122, 16, 10, 0.55);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

.button:hover {
  background: var(--coral);
  color: var(--abyss);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(122, 16, 10, 0.55);
}

.button--primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
}

.button--primary:hover {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--abyss);
}

.button--ghost {
  border-color: var(--hard-line);
  color: var(--cyan);
  box-shadow: none;
}

.button--ghost:hover {
  border-color: var(--coral);
  background: transparent;
  color: var(--coral);
}

.breadcrumb {
  margin: 20px 0 30px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--red);
  content: "/";
}

.breadcrumb-item a {
  color: var(--mist);
  text-decoration: none;
}

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

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  border: 2px solid var(--hard-line);
  background: linear-gradient(135deg, rgba(11, 20, 32, 0.96), rgba(5, 8, 14, 0.96));
  box-shadow: var(--shadow-hard);
}

.panel--dark {
  border-color: rgba(194, 24, 7, 0.45);
  background: var(--abyss);
}

.panel--paper {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--abyss);
  box-shadow: 8px 8px 0 var(--rust);
}

.panel--paper h1,
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 {
  color: var(--abyss);
}

.panel--paper a {
  color: var(--red);
}

.panel--paper a:hover {
  color: var(--rust);
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 2px solid var(--hard-line);
  background: rgba(11, 20, 32, 0.72);
}

.data-cell {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--soft-line);
}

.data-cell:last-child {
  border-right: 0;
}

.data-value {
  display: block;
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.data-label {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--hard-line);
  background: rgba(11, 20, 32, 0.68);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.tag--red {
  border-color: rgba(255, 107, 74, 0.48);
  background: rgba(194, 24, 7, 0.18);
  color: var(--coral);
}

.rule-line {
  height: 1px;
  margin: clamp(24px, 4vw, 42px) 0;
  border: 0;
  background: linear-gradient(90deg, var(--red), var(--hard-line) 28%, transparent 92%);
}

.index-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hard-line);
  list-style: none;
}

.index-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--hard-line);
}

.index-link {
  color: var(--mist);
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.index-link:hover,
.index-link[aria-current="location"] {
  color: var(--coral);
}

.index-meta {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--hard-line);
  background:
    radial-gradient(circle at 20% 0%, rgba(194, 24, 7, 0.32), transparent 50%),
    linear-gradient(135deg, var(--night), var(--abyss));
  box-shadow: var(--shadow-hard);
}

.media-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 107, 74, 0.16);
  content: "";
  pointer-events: none;
}

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

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

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

.media-caption {
  margin: 10px 0 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot {
    animation: status-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.16);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 107, 74, 0.04);
  }
}

@media (max-width: 1100px) {
  .header-utility-inner {
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .nav-toggle {
    display: grid;
  }

  .status-cluster {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    padding-top: 2px;
  }

  .header-nav-inner {
    padding: 0;
  }

  .site-nav {
    display: none;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--soft-line);
    border-left: 0;
    padding: 8px 0 12px;
  }

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

  .nav-link {
    min-height: 48px;
    padding: 13px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
    background: transparent;
  }

  .nav-link::after {
    right: auto;
    width: 3px;
    height: auto;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--coral), var(--signal));
    transform: scaleY(0);
    transform-origin: top center;
  }

  .nav-link:hover::after {
    right: auto;
    transform: scaleY(1);
  }

  .nav-link[aria-current="page"] {
    background: rgba(194, 24, 7, 0.2);
    box-shadow: inset 3px 0 0 var(--coral);
  }

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

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

@media (max-width: 840px) {
  body {
    font-size: 16px;
  }

  .header-shell,
  .footer-shell,
  .content-shell {
    width: calc(100% - 28px);
  }

  .header-utility-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 68px;
    padding-block: 10px;
  }

  .brand-block {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "link line"
      "link descriptor";
    column-gap: 12px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .brand-line {
    font-size: 10px;
  }

  .brand-descriptor {
    font-size: 12px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
    gap: 6px;
  }

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

  .data-cell {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .data-cell:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .brand-block {
    grid-template-areas:
      "link link"
      "line descriptor";
    row-gap: 6px;
  }

  .brand-line,
  .brand-descriptor {
    grid-column: auto;
  }

  .brand-line {
    padding-left: 44px;
  }

  .brand-descriptor {
    text-align: right;
  }

  .status-pill {
    font-size: 10px;
  }

  .header-cta {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .nav-toggle {
    padding: 8px 10px;
  }

  .index-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .index-meta {
    white-space: normal;
  }

  .footer-data-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
