/* =========================================================
   华体CN · 看台第一排 / site.css
   reset → tokens → typography → shell & grid → buttons
   → header → drawer → footer → utilities → responsive
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5,
p, figure, blockquote, dl, dd, ul, ol {
  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;
  cursor: pointer;
}

a { color: inherit; }

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

/* ---------- tokens ---------- */
:root {
  --blue-900: #08152B;
  --blue-700: #0F2544;
  --blue-500: #1B3E6B;
  --paper: #F4F6FA;
  --orange: #FF5A1F;
  --orange-300: #FF8F5C;
  --acid: #C8FF3D;
  --acid-ink: #0E2A1F;
  --line: #DCE3EE;
  --ink-soft: #5F7085;
  --mist: #FFE2D3;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", ui-monospace, Consolas, "Courier New", monospace;

  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 116px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- base typography ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(15px, .55vw + 14px, 17px);
  line-height: 1.75;
  color: var(--blue-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 全站轻微印刷噪点 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .45;
  mix-blend-mode: multiply;
  background-image: radial-gradient(circle at center, rgba(8, 21, 43, .13) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

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

h1 { font-size: clamp(30px, 4.2vw, 52px); }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.012em; }
h4 { font-size: clamp(16px, 1.2vw, 18px); }

p { text-wrap: pretty; }

strong { font-weight: 700; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

#main-content { padding-top: var(--header-h); }
#main-content.is-flush { padding-top: 0; }

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

.section { padding-block: clamp(48px, 7vw, 96px); }

.prose {
  max-width: 70ch;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.85;
}
.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--orange); text-decoration: none; border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--blue-900); }

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  transition:
    transform .22s var(--ease),
    background-color .22s var(--ease),
    color .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, .5) 50%, transparent 78%);
  transform: translateX(-130%);
  transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateX(130%); }

.btn--acid {
  background: var(--acid);
  color: var(--acid-ink);
  border-color: var(--acid);
}
.btn--acid:hover {
  background: #d7ff70;
  border-color: #d7ff70;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -20px rgba(200, 255, 61, .95);
}

.btn--solid {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn--solid:hover {
  background: #ff723f;
  border-color: #ff723f;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(220, 227, 238, .05);
  border-color: rgba(220, 227, 238, .34);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
  transform: translateY(-2px);
}

.btn--dark {
  background: transparent;
  border-color: var(--blue-500);
  color: var(--blue-900);
}
.btn--dark:hover {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ---------- small editorial parts ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.chapter-no {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .82;
  letter-spacing: -.04em;
  color: var(--orange);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  background: var(--mist);
  color: var(--blue-900);
  border: 1px solid rgba(255, 90, 31, .28);
  border-radius: 1px;
}
.tag--acid {
  background: var(--acid);
  border-color: var(--acid-ink);
  color: var(--acid-ink);
}

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 1px 0 0 var(--line);
}
.card--dark {
  background: var(--blue-700);
  border-color: rgba(220, 227, 238, .16);
  color: var(--paper);
}
.card--bevel {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

/* ---------- figures (image containers) ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--blue-700) 0%, var(--blue-500) 100%);
  box-shadow: 9px 9px 0 -1px var(--paper), 10px 10px 0 0 var(--line);
}

.figure > img,
.figure > .figure__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__media--placeholder {
  background:
    radial-gradient(90% 80% at 85% 10%, rgba(255, 90, 31, .42), transparent 62%),
    linear-gradient(140deg, var(--blue-700) 0%, var(--blue-500) 65%, #16325a 100%);
}

.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3  { aspect-ratio: 4 / 3; }
.figure--4x5  { aspect-ratio: 4 / 5; }
.figure--1x1  { aspect-ratio: 1 / 1; }

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(244, 246, 250, .92);
  background: linear-gradient(180deg, transparent, rgba(8, 21, 43, .72));
}

/* ---------- breadcrumb ---------- */
.breadcrumb { padding-block: 18px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.breadcrumb__link {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.breadcrumb__link:hover {
  color: var(--orange);
  border-bottom-color: currentColor;
}

.breadcrumb__sep { color: rgba(95, 112, 133, .5); }

.breadcrumb__current { color: var(--blue-900); font-weight: 500; }

/* =========================================================
   HEADER
   ========================================================= */
.skip-link {
  position: absolute;
  left: 14px;
  top: -120px;
  z-index: 900;
  padding: 12px 20px;
  background: var(--acid);
  color: var(--acid-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 10px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  color: var(--paper);
  background-color: rgba(8, 21, 43, 0);
  background-image: linear-gradient(180deg,
      rgba(8, 21, 43, .95) 0%,
      rgba(8, 21, 43, .87) 66%,
      rgba(8, 21, 43, .52) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(8, 21, 43, .97);
  background-image: none;
  border-bottom-color: rgba(220, 227, 238, .16);
  box-shadow: 0 22px 48px -32px rgba(8, 21, 43, .95);
}

/* --- first row --- */
.header-top__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  background: linear-gradient(150deg, var(--orange) 0%, var(--orange-300) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
  transition: transform .3s var(--ease);
}
.brand:hover .brand__mark { transform: translateY(-2px); }

.brand__mark::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--acid);
}

.brand__text {
  display: flex;
  align-items: baseline;
  gap: 9px;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--paper);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(220, 227, 238, .56);
  white-space: nowrap;
}

.mini-nav { justify-self: center; }

.mini-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.mini-link {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(244, 246, 250, .68);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.mini-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--acid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.mini-link:hover,
.mini-link:focus-visible { color: #fff; }
.mini-link:hover::after { transform: scaleX(1); }

.header-meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(220, 227, 238, .66);
  white-space: nowrap;
}

.status-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, .16);
  animation: sk-pulse 2.6s ease-in-out infinite;
}

@keyframes sk-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(200, 255, 61, .16); }
  50%      { box-shadow: 0 0 0 7px rgba(200, 255, 61, .05); }
}

