:root {
  --canvas: #f5f1e8;
  --surface: #fffdf8;
  --surface-2: #ece6da;
  --ink: #202123;
  --muted: #66645e;
  --line: rgba(32, 33, 35, 0.14);
  --deep: #24201b;
  --rust: #b5492f;
  --rust-2: #d26a43;
  --teal: #16747c;
  --green: #55733d;
  --brass: #b4872f;
  --shadow: 0 18px 48px rgba(45, 38, 29, 0.12);
  --shadow-strong: 0 24px 70px rgba(32, 24, 18, 0.18);
  --ring: 0 0 0 4px rgba(22, 116, 124, 0.16);
  --lift: 0 22px 56px rgba(32, 24, 18, 0.18);
  --radius: 8px;
  --wrap: 1040px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 33, 35, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f9f6ee 0%, var(--canvas) 42%, #eee7d9 100%);
  background-size: 64px 64px, auto;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: var(--ring);
}

p,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  color: var(--deep);
  font-size: 3.05rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--deep) 0%, var(--teal) 48%, var(--rust) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 900;
}

.final-panel h2 {
  color: #f5c267;
}

h3 {
  font-size: 1rem;
  font-weight: 850;
}

button,
summary {
  font: inherit;
}

.site-wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 0.85rem;
  color: #fff;
  background: var(--deep);
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: rgba(245, 241, 232, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--rust), transparent);
  opacity: 0.52;
  transform: scaleX(0.72);
  transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.topbar.is-scrolled {
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 34px rgba(32, 24, 18, 0.1);
}

.topbar.is-scrolled::after {
  opacity: 0.88;
  transform: scaleX(1);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
}

.mark img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--teal);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.mark:hover img,
.mark:focus-visible img {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--teal);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.primary-nav a {
  position: relative;
  overflow: hidden;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.62rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  bottom: 0.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
  background: rgba(22, 116, 124, 0.08);
  border-color: rgba(22, 116, 124, 0.24);
  transform: translateY(-1px);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.primary-nav .download-link {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
  box-shadow: 4px 4px 0 var(--rust);
}

.primary-nav .download-link::after {
  display: none;
}

.primary-nav .download-link:hover,
.primary-nav .download-link:focus-visible {
  color: #fff;
  background: var(--rust);
  border-color: var(--rust);
  box-shadow: 4px 4px 0 var(--deep);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.menu-button:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 116, 124, 0.34);
  box-shadow: 4px 4px 0 rgba(180, 73, 47, 0.28);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.is-open span:not(.sr-only):nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open span:not(.sr-only):nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:not(.sr-only):nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.page-shell {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0 3rem;
}

.side-index {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 0.38rem;
  padding: 0.78rem;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.side-index:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 116, 124, 0.22);
  box-shadow: var(--lift);
}

.side-index strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.side-index a {
  position: relative;
  padding: 0.34rem 0.44rem;
  border-radius: 6px;
  font-size: 0.84rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.side-index a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--teal);
  border-radius: 999px;
  transform: translateY(-50%);
  transition: height 0.2s var(--ease);
}

.side-index a:hover,
.side-index a:focus-visible {
  color: var(--teal);
  background: rgba(22, 116, 124, 0.08);
  transform: translateX(2px);
}

.side-index a:hover::before,
.side-index a:focus-visible::before {
  height: 58%;
}

.content-flow {
  display: grid;
  gap: 0.95rem;
}

.briefing {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.72fr);
  gap: 0.95rem;
  align-items: stretch;
}

.briefing-copy,
.briefing-visual,
.manual-section,
.snapshot-strip,
.final-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.briefing-copy {
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.2rem);
  border-top: 6px solid var(--teal);
}

.briefing-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(22, 116, 124, 0.09) 38%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 34%);
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 0.32s var(--ease), transform 0.42s var(--ease);
}

.briefing-copy:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.section-label {
  margin-bottom: 0.55rem;
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  margin-top: 0.78rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.briefing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.05rem;
}

.solid-action,
.line-action {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.86rem;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.solid-action::before,
.line-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.42) 45%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.58s var(--ease);
}

