/* ==========================================================================
   鱼丸游戏站 · 共享样式表 /assets/site.css
   夜间开服看板语言：深海墨蓝画布 / 切角面板 / 等宽数据 / 信号色状态
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; }

/* ── 2. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* 品牌色 */
  --ink: #061019;
  --cabin: #0C1E2B;
  --tide: #163A4A;
  --orange: #FF6A2B;
  --cyan: #4FE3D0;
  --amber: #FFC24B;
  --coral: #FF5A5F;
  --paper: #F4F1EA;
  --mist: #A9BCC7;
  --graphite: #101820;

  /* 字体栈 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-ui: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺度 */
  --shell-width: 1320px;
  --shell-wide: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --notch: 14px;

  /* 线条 */
  --line-soft: rgba(169, 188, 199, 0.16);
  --line-cyan: rgba(79, 227, 208, 0.34);
  --line-orange: rgba(255, 106, 43, 0.40);
}

/* ── 3. Base ───────────────────────────────────────────────────────────── */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(36px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: clamp(17px, 1.6vw, 20px); }

p { max-width: 38em; }

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.18s ease;
}

a:hover { color: var(--amber); }

ul, ol { padding-left: 1.15em; }

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

::selection {
  background: var(--orange);
  color: var(--graphite);
}

hr {
  border: 0;
  height: 1px;
  background: var(--line-soft);
  margin: 2em 0;
}

/* ── 4. 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;
}

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

.shell--wide { max-width: var(--shell-wide); }

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

.text-mist { color: var(--mist); }

/* ── 5. Skip link ──────────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -120px;
  left: var(--gutter);
  z-index: 400;
  display: inline-block;
  padding: 13px 24px;
  background: var(--amber);
  color: var(--graphite);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--graphite);
}

/* ── 6. Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

/* 6.1 上层：品牌说明 + 运营信息 */
.header-masthead {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(79, 227, 208, 0.055) 0 1px,
    transparent 1px 10px
  );
  border-bottom: 1px solid var(--line-soft);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  width: 100%;
  max-width: var(--shell-width);
  margin-inline: auto;
  padding: 15px var(--gutter);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
  color: var(--paper);
}

.brand-name {
  position: relative;
  display: block;
  padding-left: 17px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1;
  letter-spacing: 0.035em;
  color: var(--paper);
  transition: color 0.18s ease;
}

.brand-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1.3em;
  transform: translateY(-50%) skewX(-12deg);
  background: var(--orange);
}

.brand-tagline {
  display: block;
  padding-left: 17px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.brand-mark:hover .brand-name { color: var(--cyan); }

.masthead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  padding-inline: 15px;
}

.meta-item + .meta-item { border-left: 1px solid var(--line-soft); }

.meta-item:first-child::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 227, 208, 0.18);
}

/* 6.2 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 44px;
  padding: 0;
  background: rgba(12, 30, 43, 0.9);
  border: 1px solid var(--line-cyan);
  color: var(--paper);
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover { background: var(--tide); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  transition: background-color 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header[data-open] .nav-toggle {
  background: var(--tide);
  border-color: var(--amber);
}

.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* 6.3 下层：主导航 */
.header-nav {
  position: relative;
  display: block;
  background: var(--cabin);
  box-shadow: inset 0 -1px 0 rgba(79, 227, 208, 0.14);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: navi;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 18px 13px 16px;
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link::before {
  counter-increment: navi;
  content: counter(navi, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mist);
  opacity: 0.65;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-link:hover {
  color: var(--cyan);
  background: rgba(79, 227, 208, 0.07);
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--graphite);
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.nav-link[aria-current="page"]::before {
  color: var(--graphite);
  opacity: 0.7;
}

.nav-link[aria-current="page"]::after { transform: scaleX(0); }

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--graphite);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-cta::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform 0.18s ease;
}

.nav-cta:hover {
  background: var(--amber);
  color: var(--graphite);
}

.nav-cta:hover::after { transform: translateX(3px); }

/* 6.4 滚动进度线 */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(6, 16, 25, 0.6);
  pointer-events: none;
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--amber) 58%, var(--orange) 100%);
}

/* ── 7. Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 62%;
  height: 300px;
  background: repeating-linear-gradient(
    115deg,
    rgba(79, 227, 208, 0.055) 0 2px,
    transparent 2px 14px
  );
  pointer-events: none;
}

.footer-rail {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 6%,
    var(--orange) 6% 18%,
    var(--tide) 18% 100%
  );
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 76px);
}

.footer-brand { min-width: 0; }

.footer-mark {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.035em;
  color: var(--paper);
}

.footer-summary {
  max-width: 32em;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-note {
  max-width: 34em;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: rgba(169, 188, 199, 0.78);
}

.footer-col { min-width: 0; }

.footer-col-title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 13px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--orange);
  transform: skewX(-24deg);
  transform-origin: left center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--tide);
  transition: width 0.18s ease, background-color 0.18s ease;
}

.footer-links a:hover { color: var(--cyan); }
.footer-links a:hover::before { width: 20px; background: var(--orange); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact li {
  position: relative;
  padding-left: 15px;
}

.footer-contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.footer-legal {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: rgba(12, 30, 43, 0.62);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.footer-copy,
.footer-meta {
  max-width: none;
  margin: 0;
}

.footer-meta a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-meta a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ── 8. Layout primitives ──────────────────────────────────────────────── */
.section { padding-block: clamp(48px, 7vw, 104px); }
.section--cabin { background: var(--cabin); }
.section--tide { background: var(--tide); }
.section--paper { background: var(--paper); color: var(--graphite); }