/* --- second row --- */
.header-main { position: relative; }

.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  min-height: 62px;
  border-top: 1px solid transparent;
  transition: border-color .35s var(--ease);
}

.site-header.is-scrolled .header-main__inner {
  border-top-color: rgba(220, 227, 238, .12);
}

.header-nav { flex: 1 1 auto; }

.header-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
}

.nav-link {
  position: relative;
  display: block;
  padding: 20px 0;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(244, 246, 250, .74);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--acid);
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(220, 227, 238, .26);
  border-radius: 2px;
  color: rgba(244, 246, 250, .88);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  transition: border-color .22s var(--ease), color .22s var(--ease);
}
.nav-toggle:hover { border-color: var(--acid); color: var(--acid); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

.nav-toggle__label { white-space: nowrap; }

.drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(244, 246, 250, .8);
  background: rgba(220, 227, 238, .05);
  border: 1px solid rgba(220, 227, 238, .26);
  border-radius: 2px;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.drawer-btn:hover,
.drawer-btn[aria-expanded="true"] {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--acid-ink);
}

.drawer-btn__icon { flex: 0 0 auto; }
.drawer-btn__text { white-space: nowrap; }

/* --- reading progress --- */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(220, 227, 238, .1);
  overflow: hidden;
  pointer-events: none;
}
.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-300) 55%, var(--acid) 100%);
  transition: width .12s linear;
}

/* --- drawer --- */
.site-drawer {
  position: fixed;
  top: var(--header-h);
  right: clamp(12px, 3vw, 40px);
  z-index: 340;
  width: min(400px, calc(100vw - 24px));
  padding: 22px 22px 26px;
  background: var(--blue-700);
  color: var(--paper);
  border: 1px solid rgba(220, 227, 238, .18);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.site-drawer[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(220, 227, 238, .16);
}

.drawer__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acid);
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(220, 227, 238, .24);
  color: rgba(244, 246, 250, .8);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.drawer__close:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.drawer__group { padding-top: 18px; }

