/* ==========================================================================
   摩斯国际中心 · /assets/site.css
   共享层：重置 / 变量 / 中文排版 / 头部 / 页脚 / 通用组件 / 响应式
   ========================================================================== */

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

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

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

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

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

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; }

/* 2. Tokens -------------------------------------------------------------- */
:root {
  --ink-900: #071019;
  --navy-800: #0B1B2B;
  --slate-700: #102A43;
  --steel-600: #163A5F;
  --signal: #FF6B35;
  --mist: #8DA9C4;
  --teal: #2DD4BF;
  --paper: #F5F7FA;
  --grid: #C7D2DE;

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Helvetica Neue",
                  Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --shadow-hard: 6px 6px 0 var(--ink-900);
  --shadow-hard-lg: 8px 8px 0 var(--ink-900);
  --edge: 2px solid var(--grid);
  --shell-max: 1440px;
  --shell-pad: clamp(16px, 3.4vw, 48px);
}

/* 3. Base & Chinese typography ------------------------------------------ */
body {
  min-height: 100vh;
  background-color: var(--navy-800);
  background-image: linear-gradient(180deg, #0B1B2B 0%, #0B1B2B 62%, #071019 100%);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.5vw + 13px, 17px);
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-wrap: balance;
  color: var(--paper);
}

p { text-wrap: pretty; }

strong { color: var(--paper); font-weight: 700; }

::selection { background: var(--signal); color: var(--ink-900); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.45);
  border-radius: 2px;
}

#main-content:focus { outline: none; }
#main-content:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

/* 4. Skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 10px;
  top: -120px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--signal);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 2px solid var(--ink-900);
  box-shadow: var(--shadow-hard);
  transition: top 0.16s ease;
}
.skip-link:focus { top: 10px; }

/* 5. Masthead ------------------------------------------------------------ */
.masthead {
  position: relative;
  z-index: 60;
  background: var(--navy-800);
  border-bottom: 2px solid var(--ink-900);
}

.masthead__utility {
  background: var(--ink-900);
  border-bottom: 1px solid #16324b;
  color: var(--mist);
}

.masthead__utility-inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 9px var(--shell-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 26px;
}

.masthead__sig {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.09em;
  color: var(--grid);
}

.masthead__sig-mark {
  color: var(--signal);
  font-weight: 700;
  letter-spacing: 0.22em;
}

.masthead__sig-sep { color: var(--steel-600); }

.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.masthead__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mist);
}

.masthead__meta-item--mail {
  color: var(--grid);
  word-break: break-word;
}

.masthead__meta-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.45);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.masthead__meta-link:hover {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
.status-dot--signal {
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}
.status-dot--pulse { animation: status-breathe 4s ease-in-out infinite; }

@keyframes status-breathe {
  0%, 100% { box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(45, 212, 191, 0); }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.masthead__bar {
  background: var(--steel-600);
  border-top: 1px solid rgba(199, 210, 222, 0.16);
  border-bottom: 3px solid var(--ink-900);
}

.masthead__bar-inner {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 2vw, 30px);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 68px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--paper);
}
.brand__mark {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.26em;
  color: var(--mist);
  white-space: nowrap;
}
.brand:hover .brand__mark { color: var(--signal); }
.brand:hover .brand__sub { color: var(--paper); }

/* 6. Nav ----------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: stretch;
}

.nav__item { display: flex; }

.nav__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 68px;
  padding: 10px clamp(8px, 1vw, 15px);
  text-decoration: none;
  color: var(--grid);
  border-left: 1px solid rgba(199, 210, 222, 0.18);
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.nav__link:hover {
  background: var(--slate-700);
  color: var(--paper);
}
.nav__link:hover .nav__num { color: var(--signal); }
.nav__link:hover .nav__label {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav__num {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--mist);
  transition: color 0.16s ease;
}

.nav__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav__link[aria-current="page"] {
  background: var(--ink-900);
  color: var(--paper);
  box-shadow: inset 0 -3px 0 var(--signal);
}
.nav__link[aria-current="page"] .nav__num { color: var(--signal); }

.nav__trace {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: clamp(10px, 1.4vw, 20px);
  padding-left: clamp(10px, 1.4vw, 18px);
  border-left: 1px solid rgba(199, 210, 222, 0.22);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}

/* 7. Nav toggle ---------------------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-left: auto;
  align-self: center;
  padding: 10px 16px;
  background: var(--ink-900);
  color: var(--paper);
  border: 2px solid var(--grid);
  box-shadow: 4px 4px 0 rgba(7, 16, 25, 0.85);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.nav-toggle:hover { border-color: var(--signal); }

.nav-toggle__bars {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* 8. Signal strip -------------------------------------------------------- */
.masthead__signal {
  height: 6px;
  background: linear-gradient(90deg,
    var(--signal) 0 22%,
    var(--steel-600) 22% 78%,
    var(--teal) 78% 100%);
}

