/* ==========================================================================
   澳门新京葡站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

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

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

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

ul, ol { list-style: none; }

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

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid #4FE3D0;
  outline-offset: 3px;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1220;
  --ink-2: #111A2E;
  --ink-3: #16223A;
  --gold: #E8B45A;
  --brick: #B44A3A;
  --mint: #7FD1B9;
  --amber: #FFB020;
  --cyan: #4FE3D0;
  --paper: #F6EBD8;
  --muted: #8FA3BF;

  --line: rgba(143, 163, 191, 0.22);
  --line-soft: rgba(143, 163, 191, 0.12);
  --line-gold: rgba(232, 180, 90, 0.30);

  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --narrow: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  --wrap: 1320px;
  --gut: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 160ms;
  --radius: 2px;
}

/* ---------- 3. Base & typography ---------- */
body {
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(79, 227, 208, 0.07), transparent 62%),
    radial-gradient(960px 560px at 6% 2%, rgba(232, 180, 90, 0.09), transparent 64%),
    radial-gradient(760px 520px at 50% 100%, rgba(180, 74, 58, 0.10), transparent 68%),
    linear-gradient(180deg, #0B1220 0%, #0B1220 52%, #090F1A 100%);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
  background-image:
    repeating-linear-gradient(115deg, rgba(246, 235, 216, 0.026) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(205deg, rgba(127, 209, 185, 0.020) 0 1px, transparent 1px 14px);
}

::selection {
  background: rgba(232, 180, 90, 0.30);
  color: var(--paper);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
}

p { max-width: 40em; }

#main-content { display: block; position: relative; z-index: 1; }

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

.lede {
  max-width: 36em;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  color: rgba(246, 235, 216, 0.86);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.rule {
  display: block;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-gold), var(--line) 42%, transparent);
}

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

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(40px, 7vw, 88px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

/* ---------- 5. Skip link & scroll progress ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--gold);
  color: #1a1206;
  font-family: var(--narrow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: rgba(143, 163, 191, 0.12);
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--mint) 52%, var(--gold));
  box-shadow: 0 0 12px rgba(79, 227, 208, 0.55);
  transition: transform 120ms linear;
}

/* ---------- 6. Header : registry tier ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.99), rgba(11, 18, 32, 0.97));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 54px -46px #000000;
}

.header-registry {
  border-bottom: 1px solid var(--line-soft);
  background-image:
    radial-gradient(620px 160px at 4% 50%, rgba(232, 180, 90, 0.15), transparent 68%),
    radial-gradient(520px 150px at 96% 50%, rgba(79, 227, 208, 0.10), transparent 70%),
    linear-gradient(90deg, rgba(180, 74, 58, 0.12), transparent 46%);
}

.registry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 40px);
  padding-block: 10px;
}

/* ---------- 7. Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  transition: opacity var(--dur) var(--ease);
}

.brand:hover { opacity: 0.92; }

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(232, 180, 90, 0.20), rgba(180, 74, 58, 0.16));
  color: var(--gold);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 18px -8px rgba(232, 180, 90, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.brand--footer { align-items: flex-start; }
.brand--footer .brand-mark { width: 40px; height: 40px; font-size: 21px; }
.brand--footer .brand-name { font-size: 20px; }

/* ---------- 8. Status cells ---------- */
.status-cells {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  row-gap: 6px;
}

.status-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 15px;
  border-left: 1px solid var(--line-soft);
}

.status-cell:first-child { border-left: 0; padding-left: 0; }
.status-cell:last-child { padding-right: 0; }

.status-key {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-val {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(246, 235, 216, 0.90);
  white-space: nowrap;
}

.status-cell--live .status-key::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  vertical-align: middle;
}

.status-cell--live .status-val { color: var(--cyan); }

/* ---------- 9. Header : nav tier ---------- */
.header-nav {
  position: relative;
  background-image: repeating-linear-gradient(90deg, rgba(143, 163, 191, 0.055) 0 1px, transparent 1px 34px);
}

