/* ==========================================================================
   EMC 易倍官网 · 共享站壳 /assets/site.css
   夜场墨绿 × 暖白 × EMC 橙红：指挥台式连续画布
   ========================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  --ink: #0B2621;
  --ink-deep: #081C19;
  --ink-2: #123A33;
  --stand: #2C4A45;
  --line: #6F8F89;
  --paper: #F4EFE4;
  --paper-dim: #D8CDBD;
  --accent: #F25B3D;
  --accent-soft: rgba(242, 91, 61, 0.14);
  --amber: #F2A65A;
  --jade: #55B7A0;
  --alert: #C94A3A;

  --font-display: "Oswald", "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 68px;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 26px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 2. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body,
h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, address, table, th, td {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

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

a { color: inherit; }

/* ---------- 3. base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(920px 520px at 84% -10%, rgba(85, 183, 160, 0.13), transparent 68%),
    radial-gradient(700px 480px at 6% 4%, rgba(242, 166, 90, 0.07), transparent 70%),
    repeating-linear-gradient(90deg, rgba(111, 143, 137, 0.06) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(111, 143, 137, 0.045) 0 1px, transparent 1px 96px);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(15.5px, 0.3vw + 14.6px, 17px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

::selection { background: var(--accent); color: #14080A; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.section {
  position: relative;
  padding-block: clamp(2.4rem, 5.5vw, 4.6rem);
}

.section--stand {
  background: var(--ink-2);
  border-block: 1px solid rgba(111, 143, 137, 0.22);
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper .eyebrow { color: var(--ink-2); }
.section--paper .lede { color: var(--ink-2); }
.section--paper .prose { color: #1D3B36; }

.stack { display: grid; gap: clamp(0.85rem, 1.8vw, 1.35rem); }
.stack--tight { gap: 0.5rem; }

.grid { display: grid; gap: clamp(1rem, 2.6vw, 2.1rem); }
.grid--split,
.grid--wide,
.grid--three { grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .grid--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 5. typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.display--tight { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.04; }

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.lede {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.2vw + 0.72rem, 1.3rem);
  line-height: 1.7;
  color: var(--paper);
  max-width: 40ch;
}

.prose {
  max-width: 38em;
  color: var(--paper-dim);
}

.prose p + p { margin-top: 0.85em; }

.data-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--accent);
}

/* ---------- 6. media ---------- */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 110% at 78% 0%, rgba(85, 183, 160, 0.24), transparent 62%),
    linear-gradient(158deg, var(--stand), var(--ink-2));
  aspect-ratio: 16 / 9;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }

.media img,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(11, 38, 33, 0.28) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(111, 143, 137, 0.22) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, transparent 52%, rgba(8, 28, 25, 0.58));
  opacity: 0.55;
}

.media__label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(11, 38, 33, 0.72);
  border: 1px solid rgba(111, 143, 137, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}

/* ---------- 7. buttons / tags / crumbs / table / panel ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s var(--ease);
}

.btn--accent {
  background: var(--accent);
  color: #17090B;
  box-shadow: 0 12px 26px -16px rgba(242, 91, 61, 0.95);
}

.btn--accent:hover { background: #FF6F51; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(111, 143, 137, 0.6);
}

.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(244, 239, 228, 0.08);
}

.btn--quiet {
  background: rgba(111, 143, 137, 0.16);
  color: var(--paper);
}

.btn--quiet:hover { background: rgba(111, 143, 137, 0.28); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  line-height: 1.4;
}

.tag--accent { color: var(--accent); background: var(--accent-soft); }
.tag--jade { color: var(--jade); background: rgba(85, 183, 160, 0.12); }
.tag--amber { color: var(--amber); background: rgba(242, 166, 90, 0.12); }
.tag--alert { color: var(--alert); background: rgba(201, 74, 58, 0.14); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--line);
}

.crumbs li { display: inline-flex; align-items: center; }
.crumbs li::after { content: "/"; margin-inline: 0.4rem; color: rgba(111, 143, 137, 0.6); }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: var(--paper-dim); text-decoration: none; }
.crumbs a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.panel {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  border-radius: var(--r-lg) var(--r-md) var(--r-lg) var(--r-md);
  background: linear-gradient(168deg, rgba(18, 58, 51, 0.92), rgba(11, 38, 33, 0.92));
  border: 1px solid rgba(111, 143, 137, 0.3);
}

.panel--quiet {
  background: rgba(44, 74, 69, 0.32);
  border-color: rgba(111, 143, 137, 0.22);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(111, 143, 137, 0.26);
}

.data-table thead th {
  background: var(--stand);
  color: var(--paper-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table tbody tr:hover { background: rgba(85, 183, 160, 0.08); }
.data-table td[data-accent] { color: var(--accent); font-weight: 700; }

/* ---------- 8. rail / reveal / progress ---------- */
.rail { display: none; }