/* 9. Footer -------------------------------------------------------------- */
.footer {
  margin-top: clamp(40px, 6vw, 90px);
  background: var(--ink-900);
  border-top: 3px solid var(--signal);
  color: var(--mist);
}

.footer__slab {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(18px, 3vw, 34px) var(--shell-pad) 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 13vw, 170px);
  line-height: 0.8;
  letter-spacing: -0.015em;
  color: rgba(141, 169, 196, 0.16);
  user-select: none;
  overflow: hidden;
}
@supports (-webkit-text-stroke: 1px #000) {
  .footer__slab {
    color: transparent;
    -webkit-text-stroke: 2px rgba(141, 169, 196, 0.3);
  }
}

.footer__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 46px) var(--shell-pad) clamp(20px, 3vw, 34px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 36px);
  padding-top: clamp(22px, 3vw, 38px);
  border-top: 2px solid var(--slate-700);
}

.footer__brandmark {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--paper);
  line-height: 1.2;
}

.footer__brandnote {
  margin-top: 12px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.footer__trust {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(199, 210, 222, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--paper);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--signal);
  display: inline-block;
  width: auto;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--grid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer__link:hover {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

.footer__links--plain li {
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--grid);
  word-break: break-word;
  border-bottom: 1px dashed rgba(199, 210, 222, 0.2);
}

.footer__note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 32em;
}

.footer__note--base {
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 26px;
  margin-top: clamp(24px, 3vw, 38px);
  padding-top: 16px;
  border-top: 2px solid var(--slate-700);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--mist);
}
.footer__copy { color: var(--grid); }
.footer__icp { color: var(--mist); }

/* 10. Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  background: transparent;
  color: var(--paper);
  border: 2px solid var(--grid);
  box-shadow: 4px 4px 0 var(--ink-900);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn:hover {
  transform: translate(-1px, -2px);
  border-color: var(--signal);
  box-shadow: 6px 6px 0 var(--ink-900);
}
.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--ink-900);
}

.btn--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink-900);
  box-shadow: 4px 4px 0 #000;
}
.btn--signal:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink-900);
}

.btn--ghost {
  background: transparent;
  border-color: var(--steel-600);
  color: var(--grid);
}
.btn--ghost:hover { color: var(--paper); }

.btn--teal {
  background: rgba(45, 212, 191, 0.12);
  border-color: var(--teal);
  color: var(--teal);
}
.btn--teal:hover {
  background: var(--teal);
  color: var(--ink-900);
  border-color: var(--teal);
}

.btn__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.8;
}

/* 11. Breadcrumbs -------------------------------------------------------- */
.crumbs { padding: 14px 0 0; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  color: var(--mist);
}

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

.crumbs__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.crumbs__link:hover { color: var(--paper); border-bottom-color: var(--signal); }

.crumbs__sep { color: var(--steel-600); }
.crumbs__current { color: var(--paper); }

/* 12. Layout containers -------------------------------------------------- */
.page-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.section {
  padding: clamp(34px, 5vw, 78px) 0;
  border-top: 2px solid var(--slate-700);
}
.section--flush { border-top: 0; }

.section__head {
  display: grid;
  gap: 12px;
  max-width: 54ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--signal);
}

.section__title { font-size: clamp(26px, 3.6vw, 48px); }

.section__lead {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.8;
  color: var(--mist);
  max-width: 34em;
}

.prose {
  max-width: 36em;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  color: var(--grid);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 {
  margin-top: 1.8em;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--paper);
}
.prose ul, .prose ol {
  padding-left: 1.3em;
  list-style: disc;
}
.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--signal); }
.prose strong { color: var(--paper); }

/* 13. Grids -------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.grid--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
}
@media (min-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.grid--rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 38px);
}
@media (min-width: 1180px) {
  .grid--rail { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); }
}

/* 14. Panels & version cards -------------------------------------------- */
.panel {
  background: var(--slate-700);
  border: var(--edge);
  box-shadow: var(--shadow-hard-lg);
  padding: clamp(18px, 2.4vw, 28px);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.panel:hover {
  transform: translateY(-2px);
  border-color: var(--signal);
  box-shadow: 8px 10px 0 var(--ink-900);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(199, 210, 222, 0.28);
}

.panel__title {
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: 0.03em;
}

.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  background: var(--navy-800);
  border: 2px solid var(--steel-600);
  box-shadow: var(--shadow-hard);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.vcard:hover {
  transform: translateY(-2px);
  border-color: var(--signal);
  box-shadow: 6px 8px 0 var(--ink-900);
}

.vcard__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--signal);
}

