/* ============================================================
   haofa-insider.com.cn — 共享站点样式 /assets/site.css
   夜场数据终端 × 瓷器档案室
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd { 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; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
summary { cursor: pointer; }

/* ---------- tokens ---------- */
:root {
  --ink-900: #0D0E11;
  --ink-700: #191B20;
  --paper-050: #F3EDE1;
  --paper-200: #E3D9C6;
  --gold-600: #B4872C;
  --gold-300: #E2C079;
  --blue-700: #27567F;
  --blue-200: #A9C2D8;
  --stamp-600: #9E3324;
  --muted-500: #6C675E;
  --porcelain-000: #FCFAF5;

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

  --shell: 1280px;
  --gutter: clamp(24px, 4vw, 64px);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --dur-fast: 120ms;
  --dur-mid: 220ms;
  --dur-slow: 260ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --hairline-gold: rgba(226, 192, 121, 0.22);
  --hairline-ink: rgba(13, 14, 17, 0.12);
}

/* ---------- base ---------- */
body {
  background: var(--paper-050);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 400;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p { max-width: 40em; }

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 2px;
}
.zone--paper :focus-visible,
.zone--paper-2 :focus-visible { outline-color: var(--blue-700); }

.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;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 500;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--gold-300);
  color: var(--ink-900);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform var(--dur-mid) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

.zone { position: relative; padding-block: clamp(56px, 9vw, 132px); }
.zone--ink { background: var(--ink-900); color: var(--porcelain-000); }
.zone--deep { background: var(--ink-700); color: var(--porcelain-000); }
.zone--paper { background: var(--paper-050); color: var(--ink-900); }
.zone--paper-2 { background: var(--paper-200); color: var(--ink-900); }

.zone + .zone { border-top: 1px solid var(--hairline-gold); }
.zone--paper + .zone--paper,
.zone--paper + .zone--paper-2,
.zone--paper-2 + .zone--paper { border-top-color: var(--hairline-ink); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.prose { max-width: 40em; }
.prose + .prose { margin-top: 1.1em; }

.asym-block { transform: translateX(4%); }
.pause-line {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 18em;
}

.rule-line {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 48px) 0;
  background: currentColor;
  opacity: 0.16;
}
.rule-line--gold { background: var(--gold-600); opacity: 0.5; }

/* ---------- typography helpers ---------- */
.t-display {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4.5rem, 14vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
}
.t-h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 16em;
}
.t-h2 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.t-h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.24;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.zone--ink .eyebrow,
.zone--deep .eyebrow { color: var(--gold-300); }

.lede {
  font-size: 1.0625rem;
  line-height: 1.9;
  max-width: 40em;
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.t-note {
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--muted-500);
  max-width: 36em;
}
.zone--ink .t-note,
.zone--deep .t-note { color: rgba(252, 250, 245, 0.62); }

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

/* ---------- zone head & mark ---------- */
.zone-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.zone-head-text { display: flex; flex-direction: column; gap: 10px; }

.zone-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.72;
}
.zone-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  border-radius: 1px;
  opacity: 0.55;
}
.zone-mark::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px;
  top: 50%;
  height: 1px;
  background: currentColor;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn--solid { background: var(--gold-300); color: var(--ink-900); }
.btn--solid:hover { background: var(--porcelain-000); }
.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: var(--hairline-gold);
}
.btn--ghost:hover { border-color: var(--gold-300); color: var(--gold-300); }
.zone--paper .btn--ghost:hover,
.zone--paper-2 .btn--ghost:hover { border-color: var(--blue-700); color: var(--blue-700); }
.btn--link {
  padding: 4px 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
}
.btn--link:hover { color: var(--gold-600); }

/* ---------- breadcrumb ---------- */
.breadcrumb { margin-bottom: clamp(20px, 3vw, 36px); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted-500);
}
.zone--ink .breadcrumb-list,
.zone--deep .breadcrumb-list { color: rgba(252, 250, 245, 0.55); }
.breadcrumb-list li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumb-link { border-bottom: 1px solid transparent; transition: border-color var(--dur-fast); }
.breadcrumb-link:hover { border-bottom-color: currentColor; }
.breadcrumb-current { color: var(--blue-700); }
.zone--ink .breadcrumb-current,
.zone--deep .breadcrumb-current { color: var(--blue-200); }

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  border: 1px solid currentColor;
  line-height: 1.7;
}
.tag--gold { color: var(--gold-600); }
.tag--blue { color: var(--blue-700); }
.tag--stamp { color: var(--stamp-600); }

/* ---------- index list ---------- */
.index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline-ink);
}
.zone--ink .index-item,
.zone--deep .index-item { border-top-color: var(--hairline-gold); }
.index-no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  padding-top: 0.35em;
}
.index-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}
.index-meta {
  grid-column: 2;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--muted-500);
  max-width: 34em;
}
.zone--ink .index-meta,
.zone--deep .index-meta { color: rgba(252, 250, 245, 0.6); }