.rail__list {
  display: grid;
  gap: 0.1rem;
  border-left: 1px solid rgba(111, 143, 137, 0.32);
  padding-left: 0.9rem;
}

.rail__link {
  display: block;
  position: relative;
  padding: 0.34rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--line);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.rail__link::before {
  content: "";
  position: absolute;
  left: -0.95rem;
  top: 0.5em;
  bottom: 0.5em;
  width: 2px;
  background: transparent;
}

.rail__link:hover { color: var(--paper); }
.rail__link[aria-current="true"] { color: var(--paper); }
.rail__link[aria-current="true"]::before { background: var(--accent); }

@media (min-width: 1180px) {
  .rail {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
  }
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s var(--ease);
}

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

/* ---------- 9. header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  color: var(--paper);
  transition: background-color 0.24s ease-out, box-shadow 0.24s ease-out;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 28, 25, 0.9), rgba(8, 28, 25, 0));
  transition: opacity 0.24s ease-out;
}

.site-header[data-state="solid"] {
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(111, 143, 137, 0.42), 0 22px 44px -34px rgba(0, 0, 0, 0.95);
}

.site-header[data-state="solid"]::before { opacity: 0; }

.header-strip {
  display: none;
  background: rgba(18, 58, 51, 0.62);
  border-bottom: 1px solid rgba(111, 143, 137, 0.24);
}

.site-header[data-state="solid"] .header-strip { background: rgba(18, 58, 51, 0.9); }

.header-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.42rem;
}

.header-note,
.header-strip__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
}

.header-note { display: inline-flex; align-items: center; gap: 0.45rem; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(85, 183, 160, 0.18);
}

.header-strip__link {
  text-decoration: none;
  color: var(--amber);
}

.header-strip__link::after { content: " →"; }
.header-strip__link:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.header-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.4rem);
  min-height: var(--header-h);
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--paper);
  flex: 0 0 auto;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.45rem;
  border: 1px solid rgba(242, 91, 61, 0.72);
  border-radius: 4px;
  background: rgba(242, 91, 61, 0.16);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.brand__text { display: grid; gap: 0.05rem; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--line);
  text-transform: uppercase;
}

.brand__tag {
  display: none;
  padding: 0.2rem 0.55rem;
  border: 1px dashed rgba(242, 166, 90, 0.5);
  border-radius: 999px;
  background: rgba(242, 166, 90, 0.1);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  display: block;
  position: relative;
  padding: 0.5rem 0.62rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.18s ease-out, background-color 0.18s ease-out;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  bottom: 0.22rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--paper); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__foot { display: none; }
.nav__note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(111, 143, 137, 0.55);
  border-radius: 10px;
  background: rgba(11, 38, 33, 0.4);
  cursor: pointer;
  transition: border-color 0.2s ease-out, background-color 0.2s ease-out;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.24s var(--ease), opacity 0.2s ease-out;
}

.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { bottom: 1px; }

.site-header[data-open="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(111, 143, 137, 0.18);
  overflow: hidden;
}

.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  transition: width 0.12s linear;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease-out;
}

.skip-link:focus,
.skip-link:focus-visible { top: 0; }

/* ---------- 10. footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  background: var(--ink-2);
  color: var(--paper);
  border-top: 1px solid rgba(111, 143, 137, 0.4);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: auto -10% -55% 40%;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 166, 90, 0.16), transparent 72%);
}

.footer__top {
  position: relative;
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.8rem);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}

.footer__summary {
  margin-top: 1rem;
  max-width: 34ch;
  color: var(--paper-dim);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.7;
}

.footer__meta {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--line);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.footer__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--line);
  margin-bottom: 0.85rem;
}

.footer__title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 0.5rem;
  vertical-align: 2px;
  background: var(--accent);
}

.footer__links { display: grid; gap: 0.34rem; }

.footer__link {
  display: inline-block;
  padding-block: 0.14rem;
  color: var(--paper-dim);
  font-size: 0.92rem;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: color 0.2s ease-out, background-size 0.24s var(--ease);
}

.footer__link:hover {
  color: var(--paper);
  background-size: 100% 2px;
}

.footer__contact { font-style: normal; display: grid; gap: 0.2rem; }

.footer__line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
}

.footer__line--strong {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.04em;
}

.footer__contact-note {
  margin-top: 0.6rem;
  max-width: 36ch;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--line);
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  padding-block: 1.1rem 1.5rem;
  border-top: 1px solid rgba(111, 143, 137, 0.28);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--line);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer__legal-link {
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 143, 137, 0.4);
  padding-bottom: 1px;
}

.footer__legal-link:hover { color: var(--paper); border-bottom-color: var(--accent); }

.footer__copy,
.footer__icp { color: var(--line); }

.to-top {
  margin-left: auto;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(111, 143, 137, 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease-out, border-color 0.2s ease-out, background-color 0.2s ease-out;
}

.to-top:hover {
  color: var(--paper);
  border-color: var(--paper);
  background: rgba(244, 239, 228, 0.08);
}

/* ---------- 11. responsive ---------- */
@media (min-width: 720px) {
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .footer__contact { grid-column: 1 / -1; }
}

