/* ============================================================
   易游中心 · /assets/site.css
   夜间航标终端 / 目录型内容地图
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #061826;
  background-image:
    repeating-linear-gradient(to right, rgba(143, 166, 178, .055) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, rgba(143, 166, 178, .045) 0 1px, transparent 1px 96px),
    radial-gradient(1200px 560px at 84% -10%, rgba(53, 240, 208, .10), transparent 62%),
    radial-gradient(900px 520px at -6% 6%, rgba(27, 31, 75, .9), transparent 58%);
  color: var(--foam);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, picture { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, figure, dl, dd, address, blockquote { margin: 0; }
address { font-style: normal; }
main { display: block; }
table { border-collapse: collapse; }

/* ---------- Tokens ---------- */
:root {
  --night: #061826;
  --trench: #0B2A3F;
  --indigo: #1B1F4B;
  --wine: #5C1F3A;
  --cyan: #35F0D0;
  --amber: #FFB347;
  --foam: #E9F3F5;
  --mist: #8FA6B2;
  --paper: #F5F1E8;

  --line: rgba(143, 166, 178, .26);
  --line-soft: rgba(143, 166, 178, .14);
  --line-strong: rgba(53, 240, 208, .38);

  --glass: linear-gradient(165deg, rgba(11, 42, 63, .80), rgba(6, 24, 38, .55));

  --shell: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --radius: 3px;

  --font-sans: "SF Pro Display", "Helvetica Neue", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.18;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.6vw, 4.9rem); font-weight: 300; line-height: 1.05; letter-spacing: .005em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: .02em; }

p { line-height: 1.75; }
strong, b { font-weight: 600; color: #fff; }
small { font-size: .82em; color: var(--mist); }

::selection { background: rgba(53, 240, 208, .26); color: #fff; }

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

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

/* ---------- Focus ---------- */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 179, 71, .32);
  border-radius: 2px;
}

/* ---------- Shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .62em 1.05em;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--foam);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease,
    box-shadow .2s ease, transform .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--signal {
  background: var(--cyan);
  color: #04202a;
  box-shadow: 0 0 0 1px rgba(53, 240, 208, .45), 0 12px 26px -16px rgba(53, 240, 208, .95);
}
.btn--signal:hover { background: #5ef6dd; color: #04202a; }

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(11, 42, 63, .5);
  color: var(--foam);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 240, 208, .08);
}

.btn--paper {
  background: var(--paper);
  color: #0d2534;
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .9);
}
.btn--paper:hover { background: #fffaf0; }

.btn--wine {
  background: var(--wine);
  border-color: rgba(255, 179, 71, .42);
  color: var(--foam);
}
.btn--wine:hover { background: #71284a; border-color: var(--amber); }

/* ---------- Tags & index labels ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .24em .62em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 42, 63, .6);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.5;
}

.tag--cyan { border-color: rgba(53, 240, 208, .5); color: var(--cyan); background: rgba(53, 240, 208, .08); }
.tag--amber { border-color: rgba(255, 179, 71, .5); color: var(--amber); background: rgba(255, 179, 71, .08); }
.tag--wine { border-color: rgba(240, 166, 192, .4); color: #F0A6C0; background: rgba(92, 31, 58, .5); }

.index-label {
  display: inline-flex;
  align-items: baseline;
  gap: .6em;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.index-label::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  transform: translateY(-.28em);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-block: 1.25rem;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: rgba(143, 166, 178, .5);
}

.breadcrumb a { color: var(--mist); border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: var(--cyan); border-bottom-color: currentColor; }
.breadcrumb [aria-current="page"] { color: var(--foam); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tight { padding-block: clamp(1.75rem, 4vw, 3rem); }

.section--band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 31, 75, .55), rgba(6, 24, 38, 0));
}

.section__head {
  display: grid;
  gap: .8rem;
  max-width: 50rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: .012em;
}

.lede {
  max-width: 62ch;
  color: rgba(233, 243, 245, .86);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.72;
}

/* ---------- Prose ---------- */
.prose {
  display: grid;
  gap: 1rem;
  max-width: 64ch;
  color: var(--foam);
}

.prose h2, .prose h3 { margin-top: .85rem; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 240, 208, .42);
}
.prose a:hover { border-bottom-color: currentColor; }

.prose ul, .prose ol {
  display: grid;
  gap: .55rem;
  padding-left: 1.2rem;
  list-style: disc;
  list-style-position: outside;
}
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--amber); }