.solid-action:hover::before,
.solid-action:focus-visible::before,
.line-action:hover::before,
.line-action:focus-visible::before {
  transform: translateX(130%);
}

.solid-action {
  color: #fff;
  background: var(--rust);
  border: 1px solid var(--rust);
  box-shadow: 5px 5px 0 var(--deep);
}

.line-action {
  color: var(--teal);
  background: transparent;
  border: 1px solid rgba(22, 116, 124, 0.35);
}

.solid-action:hover,
.solid-action:focus-visible,
.line-action:hover,
.line-action:focus-visible {
  transform: translate(-2px, -2px);
}

.solid-action:hover,
.solid-action:focus-visible {
  background: var(--deep);
  border-color: var(--deep);
  box-shadow: 7px 7px 0 var(--rust);
}

.line-action:hover,
.line-action:focus-visible {
  background: rgba(22, 116, 124, 0.08);
}

.briefing-visual {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background: var(--deep);
}

.briefing-visual::after,
.staff-image::after,
.screen-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.2));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.briefing-visual img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.briefing-visual:hover img,
.staff-image:hover img,
.screen-grid figure:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.briefing-visual:hover::after,
.staff-image:hover::after,
.screen-grid figure:hover::after {
  opacity: 1;
}

.signal-board {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.signal-board div {
  min-width: 0;
  padding: 0.58rem;
  color: #fff;
  background: rgba(32, 33, 35, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.signal-board div:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(32, 33, 35, 0.9);
}

.signal-board dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.signal-board dd {
  margin: 0.16rem 0 0;
  font-weight: 900;
}

.snapshot-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.snapshot-strip div {
  min-width: 0;
  padding: 0.72rem;
  border-right: 1px solid var(--line);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.snapshot-strip div:hover {
  background: rgba(22, 116, 124, 0.07);
  transform: translateY(-2px);
}

.snapshot-strip div:last-child {
  border-right: 0;
}

.snapshot-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.snapshot-strip strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.92rem;
}

.manual-section {
  padding: clamp(0.85rem, 2.4vw, 1.45rem);
}

.section-head {
  max-width: 820px;
  margin-bottom: 0.85rem;
}

.section-head p:not(.section-label) {
  margin-top: 0.55rem;
  color: var(--muted);
}

.system-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.system-board article {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.system-board article::before,
.route-table article::before,
.record-list article::before,
.check-list article::before,
.faq-list details::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--brass), var(--rust));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.system-board article:hover,
.route-table article:hover,
.record-list article:hover,
.check-list article:hover,
.faq-list details:hover,
.faq-list details[open] {
  transform: translateY(-5px);
  border-color: rgba(22, 116, 124, 0.3);
  box-shadow: var(--lift);
}

.system-board article:hover::before,
.route-table article:hover::before,
.record-list article:hover::before,
.check-list article:hover::before,
.faq-list details:hover::before,
.faq-list details[open]::before {
  transform: scaleX(1);
}

.system-board .system-main {
  grid-column: span 2;
  grid-row: span 2;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(36, 32, 27, 0.95), rgba(31, 67, 65, 0.93)),
    url("img/cover.jpg") center / cover;
  border-color: rgba(255, 255, 255, 0.16);
}

.system-main ol {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin-top: 0.75rem;
  list-style: none;
}

