/* ==========================================================================
   sideline-weishouye.com.cn — shared site kit
   /assets/site.css
   ========================================================================== */

:root {
  --ink: #07120F;
  --turf: #0E2A22;
  --bound: #1B4A3C;
  --chalk: #EAF1E8;
  --moss: #9CB3A6;
  --whistle: #FFD23F;
  --whistle-dim: #D9A81C;
  --alert: #A62B2B;
  --stripe: #CFE3D6;
  --hair: rgba(255, 255, 255, 0.12);
  --hair-strong: rgba(255, 255, 255, 0.24);
  --shell-w: 1240px;
  --step: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(27, 74, 60, 0.55), transparent 70%),
    radial-gradient(820px 460px at -6% 2%, rgba(14, 42, 34, 0.92), transparent 68%);
  background-repeat: no-repeat;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.55vw + 13px, 17px);
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; }

strong, b { font-weight: 700; color: var(--chalk); }

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

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

/* ---------- typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-stretch: condensed;
}

.mono,
.meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--moss);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moss);
}

.lede {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.8;
  color: var(--chalk);
  max-width: 60ch;
}

.score {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--whistle);
}

.score--chalk { color: var(--chalk); }

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

/* ---------- layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.container-narrow { max-width: 68ch; }

.page-main { display: block; }

.section {
  padding-block: clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--hair);
}
.section:first-of-type { border-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 40px);
}
.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--whistle);
}

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

@media (min-width: 1024px) {
  .grid--split { grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .grid--asym { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}

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

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--whistle);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 2px;
  transition: transform 0.24s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--chalk);
  outline-offset: 2px;
}

/* ---------- reading progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 120;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--whistle-dim), var(--whistle));
  box-shadow: 0 0 12px rgba(255, 210, 63, 0.45);
  transition: width 0.12s linear;
}

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background: linear-gradient(180deg, rgba(14, 42, 34, 0.98) 0%, rgba(7, 18, 15, 0.98) 100%);
  border-bottom: 1px solid var(--hair);
}

.header-strip {
  border-bottom: 1px solid var(--hair);
  background: rgba(7, 18, 15, 0.66);
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-block: 6px;
}
.strip-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--moss);
}
.strip-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--whistle);
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.16);
  animation: strip-pulse 2.8s var(--ease) infinite;
}
@keyframes strip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.strip-cta {
  flex: 0 0 auto;
  background: var(--whistle);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 2px;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease);
}
.strip-cta:hover,
.strip-cta:focus-visible {
  background: var(--whistle-dim);
  color: var(--ink);
}

.masthead {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-block: clamp(18px, 2.8vw, 30px) clamp(16px, 2.2vw, 24px);
}
.masthead-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moss);
}
.masthead-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  color: var(--chalk);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(34px, 6.4vw, 72px);
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand-mark-dot {
  width: clamp(8px, 1vw, 12px);
  height: clamp(8px, 1vw, 12px);
  background: var(--whistle);
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease);
}
.masthead-brand:hover .brand-mark-dot,
.masthead-brand:focus-visible .brand-mark-dot {
  transform: rotate(135deg);
  background: var(--whistle-dim);
}
.masthead-tagline {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--moss);
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--hair-strong);
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 9px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--whistle);
  color: var(--whistle);
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 4px; transform: rotate(-45deg); }
.nav-toggle-text { white-space: nowrap; }

/* nav */
.site-nav {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(27, 74, 60, 0.5), rgba(7, 18, 15, 0));
}
.nav-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(6px, 2vw, 34px);
}
.nav-item { display: flex; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 17px 6px 15px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--chalk);
  transition: color 0.24s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--moss);
  transition: color 0.24s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  height: 2px;
  background: var(--whistle);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--whistle); }
.nav-link:hover .nav-index,
.nav-link:focus-visible .nav-index { color: var(--whistle); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--whistle); }
.nav-link[aria-current="page"] .nav-index { color: var(--whistle); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .masthead { gap: 12px; }
  .site-nav {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.34s var(--ease), opacity 0.26s var(--ease), visibility 0.34s var(--ease);
  }
  .site-nav[data-open] {
    max-height: 660px;
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding-block: 6px 12px;
  }
  .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 14px 8px;
    border-bottom: 1px solid var(--hair);
    font-size: 16px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(255, 210, 63, 0.14), rgba(255, 210, 63, 0));
    padding-left: 14px;
  }
}

@media (max-width: 560px) {
  .strip-meta { font-size: 11px; letter-spacing: 0.04em; }
  .masthead-kicker { letter-spacing: 0.2em; font-size: 10px; }
  .masthead-tagline { letter-spacing: 0.14em; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease), transform 0.24s var(--ease);
}
.btn--primary {
  background: var(--whistle);
  color: var(--ink);
}
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--whistle-dim); }
.btn--ghost {
  background: transparent;
  border-color: var(--hair-strong);
  color: var(--chalk);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--whistle);
  color: var(--whistle);
}
.btn--alert {
  background: transparent;
  border-color: rgba(166, 43, 43, 0.8);
  color: #E7A9A9;
}
.btn--alert:hover,
.btn--alert:focus-visible {
  background: rgba(166, 43, 43, 0.16);
  border-color: var(--alert);
  color: var(--chalk);
}
.btn:active { transform: translateY(1px); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  padding-block: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--moss);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--bound);
}
.breadcrumbs a { transition: color 0.22s var(--ease); }
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--whistle); }
.breadcrumbs [aria-current="page"] { color: var(--chalk); }