.header-nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(72px, 14vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}

.nav-rail {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 17px clamp(9px, 1.3vw, 17px);
  font-family: var(--narrow);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(246, 235, 216, 0.78);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(143, 163, 191, 0.85);
  transition: color var(--dur) var(--ease);
}

.nav-label { position: relative; }

.nav-link::after {
  content: "";
  position: absolute;
  left: clamp(9px, 1.3vw, 17px);
  right: clamp(9px, 1.3vw, 17px);
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--amber) 40%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background-color: rgba(232, 180, 90, 0.05);
}

.nav-link:hover .nav-index { color: var(--amber); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--gold); }

.nav-link[aria-current="page"] .nav-index { color: var(--amber); }

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--amber);
  box-shadow: 0 0 10px -2px rgba(255, 176, 32, 0.8);
}

/* ---------- 10. Nav tools ---------- */
.nav-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(79, 227, 208, 0.06);
  font-family: var(--narrow);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--cyan);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-search::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.nav-search:hover,
.nav-search:focus-visible {
  border-color: rgba(79, 227, 208, 0.65);
  background: rgba(79, 227, 208, 0.12);
  box-shadow: 0 0 0 1px rgba(79, 227, 208, 0.22), 0 0 26px -12px rgba(79, 227, 208, 0.9);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 26, 46, 0.72);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: var(--line-gold); color: var(--gold); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  transition: opacity var(--dur) var(--ease);
}

.nav-toggle-text { line-height: 1; }

.site-header[data-open] .nav-toggle {
  border-color: rgba(255, 176, 32, 0.5);
  color: var(--amber);
}

.site-header[data-open] .nav-toggle-bars::after { opacity: 0; }

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #0A101C 0%, #0C1424 46%, #090F19 100%);
}

.footer-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(760px 300px at 10% 0%, rgba(232, 180, 90, 0.14), transparent 70%),
    radial-gradient(680px 280px at 92% 8%, rgba(180, 74, 58, 0.14), transparent 72%),
    radial-gradient(560px 240px at 50% 104%, rgba(79, 227, 208, 0.10), transparent 70%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.55fr 1fr;
  gap: clamp(24px, 3.4vw, 52px);
  padding-block: clamp(38px, 5.5vw, 68px) clamp(26px, 3.6vw, 44px);
}

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

.footer-note {
  margin-top: 16px;
  font-family: var(--narrow);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(246, 235, 216, 0.68);
  max-width: 22em;
}

.footer-service {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-service::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px var(--mint);
}

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

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

.footer-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 1px;
  background: var(--amber);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(246, 235, 216, 0.78);
  transition: color var(--dur) var(--ease);
}

.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible { color: var(--gold); }

.footer-link:hover::before,
.footer-link:focus-visible::before {
  width: 20px;
  background: var(--gold);
}

.footer-meta {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding-block: 8px;
  border-bottom: 1px dashed rgba(143, 163, 191, 0.14);
  font-size: 13px;
  max-width: none;
}

.footer-meta-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.footer-meta-val {
  color: rgba(246, 235, 216, 0.86);
  line-height: 1.6;
  word-break: break-word;
}

.footer-meta-val.mono { font-size: 12px; letter-spacing: 0.02em; }

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(232, 180, 90, 0.10);
  font-family: var(--narrow);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--gold);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.footer-cta::after {
  content: "\2192";
  font-family: var(--mono);
  font-size: 12px;
  transition: transform var(--dur) var(--ease);
}

.footer-cta:hover,
.footer-cta:focus-visible {
  background: rgba(232, 180, 90, 0.20);
  border-color: var(--gold);
  box-shadow: 0 12px 30px -22px rgba(232, 180, 90, 0.9);
}

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

.footer-tickline { padding-block: 0; }

.tick-row {
  display: block;
  height: 8px;
  border-top: 1px solid var(--line-soft);
  background-image: repeating-linear-gradient(90deg, rgba(143, 163, 191, 0.45) 0 1px, transparent 1px 15px);
  opacity: 0.42;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 16px 22px;
  border-top: 1px solid var(--line-soft);
}