.vcard__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.vcard__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* 15. Status bar & tags -------------------------------------------------- */
.statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 12px 18px;
  background: var(--ink-900);
  border: 2px solid var(--steel-600);
  box-shadow: 5px 5px 0 rgba(7, 16, 25, 0.9);
}

.statusbar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.statusbar__value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  background: rgba(141, 169, 196, 0.08);
  border: 1px solid var(--mist);
  color: var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.tag--signal {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(255, 107, 53, 0.12);
}

.tag--teal {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(45, 212, 191, 0.12);
}

/* 16. Image containers --------------------------------------------------- */
.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.figure__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--ink-900);
  border: var(--edge);
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden;
}

.figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.figure--wave .figure__frame {
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 107, 53, 0.3) 0 8px, transparent 8px 20px),
    radial-gradient(120% 95% at 18% 8%, #163A5F 0%, #071019 72%);
}

.figure--tablet .figure__frame {
  aspect-ratio: 4 / 3;
  background-image:
    linear-gradient(155deg, #102A43 0%, #163A5F 42%, #071019 100%),
    radial-gradient(60% 40% at 72% 22%, rgba(45, 212, 191, 0.28) 0%, transparent 70%);
  background-blend-mode: screen;
}

.figure--tags .figure__frame {
  aspect-ratio: 3 / 2;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(var(--steel-600) 2px, transparent 2px),
    linear-gradient(90deg, var(--steel-600) 2px, transparent 2px);
  background-size: 44px 44px, 44px 44px;
  background-position: 0 0, 0 0;
}

.figure--timeline .figure__frame {
  aspect-ratio: 21 / 9;
  background-image:
    linear-gradient(90deg, rgba(141, 169, 196, 0.5) 0 2px, transparent 2px),
    linear-gradient(180deg, #071019 0%, #102A43 100%);
  background-size: 25% 100%, 100% 100%;
}

/* 17. Scroll progress & reveal ------------------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--teal) 100%);
  pointer-events: none;
  transition: width 0.1s linear;
}

[data-reveal] {
  opacity: 0.85;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

/* 19. Responsive --------------------------------------------------------- */
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1179px) {
  .nav__label { font-size: 13px; }
  .nav__num { letter-spacing: 0.12em; }
  .nav__trace { font-size: 10px; letter-spacing: 0.08em; }
}

@media (min-width: 1024px) {
  .masthead {
    position: sticky;
    top: 0;
  }
  .footer__grid { grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr 1.4fr; }
}

@media (min-width: 1280px) {
  .nav__link { padding-inline: 16px; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    flex-direction: column;
    margin-left: 0;
    padding: 6px 0 14px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    background: var(--ink-900);
    border-top: 2px solid var(--signal);
    border-bottom: 3px solid var(--ink-900);
    box-shadow: 0 10px 0 rgba(7, 16, 25, 0.55);
  }

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

  .nav__list {
    flex-direction: column;
    width: 100%;
  }

  .nav__item { width: 100%; }

  .nav__link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 14px clamp(16px, 4vw, 28px);
    border-left: 0;
    border-bottom: 1px solid rgba(199, 210, 222, 0.14);
  }

  .nav__num {
    width: 2.2em;
    font-size: 11px;
  }

  .nav__label { font-size: 15px; }

  .nav__link[aria-current="page"] {
    background: var(--slate-700);
    box-shadow: inset 4px 0 0 var(--signal);
  }

  .nav__trace {
    align-self: stretch;
    margin: 10px clamp(16px, 4vw, 28px) 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(199, 210, 222, 0.16);
    font-size: 11px;
  }
}

@media (max-width: 639px) {
  .masthead__utility-inner { padding-block: 8px; }
  .masthead__sig { font-size: 11px; letter-spacing: 0.06em; }
  .masthead__meta { font-size: 11px; gap: 4px 14px; }
  .masthead__meta-item--mail { flex-basis: 100%; }
  .brand__mark { letter-spacing: 0.08em; }
  .brand__sub { letter-spacing: 0.16em; }
  .footer__slab { font-size: clamp(44px, 17vw, 90px); }
  .footer__base { justify-content: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* 20. Reduced motion ---------------------------------------------------- */
@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;
  }

  .status-dot--pulse { animation: none; }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .panel:hover,
  .vcard:hover {
    transform: none;
  }

  .nav-toggle__bars span { transition: none; }
}