.system-main li {
  padding: 0.58rem;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.system-main span {
  display: block;
  margin-bottom: 0.1rem;
  color: #f5c267;
  font-weight: 900;
}

.system-board p,
.route-table p,
.check-list p,
.record-list p,
.faq-list p,
.final-panel p {
  color: var(--muted);
}

.system-board article:not(.system-main) h3 {
  padding-bottom: 0.55rem;
  margin-bottom: 0.65rem;
  border-bottom: 3px solid var(--surface-2);
}

.route-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.route-table article {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.48rem;
  min-height: 220px;
  padding: 0.76rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.route-table article:nth-child(1) {
  border-top: 5px solid var(--teal);
}

.route-table article:nth-child(2) {
  border-top: 5px solid var(--brass);
}

.route-table article:nth-child(3) {
  border-top: 5px solid var(--green);
}

.route-table article:nth-child(4) {
  border-top: 5px solid var(--rust);
}

.day-range {
  width: fit-content;
  padding: 0.18rem 0.5rem;
  color: #fff;
  background: var(--deep);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.route-table b {
  margin-top: auto;
  color: var(--teal);
  font-size: 0.82rem;
}

.staff-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
}

.staff-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: var(--shadow-strong);
}

.staff-image img {
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.staff-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.staff-image figcaption,
.screen-grid figcaption {
  padding: 0.55rem 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  background: var(--deep);
  font-size: 0.82rem;
}

.staff-copy h2 {
  margin-bottom: 0.62rem;
}

.check-list {
  display: grid;
  gap: 0.58rem;
}

.check-list article {
  position: relative;
  overflow: hidden;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.check-list article:nth-child(2) {
  border-left-color: var(--brass);
}

.check-list article:nth-child(3) {
  border-left-color: var(--rust);
}

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

.screen-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: var(--shadow);
}

.screen-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.28s var(--ease), filter 0.28s var(--ease);
}

.screen-grid figure:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.record-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.record-list article {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.record-list time {
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 900;
}

.record-list h3 {
  margin: 0.2rem 0 0.45rem;
}

.faq-list {
  display: grid;
  gap: 0.52rem;
}

.faq-list details {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  padding: 0.68rem 2.2rem 0.68rem 0.76rem;
  font-weight: 900;
  list-style: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.faq-list summary:hover {
  color: var(--teal);
  background: rgba(22, 116, 124, 0.045);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rust);
  font-size: 1.25rem;
  font-weight: 900;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}

.faq-list details[open] summary::after {
  content: "-";
  color: var(--teal);
  transform: translateY(-50%) rotate(180deg);
}

.faq-list details p {
  padding: 0 0.76rem 0.72rem;
}

.final-panel {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.95rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(36, 32, 27, 0.96), rgba(32, 80, 78, 0.93)),
    url("img/tu1.jpg") center / cover;
}

.final-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(245, 194, 103, 0.14) 36%, transparent 54%);
  transform: translateX(-28%);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.final-panel:hover::after {
  opacity: 1;
  transform: translateX(18%);
}

.final-panel > * {
  position: relative;
  z-index: 1;
}

.final-panel p:not(.section-label) {
  max-width: 760px;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
}

.final-panel .section-label {
  color: #f5c267;
}

.final-panel .solid-action {
  flex: 0 0 auto;
  background: var(--rust-2);
  border-color: var(--rust-2);
}

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--deep);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

.footer-inner a {
  color: #f5c267;
  font-weight: 800;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  h1 {
    font-size: 2.55rem;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .side-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .side-index strong {
    width: 100%;
  }

  .briefing,
  .staff-section {
    grid-template-columns: 1fr;
  }

  .briefing {
    min-height: auto;
  }

  .briefing-visual img {
    min-height: 320px;
  }

  .system-board,
  .route-table,
  .record-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    justify-content: center;
  }

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

  .snapshot-strip div:nth-child(2) {
    border-right: 0;
  }

  .snapshot-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .final-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 1.28rem;
  }

  .site-wrap {
    width: min(100% - 1.2rem, var(--wrap));
  }

  .topbar-inner {
    min-height: 58px;
  }

  .mark span {
    max-width: 9em;
    line-height: 1.2;
  }

  .mark img {
    width: 36px;
    height: 36px;
    box-shadow: 4px 4px 0 var(--teal);
  }

  .page-shell {
    padding-top: 1rem;
  }

  .side-index {
    display: none;
  }

  .briefing-copy,
  .manual-section {
    padding: 0.82rem;
  }

  .briefing-visual img {
    min-height: 250px;
  }

  .signal-board,
  .snapshot-strip,
  .system-board,
  .route-table,
  .record-list,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-strip div,
  .snapshot-strip div:nth-child(2),
  .snapshot-strip div:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .snapshot-strip div:last-child {
    border-bottom: 0;
  }

  .system-board .system-main {
    grid-column: auto;
    grid-row: auto;
  }

  .route-table article,
  .record-list article {
    min-height: auto;
  }

  .briefing-actions .solid-action,
  .briefing-actions .line-action,
  .final-panel .solid-action {
    width: 100%;
  }
}