.footer-base-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: none;
}

.footer-base-line:first-child { color: rgba(246, 235, 216, 0.72); }

/* ---------- 12. Buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.72em 1.15em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 26, 46, 0.72);
  font-family: var(--narrow);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--line-gold);
  color: var(--gold);
  background: rgba(232, 180, 90, 0.08);
}

.btn--gold {
  border-color: transparent;
  background: linear-gradient(160deg, var(--gold), #D59A3D);
  color: #1F160A;
  box-shadow: 0 12px 32px -20px rgba(232, 180, 90, 0.95);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  color: #1A1206;
  background: linear-gradient(160deg, #F2C471, var(--gold));
  box-shadow: 0 16px 38px -20px rgba(232, 180, 90, 1);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-gold);
  color: var(--gold);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.30em 0.62em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(143, 163, 191, 0.07);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}

.chip--amber {
  border-color: rgba(255, 176, 32, 0.42);
  background: rgba(255, 176, 32, 0.12);
  color: var(--amber);
}

.chip--mint {
  border-color: rgba(127, 209, 185, 0.42);
  background: rgba(127, 209, 185, 0.10);
  color: var(--mint);
}

.chip--cyan {
  border-color: rgba(79, 227, 208, 0.45);
  background: rgba(79, 227, 208, 0.10);
  color: var(--cyan);
}

/* ---------- 13. Panel / breadcrumb / media ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.86), rgba(11, 18, 32, 0.92));
  box-shadow: 0 24px 50px -42px #000000;
  transition: border-color var(--dur) var(--ease);
}

.panel::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 2px;
  height: 28px;
  background: var(--gold);
  box-shadow: 0 0 12px -4px rgba(232, 180, 90, 0.9);
}

.panel:hover { border-color: var(--line-gold); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(143, 163, 191, 0.45);
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

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

.media-plate {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: var(--ratio, 16 / 9);
  background-color: var(--ink-3);
  background-image:
    radial-gradient(120% 84% at 18% 0%, rgba(232, 180, 90, 0.18), transparent 62%),
    radial-gradient(110% 90% at 92% 100%, rgba(79, 227, 208, 0.16), transparent 64%),
    linear-gradient(160deg, #16223A, #0B1220);
}

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

.media-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(246, 235, 216, 0.06);
}

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

/* ---------- 14. Responsive : header ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-block: 10px;
    min-height: 0;
  }

  .nav-tools {
    order: 1;
    width: 100%;
    justify-content: space-between;
  }

  .nav-rail {
    order: 2;
    flex: 1 0 100%;
    display: none;
    margin-top: 4px;
    border-top: 1px solid var(--line-soft);
  }

  .site-header[data-open] .nav-rail {
    display: block;
    padding-block: 6px 10px;
  }

  .nav-list { flex-direction: column; }

  .nav-list > li { border-bottom: 1px solid var(--line-soft); }
  .nav-list > li:last-child { border-bottom: 0; }

  .nav-link {
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
    justify-content: flex-start;
  }

  .nav-link::after {
    left: 4px;
    right: 4px;
    bottom: 6px;
  }

  .nav-link:hover { background-color: transparent; }

  .status-cell--opt { display: none; }
}

@media (max-width: 760px) {
  .registry-inner { gap: 10px; }
  .status-cell { padding-inline: 10px; }
  .status-val { font-size: 10.5px; }
  .brand-sub { letter-spacing: 0.14em; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-meta { grid-template-columns: 1fr; gap: 2px; }
  .footer-meta-key { padding-top: 0; }
}

@media (max-width: 480px) {
  .nav-search { padding: 8px 12px; font-size: 12px; }
  .nav-toggle { padding: 9px 12px; }
  .brand-mark { width: 32px; height: 32px; font-size: 17px; }
  .status-cell--live .status-val { font-size: 10px; }
}

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

  .scroll-progress > span { transition: none; }
}