.drawer__group-title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: rgba(220, 227, 238, .5);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  text-decoration: none;
  color: rgba(244, 246, 250, .86);
  border-bottom: 1px dashed rgba(220, 227, 238, .14);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.drawer__link::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--orange);
  opacity: .9;
}
.drawer__link:hover {
  color: var(--acid);
  padding-left: 6px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(56px, 7vw, 96px) 0 36px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(90% 70% at 84% 0%, rgba(255, 90, 31, .22), transparent 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(200, 255, 61, .1), transparent 60%),
    var(--blue-900);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-300) 34%, var(--acid) 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(102deg, rgba(220, 227, 238, .1) 0 1px, transparent 1px 26px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

.footer-shell { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 1.75fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 227, 238, .14);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .94;
  letter-spacing: -.035em;
  color: var(--paper);
}

.footer-brand__accent { color: var(--orange); }

.footer-brand__tag {
  font-size: 14px;
  letter-spacing: .02em;
  color: rgba(220, 227, 238, .62);
}

.footer-brand__since {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--acid);
}

.footer-brand .btn { margin-top: 8px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  color: rgba(220, 227, 238, .48);
}

.footer-col__list { display: grid; gap: 11px; }

.footer-link {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14.5px;
  color: rgba(244, 246, 250, .8);
  text-decoration: none;
  transition: color .22s var(--ease), padding-left .22s var(--ease);
}
.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--acid);
  transform: translateY(-50%);
  transition: width .22s var(--ease);
}
.footer-link:hover {
  color: var(--acid);
  padding-left: 16px;
}
.footer-link:hover::before { width: 10px; }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.6fr);
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid rgba(220, 227, 238, .14);
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-contact__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: rgba(200, 255, 61, .8);
}

.footer-contact__v {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(244, 246, 250, .86);
  overflow-wrap: anywhere;
}

.footer-contact__item--wide { grid-column: auto; }

.footer-note {
  max-width: 78ch;
  margin-top: clamp(20px, 2.4vw, 28px);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(220, 227, 238, .52);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid rgba(220, 227, 238, .12);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(220, 227, 238, .44);
}

.footer-legal__copy { margin: 0; }

.footer-legal__icp {
  margin: 0;
  padding-left: 26px;
  border-left: 1px solid rgba(220, 227, 238, .18);
  color: rgba(220, 227, 238, .62);
}

/* ---------- reveal ---------- */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1140px) {
  .mini-nav__list { gap: 16px; }
  .mini-link { font-size: 12.5px; }
  .header-nav__list { gap: 18px; }
  .nav-link { font-size: 13.5px; }
}

@media (max-width: 960px) {
  :root { --header-h: 110px; }

  .site-header {
    background-color: var(--blue-900);
    background-image: none;
    border-bottom-color: rgba(220, 227, 238, .14);
  }

  .mini-nav,
  .status-chip { display: none; }

  .header-top__inner { grid-template-columns: 1fr auto; min-height: 54px; }

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

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding-bottom: 14px;
    background: var(--blue-900);
    border-top: 1px solid rgba(220, 227, 238, .14);
    box-shadow: 0 34px 60px -32px rgba(8, 21, 43, .95);
  }
  .header-nav[data-open="true"] { display: block; }

  .header-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter);
  }
  .header-nav__list li + li { border-top: 1px solid rgba(220, 227, 238, .12); }

  .nav-link { padding: 16px 0; font-size: 16px; }
  .nav-link::after { bottom: 10px; }

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

  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact__item--wide {
    grid-column: 1 / -1;
    padding-top: 6px;
  }
}

@media (max-width: 720px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

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

  .site-drawer {
    top: var(--header-h);
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .footer-legal { font-size: 11px; gap: 8px 16px; }
  .footer-legal__icp { padding-left: 16px; }
}

@media (max-width: 560px) {
  :root { --header-h: 106px; }

  .brand__tag { display: none; }

  .drawer-btn__text { display: none; }
  .drawer-btn { padding: 10px; }

  .header-actions { gap: 8px; }

  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .figure { box-shadow: 6px 6px 0 -1px var(--paper), 7px 7px 0 0 var(--line); }
}

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

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

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

  .btn:hover,
  .brand:hover .brand__mark { transform: none; }

  .btn::after { display: none; }

  .progress__bar { transition: none; }
}