/* ---------- Panels ---------- */
.panel {
  position: relative;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(6px);
}

.panel--indigo {
  border-color: rgba(120, 130, 220, .28);
  background: linear-gradient(165deg, rgba(27, 31, 75, .86), rgba(6, 24, 38, .6));
}

.panel--wine {
  border-color: rgba(240, 166, 192, .25);
  background: linear-gradient(165deg, rgba(92, 31, 58, .72), rgba(6, 24, 38, .62));
}

.panel--paper {
  --foam: #0d2534;
  --mist: #45606a;
  --line: rgba(6, 24, 38, .18);
  background: var(--paper);
  color: #0d2534;
  border-color: rgba(6, 24, 38, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 16px 34px -26px rgba(0, 0, 0, .9);
}

.panel--paper .index-label { color: #1c5a63; }
.panel--paper .tag { background: rgba(6, 24, 38, .06); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--split, .grid--halves, .grid--thirds { grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--stagger > *:nth-child(even) { margin-top: 1.75rem; }
}

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

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

/* ---------- Rail ---------- */
.rail {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  padding-bottom: .9rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.rail > * {
  flex: 0 0 clamp(15rem, 30vw, 20rem);
  scroll-snap-align: start;
}

.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-track { background: rgba(143, 166, 178, .14); }
.rail::-webkit-scrollbar-thumb { background: rgba(53, 240, 208, .45); }

/* ---------- Figures ---------- */
.figure {
  display: grid;
  gap: .6rem;
  margin: 0;
}

.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--figure-ratio, 16 / 9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(27, 31, 75, .92), rgba(11, 42, 63, .55) 46%, rgba(6, 24, 38, .92));
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(53, 240, 208, .07) 0 6px, transparent 6px 18px);
}

.figure__media img,
.figure__media picture,
.figure__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  line-height: 1.6;
}

.figure--wide { --figure-ratio: 21 / 9; }
.figure--tall { --figure-ratio: 4 / 5; }
.figure--square { --figure-ratio: 1 / 1; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }

.data-table {
  width: 100%;
  min-width: 34rem;
  font-size: .92rem;
}

.data-table caption {
  caption-side: top;
  padding-bottom: .75rem;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.data-table tbody tr:hover { background: rgba(53, 240, 208, .06); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 120;
  padding: .7em 1.1em;
  border-radius: 2px;
  background: var(--cyan);
  color: #04202a;
  font-size: .85rem;
  letter-spacing: .06em;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9);
  transition: top .2s ease;
}

.skip-link:focus { top: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(6, 24, 38, .97), rgba(6, 24, 38, .88));
  box-shadow: 0 22px 44px -38px #000;
  backdrop-filter: blur(12px);
  color: var(--foam);
}

.header-top {
  max-height: 96px;
  overflow: hidden;
  border-bottom: 1px dashed rgba(143, 166, 178, .24);
  background: linear-gradient(90deg, rgba(27, 31, 75, .62), rgba(11, 42, 63, .32) 55%, rgba(92, 31, 58, .26));
  transition: max-height .32s ease, opacity .32s ease, border-color .32s ease;
}

.header-top__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(.7rem, 2.4vw, 1.8rem);
  min-height: 56px;
  padding-block: .55rem;
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: clamp(3rem, 5vw, 3.9rem);
  padding-block: .35rem;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding-block: .1rem;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(53, 240, 208, .8);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(53, 240, 208, .95) 0 2px, transparent 2.6px),
    conic-gradient(from 210deg, rgba(53, 240, 208, .85), rgba(27, 31, 75, .25) 42%, rgba(255, 179, 71, .8));
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: .32rem;
  border: 1px solid rgba(6, 24, 38, .68);
  border-radius: 50%;
}

.brand__text { display: grid; line-height: 1.24; }

.brand__name {
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: .14em;
}

.brand__tag {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.brand--footer .brand__mark { width: 1.75rem; height: 1.75rem; }
.brand--footer .brand__name { font-size: 1.05rem; }

/* Status */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-inline: auto;
  padding: .28rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 24, 38, .55);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  white-space: nowrap;
}

.header-status__dot {
  width: .45rem;
  height: .45rem;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  animation: beacon-pulse 3.2s ease-in-out infinite;
}

@keyframes beacon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 240, 208, .55); }
  50% { box-shadow: 0 0 0 6px rgba(53, 240, 208, 0); }
}