/* ---------- tags / chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  background: rgba(27, 74, 60, 0.35);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.tag--whistle {
  color: var(--whistle);
  border-color: rgba(255, 210, 63, 0.7);
  background: rgba(255, 210, 63, 0.08);
}
.tag--alert {
  color: #E7A9A9;
  border-color: rgba(166, 43, 43, 0.7);
  background: rgba(166, 43, 43, 0.16);
}
.tag--active,
a.tag:hover,
button.tag:hover,
button.tag[aria-pressed="true"] {
  color: var(--whistle);
  border-color: var(--whistle);
  background: rgba(255, 210, 63, 0.1);
}

/* ---------- rail ---------- */
.rail { position: relative; }
.rail-sticky { display: block; }
@media (min-width: 1024px) {
  .rail-sticky { position: sticky; top: 24px; }
}
.rail-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}
.rail-list { display: grid; gap: 2px; }
.rail-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px 9px 14px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--moss);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.rail-link:hover,
.rail-link:focus-visible {
  color: var(--chalk);
  border-left-color: var(--hair-strong);
  background: rgba(27, 74, 60, 0.4);
}
.rail-link.is-active,
.rail-link[aria-current="true"] {
  color: var(--whistle);
  border-left-color: var(--whistle);
  background: rgba(255, 210, 63, 0.07);
}

/* ---------- cards ---------- */
.card {
  position: relative;
  display: block;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: linear-gradient(158deg, rgba(27, 74, 60, 0.6), rgba(14, 42, 34, 0.88) 70%);
  overflow: hidden;
  transition: border-color 0.26s var(--ease), transform 0.26s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 1px;
  background: var(--whistle);
  opacity: 0;
  transition: opacity 0.26s var(--ease), width 0.26s var(--ease);
}
.card:hover,
.card:focus-within {
  border-color: rgba(255, 210, 63, 0.5);
  transform: translateY(-2px);
}
.card:hover::after,
.card:focus-within::after { opacity: 1; width: 96px; }
.card__index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--moss);
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--chalk);
  margin: 0 0 8px;
}
.card__desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--moss);
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--moss);
}

/* ---------- ledger table ---------- */
.ledger-wrap {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: 2px;
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.ledger th {
  background: var(--bound);
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
.ledger td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hair);
  color: var(--moss);
  vertical-align: top;
}
.ledger tbody tr:nth-child(even) { background: rgba(207, 227, 214, 0.05); }
.ledger tbody tr:hover { background: rgba(255, 210, 63, 0.07); }
.ledger tbody tr:last-child td { border-bottom: 0; }

/* ---------- notice ---------- */
.notice {
  margin: 0 0 1.2em;
  padding: 14px 18px;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--whistle);
  background: rgba(27, 74, 60, 0.36);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--chalk);
}
.notice--alert {
  border-left-color: var(--alert);
  background: rgba(166, 43, 43, 0.12);
  color: #F0D4D4;
}

/* ---------- image containers (page stage) ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: linear-gradient(150deg, #12352B 0%, var(--ink) 72%);
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(234, 241, 232, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.55;
  mix-blend-mode: screen;
}
.img-frame img,
.img-frame picture,
.img-frame picture > img,
.img-frame video,
.img-frame svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--portrait { aspect-ratio: 4 / 5; }
.img-frame--plate {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255, 210, 63, 0.14) 0%, transparent 42%),
    linear-gradient(150deg, var(--bound) 0%, var(--turf) 100%);
}
.img-frame--slashed {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.img-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--moss);
  background: linear-gradient(180deg, rgba(7, 18, 15, 0), rgba(7, 18, 15, 0.9));
}

/* ---------- reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 96px);
  background: linear-gradient(180deg, var(--ink) 0%, var(--turf) 62%, var(--ink) 100%);
  border-top: 1px solid var(--hair);
}
.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 63, 0.65) 32%, var(--hair-strong) 68%, transparent);
}
.footer-top {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(36px, 6vw, 72px);
}
@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(250px, 1fr) minmax(0, 2.05fr);
    align-items: start;
  }
}
.footer-brand {
  display: grid;
  gap: 10px;
  align-content: start;
  max-width: 38ch;
}
.footer-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moss);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--chalk);
  transition: color 0.24s var(--ease);
}
.footer-brand-name:hover,
.footer-brand-name:focus-visible { color: var(--whistle); }
.footer-tagline {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--whistle);
}
.footer-note {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--moss);
}
.footer-address {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--moss);
}
.footer-address .mono {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--bound);
  text-transform: uppercase;
}
.footer-cols {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) {
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer-col-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--chalk);
}
.footer-col-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--whistle);
}
.footer-list { display: grid; gap: 10px; }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--moss);
  transition: color 0.22s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--whistle);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.footer-bottom {
  border-top: 1px solid var(--hair);
  background: rgba(7, 18, 15, 0.7);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 28px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--moss);
}
.footer-legal,
.footer-contact { margin: 0; }
.footer-legal { color: var(--chalk); opacity: 0.86; }
.footer-contact { max-width: 62ch; }

/* ---------- 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;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .card:hover,
  .card:focus-within { transform: none; }
  .btn:active { transform: none; }
}
