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

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

body { margin: 0; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }

/* ========== 2. Tokens ========== */
:root {
  --ink: #0B3B5A;
  --ink-deep: #072A41;
  --blue: #2B6F8E;
  --ice: #DCEBF2;
  --paper: #F7F4ED;
  --stone: #9AAEB5;
  --gold: #D9A441;
  --coral: #E8704A;
  --aurora: #18A7A0;

  --tag-amber: #C98A1B;
  --tag-coral: #D95F45;
  --tag-teal: #2E8B7B;
  --tag-indigo: #3F6FA6;
  --tag-violet: #7563A8;
  --tag-graphite: #5C6670;

  --font-display: "HarmonyOS Sans", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-sans: "Source Han Sans SC", "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Serif SC", "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --frame-w: 1240px;
  --gutter: clamp(18px, 5vw, 56px);
  --r: 3px;
  --hair: 1px solid rgba(11, 59, 90, 0.16);
  --hair-light: 1px solid rgba(220, 235, 242, 0.18);
  --shadow-paper: 0 1px 0 rgba(11, 59, 90, 0.06), 0 20px 42px -30px rgba(11, 59, 90, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
}

/* ========== 3. Base typography ========== */
body {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, rgba(11, 59, 90, 0.026) 0 1px, transparent 1px 7px);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(15.5px, 0.32vw + 14.6px, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 4.4vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1.4vw, 1.4rem); letter-spacing: -0.012em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { text-wrap: pretty; }

strong { font-weight: 700; }
small { font-size: 0.82em; }

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

#main-content:focus { outline: none; }

::selection { background: var(--gold); color: #10222F; }

/* ========== 4. Layout utilities ========== */
.container {
  width: min(100% - 2 * var(--gutter), var(--frame-w));
  margin-inline: auto;
}

.section { padding-block: clamp(40px, 6vw, 84px); }
.section--ice { background: var(--ice); }
.section--paper { background: var(--paper); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  padding-bottom: 0.9rem;
  margin-bottom: clamp(20px, 2.6vw, 36px);
  border-bottom: var(--hair);
}

.page-head { padding-block: clamp(28px, 4vw, 56px) clamp(10px, 1.6vw, 20px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.lede {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.2vw, 1.2rem);
  line-height: 1.8;
  color: var(--blue);
  max-width: 62ch;
}

.prose {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 68ch;
}
.prose p + p { margin-top: 0.95em; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; }

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

.grid { display: grid; gap: clamp(14px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); }

.bento {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bento-cell {
  background: var(--paper);
  border: var(--hair);
  border-radius: var(--r);
  padding: clamp(14px, 1.8vw, 24px);
}
.bento-cell--s2 { grid-column: span 2; }
.bento-cell--s3 { grid-column: span 3; }
.bento-cell--s4 { grid-column: span 4; }
.bento-cell--s6 { grid-column: span 6; }

.panel {
  background: var(--paper);
  border: var(--hair);
  border-radius: var(--r);
  padding: clamp(16px, 2.2vw, 28px);
  box-shadow: var(--shadow-paper);
}
.panel--ice { background: var(--ice); border-color: rgba(11, 59, 90, 0.1); }
.panel--ink { background: var(--ink); color: var(--paper); border-color: rgba(11, 59, 90, 0.5); }

/* ========== 5. Buttons ========== */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: #10222F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.15em;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid rgba(11, 59, 90, 0.22);
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(11, 59, 90, 0.18);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(11, 59, 90, 0.2); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(11, 59, 90, 0.2); }

.btn-gold { --btn-bg: var(--gold); --btn-fg: #10222F; }
.btn-coral { --btn-bg: var(--coral); --btn-fg: #20100A; }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--paper); border-color: var(--ink); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(11, 59, 90, 0.38);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(11, 59, 90, 0.07); box-shadow: none; }
.btn--sm { font-size: 0.8rem; padding: 0.52em 0.88em; }

/* ========== 6. Tags & dots ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.24em 0.6em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  border-radius: 2px;
  background: var(--ice);
  color: var(--ink);
}
.tag--case { background: var(--tag-amber); color: #1A1206; }
.tag--line { background: var(--tag-coral); color: #22100B; }
.tag--rule { background: var(--tag-teal); color: #08140F; }
.tag--record { background: var(--tag-indigo); color: var(--paper); }
.tag--topic { background: var(--tag-violet); color: var(--paper); }
.tag--news { background: var(--tag-graphite); color: var(--paper); }

.tag-dot { flex: 1 1 0; display: block; }
.tag-dot--case { background: var(--tag-amber); }
.tag-dot--line { background: var(--tag-coral); }
.tag-dot--rule { background: var(--tag-teal); }
.tag-dot--record { background: var(--tag-indigo); }
.tag-dot--topic { background: var(--tag-violet); }
.tag-dot--news { background: var(--tag-graphite); }

/* ========== 7. Breadcrumb ========== */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35em; }
.breadcrumb-list li { display: inline-flex; align-items: center; }
.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 0.4em;
  color: var(--stone);
}
.breadcrumb-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ========== 8. Media frames ========== */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: var(--media-ratio, 4 / 3);
  border: var(--hair);
  border-radius: var(--r);
  background:
    linear-gradient(148deg, var(--ice) 0%, #cfe1ea 52%, #e7edef 100%),
    var(--ice);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(247, 244, 237, 0.45);
  pointer-events: none;
}
.media-frame--wide { --media-ratio: 16 / 9; }
.media-frame--tall { --media-ratio: 3 / 4; }
.media-frame--sq { --media-ratio: 1 / 1; }

.media-caption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--blue);
}

/* ========== 9. Reveal protocol ========== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ========== 10. Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 237, 0.97);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 2px solid var(--ink);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #10222F;
  background: var(--gold);
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 8px; }

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.42rem max(var(--gutter), calc((100% - var(--frame-w)) / 2));
  background: var(--ink);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
}
.meta-issue { flex: none; font-variant-numeric: tabular-nums; }
.meta-rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 18px;
  background: linear-gradient(90deg, rgba(220, 235, 242, 0.55), rgba(220, 235, 242, 0.05));
}
.meta-note { flex: none; color: rgba(220, 235, 242, 0.8); }

.header-frame {
  width: min(100% - 2 * var(--gutter), var(--frame-w));
  margin-inline: auto;
  padding-block: 0.72rem 0.9rem;
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; min-width: 0; }
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.brand:hover .brand-mark { background: var(--gold); color: var(--ink); }
.brand-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.9vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.brand-line {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  color: var(--blue);
  white-space: nowrap;
}

.site-nav { justify-self: end; min-width: 0; }
.nav-list {
  display: flex;
  align-items: stretch;
  gap: clamp(2px, 0.8vw, 12px);
}
.nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.34rem 0.55rem;
  border-radius: 2px;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--stone);
  line-height: 1.2;
  transition: color 0.2s var(--ease);
}
.nav-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.3;
}
.nav-link:hover { background: var(--ice); }
.nav-link:hover .nav-index { color: var(--coral); }
.nav-link[aria-current="page"] {
  background: var(--ice);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.nav-link[aria-current="page"] .nav-index { color: var(--coral); }

.header-cta { justify-self: end; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(11, 59, 90, 0.32);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: transparent;
}
.nav-toggle-bar {
  position: relative;
  width: 16px;
  height: 2px;
  flex: none;
  background: var(--ink);
  transition: background-color 0.18s var(--ease);
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease);
}
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

.header-tags {
  display: flex;
  height: 5px;
  background: var(--ice);
}
.header-tags .tag-dot { height: 100%; }

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--coral) 55%, var(--aurora));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* ========== 11. Footer ========== */
.site-footer {
  margin-top: clamp(40px, 6vw, 88px);
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.footer-band {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--tag-amber) 0 16.666%,
    var(--tag-coral) 0 33.333%,
    var(--tag-teal) 0 50%,
    var(--tag-indigo) 0 66.666%,
    var(--tag-violet) 0 83.333%,
    var(--tag-graphite) 0 100%
  );
}
.footer-frame { padding-block: clamp(34px, 5vw, 64px) clamp(18px, 2.4vw, 28px); }