@media (min-width: 880px) {
  .header-strip { display: block; }
  .header-cta { display: inline-flex; }
}

@media (min-width: 980px) {
  .nav {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
  }
  .nav-toggle { display: none; }
  .brand__tag { display: inline-block; }
}

@media (min-width: 1024px) {
  .footer__top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 1fr); }
  .footer__contact { grid-column: auto; }
}

@media (max-width: 979px) {
  .nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 120;
    max-height: min(78vh, 620px);
    overflow-y: auto;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(111, 143, 137, 0.45);
    border-radius: var(--r-lg);
    background: var(--ink-2);
    box-shadow: 0 -26px 60px -24px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 2rem));
    transition: transform 0.28s var(--ease), opacity 0.2s ease-out, visibility 0.28s linear;
  }

  .site-header[data-open="true"] .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .nav__link {
    padding: 0.82rem 0.4rem;
    font-size: 1rem;
    color: var(--paper);
    border-bottom: 1px solid rgba(111, 143, 137, 0.2);
    border-radius: 0;
  }

  .nav__link::after {
    left: 0.4rem;
    right: auto;
    width: 18px;
    bottom: 0.42rem;
  }

  .nav__foot {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .nav__note { text-align: center; }
}

@media (max-width: 719px) {
  .header-bar__inner { min-height: 60px; }
  .brand__line { display: none; }
  .footer__bottom { font-size: 0.68rem; }
  .to-top { margin-left: 0; }
}

/* ---------- 12. motion & print ---------- */
@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;
  }

  .js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .read-progress__bar { transition: none !important; }
  .btn--accent:hover { transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .read-progress,
  .skip-link { display: none !important; }
  body { background: #fff; color: #111; }
}