.header-status__label { letter-spacing: .12em; }
.header-status__value { color: var(--amber); letter-spacing: .1em; }

.header-top__links {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
}

.header-mail {
  padding-bottom: .12rem;
  border-bottom: 1px solid transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  transition: color .2s ease, border-color .2s ease;
}

.header-mail:hover { color: var(--cyan); border-bottom-color: currentColor; }

/* Primary nav */
.primary-nav { flex: 1 1 auto; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.4rem, 1.6vw, 1.5rem);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  padding: .55rem .15rem;
  color: var(--mist);
  font-size: .9rem;
  letter-spacing: .06em;
  transition: color .2s ease;
}

.nav-link__index {
  color: rgba(143, 166, 178, .62);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  transition: color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .05rem;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s ease, background-color .24s ease;
}

.nav-link:hover { color: var(--foam); }
.nav-link:hover .nav-link__index { color: var(--cyan); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--foam); }
.nav-link[aria-current="page"] .nav-link__index { color: var(--cyan); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

/* Toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  padding: .5rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(11, 42, 63, .62);
  color: var(--foam);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }

.nav-toggle__bar {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

.site-header[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* Progress pulse */
.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 12px rgba(53, 240, 208, .6);
}

/* Condensed header */
.site-header[data-condensed] .header-top {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid rgba(53, 240, 208, .28);
  background: linear-gradient(180deg, rgba(27, 31, 75, .88), rgba(6, 24, 38, .99) 64%);
  color: var(--foam);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 240, 208, .18) 22%, var(--indigo) 46%, var(--wine) 72%, var(--amber));
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.footer-brand {
  display: grid;
  gap: 1rem;
  align-content: start;
  justify-items: start;
}

.footer-note {
  max-width: 34ch;
  color: var(--mist);
  font-size: .9rem;
  line-height: 1.72;
}

.footer-col__title {
  margin-bottom: .9rem;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .1rem;
  border-bottom: 1px solid transparent;
  color: rgba(233, 243, 245, .84);
  font-size: .9rem;
  transition: color .2s ease, border-color .2s ease;
}

.footer-link::before {
  content: "";
  width: .35rem;
  height: 1px;
  background: rgba(143, 166, 178, .7);
  transition: width .2s ease, background-color .2s ease;
}

.footer-link:hover { color: var(--cyan); border-bottom-color: rgba(53, 240, 208, .5); }
.footer-link:hover::before { width: .85rem; background: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .9rem 1.75rem;
  padding-block: 1.25rem 1.9rem;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: .78rem;
}

.footer-contact {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: .35rem 1.6rem;
  max-width: 68ch;
  line-height: 1.8;
}

.footer-contact__item { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }

.footer-contact__label {
  margin-right: .3rem;
  color: rgba(143, 166, 178, .88);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-legal,
.footer-copy {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(143, 166, 178, .92);
}

/* ---------- Reveal ---------- */
[data-reveal] {
  transition: opacity .5s ease, transform .5s ease;
}

[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(12px);
}

/* ---------- Responsive: header ---------- */
@media (max-width: 920px) {
  .header-top__inner {
    flex-wrap: nowrap;
    gap: .6rem;
    padding-block: .5rem;
  }

  .header-status {
    margin-inline: auto;
    padding: .24rem .52rem;
    font-size: .62rem;
    letter-spacing: .08em;
  }

  .header-mail { display: none; }

  .header-top__links { margin-left: 0; }

  .header-main__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    padding-block: .5rem;
  }

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

  .primary-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
  }

  .site-header[data-open] .primary-nav {
    display: block;
    margin-top: .4rem;
    padding-top: .35rem;
    border-top: 1px solid var(--line);
  }

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

  .nav-list__item { border-bottom: 1px solid rgba(143, 166, 178, .16); }
  .nav-list__item:last-child { border-bottom: 0; }

  .nav-link {
    display: flex;
    justify-content: flex-start;
    padding: .72rem .2rem;
    font-size: .95rem;
  }

  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--cyan); }
}

@media (max-width: 560px) {
  .header-status { display: none; }
  .header-top__links { margin-left: auto; }
  .brand__name { letter-spacing: .1em; }
}

/* ---------- Responsive: footer & layout ---------- */
@media (min-width: 760px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .footer-top { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .btn { padding: .58em .85em; font-size: .8rem; }
  .footer-bottom { gap: .75rem 1rem; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal],
  [data-reveal].is-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header-status__dot { animation: none; }
  .btn:hover { transform: none; }
}