/* ---------- datum ---------- */
.datum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.datum { display: flex; flex-direction: column; gap: 6px; }
.datum-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--blue-700);
}
.zone--ink .datum-no,
.zone--deep .datum-no { color: var(--blue-200); }
.datum-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
}
.datum-label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.98rem;
}
.datum-note {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--muted-500);
}
.zone--ink .datum-note,
.zone--deep .datum-note { color: rgba(252, 250, 245, 0.58); }

.stat-figure {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4.5rem, 14vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.12em;
  color: var(--muted-500);
}
.zone--ink .stat-unit,
.zone--deep .stat-unit { color: rgba(252, 250, 245, 0.6); }

/* ---------- disclosure ---------- */
.disclosure-list { border-bottom: 1px solid var(--hairline-ink); }
.zone--ink .disclosure-list,
.zone--deep .disclosure-list { border-bottom-color: var(--hairline-gold); }

.disclosure { border-top: 1px solid var(--hairline-ink); }
.zone--ink .disclosure,
.zone--deep .disclosure { border-top-color: var(--hairline-gold); }

.disclosure > summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0 18px 22px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background-color var(--dur-fast) var(--ease);
}
.disclosure[open] > summary::before { background: var(--gold-600); }
.disclosure > summary:hover { color: var(--gold-600); }
.zone--ink .disclosure > summary:hover,
.zone--deep .disclosure > summary:hover { color: var(--gold-300); }

.disclosure-body {
  padding: 0 0 22px 22px;
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--muted-500);
}
.zone--ink .disclosure-body,
.zone--deep .disclosure-body { color: rgba(252, 250, 245, 0.66); }

.disclosure-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.zone--ink .disclosure-note,
.zone--deep .disclosure-note { border-top-color: var(--hairline-gold); }

/* ---------- drawer ---------- */
.drawer {
  position: relative;
  border: 1px solid var(--hairline-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.zone--paper .drawer,
.zone--paper-2 .drawer { border-color: var(--hairline-ink); }

.drawer-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.drawer-handle::after {
  content: "＋";
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold-600);
  transition: transform var(--dur-mid) var(--ease);
}
.drawer[data-open] .drawer-handle::after { transform: rotate(45deg); }
.drawer-handle:hover { color: var(--gold-600); }
.zone--ink .drawer-handle:hover { color: var(--gold-300); }

.drawer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-mid) var(--ease);
}
.drawer-body {
  padding: 4px 20px 22px;
  border-top: 1px solid var(--hairline-gold);
  font-size: 0.94rem;
  line-height: 1.85;
}
.zone--paper .drawer-body,
.zone--paper-2 .drawer-body { border-top-color: var(--hairline-ink); }

.drawer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--hairline-gold);
}
.zone--paper .drawer-row,
.zone--paper-2 .drawer-row { border-bottom-color: var(--hairline-ink); }
.drawer-row:last-child { border-bottom: 0; }

/* ---------- media ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ink-700);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--offset-right { transform: translateX(6%); }
.media-frame--offset-left { transform: translateX(-6%); }

.media-caption {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--muted-500);
}
.zone--ink .media-caption,
.zone--deep .media-caption { color: rgba(252, 250, 245, 0.6); }
.media-caption-no { color: var(--gold-600); }

@media (max-width: 760px) {
  .media-frame--offset-right,
  .media-frame--offset-left { transform: none; }
  .asym-block { transform: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
}
.header-bar {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  pointer-events: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(226, 192, 121, 0.38);
  border-radius: var(--radius-pill);
  background: rgba(13, 14, 17, 0.9);
  color: var(--porcelain-000);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  transition: padding var(--dur-mid) var(--ease),
              background-color var(--dur-mid) var(--ease),
              border-radius var(--dur-mid) var(--ease);
}
.site-header[data-scrolled] .header-inner {
  padding: 6px 10px 6px 14px;
  background: rgba(13, 14, 17, 0.97);
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--porcelain-000);
}
.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 24px;
  border: 1px solid var(--gold-300);
  border-radius: 3px;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(226, 192, 121, 0.55);
  border-radius: 2px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px;
  top: 50%;
  height: 1px;
  background: var(--gold-600);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  max-height: 1.2rem;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(226, 192, 121, 0.78);
  line-height: 1.4;
  transition: opacity var(--dur-mid) var(--ease), max-height var(--dur-mid) var(--ease);
}
.site-header[data-scrolled] .brand-sub { opacity: 0; max-height: 0; }

/* nav */
.primary-nav { flex: 1 1 auto; min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(252, 250, 245, 0.78);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease);
}
.nav-link:hover {
  color: var(--gold-300);
  border-color: var(--gold-300);
}
.nav-link[aria-current="page"] {
  color: var(--gold-300);
  border-color: rgba(226, 192, 121, 0.6);
  background: rgba(226, 192, 121, 0.08);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-600);
  transform: translateX(-50%);
}

/* tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.pill-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--gold-300);
  color: var(--ink-900);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease);
}
.pill-cta:hover { background: var(--porcelain-000); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(226, 192, 121, 0.4);
  border-radius: var(--radius-pill);
  color: var(--porcelain-000);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-toggle:hover { border-color: var(--gold-300); color: var(--gold-300); }
.nav-toggle-box {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}
.nav-toggle-box span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-mid) var(--ease), top var(--dur-mid) var(--ease), bottom var(--dur-mid) var(--ease);
}
.nav-toggle-box span:nth-child(1) { top: 2px; }
.nav-toggle-box span:nth-child(2) { bottom: 2px; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-box span:nth-child(1) { top: 5px; transform: rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle-box span:nth-child(2) { bottom: 5px; transform: rotate(-45deg); }

/* scroll meter */
.scroll-meter {
  position: absolute;
  left: 0; right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

/* rail nav */
.rail-nav {
  position: fixed;
  left: max(14px, calc(50% - 640px - 106px));
  top: 50%;
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}
.rail-label {
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--muted-500);
}
.rail-list { display: flex; flex-direction: column; gap: 6px; }
.rail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(226, 192, 121, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(13, 14, 17, 0.72);
  color: var(--paper-050);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.rail-link:hover { border-color: var(--gold-300); color: var(--gold-300); }
.rail-no {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--gold-600);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--porcelain-000);
  border-top: 1px solid var(--hairline-gold);
}
.footer-strip {
  background: var(--ink-700);
  border-bottom: 1px solid var(--hairline-gold);
  padding-block: clamp(28px, 4vw, 44px);
}
.footer-strip-inner { display: flex; flex-direction: column; gap: 22px; }
.strip-line {
  display: flex;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: none;
  color: var(--gold-300);
}
.strip-line .zone-mark { margin-right: 12px; color: var(--gold-300); }
.strip-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px clamp(16px, 2.4vw, 32px);
}
.strip-point {
  display: flex;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(252, 250, 245, 0.68);
}
.strip-no {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--blue-200);
  padding-top: 0.25em;
}

.footer-main { padding-block: clamp(40px, 6vw, 72px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 2.1fr 1.4fr;
  gap: clamp(28px, 4vw, 64px);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
}
.footer-brand-sub {
  font-size: 0.9rem;
  color: rgba(252, 250, 245, 0.6);
  max-width: none;
}
.footer-domain {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  max-width: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--gold-300);
  line-height: 1.6;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-link {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.96rem;
  color: rgba(252, 250, 245, 0.88);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer-link:hover { color: var(--gold-300); border-bottom-color: var(--gold-300); }
.footer-col-note {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(252, 250, 245, 0.45);
  max-width: 22em;
}

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-row { display: flex; flex-direction: column; gap: 2px; }
.contact-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(252, 250, 245, 0.45);
}
.contact-val {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(252, 250, 245, 0.92);
  overflow-wrap: anywhere;
}
.contact-note {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(252, 250, 245, 0.45);
  max-width: 24em;
}

.footer-legal {
  border-top: 1px solid var(--hairline-gold);
  padding-block: 20px 26px;
}
.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(252, 250, 245, 0.5);
}
.legal-icp { color: rgba(252, 250, 245, 0.72); }
.legal-region { color: var(--blue-200); }
.legal-year { margin-left: auto; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-link {
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.legal-link:hover { color: var(--gold-300); border-bottom-color: var(--gold-300); }

/* ---------- anchor flash ---------- */
@keyframes anchor-flash {
  from { background-color: rgba(39, 86, 127, 0.18); }
  to { background-color: transparent; }
}
.is-target { animation: anchor-flash 400ms var(--ease) 1; }

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 9px 10px; font-size: 0.88rem; }
  .rail-nav { display: none; }
}

@media (max-width: 1080px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-9 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-column: span 2; }
  .strip-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 10px);
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    border: 1px solid rgba(226, 192, 121, 0.32);
    border-radius: var(--radius-lg);
    background: rgba(13, 14, 17, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: max-height var(--dur-mid) var(--ease),
                opacity var(--dur-mid) var(--ease),
                visibility var(--dur-mid) var(--ease),
                padding var(--dur-mid) var(--ease);
  }
  .primary-nav[data-open] {
    max-height: 70vh;
    padding: 14px;
    visibility: visible;
    opacity: 1;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { justify-content: flex-start; padding: 13px 16px; border-radius: 14px; font-size: 1rem; }
  .nav-item + .nav-item { border-top: 1px solid rgba(226, 192, 121, 0.12); }
  .nav-link[aria-current="page"]::after { display: none; }
}

@media (max-width: 760px) {
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [class*="span-"] { grid-column: span 2; }
  .index-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-column: span 1; grid-template-columns: 1fr; }
  .strip-points { grid-template-columns: 1fr; }
  .legal-year { margin-left: 0; }
}

@media (max-width: 620px) {
  .brand-sub { display: none; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 10px 13px; }
  .pill-cta { padding: 9px 14px; font-size: 0.84rem; }
  .header-inner { padding: 8px 8px 8px 14px; gap: 10px; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .skip-link { transform: translateY(0); }
}