.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4 { color: var(--graphite); }

.section--paper a { color: #0F5E63; }
.section--paper a:hover { color: var(--orange); }

.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 32px);
}

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

/* ── 9. Editorial text ─────────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--orange);
  transform: skewX(-26deg);
}

.section--paper .section-label { color: #0F5E63; }

.section-title {
  max-width: 20em;
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0.005em;
}

.section-title--tight {
  font-size: clamp(24px, 3vw, 36px);
}

.lede {
  max-width: 34em;
  margin: 0 0 1.2em;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.8;
  color: var(--mist);
}

.section--paper .lede { color: #3A4A52; }

.prose {
  max-width: 38em;
  font-size: 16.5px;
  line-height: 1.8;
}

.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { font-weight: 700; color: var(--paper); }
.section--paper .prose strong { color: var(--graphite); }

/* ── 10. Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 27px;
  background: var(--tide);
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn:hover { color: var(--paper); }

.btn--primary {
  background: var(--orange);
  color: var(--graphite);
}

.btn--primary:hover {
  background: var(--amber);
  color: var(--graphite);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1.5px rgba(79, 227, 208, 0.45);
}

.btn--ghost:hover {
  background: rgba(79, 227, 208, 0.12);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1.5px var(--cyan);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 14px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── 11. Chips ─────────────────────────────────────────────────────────── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(79, 227, 208, 0.08);
  border: 1px solid rgba(79, 227, 208, 0.38);
  color: var(--cyan);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.05em;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.chip--orange {
  color: var(--orange);
  background: rgba(255, 106, 43, 0.1);
  border-color: var(--line-orange);
}

.chip--amber {
  color: var(--amber);
  background: rgba(255, 194, 75, 0.1);
  border-color: rgba(255, 194, 75, 0.42);
}

.chip--coral {
  color: var(--coral);
  background: rgba(255, 90, 95, 0.1);
  border-color: rgba(255, 90, 95, 0.42);
}

.chip--mist {
  color: var(--mist);
  background: rgba(169, 188, 199, 0.08);
  border-color: rgba(169, 188, 199, 0.28);
}

/* ── 12. Panels ────────────────────────────────────────────────────────── */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--cabin);
  color: var(--paper);
  clip-path: polygon(
    var(--notch) 0,
    100% 0,
    100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%,
    0 100%,
    0 var(--notch)
  );
}

.panel--paper { background: var(--paper); color: var(--graphite); }
.panel--tide { background: var(--tide); }
.panel--signal { background: linear-gradient(150deg, var(--tide) 0%, var(--cabin) 68%); }

/* ── 13. Breadcrumbs ───────────────────────────────────────────────────── */
.breadcrumbs { margin: 0 0 clamp(20px, 3vw, 32px); }

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.breadcrumbs-list li { display: inline-flex; align-items: center; }

.breadcrumbs-list li + li::before {
  content: "/";
  margin-inline: 9px;
  color: var(--tide);
}

.breadcrumbs-list a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumbs-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumbs-list [aria-current="page"] { color: var(--paper); }

.section--paper .breadcrumbs-list [aria-current="page"] { color: var(--graphite); }

/* ── 14. Media frames ──────────────────────────────────────────────────── */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--tide) 0%, var(--cabin) 72%);
  clip-path: polygon(
    var(--notch) 0,
    100% 0,
    100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%,
    0 100%,
    0 var(--notch)
  );
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(6, 16, 25, 0.22) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.55;
  pointer-events: none;
}

.media-frame--empty {
  background-image:
    repeating-linear-gradient(135deg, rgba(79, 227, 208, 0.09) 0 2px, transparent 2px 12px),
    linear-gradient(145deg, var(--tide) 0%, var(--cabin) 72%);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--mist);
}

/* ── 15. Reveal ────────────────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.7, 0.3, 1),
    transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ── 16. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
}

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

@media (max-width: 900px) {
  .masthead-meta { display: none; }
  .nav-toggle { display: inline-flex; }

  .header-nav { display: none; }
  .site-header[data-open] .header-nav { display: block; }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 22px;
  }

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

  .nav-link {
    padding: 17px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link::before { font-size: 11px; }

  .nav-link::after {
    left: 4px;
    right: auto;
    width: 34px;
    bottom: -1px;
  }

  .nav-link[aria-current="page"] {
    padding-inline: 14px;
  }

  .nav-cta {
    justify-content: center;
    margin: 18px 0 0;
    padding: 16px;
    font-size: 16px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .masthead-inner { padding-block: 13px; gap: 12px; }
  .brand-tagline { font-size: 10.5px; letter-spacing: 0.05em; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-legal-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-summary { font-size: 14.5px; }
}

/* ── 17. Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .scroll-meter { display: none; }
}