.footer-lede {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(24px, 3vw, 42px);
  border-bottom: var(--hair-light);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-summary {
  margin: 0.7rem 0 1.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.55;
  color: var(--paper);
  max-width: 30ch;
}

.footer-contact {
  background: rgba(220, 235, 242, 0.06);
  border: 1px solid rgba(220, 235, 242, 0.18);
  border-radius: var(--r);
  padding: clamp(16px, 2.2vw, 24px);
}
.footer-title,
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.contact-list { display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.contact-item {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.65;
}
.contact-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--stone);
  padding-top: 0.28em;
}
.contact-value { color: rgba(247, 244, 237, 0.94); overflow-wrap: anywhere; }
.footer-note {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(220, 235, 242, 0.22);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(220, 235, 242, 0.72);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  padding-block: clamp(24px, 3.4vw, 44px);
}
.footer-list { margin-top: 0.8rem; display: grid; gap: 0.2rem; }
.footer-link {
  display: inline-block;
  padding: 0.28rem 0;
  font-size: 0.94rem;
  color: rgba(247, 244, 237, 0.88);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer-window {
  height: 56px;
  margin: 0.9rem 0 0.7rem;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(217, 164, 65, 0.55) 0 8px, transparent 8px 20px),
    repeating-linear-gradient(0deg, rgba(217, 164, 65, 0.4) 0 6px, transparent 6px 18px),
    rgba(220, 235, 242, 0.05);
}
.footer-index {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(220, 235, 242, 0.72);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  padding-top: clamp(16px, 2vw, 24px);
  border-top: var(--hair-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(220, 235, 242, 0.72);
}
.legal-list { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.legal-link {
  color: rgba(247, 244, 237, 0.86);
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(220, 235, 242, 0.32);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.legal-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-copy { margin-inline-start: auto; }
.footer-icp { color: rgba(220, 235, 242, 0.64); }

/* ========== 12. Responsive ========== */
@media (max-width: 1180px) {
  .nav-index { display: none; }
  .nav-link { padding: 0.4rem 0.5rem; }
}

@media (max-width: 1000px) {
  html { scroll-padding-top: 110px; }

  .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem 1rem;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .nav-toggle { display: inline-flex; grid-column: 2; grid-row: 1; justify-self: end; }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }
  .site-nav[data-open="true"] { display: block; }
  .nav-list {
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(11, 59, 90, 0.16);
  }
  .nav-link {
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.72rem 0.2rem;
    border-radius: 0;
    border-bottom: 1px dashed rgba(11, 59, 90, 0.18);
  }
  .nav-index { display: inline; font-size: 0.64rem; }
  .nav-label { font-size: 0.98rem; }
  .nav-link:hover { background: transparent; color: var(--blue); }
  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(220, 235, 242, 0.9), rgba(220, 235, 242, 0));
    box-shadow: inset 3px 0 0 var(--gold);
    padding-left: 0.7rem;
  }

  .header-cta {
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin-top: 0.8rem;
  }
  .site-header[data-nav-open="true"] .header-cta { display: inline-flex; }

  .grid--2,
  .grid--3,
  .grid--asym { grid-template-columns: minmax(0, 1fr); }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-cell--s2,
  .bento-cell--s3,
  .bento-cell--s4,
  .bento-cell--s6 { grid-column: span 2; }

  .footer-lede { grid-template-columns: minmax(0, 1fr); }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-meta { font-size: 0.6rem; letter-spacing: 0.1em; gap: 0.5rem; }
  .meta-note { display: none; }
  .header-frame { padding-block: 0.6rem 0.7rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.1rem; }
  .brand-line { font-size: 0.58rem; letter-spacing: 0.1em; }

  .footer-columns { grid-template-columns: minmax(0, 1fr); }
  .footer-copy { margin-inline-start: 0; }
  .footer-base { font-size: 0.66rem; }
}

@media (max-width: 520px) {
  .header-tags { height: 4px; }
  .contact-item { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .contact-key { padding-top: 0; }
}

/* ========== 13. 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 [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .btn:active { transform: none; }
}

@media print {
  .site-header { position: static; backdrop-filter: none; }
  .header-meta, .header-tags, .header-progress, .nav-toggle, .skip-link, .footer-band { display: none !important; }
  body { background: #fff; color: #000; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .footer-link, .legal-link, .contact-value, .footer-index, .footer-note { color: #000; }
}
